.podcasts {
  background: #000000;               /* Fondo negro */
  padding: 48px 0 56px;
  border-radius: 20px;
}

.podcasts__title {
  width: var(--wrap-w);
  max-width: var(--wrap-max);
  margin: 0 auto 20px;
  color: #fff;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
}

/* Grid de 2 filas de 3 */
.podcasts__grid {
  width: var(--wrap-w);
  max-width: var(--wrap-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 por fila */
  gap: 24px 28px;                        /* espacio entre columnas y filas */
  align-items: stretch;
}

/* Tarjeta */
.podcard {
  background: rgb(0, 0, 0);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 30px rgb(0, 0, 0);
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.podcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgb(0, 0, 0);
}

/* Iframe */
.podcard__frame {
  width: 100%;
  height: 232px;
  border: 0;
  border-radius: 12px;
}

/* Responsivo */
@media (max-width: 992px) {
  .podcasts__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .podcasts__grid { grid-template-columns: 1fr; }
}
.podcasts {
  background: #000;
  padding: 20px 0 40px;  /* antes era 48px 0 56px */
  border-radius: 20px;
  margin-top: 0;      /* controla la separación con la sección anterior */
}










/*Sección para header y footer
/* ===== Paleta & reset ===== */
:root{
    --bg: #000000;
    --bg-soft:#151517;
    --panel:#f2d34c;
    --panel-ink:#000000;
    --ink:#eaeaea;
    --muted:#b9b9bd;
    --line:#2a2a2e;
    --radius: 16px;
    --gap: 22px;
    --header-height: 70px; /* Altura del header */
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
    margin:0;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

/* ===========================
   HEADER RESPONSIVO
   =========================== */
body > header {
    background: linear-gradient(to right, #000000, #000000);
    display: flex;
    justify-content: space-between; /* Logo a la izq, Nav a la der */
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 12px rgb(0, 0, 0);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

body > header .logo { 
    height: 45px;
    transition: transform 0.3s ease;
}
body > header .logo:hover { transform: scale(1.05); }

/* Botón de Hamburguesa (Oculto en Desktop) */
.header-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ink);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}
.header-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Navegación (Desktop) */
.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.main-nav li { 
    margin: 0 10px; 
    position: relative; 
}
.main-nav ul li a,
.main-nav ul li span {
    text-decoration: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li span:hover { 
    color: #ffcc00; 
    background-color: rgba(255, 204, 0, 0.1);
}

/* Dropdown (Desktop) */
.main-nav li .dropdown-content{
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: #c5b30e;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 10px 24px rgba(0,0,0,.45);
    z-index: 1001;
}
.main-nav li .dropdown-content a{
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background .2s ease, color .2s ease;
}
.main-nav li .dropdown-content a:hover{
    background: rgba(255, 204, 0, 0.12);
    color: #7c0ec5;
}
.main-nav li.dropdown:hover .dropdown-content{
    display: block;
}

/* ===========================
   HEADER (MÓVIL - RESPONSIVO)
   =========================== */
@media (max-width: 992px) {
    /* Muestra el botón de hamburguesa */
    .header-toggle {
        display: block;
        z-index: 1002;
    }
    /* Oculta la navegación de desktop */
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: #1E1E1E;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 1001;
        padding-top: var(--header-height);
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
    }
    /* Cuando se abre (clase 'is-open' de JS) */
    .main-nav.is-open {
        display: block;
        transform: translateX(0);
    }
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }
    .main-nav li {
        margin: 10px 0;
    }
    .main-nav ul li a,
    .main-nav ul li span {
        display: block;
        padding: 15px;
    }
    .main-nav li .dropdown-content {
        position: static;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        border: none;
        padding-left: 15px;
    }
}





/* FOOTER */
.footer {
  position: relative;
  color: #ddd;
  background: #000;
  padding: 36px 0 24px;
  margin-top: 40px;
}
.footer::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, #f7e755, #ecdb48);
  opacity:.7;
}
.footer-inner{
  width: min(1200px, 92%);
  margin: 0 auto;
}
.footer-columns{
  display: flex;
  gap: 80px;
  align-items: flex-start;
}
.footer-col h3{
  color: #fff;
  font-size: 22px;
  margin: 8px 0 12px;
}
.footer-col ul{
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li{
  margin: 8px 0;
}
.footer-col a{
  color: #cfd2d6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  font-size: 14px;
}
.footer-col a:hover{
  color: #ffcc00;
  border-color: rgba(255,204,0,.4);
}
.footer-col.social{
  margin-left: auto;
}
.social-list{
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 6px 0 0;
  margin: 0;
  justify-content: flex-end;
}
.social-list a{
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  text-decoration: none;
  transition: transform .15s ease, border-color .2s ease, background-color .2s ease;
}
.social-list a:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.08);
  border-color: #ffcc00;
}
.social-list svg{
  width: 20px; height: 20px;
  fill: #fff;
}
.footer-legal{
  text-align: center;
  font-size: 13px;
  color: #b9bdc2;
  margin-top: 20px;
}
.footer-legal a{
  color: #cfd2d6;
  text-decoration: underline;
}
.footer-legal a:hover{
  color: #ffcc00;
}
.footer-legal .sep{
  margin: 0 10px;
  opacity: .6;
}
@media (max-width: 900px){
  .footer-columns{ gap: 40px; }
}
@media (max-width: 700px){
  .footer-columns{
    flex-direction: column;
    gap: 18px;
  }
  .footer-col.social{ margin-left: 0; }
  .social-list{ justify-content: flex-start; }
  .footer-legal{ font-size: 12px; }
}

