/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    /* Colores principales */
    --primary-color: black;
    --secondary-color: #4a4a4a;
    --accent-color: #0056b3;
    --accent-light: #4d94ff;
    --light-color: #f8f9fa;
    --border-color: #e0e0e0;
    --text-light: #6c757d;
    --white: #ffffff;
    
    /* Sombras */
    --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    
    /* Colores de estado */
    --success-color: #28a745;
    
    /* Tipografía */
    --font-primary: 'Inter', 'Segoe UI', sans-serif;
    
    /* Espaciados */
    --section-padding: 8rem 0;
}

/* ==========================================================================
   RESET Y CONFIGURACIÓN BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    font-family: var(--font-primary);
    scroll-behavior: smooth;
}

body {
    color: var(--primary-color);
    background-color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px;
}

/* =========================================================
   VARIABLES
========================================================= */
:root {
  --bg: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --primary: #9ecae3;
  --border: #e5e7eb;
  --shadow: 0 20px 45px rgba(0,0,0,.12);
}

/* =========================================================
   RESET
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8fafc;
  color: var(--text);
}

/* =========================================================
   NAVBAR SCROLL HIDE/SHOW - SOLO LO NECESARIO
========================================================= */
.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1250px;
  background: var(--bg);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 1000;
  /* TRANSICIONES PARA EL EFECTO DE SCROLL */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  pointer-events: all;
}

/* CLASE CUANDO EL NAVBAR ESTÁ OCULTO */
.navbar.hidden {
  transform: translate(-50%, -120%); /* Un poco más arriba para asegurar que desaparezca */
  opacity: 0;
  pointer-events: none; /* Evita que se pueda hacer clic cuando está oculto */
}

/* Asegurar que el contenido no quede oculto detrás del navbar */
.page-content {
  padding-top: 80px; /* Ajusta este valor según la altura de tu navbar */
}

/* Para evitar parpadeos en algunos navegadores */
.navbar-inner {
  display: flex;
  align-items: center;
  padding: 14px 26px;
  gap: 24px;
}

/* Mantén los estilos existentes para el logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

/* =========================================================
   DESKTOP MENU
========================================================= */
.menu-desktop {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    flex: 1;
}

.menu-desktop a {
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
    color: black;
    transition: color .2s ease;
}

.menu-desktop a:hover {
    color: var(--accent-light);
}

.menu-desktop .active {
    color: var(--accent-light);
    position: relative;
}

.menu-desktop .active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-light);
}

/* =========================================================
   DESKTOP DROPDOWN (EDUCACIÓN CONTINUA)
========================================================= */
.desktop-dropdown {
  position: relative;
}

.desktop-dropdown > a::after {
  content: "▾";
  font-size: .1rem;
  margin-left: 6px;
  opacity: .6;
}

.desktop-dropdown .dropdown {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
  overflow: hidden;
}

.desktop-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
}

.dropdown a {
  display: block;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: background .2s ease;
}

.dropdown a:hover {
  background: #f1f5f9;
}

/* =========================================================
   DESKTOP ACTIONS
========================================================= */
.btn-outline {
  padding: 8px 18px;
  background: #ffffff;
  border: 1.5px solid #000;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: #000;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

/* Hover / Tap / Focus */
.btn-outline:hover,
.btn-outline:focus-visible,
.btn-outline:active {
  background: var(--primary);
  color: #000;
  border-color: #000;

  /* Contorno elegante */
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.15),
    0 8px 20px rgb(0, 0, 0);

  transform: translateY(-1px);
}

.btn-outline:focus {
  outline: none;
}
.btn-primary {
  padding: 8px 18px;
  background: var(--primary);
  border: 1.5px solid #000;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #000;
  transition:
    box-shadow 0.25s ease,
    transform 0.15s ease,
    filter 0.2s ease;
}

/* Hover / Tap / Focus */
.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
  background: white;
  filter: brightness(0.95);

  /* Contorno más sutil que el outline */
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.2),
    0 6px 18px rgb(0, 0, 0);

  transform: translateY(-1px);
}

.btn-primary:focus {
  outline: none;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */
.menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* =========================================================
   MOBILE MENU
========================================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .4s ease;
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  transform: translateX(0);
}


/* =========================================================
   MOBILE HEADER
========================================================= */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.close-btn {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* =========================================================
   MOBILE LINKS
========================================================= */
.mobile-links {
  list-style: none;
  padding: 24px;
  flex: 1;
}

.mobile-links li {
  border-bottom: 1px solid var(--border);
}

.mobile-links a,
.accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: white;
  border: none;
  cursor: pointer;
}
.accordion-btn-1 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: white;
  border: none;
  cursor: pointer;
}

