:root {
  --max-width: 1170px;
}
html, body {
  width: 100%;
  overflow-x: hidden;
}
.container-1170 {
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* =========================
   RESET Y BASE
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: #f4f6f9;
  color: #222;
  line-height: 1.5;
}

/* HEADER */
#site-header {
  position: fixed;
  height: 64px;
  top: 0;
  width: 100%;
  background: #001341;
  z-index: 1000;
  transition: transform 0.3s ease;
}

#site-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* LOGO */
.logo {
  justify-self: center;
}
.logo img {
  height: 42px;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

#menu-toggle {
  grid-column: 1;
}

.logo {
  grid-column: 2;
  justify-self: center;
}

.header-social {
  grid-column: 3;
  display: flex;
  gap: 14px;
  justify-self: end;
}

.header-social a {
  color: #ffffff;
  font-size: 1rem;
}

.header-social a:hover {
  color: #fc3900;
}


/* HAMBURGUESA */
#menu-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #fc3900;
  cursor: pointer;
}
/* NAV */
#main-menu {
  position: fixed;
  top: 64px;
  left: -100%;
  width: 100%;
  background: rgba(0, 19, 65, 0.95);
  backdrop-filter: blur(6px);
  transition: left 0.3s ease;
  z-index: 999;
}

#main-menu.open {
  left: 0;
}

#main-menu ul {
  max-width: 1170px;
  margin: 0 auto;
  padding: 20px;
  list-style: none;
}

#main-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#main-menu a {
  display: block;
  padding: 14px 0;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

#main-menu a:hover {
  color: #fc3900;
}

#main {
  padding-top: 160px; /* 64 header + ~96 onair */
}

/* =========================
   ON AIR – BLOQUE DEFINITIVO
========================= */

.onair-module {
  position: fixed;
  top: 64px;
  max-width: 100%;
  width: 100%;
  background: linear-gradient(
    145deg,
    #012B87 0%,
    #001341 100%
  );
  z-index: 900;
  margin-bottom: 12px;
  border-bottom: 3px solid #fc3900;
}


.onair-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 8px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

/* IMAGEN */
.onair-cover img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0px;
}

/* INFO */
.onair-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.2;
}

/* ETIQUETA */
.onair-live {
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: #fc3900;
  color: #fff;
  padding: 3px 8px;
}

/* TITULO */
#onair-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

/* LOCUTOR / HORA */
.onair-host {
  font-size: 0.75rem;
  margin: 0;
  opacity: 0.85;
  color: #ffffff;
 }
.onair-time {
  font-size: 0.75rem;
  margin: 0;
  opacity: 0.85;
  color: #ffffff;
}

/* A CONTINUACIÓN (SIEMPRE VISIBLE) */
.onair-next {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.15rem;
  color: rgba(255,255,255,0.9);
}

.onair-next span {
  opacity: 0.6;
}

/* CONTENEDOR DEL BOTÓN */
.onair-action {
  display: flex;
  align-items: center;
}

/* BOTÓN */
.onair-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  background: #fc3900;
  color: #ffffff;
  border-radius: 20px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.onair-whatsapp-btn i {
  font-size: 0.9rem;
}

.onair-whatsapp-btn:hover {
  background: #ff4d1a;
  transform: translateY(-1px);
}
/* ANIMACIÓN SUAVE */
.onair-module.fade {
  animation: onairFade 0.4s ease;
}

@keyframes onairFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .onair-inner {
    padding: 0.4rem 16px;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
  }

  .onair-cover img {
    width: 80px;
    height: 80px;
  }

  #onair-title {
    font-size: 0.85rem;
  }

  .onair-host {
  font-size: 0.7rem;
  }
  .onair-time {
  font-size: 0.7rem;
  }
  .onair-next {
    font-size: 0.7rem;
  }
  .onair-action {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 6px;
  }
}


/* =========================
   PLAYER PRINCIPAL
========================= */
.player-wrapper {
  width: 100%;
  display: block;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.player-wrapper .container-1170 {
  width: 100%;
}

#player {
  width: 100% !important;
  max-width: 100%;
  height: 600px;
  background: #001341;
  overflow: hidden;
}