/* Scrollbar */
*{ scrollbar-width: thin; scrollbar-color: #f5e020 #414141; }
*::-webkit-scrollbar{ width:10px; height:10px; }
*::-webkit-scrollbar-thumb{ background:#c6f705; border-radius:8px; }
*::-webkit-scrollbar-track{ background:#d1d1db; }


/* ===== Contenedor del Carrusel ===== */
.carrusel-container {
    width: 90%;
    margin: 30px auto;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    height: 500px;
    position: relative;
}

/* ===== Carrusel (una imagen a la vez) ===== */
.carrusel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ===== Estilos para la animación de parpadeo del carrusel ===== */
.carrusel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: opacity 0.8s ease-in-out;
    opacity: 0;
}

.carrusel-img.activa {
    opacity: 1;
    z-index: 2;
}

.carrusel-img.inactiva {
    opacity: 0;
    z-index: 1;
}

/* Animación de parpadeo para transiciones */
@keyframes parpadeo {
    0% { opacity: 0; }
    20% { opacity: 0.3; }
    40% { opacity: 0.6; }
    60% { opacity: 0.8; }
    80% { opacity: 0.9; }
    100% { opacity: 1; }
}

.transicion-activa {
    animation: parpadeo 1.2s ease-in-out forwards;
    z-index: 3;
}

/* Mensaje de carga */
#cargandoMensaje {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffcc00;
    font-size: 20px;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    border-radius: 10px;
}

/* ===== Estilos responsivos para el carrusel ===== */
@media (max-width: 768px) {
    .carrusel-container {
        height: 300px;
    }
}


/* ===== Botones del Carrusel ===== */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro transparente */
    color: white; /* Flecha blanca */
    border: none;
    font-size: 3rem; /* Hice la flecha un poco más grande para que la veas bien */
    padding: 10px 20px;
    cursor: pointer;
    z-index: 100; /* Puse 100 para asegurar que esté encima de todo */
    border-radius: 10px;
    user-select: none;
}

.carrusel-btn:hover {
    background-color: rgba(255, 255, 255, 0.3); /* Efecto al pasar el mouse */
}

.anterior { left: 10px; }
.siguiente { right: 10px; }



#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Contenedor que define el tamaño "máximo" del espacio de imagen */
#popup .popup-contenido {
  max-width: 70vw;
  max-height: 70vh;
  width: 70vw;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* La imagen ahora se amolda al contenedor */
#popup-img {
  width: 90%;
  height: 90%;
  object-fit: contain; /* Ajusta sin recortes, escala hacia arriba y abajo */
  border-radius: 10px;
}
#popup .cerrar {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 40px;
    height: 40px;

    background: rgba(0,0,0,0.7);
    color: white;

    font-size: 32px;
    font-weight: bold;
    line-height: 40px;
    text-align: center;

    border-radius: 50%;
    cursor: pointer;

    z-index: 10000;
}






/* ================== ANCHO EXACTO COMO EL CARRUSEL ================== */
/* Reutilizamos las mismas dimensiones del carrusel */
:root { --wrap-w: 90%; --wrap-max: 1200px; }
.carrusel-container { width: var(--wrap-w); max-width: var(--wrap-max); margin: 0 auto; }
.seccion-medios,
.contenedor-general.seccion-medios {
  width: var(--wrap-w);
  max-width: var(--wrap-max);
  
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch; /* iguala alturas */
}

/* Evita que otros estilos viejos de la pÃ¡gina pisen tamaÃ±os */
.seccion-medios * { box-sizing: border-box; }

/* ================== TARJETAS (ALTURA IGUAL) ================== */
:root{ --card-h: 520px;  } /* ajusta --card-h si quieres */
.radio-section, .tv-section{ display:flex; flex-direction:column; }
.radio-card, .tv-card{
  background:#181818; border:1px solid #222; border-radius:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  padding:22px; min-height: var(--card-h);
}

/* ================== TÃTULOS ================== */
.radio-section h2, .tv-section h2{
  font-size: 32px; font-weight: 800; margin: 0 0 18px; color: #fff; text-transform: uppercase;
}

/* ================== LOGOS RADIO ================== */
.botones-radio{ display:flex; flex-wrap:wrap; gap:16px; }
.boton-circular{
  width:72px; height:72px; flex:0 0 72px;
  border-radius:50%; background:#fefefe; border:2px solid #000;
  box-shadow: inset 0 0 0 2px #000, 0 6px 12px rgba(0,0,0,.45);
  display:grid; place-items:center; cursor:pointer; overflow:hidden;
  transition:transform .18s ease, filter .18s ease;
}
.boton-circular img{ width:86%; height:86%; object-fit:contain; border-radius:50%; pointer-events:none; }
.boton-circular:hover{ transform: translateY(-2px) scale(1.06); filter:brightness(1.05); }
.boton-circular.activa{ transform: scale(1.10); }

/* ================== PLAYER CUSTOM ================== */
.reproductor-audio audio{ display:none; } /* ocultamos controles nativos */

.radio-status{
  margin-top: 12px;
  display:grid; gap:16px; align-items:center;
  grid-template-columns: var(--control) var(--control) 1fr;
  grid-template-areas:
    "play logo meta"
    "bar  bar  bar"
    "btn  btn  btn";
  background:#ffffff; border:1px solid #f3f3f3; border-radius:18px; padding:16px;
}