/* =========================================================
   ACORDEÓN MOBILE
========================================================= */
.accordion-content {
  display: none;
  padding-left: 12px;
}

.accordion-content a {
  display: block;
  padding: 14px 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.accordion.active .accordion-content {
  display: block;
}

.plus {
  font-size: 1.4rem;
  transition: transform .3s ease;
}

.accordion.active .plus {
  transform: rotate(45deg);
}

/* =========================================================
   MOBILE ACTIONS
========================================================= */
.mobile-actions {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* =========================================================
   OVERLAY
========================================================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 1050;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* =========================
   TABLET & MOBILE (≤1024px)
========================= */
@media (max-width: 1024px) {

  /* Oculta desktop */
  .menu-desktop,
  .actions-desktop {
    display: none;
  }

  /* Muestra botón hamburguesa */
  .menu-btn {
    display: block;
    margin-left: auto;
  }

  /* Navbar más flexible */
  .navbar {
    width: calc(100% - 32px);
    top: 12px;
  }

  .navbar-inner {
    padding: 12px 18px;
  }
}


/* =========================
   MOBILE (≤768px)
========================= */
@media (max-width: 768px) {

  /* Logo */
  .logo-text {
    font-size: 1.2rem;
  }

  .logo-img {
    height: 32px;
  }

  /* Navbar */
  .navbar {
    border-radius: 16px;
  }

  /* Mobile menu spacing */
  .mobile-links {
    padding: 200px;
  }

  .mobile-links a,
  .accordion-btn {
    font-size: 1.05rem;
    padding: 16px 0;
  }

  .accordion-content a {
    font-size: 0.95rem;
  }

  /* Botones mobile */
  .mobile-actions a {
    font-size: 1rem;
    padding: 12px;
    text-align: center;
  }
}


/* =========================
   SMALL MOBILE (≤480px)
========================= */
@media (max-width: 480px) {

  /* Logo aún más compacto */
  .logo-text {
    font-size: 1.05rem;
  }

  .logo-img {
    height: 28px;
  }

  /* Navbar */
  .navbar {
    top: 10px;
    width: calc(100% - 20px);
  }

  /* Mobile menu */
  .mobile-header {
    padding: 18px;
  }

  .mobile-links {
    padding: 16px;
  }

  .mobile-links a,
  .accordion-btn {
    font-size: 0.95rem;
  }

  .mobile-actions {
    padding: 16px;
    gap: 12px;
  }

  .mobile-actions a {
    font-size: 0.95rem;
  }
}







/* ==========================================================================
   CONTENEDORES Y ESTRUCTURA
   ========================================================================== */
.container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Padding estándar para todas las secciones principales */
.what-is-medicine,
.mesa-resolutiva,
.recent-episodes,
.newsletter-section,
.webinar-carousel-section,
.about-doctor,
.perlas-map-section {
    padding: var(--section-padding);
}

/* ==========================================================================
   FONDOS DE SECCIÓN CON IMÁGENES - COLORES ORIGINALES
   ========================================================================== */

/* ESTILOS PARA TODAS LAS SECCIONES CON FONDO DE IMAGEN */
.what-is-medicine,
.mesa-resolutiva,
.recent-episodes,
.webinar-carousel-section,
.about-doctor,
.perlas-map-section {
    position: relative !important;
    overflow: hidden !important;
}

/* FONDO DE IMAGEN PARA CADA SECCIÓN - COLORES ORIGINALES */
.section-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    overflow: hidden !important;
}

.section-bg-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    /* QUITAMOS EL FILTRO DE BRILLO PARA VER COLORES ORIGINALES */
    filter: none !important;
}

.section-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* OVERLAY MÁS SUAVE PARA QUE SE VEAN LOS COLORES */
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,           /* Más transparente */
        rgba(0, 86, 179, 0.15) 50%,      /* Azul muy suave */
        rgba(0, 0, 0, 0.3) 100%
    ) !important;
}