/* =========================
   SEPARADOR
========================= */
.section-divider {
  border-top: 1px solid #eee;
  width: 100%;
  max-width: var(--max-width);
  height: 1px;
  margin: 12px auto;
  opacity: 0.6;
}
.section {
  width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   INSTAGRAM – FEED PERIODÍSTICO
========================= */
.instagram-news {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 8px;
  padding-bottom: 16px;
  border-radius: 6px;
}

.instagram-news h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #001341;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding-left: 20px;
  padding-right: 20px;
}

.ig-card img {
 width: 100%;
  display: block;
}
.ig-card:hover {
  transform: translateY(-3px);
}
.ig-meta {
  font-size: 0.75rem;
  color: #666;
  margin-top: 8px;
}

.ig-caption {
  padding: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #ffffff;
  background: #fc3900;
}

/* =========================
   PODCAST – ARCHIVO SERIO
========================= */
.podcast-latest-section {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 8px;
  padding-bottom: 16px;
  padding-left: 20px;
  padding-right: 20px;
  color: #ffffff;
  margin-bottom: 48px;
  background:
    linear-gradient(
      rgba(0, 19, 65, 0.94),
      rgba(0, 19, 65, 0.76)
    ),
    url("https://vivafm.com.co/portada-lfv.jpg") left/cover no-repeat;

  backdrop-filter: blur(6px);
}

.podcast-latest-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

/* GRID */
#podcast-latest-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ITEM */
.podcast-latest-item {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.podcast-latest-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

/* =========================
   PLAYER PODCAST MODERNO
========================= */
.audio-player {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.audio-player .btn {
background: rgba(252, 57, 0, 0.9);
  border: none;
  color: rgba(255,255,255,1);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.audio-player .btn:hover {
  background: #fc3900;
  transform: scale(1.05);
}

.audio-player .btn i {
  font-size: 0.9rem;
  opacity: 0.85;
}
.progress-container {
  height: 4px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #fc3900;
}

.time {
  font-size: 0.7rem;
  opacity: 0.85;

}
.site-footer {
  background: #001341;
  color: #fff;
  padding: 20px 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
}

.footer-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Links de legal y separadores */
.footer-legal a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 6px;
  font-size: 14px;
}

.footer-legal a:hover {
  color: #4da3ff;
  text-decoration: underline;
}

.footer-legal .separator {
  margin: 0 4px;
  color: #ffffff;
}

/* Redes sociales */
.footer-social a {
  color: #ffffff;
  margin: 0 4px;
  font-size: 18px;
}

.footer-social a:hover {
  color: #4da3ff;
}

/* Copyright */
.copyright {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
}

/* =========================
   MOBILE & TABLET
========================= */

@media (max-width: 992px) {

  /* HERO */
  .hero-news {
    padding: 90px 16px 32px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  /* PLAYER PRINCIPAL */
  #player {
    height: 820px;
  }

  .player-wrapper {
    margin: 20px auto 30px;
  }

  /* INSTAGRAM */
  .instagram-news {
    padding: 32px 16px;
  }

  .instagram-grid {
    gap: 24px;
  }

  /* PODCASTS */
  #podcast-latest-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .podcast-latest-section {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 40px;
  }

  /* AUDIO PLAYER */
  .audio-player {
    grid-template-columns: auto auto 1fr;
    gap: 10px;
  }

  .time {
    display: none;
  }

  /* FOOTER */
  .footer {
    padding: 28px 16px;
  }
}

  #main-menu {
  top: 64px;
  left: -100%;
  width: 100%;
  background: rgba(0, 19, 65, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  
  }

#main-menu ul {
  display: block;
  max-width: 1170px;
  margin: 0 auto;
  padding: 20px;
  list-style: none;
}
#main-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {

  #main {
    padding: 0;
    padding-top: 140px;
  }

  .player-wrapper {
    margin: 14px auto 32px;
    margin-top: 1rem;
    
  }

  #podcast-latest-container {
    grid-template-columns: 1fr;
  }

  .instagram-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {

  .hero-title {
    font-size: 1.35rem;
  }

  #player {
    height: 500px;
    
  }

  .audio-player .btn {
    width: 50px;
    height: 50px;
  }
} 
@media (max-width: 992px) {
  .podcast-latest-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 768px) {
  .header-social {
    display: none;
}

.footer-container {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-legal {
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
  }

  .footer-legal a {
    margin: 0 4px;
    font-size: 12px;
  }

  .footer-social a {
    font-size: 16px;
    margin: 0 6px;
  }

  .copyright {
    font-size: 11px;
    margin-top: 6px;
  }
}