/* Play/Pause (64px exactos) */
#radio-play{
  grid-area: play;
  width:var(--control); height:var(--control);
  border-radius:50%; background:#fff; border:none; cursor:pointer;
  position:relative; box-shadow:0 2px 6px rgba(0,0,0,.35); transition:transform .12s ease;
  
}
#radio-play:hover{ transform: translateY(-1px); }
#radio-play .icon{ /* PLAY */
  position:absolute; left:calc(50% - 6px); top:calc(50% - 10px);
  width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:16px solid #ffffff
;
}
#radio-play.paused .icon{ /* PAUSE */
  left:calc(50% - 8px); top:calc(50% - 10px);
  width:16px; height:20px; border:none;
  background:
    linear-gradient(#ffffff,#ffffff) left/6px 20px no-repeat,
    linear-gradient(#ffffff,#f9f9f9) right/6px 20px no-repeat;
}

/* Logo (64px exactos) y textos */
#radio-logo{
  grid-area:logo; width:var(--control); height:var(--control);
  border-radius:50%; background:#0a0a0a; object-fit:cover; box-shadow:0 4px 14px rgba(0,0,0,.45);
}
.radio-status > div{ grid-area: meta; }
#radio-nombre{ font-size: 28px; line-height: 1; margin: 0; font-weight: 800; color: #fff; }
#radio-ubicacion{ margin: 6px 0 0; font-size: 18px; font-weight: 700; color: #cfcfcf; }

/* Barra de progreso fina */
.radio-progress{
  grid-area: bar; height: 6px; background: rgba(255,255,255,.25);
  border-radius: 6px; overflow: hidden;
}
.radio-progress .fill{ width:0%; height:100%; background:#fff; border-radius:6px; transition: width .15s linear; }

/* BotÃ³n morado â€” sin saltos de lÃ­nea en Edge */
.btn-outline{
  grid-area: btn;
  display:inline-block;
  white-space: nowrap;                 /* <- evita "Conoce la / programaciÃ³n" */
  background: transparent !important;
  color: #eee !important;
  border: 2px solid #b36afc !important;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700; cursor: pointer;
  box-shadow: none;
}
.btn-outline:hover{
  background: linear-gradient(90deg,#b36afc,#8e5ce7) !important;
  box-shadow: 0 6px 16px rgba(179,106,252,.35);
}

/* ================== TV ================== */
.tv-card{ position:relative; }
#tv-player{
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9;                  /* Edge/Chrome ok */
  display:block; background:#000; border-radius:12px; object-fit:cover;
}
/* barra morada */
.tv-progress{
  position:absolute; left:14px; right:14px; bottom:14px; height:4px;
  background:#ffffff24; border-radius:999px; overflow:hidden; pointer-events:none;
}
.tv-progress .fill{
  position:absolute; left:0; top:0; height:100%; width:0%;
  background: linear-gradient(90deg,#b36afc,#8e5ce7);
  border-radius:999px;
}

/* ================== RESPONSIVE ================== */
@media (max-width:1050px){
  .seccion-medios{ grid-template-columns:1fr; }
  .radio-card, .tv-card{ min-height:auto; }
}

/* ===================== FIX 1: Logos 100% redondos en todos los navegadores ===================== */
/* Hay estilos globales tipo img{width:100%;height:auto;border-radius:...} que rompen los logos.
   Esto fuerza tamaÃ±o, forma, overflow y evita que la imagen se â€œescapeâ€. */
.seccion-medios .radio-buttons .radio-btn,
.seccion-medios .botones-radio .boton-circular{
  width:72px !important;
  height:72px !important;
  flex:0 0 72px !important;
  border-radius:50% !important;
  padding:0 !important;
  overflow:hidden !important;
  display:inline-flex !important;
  align-items:center; justify-content:center;
  background:#111; border:2px solid #000;
  box-shadow: inset 0 0 0 2px #000, 0 6px 12px rgba(0,0,0,.45);
}

.seccion-medios .radio-buttons .radio-btn img,
.seccion-medios .botones-radio .boton-circular img{
  width:100% !important;
  height:100% !important;
  max-width:none !important;        /* evita que un â€œmax-width:100%â€ global deforme */
  object-fit:contain !important;    /* quepa completo sin recorte */
  border-radius:50% !important;
  display:block !important;
  pointer-events:none; user-select:none;
}

/* botÃ³n activo un poco mÃ¡s grande como en el mock */
.seccion-medios .radio-buttons .radio-btn.activa,
.seccion-medios .botones-radio .boton-circular.activa{
  transform: scale(1.10);
}

/* Oculta cualquier control nativo del <audio> si algÃºn CSS lo reactivÃ³ */
.reproductor-audio audio{ display:none !important; }

/* ===================== FIX 2: Mismo ancho y separaciÃ³n que el carrusel ===================== */
/* Usa exactamente el mismo wrap del carrusel (90% / 1200px) y respeta el respiro superior */
:root { --wrap-w: 90%; --wrap-max: 1200px; }

.carrusel-container{ width:var(--wrap-w); max-width:var(--wrap-max); margin:0 auto; }

/* El bloque Radio/TV hereda el mismo ancho y deja el MISMO espacio visual encima */
.contenedor-general.seccion-medios,
.seccion-medios{
  width:var(--wrap-w) !important;
  max-width:var(--wrap-max) !important;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:40px;
  align-items:stretch;
}

/* (Opcional) que los tÃ­tulos tengan la misma presencia que el carrusel */
.radio-section h2, .tv-section h2{
  font-size:32px !important;
  font-weight:800;
  letter-spacing:.02em;
  margin:0 0 18px !important;
  text-transform:uppercase;
}

/* ===================== FIX 3: Video siempre 16:9 y ancho completo ===================== */
#tv-player{
  width:100% !important;
  height:auto !important;
  aspect-ratio:16/9;
  display:block;
  border-radius:12px;
  object-fit:cover;
}

/* ===================== Responsive ===================== */
@media (max-width:1050px){
  .contenedor-general.seccion-medios,
  .seccion-medios{ grid-template-columns:1fr;  }
}

/* >>> RESTAURA EL RESPIRO DEL CARRUSEL <<< */
.carrusel-container{
  width: var(--wrap-w);
  max-width: var(--wrap-max);
}

/* Fila con tÃ­tulo y botÃ³n dentro de la tarjeta */
.tv-card .tv-meta{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-top:12px;
}
#tv-label{
  margin:0; color:#e9e9e9; font-weight:700; font-size:18px;
}