/* Newsletter con fondo azul claro */
.newsletter-section {
    background: linear-gradient(135deg, #8bc3de 0%, #7ab3d0 100%) !important;
}

.newsletter-section .section-background {
    display: none !important;
}
/* O si quieres SIN NINGÚN OVERLAY (colores totalmente originales): */

.section-overlay {
    background: transparent !important;
}

/* ==========================================================================
   HERO DEL PODCAST (MISMA LÓGICA QUE hero-with-image)
========================================================================== */

.podcast-hero {
    position: relative;
    height: 85vh;
    min-height: 700px;
    overflow: hidden;
    margin-top: -160px;
}

/* Fondo */
.podcast-hero .hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.podcast-hero .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Contenido */
.podcast-hero .hero-container {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;

    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    color: #fff;
    padding: 4rem 0;
    margin-left: -7.7%;
    margin-top: -2.5%;
    animation: fadeInUp 1s ease 0.2s forwards;
}


/* Títulos */
.podcast-hero .hero-title {
    font-size: 6.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.podcast-hero .hero-subtitle {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.5;
}

/* Stats (opcional, se integran natural) */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

/* Animación */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================================================
   RESPONSIVE – LAPTOP / TABLET
================================================================== */
@media (max-width: 1024px) {

    .podcast-hero {
        height: 75vh;
        min-height: 620px;
    }

    .podcast-hero .hero-title {
        font-size: 4rem;
    }

    .podcast-hero .hero-subtitle {
        font-size: 2rem;
    }
}

/* ==================================================================
   RESPONSIVE – MÓVIL
================================================================== */
@media (max-width: 768px) {

    .podcast-hero {
        height: auto;
        min-height: 0;
        padding: 6rem 0 4rem;
        margin-top: -150px;
    }

    .podcast-hero .hero-container {
        align-items: flex-start;
    }

    .hero-content {
        margin-top: 50px;
        padding: 0;
        text-align: left;
        margin-left: 5%;
        margin-right: 150px;
    }

    .podcast-hero .hero-title {
        font-size: 2.6rem;
        line-height: 1.15;
    }

    .podcast-hero .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 2.5rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}


/* ==================================================================
   RESPONSIVE – MÓVIL PEQUEÑO
================================================================== */
@media (max-width: 480px) {

    .hero-with-image {
        padding: 10rem 0 rem;
        margin-top: -65px;
    }

    .hero-with-image .hero-content h1 {
        font-size: 2rem;
        margin-top: 50px;
    }

    .hero-with-image .hero-content p {
        font-size: 1rem;
    }




}


/* ==========================================================================
   LA MESA RESOLUTIVA
   ========================================================================== */
.mesa-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.mesa-text {
    color: var(--primary-color);
    text-align: justify;

}

.podcast-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.podcast-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.rating-container {
    display: flex;
    gap: 1rem;
}

.rating-left, .rating-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.rating-separator {
    color: var(--text-light);
}

.rating-count {
    font-size: 1.2rem;
    color: var(--text-light);
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.tagline {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-style: italic;
}

.podcast-description p {
    font-size: 1.6rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.podcast-features {
    margin: 2.5rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-check {
    color: var(--success-color);
    font-size: 1.6rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.feature-text {
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--primary-color);
}

.platform-section {
    margin-top: 3rem;
}

.platform-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.platform-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.8rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s;
}

.platform-badge:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.platform-badge i {
    font-size: 1.8rem;
}

/* Imagen del podcast */
.mesa-image {
    border-radius: 12px;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}


.mesa-image:hover {
    transform: translateY(-5px);
}

.mesa-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* =============================== */
/* SECCION EPISODIOS RECIENTES */
/* =============================== */

.recent-episodes {
    padding: 5rem 0;
}


.section-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: black;
    position: relative;
}

/* =============================== */
/* CARRUSEL */
/* =============================== */

.carousel-wrapper {
    position: relative;
}

.carousel-container {
    overflow: hidden;
    touch-action: pan-y;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.45s ease;
    will-change: transform;
}

/* Botones */
.carousel-nav {
    position: absolute;
    top: -70px;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.carousel-nav.prev { right: 60px; }
.carousel-nav.next { right: 0; }

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

/* =============================== */
/* CARD */
/* =============================== */

.episode-card {
    position: relative;
    flex: 0 0 calc((100% - 3rem) / 3);
    height: 550px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
}

/* Imagen */
.episode-image-container {
    position: absolute;
    inset: 0;
}

.episode-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8));
}

/* =============================== */
/* BADGE COMPARTIDO (SUPERIOR E INFERIOR) */
/* =============================== */

.episode-badge {
    font-size: 1.6rem;
    padding: 4px 10px;
    background: rgb(63, 63, 63);
    color: #fff;
    border-radius: 8px;
    letter-spacing: 1px;
    z-index: 2;
}

/* Posición superior */
.episode-tag {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

/* Posición inferior */
.episode-number-tag {
    position: absolute;
    top: 520px;
    left: 50%;
    transform: translateX(-50%);
}

/* =============================== */
/* PARTICIPANTE */
/* =============================== */

.episode-participant {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 1px;
    z-index: 2;
    font-weight: 500;
}

/* =============================== */
/* TITULO SEPARADO */
/* =============================== */

.episode-title-container {
    position: absolute;
    top: 70px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    z-index: 2;
}

.episode-title {
    font-size: 1.4rem;
    margin: 0;
    color: #fff;
}

/* =============================== */
/* RESPONSIVE */
/* =============================== */

@media (max-width: 1024px) {
    .episode-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 640px) {
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .episode-card {
        flex: 0 0 100%;
        height: 500px;
    }
}

/* ===============================
   EPISODIOS – RESPONSIVE
================================ */

/* LAPTOP / WEB MEDIO */
@media (max-width: 1280px) {
    .recent-episodes .episode-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        height: 460px;
    }
}

/* TABLET */
@media (max-width: 1024px) {
    .recent-episodes .section-title {
        font-size: 2.4rem;
        margin-bottom: 3rem;
    }

    .recent-episodes .episode-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        height: 420px;
    }
}