/* BotÃ³n morado bonito y consistente en Edge/Chrome */
#switch-btn{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  border:none; border-radius:12px;
  padding:10px 16px;
  background: linear-gradient(90deg,#b36afc,#8e5ce7);
  color:#fff; font-weight:700; letter-spacing:.2px;
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; white-space:nowrap;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(142,92,231,.35);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}


#switch-btn:hover{ transform:translateY(-1px); filter:brightness(1.05); }
#switch-btn:active{ transform:translateY(0); filter:saturate(1.05); }

/* === Espaciado limpio entre nombre, ubicaciÃ³n, barra y botÃ³n === */

/* da aire entre nombre y ubicaciÃ³n */
#radio-nombre {
  margin-bottom: 40px !important; /* ajÃºstalo si quieres mÃ¡s separaciÃ³n */
}

/* da aire entre ubicaciÃ³n y la barra */
#radio-ubicacion {
  margin-bottom: 30px !important; /* antes 14px, sÃºbelo si aÃºn lo ves pegado */
}

/* barra ya no necesita margin-top extra */
.radio-progress {
  margin-top: 0 !important;
  margin-bottom: 18px !important; /* espacio hacia el botÃ³n "Conoce la programaciÃ³n" */
}


.radio-card,
.tv-card,
.radio-status {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* opcional: mantener esquinas redondeadas si gustas */
.radio-card,
.tv-card { border-radius: 0 !important; }


.radio-status {
  display: grid;
  grid-template-columns: auto 60px 1fr;
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 12px 16px;
}

/* Play a la izquierda */
.play-toggle { grid-column: 1; grid-row: 1 / span 3; }

/* Logo a la derecha del play */
#radio-logo { width: 52px; height: 52px; border-radius: 50%; grid-column: 2; grid-row: 1 / span 3; object-fit: cover; }

/* TÃ­tulos, ubicaciÃ³n y volumen */
.radio-texto { grid-column: 3; grid-row: 1; display:flex; flex-direction:column; gap:6px; }

/* Progreso debajo del bloque de texto/volumen */
.radio-progress { grid-column: 3; grid-row: 2; height: 6px; background:#2b2b2b; border-radius: 999px; overflow: hidden; }
.radio-progress .fill { height:100%; width:0; background:#a26cff; transition: width .2s ease; }

/* BotÃ³n Morado */
/* Botón Morado */
#grid-btn { 
    grid-column: 3; 
    grid-row: 3; 
    margin-top: 6px; 
    
    /* AGREGA ESTO: */
    visibility: hidden;
    pointer-events: none; /* Asegura que nadie pueda darle clic por accidente al espacio vacío */
}
/* ===== Volumen desplegable ===== */
.volume-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.volume-toggle {
  border: none;
  background: #ffffff;
  width: 32px; height: 32px;
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  cursor: pointer;
}

.volume-slider {
  width: 0;              /* colapsado por defecto */
  opacity: 0;
  transform-origin: left center;
  transition: width .25s ease, opacity .2s ease;
  appearance: none;
  height: 6px;
  background: #3a3a3a;
  border-radius: 999px;
  outline: none;
}

/* cuando estÃ¡ abierto, se â€œabreâ€ horizontalmente */
.volume-wrap.open .volume-slider {
  width: 180px;          /* despliegue horizontal */
  opacity: 1;
}

/* estilos del thumb (Chrome/Edge) */
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius:50%;
  background: #a26cff; cursor: pointer;
  box-shadow: 0 0 0 2px #fff;
}
/* Firefox */
.volume-slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius:50%;
  background: #a26cff; cursor: pointer;
  border: 2px solid #fff;
}
.volume-toggle {
  border: none;
  background: #000000;       /* fondo negro */
  width: 40px;               /* mÃ¡s grande */
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.volume-toggle svg {
  width: 24px;               /* Ã­cono mÃ¡s grande */
  height: 24px;
  fill: #ffffff;             /* Ã­cono blanco */
}
#radio-ubicacion {
  margin-bottom: 16px !important; /* espacio debajo del texto */
}

.radio-progress {
  margin-top: -10px !important;     /* respiro arriba de la barra */
}




.layout-principal{
  width: var(--wrap-w);
  max-width: var(--wrap-max);
  margin: 24px auto 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;  /* 2/3 izquierda, 1/3 derecha */
  gap: 24px;
}

.col-izquierda{
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Asegura que tus secciones internas usen el ancho del contenedor padre */
.layout-principal .carrusel-container,
.layout-principal .seccion-medios,
.layout-principal .contenedor-general.seccion-medios{
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Lado derecho: notas destacadas */
.col-derecha{
  width: 95%;
  
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nota-card{
  background: #181818;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 14px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

.nota-card img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.nota-card h3{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.nota-card p{
  margin: 0;
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.4;
}

/* Responsive: apilar en una sola columna en tablets/mÃ³vil */
@media (max-width: 1100px){
  .layout-principal{
    grid-template-columns: 1fr;
  }
  .col-derecha{
    order: 2;
  }
}

/* (Opcional) En pantallas grandes, permite un ancho mayor del layout */
@media (min-width: 1400px){
  :root{
    --wrap-max: 1400px;
  }
}
@media (min-width: 1680px){
  :root{
    --wrap-max: 1560px;
  }
}
:root { --wrap-w: 90%; --wrap-max: 1200px; }

.podcasts {
  background: #000;               /* Fondo negro */
  padding: 48px 0 56px;
  border-radius: 20px;
}

.podcasts__title {
  width: var(--wrap-w);
  max-width: var(--wrap-max);
  margin: 0 auto 20px;
  color: #fff;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
}

/* Grid de 2 filas de 3 */
.podcasts__grid {
  width: var(--wrap-w);
  max-width: var(--wrap-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 por fila */
  gap: 24px 28px;                        /* espacio entre columnas y filas */
  align-items: stretch;
}

/* Tarjeta */
.podcard {
  background: rgb(0, 0, 0);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 30px rgb(0, 0, 0);
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.podcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgb(0, 0, 0);
}

/* Iframe */
.podcard__frame {
  width: 100%;
  height: 232px;
  border: 0;
  border-radius: 12px;
}

/* Responsivo */
@media (max-width: 992px) {
  .podcasts__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .podcasts__grid { grid-template-columns: 1fr; }
}
.podcasts {
  background: #000;
  padding: 20px 0 40px;  /* antes era 48px 0 56px */
  border-radius: 20px;
  margin-top: 0;      /* controla la separación con la sección anterior */
}








/* ===== OVERRIDE: usar bordes y hacer la TV más grande ===== */

.layout-principal{
  width: 100% !important;        /* usa todo el ancho real del contenedor */
  max-width: 1400px !important;  /* opcional: limita en monitores muy grandes */
  padding: 0 !important;         /* sin bordes extra */
}


/* Radio + TV en la misma fila, TV más ancha */
.contenedor-general.seccion-medios,
.seccion-medios{
  width: 100vw !important;       /* no te limites al 90% */
  max-width: 100vw !important;
  padding: 0 0px !important;    /* usa los bordes */
  display: grid !important;
  grid-template-columns: 0.8fr 1.2fr !important;  /* Radio | TV (TV 50% más ancha) */
  gap: 24px !important;
  align-items: start !important;
}

/* En pantallas muy grandes, aún más TV */
@media (min-width: 1400px){
  .contenedor-general.seccion-medios,
  .seccion-medios{
    grid-template-columns: 0.75fr 1.25fr !important; /* sube 5% extra a TV */
  }
}
@media (min-width: 1680px){
  .contenedor-general.seccion-medios,
  .seccion-medios{
    grid-template-columns: 0.7fr 1.3fr !important;   /* TV todavía más protagonista */
  }
}

/* El player ya crece con su columna; asegúrate de llenar el ancho */
#tv-player{
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9;
  display: block;
  border-radius: 12px;
  background: #000;
}


/* ===== MEDIA QUERIES RESPONSIVE ===== */

/* Tablets (1024px y menos) */
@media (max-width: 1024px) {
    .layout-principal {
        width: 95%;
        gap: 20px;
    }
    
    .contenedor-general.seccion-medios,
    .seccion-medios {
        width: 95% !important;
        gap: 30px;
    }
    
    .podcasts__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .publicidad {
        width: min(1200px, 95%);
        height: 200px;
        margin: 50px auto;
    }
    
    .footer-columns {
        gap: 40px;
    }
}

/* Tablets pequeñas y móviles grandes (768px y menos) */
@media (max-width: 768px) {
    /* Header responsivo con menú hamburguesa */
    header {
        padding: 10px 20px;
        position: relative;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #000000 0%, #222222 100%);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .close-btn {
        display: block;
    }
    
    .nav-header {
        display: block;
        position: relative;
        height: 70px;
        border-bottom: 1px solid #333;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
        margin-top: 20px;
    }
    
    .nav-list li {
        margin: 8px 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        border-radius: 8px;
        font-size: 16px;
        text-align: left;
        width: 100%;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
    }
    
    .nav-link:hover {
        background: rgba(255, 204, 0, 0.15);
        border-left-color: #ffcc00;
        transform: translateX(5px);
    }
    
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    /* Ajustes generales para móvil */
    .carrusel-container {
        height: 300px;
        margin: 20px auto;
        border-radius: 12px;
    }
    
    .layout-principal {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 95%;
        margin: 20px auto;
    }
    
    .col-derecha {
        order: 2;
    }
    
    .contenedor-general.seccion-medios,
    .seccion-medios {
        grid-template-columns: 1fr !important;
        gap: 30px;
        margin: 30px auto !important;
        padding: 0 10px !important;
    }
    
    .radio-buttons {
        justify-content: center;
        gap: 12px;
    }
    
    .boton-circular {
        width: 60px;
        height: 60px;
        flex: 0 0 60px;
    }
    
    .radio-status {
        padding: 12px;
        gap: 10px;
        grid-template-columns: 50px 50px 1fr;
    }
    
    #radio-nombre {
        font-size: 24px;
    }
    
    #radio-ubicacion {
        font-size: 16px;
    }
    
    #tv-player {
        aspect-ratio: 16/9;
    }
    
    .tv-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .publicidad {
        height: 200px;
        margin: 40px auto;
        width: min(1200px, 95%) !important;
    }
    
    .podcasts__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .podcard__frame {
        height: 200px;
    }
    
    .podcasts {
        margin-top: 0;
        padding: 30px 0 40px;
    }
    
    .footer-columns {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-col.social {
        margin-left: 0;
    }
    
    .social-list {
        justify-content: center;
    }
    
    .footer-legal {
        font-size: 12px;
    }
    
    .content h2 {
        font-size: 24px;
    }
    
    .content p {
        font-size: 16px;
    }
    
    /* Corrección para evitar overflow horizontal */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Móviles pequeños (480px y menos) */
@media (max-width: 480px) {
    .carrusel-container {
        height: 200px;
    }
    
    .content h2 {
        font-size: 20px;
    }
    
    .content p {
        font-size: 14px;
    }
    
    .radio-buttons {
        gap: 8px;
    }
    
    .boton-circular {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
    }
    
    #radio-nombre {
        font-size: 20px;
    }
    
    .radio-status {
        grid-template-columns: 45px 45px 1fr;
    }
    
    .publicidad {
        height: 150px;
    }
    
    .podcasts__grid {
        grid-template-columns: 1fr;
    }
    
    .podcard__frame {
        height: 180px;
    }
    
    header {
        padding: 10px 15px;
    }
    
    .logo {
        height: 35px;
    }
    
    .nota-card img {
        height: 160px;
    }
    
    .nota-card h3 {
        font-size: 16px;
    }
    
    .nota-card p {
        font-size: 13px;
    }
    
    .footer-inner {
        width: 95%;
    }
    
    .footer-legal .sep {
        margin: 0 5px;
    }
    
    .main-nav {
        width: 90%;
    }
    
    .nav-list {
        padding: 15px;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 15px;
    }
}

/* Pantallas muy grandes */
@media (min-width: 1400px) {
    :root {
        --wrap-max: 1400px;
    }
}

@media (min-width: 1680px) {
    :root {
        --wrap-max: 1560px;
    }
}



/* ===== MENÚ HAMBURGUESA FUNCIONAL ===== */

/* Botón hamburguesa - SOLO EN MÓVIL */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Navegación principal - VISIBLE EN DESKTOP */
.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffcc00;
    background-color: rgba(255, 204, 0, 0.1);
}

/* Botón de cerrar - SOLO EN MÓVIL */
.close-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1002;
}

.close-icon {
    font-size: 24px;
    font-weight: bold;
}

.nav-header {
    display: none;
}

/* Overlay para cerrar menú */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===========================
   HEADER (MÓVIL - RESPONSIVO)
   =========================== */
@media (max-width: 992px) {
    /* Muestra el botón de hamburguesa */
    .header-toggle {
        display: block;
        z-index: 1002;
    }
    /* Oculta la navegación de desktop */
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: #1E1E1E;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 1001;
        padding-top: var(--header-height);
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
    }
    /* Cuando se abre (clase 'is-open' de JS) */
    .main-nav.is-open {
        display: block;
        transform: translateX(0);
    }
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }
    .main-nav li {
        margin: 10px 0;
    }
    .main-nav ul li a,
    .main-nav ul li span {
        display: block;
        padding: 15px;
    }
    .main-nav li .dropdown-content {
        position: static;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        border: none;
        padding-left: 15px;
    }
}