/* MOBILE GRANDE */
@media (max-width: 768px) {

    .recent-episodes .container {
        padding: 0 16px;
    }

    .recent-episodes .carousel-nav {
        display: none;
    }

    .recent-episodes .carousel-track {
        gap: 1rem;
    }

    .recent-episodes .episode-card {
        flex: 0 0 85%;
        height: 380px;
    }

    .recent-episodes .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .recent-episodes .episode-title {
        font-size: 1.2rem;
    }

    .recent-episodes .episode-number {
        font-size: 1.4rem;
    }
}

/* MOBILE PEQUEÑO */
@media (max-width: 480px) {

    .recent-episodes {
        padding: 3rem 0;
    }

    .recent-episodes .episode-card {
        flex: 0 0 100%;
        height: 340px;
        border-radius: 14px;
    }

    .recent-episodes .episode-tag {
        font-size: 1.2rem;
        padding: 3px 8px;
    }

    .recent-episodes .episode-info {
        padding: 1rem;
    }

    .recent-episodes .episode-title {
        font-size: 1.1rem;
    }

    .recent-episodes .episode-type {
        font-size: 0.85rem;
        padding: 4px 12px;
    }
}




/* ==========================================================================
   SECCIÓN MEMBRESÍAS PREMIUM - NUEVO ESTILO
   ========================================================================== */

.premium-access {
    position: relative !important;
    padding: 8rem 0 !important;
    overflow: hidden !important;
}

/* Contenedor del fondo con imagen */
.premium-access .section-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    overflow: hidden !important;
}

/* La imagen de fondo */
.premium-access .section-bg-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Overlay para mejor legibilidad */
.premium-access .section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Asegurar que el contenido esté por encima */
.premium-access .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Mantener el grid pero ajustar colores */
.premium-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* TEXTO - Ajustar colores para contraste */
.premium-info h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.premium-subtitle {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 500;
}

.includes-title {
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* LISTA - Mejorar contraste */
.premium-list {
    list-style: none;
    padding: 0;
}

.premium-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #222;
    font-weight: 500;
}

.premium-list i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