/* El contenedor que va ANTES de "Podcasts" */
.publicidad {
 

 height:350px; /* Altura fija del banner */
  overflow: hidden; /* Esconde cualquier exceso */
  margin-bottom: 70px; /* SOLO abajo */

border-radius: 12px;
background: #000000; /* Fondo oscuro por si la imagen no llena todo */
 display: flex; /* Para centrar la imagen dentro del contenedor */
 justify-content: center;
 align-items: center;
}
@media (max-width: 700px) {
  .publicidad {
    width: 90vw !important;
    height: 200px; /* Cambia esta altura como prefieras */
    margin-bottom: 40px; /* También lo puedes ajustar */
  }
}

/* Esto se aplica a CUALQUIER enlace que tu script
  meta dentro de la sección de publicidad.
*/
.publicidad a {
  width: 100%;
  height: 100%; /* El enlace ocupa todo el espacio */
}

/* Esto se aplica a CUALQUIER imagen que tu script
  meta dentro del enlace.
*/
.publicidad a img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* aEsta es la línea clave */
}

.publicidad a:hover img {
 transform: scale(1.03); 
}

/* Oculta el "Cargando..." si la imagen se carga */
.publicidad a ~ #cargandoPublicidad {
display: none;
}
/* =========================================================
   ESTILO CORRECTO PARA LAS TARJETAS DEL ASIDE (.nota-card)
   ========================================================= */

.aside-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tarjeta general */
.nota-card {
    display: block;
    background: #151515;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    padding-bottom: 12px;
}

.nota-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* Imagen */
.nota-card img {
    width: 100%;
    height: 200px;
    object-fit: fill;
    display: block;
    border-bottom: 3px solid #ffcc00; /* O el color que ya usabas */
}

/* Título */
.nota-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 12px;
    line-height: 1.3;
}

/* Extracto */
.nota-card p {
    font-size: 0.85rem;
    color: #cfcfcf;
    margin: -5px 12px 0 12px;
}

/* Móvil */
@media (max-width: 768px) {
    .aside-grid {
        gap: 15px;
    }

    .nota-card img {
        height: 140px;
    }

    .nota-card h3 {
        font-size: 0.95rem;
    }

    .nota-card p {
        font-size: 0.8rem;
    }
}
/* =========================================
   1. ESTILOS GENERALES CARRUSEL (PC: Mouse y Teclado)
   ========================================= */

/* CONTENEDOR PRINCIPAL */
.carousel-container {
    position: relative;
    width: 100%;
    padding: 20px 45px; 
    box-sizing: border-box;
    overflow: hidden; 
}

/* EL RIEL (CARRUSEL HORIZONTAL POR DEFECTO) */
.carousel {
    display: flex;
    gap: 20px;
    scroll-behavior: smooth;
    padding: 15px 5px; /* Espacio para animación y sombra */
    scrollbar-width: none; 
}
.carousel::-webkit-scrollbar { display: none; } 

/* --- FLECHAS (Visibles por defecto) --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #fdd835;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    z-index: 20; /* Encima de todo */
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transition: transform 0.2s, background-color 0.2s;
}
.nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background-color: #ffd700;
}

/* POSICIÓN DE FLECHAS: Pegadas a los bordes del contenedor */
.left-btn { left: 5px; }
.right-btn { right: 5px; }


/* --- TARJETA Y ANIMACIONES (Estilo PC) --- */
.news-card {
    /* Ancho fijo base para carrusel horizontal */
    width:900px;
    min-width: 1000px; 
    flex: 0 0 auto;
    background-color: #0d0d0d;
    border-radius: 16px;
    padding: 12px;
    border: 1px solid #1a1a1a;
    
    /* ANIMACIÓN */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    
    /* Para modo vertical: Flex direction columna */
    display: flex;
    flex-direction: column;
}

/* HOVER: Se activa con el mouse */
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.6);
    border-color: #fdd835;
    z-index: 5;
}

.news-img {
  flex-grow: 20;          /* ← Hace que la imagen se expanda dentro del flex */
    min-height: 100px;     /* Altura mínima */
    width: 100%; 
    height: 300px; 
    object-fit: cover;
        object-position: 50% 20%;     

    border-radius: 12px; 

}