/* PLANES */
.premium-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.plan-card {
    border: 3px solid rgba(0, 0, 0, 0.1);
    padding: 3rem;
    left: 200PX;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.plan-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.price span {
    font-size: 1.4rem;
    font-weight: 500;
    color: #666;
}

.billing {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 2.5rem;
}

/* BOTONES - Unificar con el estilo general */
.btn-plan {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.btn-plan.outline {
    border: 2px solid var(--primary);
    color: var(--primary-color);
    background: transparent;
}

.btn-plan.outline:hover {
    background: var(--primary);
    color: black;
    transform: translateY(-2px);
}

.btn-plan.primary {
    background: var(--white);
    color: #000;
    border: 2px solid var(--primary);
}

.btn-plan.primary:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* DESTACADO */
.plan-card.featured {
    border: 3px solid var(--primary);
    background: rgba(255, 255, 255, 0.95);
    position: relative;
}

.plan-card.featured::before {
    content: "!!SUSCRIBETE!!";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================================================================
   RESPONSIVE – LAPTOP / DESKTOP MEDIANO
================================================================== */
@media (max-width: 1200px) {
    .premium-grid {
        gap: 3rem;
    }

    .premium-info h2 {
        font-size: 3.2rem;
    }

    .premium-subtitle {
        font-size: 1.7rem;
    }
}

/* ==================================================================
   RESPONSIVE – TABLET / LAPTOP PEQUEÑO
================================================================== */
@media (max-width: 1024px) {
    .premium-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .premium-info {
        max-width: 720px;
        margin: 0 auto;
    }

    .premium-list {
        max-width: 520px;
        margin: 0 auto;
    }

    .premium-list li {
        justify-content: center;
    }

    .premium-plans {
        max-width: 620px;
        margin: 0 auto;
    }
}

/* ==================================================================
   RESPONSIVE – MÓVIL
================================================================== */
@media (max-width: 768px) {
    .premium-access {
        padding: 5rem 0 !important;
    }

    .premium-info h2 {
        font-size: 2.6rem;
    }

    .premium-subtitle {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .includes-title {
        font-size: 1.2rem;
    }

    .premium-list li {
        font-size: 1.45rem;
    }

    .premium-plans {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .plan-card {
        padding: 2.3rem;
    }

    .price {
        font-size: 2.6rem;
    }
}

/* ==================================================================
   RESPONSIVE – MÓVIL PEQUEÑO
================================================================== */
@media (max-width: 480px) {
    .premium-access {
        padding: 4rem 0 !important;
    }

    .premium-info h2 {
        font-size: 2.2rem;
    }

    .premium-subtitle {
        font-size: 1.35rem;
        line-height: 1.55;
    }

    .premium-list li {
        font-size: 1.3rem;
        gap: 1rem;
    }

    /* 👇 PLANES LADO A LADO */
    .premium-plans {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }

    .plan-card {
        padding: 1.6rem;
        border-radius: 14px;
    }

    .plan-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .price {
        font-size: 2rem;
        margin-bottom: 0.4rem;
    }

    .price span,
    .billing {
        font-size: 1.1rem;
    }

    .btn-plan {
        padding: 0.8rem 1rem;
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   NUEVOS EPISODIOS - ESTILO COHERENTE CON EL RESTO
   ========================================================================== */
.new-episodes {
    padding: 8rem 0 !important;
    overflow: hidden !important;
    background-color: white;
}

.new-episodes-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-align: center;
    position: relative;
    color: var(--primary-color);
}

/* GRID */
.new-episodes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* CARD */
.new-episode-card {
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.new-episode-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

/* IMAGE */
.new-episode-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.new-episode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.new-episode-card:hover .new-episode-image img {
    transform: scale(1.05);
}

/* CATEGORY */
.new-episode-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--text);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* BADGE */
.new-episode-badge {
    display: inline-block;
    margin: 1.5rem 0 0.5rem 0; /* ← sin margen izquierdo */
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    background: var(--text);
    color: var(--bg);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
}


/* TEXT CONTENT */
.new-episode-content {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.new-episode-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--text);
    flex: 1;
}

.new-episode-meta {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0;
}

/* FOOTER */
.new-episodes-footer {
    margin-top: 4rem;
    text-align: center;
}

.new-episodes-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: black;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.8px;
    font-size: 1.2rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid black;
}

.new-episodes-btn:hover {
    background: transparent;
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* TABLET GRANDE (≤1200px) */
@media (max-width: 1200px) {
    .new-episodes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* TABLET (≤992px) */
@media (max-width: 992px) {
    .new-episodes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .new-episodes-title {
        font-size: 3rem;
    }
}

/* TABLET PEQUEÑA (≤768px) */
@media (max-width: 768px) {
    .new-episodes {
        padding: 6rem 0 !important;
    }
    
    .new-episodes-grid {
        gap: 1.5rem;
    }
    
    .new-episode-title {
        font-size: 1.3rem;
    }
}

/* MÓVIL GRANDE (≤576px) */
@media (max-width: 576px) {
    .new-episodes-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .new-episodes-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .new-episode-image {
        height: 180px;
    }
    
    .new-episodes-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* MÓVIL MUY PEQUEÑO (≤375px) */
@media (max-width: 375px) {
    .new-episodes-title {
        font-size: 2.2rem;
    }
    
    .new-episode-title {
        font-size: 1.2rem;
    }
    
    .new-episode-badge {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #0046a5;
    color: white;
    padding: 8rem 0 4rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo span {
    font-size: 2.4rem;
    font-weight: 800;
}

.footer-section p {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 35rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: black;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.8rem;
}

.social-links a:hover {
    background-color: white;
    color: black;
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #9ecae3;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 3rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   RESPONSIVE DESIGN COMPLETO
   ========================================================================== */

/* LAPTOP / TABLET GRANDE (≤1200px) */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .episode-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        height: 500px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

/* TABLET (≤1024px) */
@media (max-width: 1024px) {
    html {
        font-size: 55%;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-container {
        padding: 6rem 2rem;
    }
    
    .section-title {
        font-size: 3rem;
        margin-bottom: 4rem;
    }
    
    .mesa-content {
        gap: 4rem;
    }
    
    .podcast-title {
        font-size: 2.8rem;
    }
    
    .episode-card {
        height: 450px;
    }
    
    .episode-title {
        font-size: 1.8rem;
    }
}

/* TABLET PEQUEÑA (≤768px) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.4rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .mesa-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .mesa-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .podcast-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .rating-container {
        width: 100%;
        justify-content: space-between;
    }
    
    .episode-card {
        flex: 0 0 85%;
        height: 400px;
    }
    
    .carousel-nav {
        display: none;
    }
}

/* MÓVIL GRANDE (≤480px) */
@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .hero-container {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.4rem;
        margin-bottom: 3rem;
    }
    
    .podcast-title {
        font-size: 2.2rem;
    }
    
    .rating-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .platform-badges {
        flex-direction: column;
    }
    
    .platform-badge {
        justify-content: center;
    }
    
    .episode-card {
        flex: 0 0 100%;
        height: 350px;
        border-radius: 12px;
    }
    
    .episode-tag {
        font-size: 1rem;
        padding: 6px 15px;
    }
    
    .episode-info {
        padding: 1.5rem;
    }
    
    .episode-title {
        font-size: 1.6rem;
    }
    
    .episode-type {
        font-size: 0.9rem;
        padding: 6px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}



/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}


/* Para reducir movimiento en preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   MODAL "ARTÍCULOS PRÓXIMAMENTE" (ESTILO DE TUS SECCIONES)
========================================================= */
.articulos-soon-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 99990;
}

.articulos-soon-modal{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  width: min(680px, 92vw);
  background: #fff;
  border-radius: 24px;
  border: 2px solid #000;
  box-shadow: var(--shadow, 0 20px 45px rgba(0,0,0,.12));
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
  z-index: 99999;
  overflow: hidden; /* CLAVE para el ribbon */
}

/* franja suave tipo "sección overlay" */
.articulos-soon-modal::before{
  content:"";
  position:absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(158, 202, 227, .35), rgba(0,0,0,0) 55%);
  pointer-events:none;
  z-index: 0;
}

/* =========================================================
   RIBBON DIAGONAL "PRÓXIMAMENTE" (COMO LA IMAGEN)
========================================================= */
.articulos-soon-ribbon{
  position: absolute;
  top: 18px;
  right: -70px;
  width: 260px;
  height: 56px;
  transform: rotate(35deg);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.2));
}

.articulos-soon-ribbon span{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    135deg,
    #63df63 0%,
    #34c84c 55%,
    #1fa833 100%
  );

  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;

  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.35),
    inset 0 -2px 0 rgba(0,0,0,.15);
}

/* =========================================================
   ESTADO ACTIVO
========================================================= */
.articulos-soon-overlay.active{
  opacity: 1;
  visibility: visible;
}
.articulos-soon-modal.active{
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
/* titulo y texto */
.articulos-soon-title{
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 2.4rem;
  font-weight: 900;
  color: #000;
  text-transform: uppercase;
  line-height: 1.15;
}

.articulos-soon-desc{
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 1.55rem;
  color: #111;
  line-height: 1.7;
  font-weight: 600;
  max-width: 62ch;
}

/* acciones */
.articulos-soon-actions{
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.articulos-soon-btn{
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid #000;
  background: #9ecae3;
  color: #000;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
}

.articulos-soon-btn:hover{
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0,0,0,.18);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 480px){
  .articulos-soon-modal{
    padding: 20px;
    border-radius: 18px;
  }

  .articulos-soon-title{
    font-size: 2rem;
  }

  .articulos-soon-desc{
    font-size: 1.35rem;
  }

  .articulos-soon-ribbon{
    top: 14px;
    right: -78px;
    width: 210px;
    height: 48px;
  }

  .articulos-soon-ribbon span{
    font-size: 1.15rem;
    letter-spacing: 1.6px;
  }
}