/* --- ESTILOS INTERNOS (TEXTO Y BOTONES) --- */
.info-top {
    display: flex; justify-content: space-between; align-items: center;
}
.info-top span:first-child { color: #e6a345; font-size: 14px; font-weight: 800; text-transform: uppercase; }
.date-tag { background-color: #222; color: #bbb; font-size: 11px; padding: 4px 10px; border-radius: 12px; font-weight: 600; }
.news-card h2 { color: #fff;  font-size: 18px; line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 1 línea */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; /* IMPORTANTE: evita que se expanda */
 }
.news-card p { color: #ccc; font-size: 14px;/* El texto empuja los botones al fondo */ }


.tag-btn {
    border: none; padding: 8px 18px; border-radius: 20px;
    font-size: 13px; font-weight: 800; cursor: pointer; margin-right: 8px;
    transition: opacity 0.2s, transform 0.2s; text-transform: capitalize;
}
.tag-btn:hover { opacity: 0.9; transform: scale(1.05); }
.tag-btn:nth-of-type(1) { background-color: #fdd835; color: #000; }
.tag-btn.small { background-color: #2a2a2a; color: #fff; }


/* ====================================================================
   2. DETECCIÓN DE MÓVIL REAL (Touch Screen)
   ==================================================================== */
@media (hover: none) and (pointer: coarse) {
    
    /* Contenedor se expande a full pantalla y quita el espacio de flechas */
    .carousel-container {
        width: 100vw !important;
        padding: 20px 0 !important; 
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }

    /* ADIÓS FLECHAS (Solo si es touch) */
    .nav-btn { display: none !important; }

    /* RIEL FLUIDO */
    .carousel {
        display: flex !important;
        gap: 15px !important;
        padding: 0 20px !important;
        scroll-snap-type: x mandatory; 
    }

    /* TARJETA ADAPTABLE (SWIPE) */
    .news-card {
        min-width: 85vw !important; 
        width: 85vw !important;
        max-width: 85vw !important;
        scroll-snap-align: center;
        margin: 0 !important;
        transform: none !important; 
    }
}


/* =================================================================
   3. MODO VERTICAL (COLUMNA DERECHA) - AJUSTE FINAL DE ALTURA
   ================================================================= */

/* 1. Contenedor Principal */
.vertical-mode .carousel-container {
    padding: 0 !important;
    height: 100%; 
    margin: 0;
    overflow: visible !important;
}

/* 2. Wrapper */
.vertical-mode .carousel-wrapper {
    height: 100%;
    width: 100%;
    display: block;
}

/* 3. Riel en COLUMNA (Vertical) */
.vertical-mode .carousel {
    display: flex !important;
    flex-direction: column !important; 
    height: 100% !important;
    
    /* AJUSTE FINO 1: Reduje el gap de 12px a 10px para compactar más */
    gap: 10px !important; 
    
    overflow: visible !important;
    padding: 0 !important;
}

/* 4. Ocultar flechas */
.vertical-mode .nav-btn {
    display: none !important;
}

/* 5. Tarjetas Flexibles */
.vertical-mode .news-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    flex: 1; 
    display: flex;
    flex-direction: column;
    padding: 12px !important;
}

/* 6. Imagen compacta */
.vertical-mode .news-img {
    height: 135px; 
    flex-shrink: 0;
    /* AJUSTE FINO 2: Menos espacio debajo de la imagen (de 10px a 8px) */
    margin-bottom: 8px;
}

/* 7. Ajustes de Texto */
.vertical-mode .news-card h2 {
    font-size: 16px;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vertical-mode .news-card p {
    font-size: 13px;
    flex-grow: 1;
    /* AJUSTE FINO 3: Menos espacio debajo del texto (de 10px a 8px) */
    margin-bottom: 8px;
    
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 8. Footer de la tarjeta */
.vertical-mode .card-footer {
    margin-top: auto;
}

/* Ajuste para Móviles (Sin cambios aquí) */
@media (max-width: 768px) {
    .vertical-mode .carousel {
        height: auto !important;
        gap: 20px !important;
    }
    .vertical-mode .news-card {
        flex: none; 
        min-height: auto;
    }
    .vertical-mode .news-img {
        height: 180px;
    }
}
/* ===== REDUCIR TAMAÑO DE LAS TARJETAS EN MODO VERTICAL ===== */
.vertical-mode .news-card {
    height: 320px !important;   /* Ajusta esta altura a tu gusto */
    flex: 0 0 auto !important;  /* Evita que se estiren */
    overflow: hidden; 
    padding: 10px !important;
}

.vertical-mode .news-img {
    height: 95px !important;    /* Imagen más pequeña */
    margin-bottom: 6px !important;
}

.vertical-mode .news-card h2 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
}

.vertical-mode .news-card p {
    font-size: 12px !important;
    margin-bottom: 6px !important;
    -webkit-line-clamp: 2;
}

.vertical-mode .tag-btn {
    padding: 6px 14px !important;
    font-size: 12px !important;
}
html, body {
    max-width: 100%;
    overflow-x: hidden !important; /* Esto elimina el espacio blanco a la derecha */
}


.news-card {
    display: flex;
    flex-direction: column;
    padding-top: 1px; /* ← Esto rompe el margin collapse */
}
.news-card h2,
.news-card p {
    margin: 0 !important;
    padding: 0 !important;
}



















.layout-principal {
    /* ANTES TENÍAS: grid-template-columns: 2fr 1fr; */
    /* CAMBIA POR ESTO: */
    grid-template-columns: 2fr minmax(0, 1fr) !important; 
    
    /* El resto de tus estilos se mantienen igual */
    width: var(--wrap-w);
    max-width: var(--wrap-max);
    margin: 24px auto 40px;
    display: grid;
    gap: 24px;
}

/* Aseguramos que la tarjeta nunca sea más ancha que su columna */
.news-card, .nota-card {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important; /* Corta cualquier rebelde */
}

/* El estilo para cortar Título y Texto */
.news-card h2, .news-card p,
.nota-card h3, .nota-card p {
    /* 1. Obliga a ser una sola línea */
    white-space: nowrap !important;
    
    /* 2. Corta y pone los puntos suspensivos */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    
    /* 3. Asegura que ocupe el ancho disponible y no más */
    width: 100% !important;
    display: block !important;
    
    margin: 0 0 5px 0 !important; /* Respetar márgenes */
}

.publicidad {
    grid-column: 1 / -1 !important; /* Se coloca fuera del grid, ocupa toda la fila */
    width: 100% !important;
}

.layout-principal .publicidad {
    grid-column: 1 / -1 !important; /* fuerza que NO se meta en las columnas */
}


/* Banner ajustado EXACTAMENTE como el que sí funciona */
.publicidad { 
  
  width: 100%;
  max-width: 100%;
  height: auto !important;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.publicidad a {
  display: block;
  width: 100%;
  height: auto;
}

.publicidad a img {
  width: 100%;
  height: auto;
  object-fit: contain !important;
  border-radius: 12px;
  
}
@media (max-width: 700px) {
  .publicidad {
    justify-content: flex-start;

    width: 90vw !important;
    height: 200px; /* Cambia esta altura como prefieras */
  }
}

@media (max-width: 700px) {
  .publicidad {
    display: flex; /* Asegúrate de que sea flex para que funcione justify-content */
    justify-content: flex-start; /* Alinea el contenido (la imagen) a la izquierda */
    
    width: 100vw !important;
    height: 200px;
    
    /* ESTAS SON LAS LÍNEAS CLAVE */
    margin-left: 0 !important;   /* Pega el contenedor al borde izquierdo */
    margin-right: auto !important; /* Empuja todo el espacio sobrante a la derecha */
  }
}

/* ===== Botón Redondo (Contenedor) ===== */
#radio-play {
  width: 64px;            /* Tamaño fijo (antes var(--control)) */
  height: 64px;
  border-radius: 50%;     /* Hace que sea redondo */
  background: #fff;       /* Fondo blanco */
  border: none;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  transition: transform .12s ease;
  
  /* Si estás usando grid layout mantenlo, si no, puedes borrar esta línea */
  grid-area: play; 
}

#radio-play:hover {
  transform: translateY(-1px);
}

/* ===== Icono PLAY (Triángulo) ===== */
#radio-play .icon {
  position: absolute;
  left: calc(50% - 6px);  /* Centrado óptico para el triángulo */
  top: calc(50% - 10px);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  
  /* Color del triángulo (Play). En tu código original era #fff (invisible).
     Lo he puesto #111 para que se vea sobre el botón blanco. */
  border-left: 16px solid #111; 
}

/* ===== Icono PAUSE (Dos barras) ===== */
/* Este estilo se aplica cuando añades la clase "paused" al botón mediante JS */
#radio-play.paused .icon {
  left: calc(50% - 8px);
  top: calc(50% - 10px);
  width: 16px;
  height: 20px;
  border: none;
  
  /* Dibuja las dos barras verticales de pausa */
  background:
    linear-gradient(#111, #111) left/6px 20px no-repeat,
    linear-gradient(#111, #111) right/6px 20px no-repeat;
}