/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    /* Colores principales */
    --primary-color: #1a1a1a;
    --secondary-color: #4a4a4a;
    --accent-color: #0056b3;
    --accent-light: #4d94ff;
    --light-color: #f8f9fa;
    --border-color: #e0e0e0;
    --text-light: #6c757d;
    --white: #ffffff;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0056b3, #003d82);
    --gradient-secondary: linear-gradient(135deg, #4d94ff, #1a75ff);
    
    /* 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;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    
    /* Tipografía */
    --font-primary: 'Inter', 'Segoe UI', sans-serif;
    
    /* Espaciados consistentes */
    --section-padding: 8rem 0;
    --card-padding: 2.5rem;
    --card-gap: 2.5rem;
    --title-margin-bottom: 6rem;
}



/* ==========================================================================
   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;
}




/* =========================================================
   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
========================================================= */
.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;
}

.navbar-inner {
  display: flex;
  align-items: center;
  padding: 14px 26px;
  gap: 24px;
}

/* =========================================================
   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;
}


/* =============================== */
/* SECCION EPISODIOS RECIENTES */
/* =============================== */

.recent-episodes {
    padding: 5rem 0;
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 0 24px;
}

.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; /* tu mismo tamaño original */
    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; /* arriba del tag inferior */
    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;
    }
}


/* SECCION EVENTOS (COPIA DE EPISODIOS RECIENTES) */


.webinar-carousel-section .section-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 4rem;
    color: black;
}
/* Botones arriba */
.webinar-carousel-section .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);
}



/* Card */
.webinar-card {
    position: relative;
    flex: 0 0 calc((100% - 3rem) / 3);
    height: 550px;
    border-radius: 18px;
    overflow: hidden;
}

/* Imagen */
.webinar-image {
    position: absolute;
    inset: 0;
}

.webinar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.webinar-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8));
}

/* Tag superior centrado (fecha) */
.webinar-date-circle {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
    padding: 4px 10px;
    background: rgb(63, 63, 63);
    color: #fff;
    border-radius: 8px;
    letter-spacing: 1px;
    z-index: 2;
}

/* Info centrada (ajustada) */
.webinar-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: #fff;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;   /* centra y evita estiramiento */
    text-align: center;
}


.webinar-title {
    font-size: 1.4rem;
    margin: 0.4rem 0 0.8rem;
}
.event-type-badge {
    font-size: 1rem;
    padding: 5px;
    border-radius: 999px;
    background: #0b5cff;
    letter-spacing: 1px;
}

/* ===============================
   EVENTOS / WEBINARS – RESPONSIVE
================================ */

/* LAPTOP / WEB MEDIO */
@media (max-width: 1280px) {
    .webinar-carousel-section .webinar-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        height: 460px;
    }
}

/* TABLET */
@media (max-width: 1024px) {
    .webinar-carousel-section .section-title {
        font-size: 2.4rem;
        margin-bottom: 3rem;
    }

    .webinar-carousel-section .webinar-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        height: 420px;
    }
}

/* MOBILE GRANDE */
@media (max-width: 768px) {

    .webinar-carousel-section .container {
        padding: 0 16px;
    }

    .webinar-carousel-section .carousel-nav {
        display: none;
    }

    .webinar-carousel-section .carousel-track {
        gap: 1rem;
    }

    .webinar-carousel-section .webinar-card {
        flex: 0 0 85%;
        height: 380px;
    }

    .webinar-carousel-section .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .webinar-carousel-section .webinar-title {
        font-size: 1.2rem;
    }
}

/* MOBILE PEQUEÑO */
@media (max-width: 480px) {

    .webinar-carousel-section {
        padding: 3rem 0;
    }

    .webinar-carousel-section .webinar-card {
        flex: 0 0 100%;
        height: 340px;
        border-radius: 14px;
    }

    .webinar-carousel-section .webinar-date-circle {
        font-size: 1.2rem;
        padding: 3px 8px;
    }

    .webinar-carousel-section .webinar-content {
        padding: 1rem;
    }

    .webinar-carousel-section .webinar-title {
        font-size: 1.1rem;
    }

    .webinar-carousel-section .event-type-badge {
        font-size: 0.85rem;
        padding: 4px 12px;
    }
}




/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-with-image {
    position: relative;
    height: 85vh;
    min-height: 700px;
    overflow: hidden;
}

/* Fondo */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Contenido */
.hero-with-image .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    color: #fff;
    padding: 4rem 0;
    margin-left: 0.5%;
    animation: fadeInUp 1s ease 0.2s forwards;
}

/* Títulos */
.hero-with-image .hero-content h1 {
    font-size: 6.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-with-image .hero-content p {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

/* Botones */
.hero-with-image .hero-buttons {
    display: flex;
    gap: 2.5rem;
    animation: fadeInUp 1s ease 1s both;
}

.hero-with-image .btn-primary {
    background: #8bc3de;
    color: #000;
    padding: 1.5rem 3.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #000;
    transition: all 0.3s ease;
}

.hero-with-image .btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-with-image .btn-outline-white {
    background: transparent;
    color: #fff;
    padding: 1.5rem 3.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.hero-with-image .btn-outline-white:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Animación */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================================================
   RESPONSIVE – LAPTOP / TABLET
================================================================== */
@media (max-width: 1024px) {

    .hero-with-image {
        height: 75vh;
        min-height: 620px;
    }

    .hero-with-image .hero-content h1 {
        font-size: 4rem;
    }

    .hero-with-image .hero-content p {
        font-size: 2rem;
    }
}

/* ==================================================================
   RESPONSIVE – MÓVIL
================================================================== */
@media (max-width: 768px) {

    .hero-with-image {
        height: auto;
        min-height: 0;
        padding: 6rem 0 4rem;
    }

    .hero-with-image .container {
        align-items: flex-start;
    }

    .hero-content {
        padding: 0;
        margin-right: 200px;
        text-align: left;
    }

    .hero-with-image .hero-content h1 {
        font-size: 2.6rem;
        line-height: 1.15;
    }

    .hero-with-image .hero-content p {
        font-size: 1.4rem;
        margin-bottom: 2.5rem;
    }

@media (max-width: 768px) {

    .hero-with-image .hero-buttons {
        display: flex;
        flex-direction: row;     /* 👈 lado a lado */
        align-items: center;
        gap: 1.5rem;             /* espacio entre ellos */
        flex-wrap: nowrap;       /* 👈 NO se bajan */
    }

    .hero-with-image .btn-primary,
    .hero-with-image .btn-outline-white {
        width: auto;             /* 👈 tamaño natural */
        padding: 1.1rem 1.8rem;
        font-size: 1.2rem;
        white-space: nowrap;     /* 👈 no se rompen */
    }
}

}

/* ==================================================================
   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;
    }

    /* 👇 BOTONES SIEMPRE LADO A LADO */
    .hero-with-image .hero-buttons {
        display: flex;
        flex-direction: row;
        gap: 0.8rem;
        flex-wrap: nowrap;
    }

    .hero-with-image .btn-primary,
    .hero-with-image .btn-outline-white {
        width: auto;          /* 👈 NO crecen */
        min-width: unset;     /* 👈 quita el forzado */
        padding: 0.9rem 1.4rem;
        font-size: .9rem;
        white-space: nowrap;  /* 👈 texto en una línea */
    }
}



/* ==========================================================================
   TÍTULOS DE SECCIÓN ESTANDARIZADOS doctor
   ========================================================================== */
.section-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 6rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: black;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    border-radius: 3px;
}

/* ==========================================================================  
   SECCIÓN: ¿QUÉ ES MEDICINA RESOLUTIVA?  
   ========================================================================== */

.what-is-medicine {
    position: relative;
    padding: 8rem 0;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* para que quede sobre el fondo */
}

/* CONTENIDO PRINCIPAL */
.medicine-content {
    display: grid;
    grid-template-columns: 1fr; /* una sola columna */
    justify-content: center;
    align-items: center;
    gap: 4rem;
    text-align: center;
}

/* VIDEO */
.medicine-video {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: center;
    align-items: center;
}

.medicine-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* TEXTO */
.medicine-text {
    text-align: center;
}

.medicine-text h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: black;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .medicine-text h2 {
        font-size: 2.8rem;
    }

    .medicine-video {
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .medicine-text h2 {
        font-size: 2.2rem;
    }

    .what-is-medicine {
        padding: 5rem 1.5rem;
    }
}


/* ==========================================================================
   EVENTO DESTACADO - ESTILO PODCAST
   ========================================================================== */
.featured-event {
    position: relative;
    padding: 10rem 0 5rem 0; /* Reducido padding superior para subir */
    margin: -3rem 0 0 0; /* Margen negativo para subir más */
    overflow: hidden;
}

.featured-event-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.featured-event-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.featured-event-header {
    text-align: center;
    margin-bottom: 3rem; /* Reducido */
}

.featured-event-title {
    font-size: 4rem;
    font-weight: 900;
    color: black;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.featured-event-subtitle {
    font-size: 1.8rem;
    color: black;
    max-width: 600px;
    margin: 0 auto;
}

/* TARJETA ÚNICA ESTÁTICA - CENTRADA */
.featured-event-card {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px; /* Ligeramente reducido */
    border-radius: 18px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.featured-event-image-container {
    position: absolute;
    inset: 0;
}

.featured-event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradiente sobre la imagen como en podcast */
.featured-event-image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.9));
    z-index: 1;
}

/* Etiqueta superior centrada */
.featured-event-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
    padding: 8px 20px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 12px;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Fecha grande */
.featured-event-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    min-width: 100px;
    z-index: 2;
}

.date-day {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.date-month {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin: 5px 0;
}

.date-year {
    font-size: 1.4rem;
    color: #666;
    font-weight: 500;
}

/* INFORMACIÓN DEL EVENTO SOBRE LA IMAGEN - SUBIDO */
.featured-event-info {
    position: absolute;
    bottom: 40px; /* AUMENTADO de 0 a 40px para subir desde abajo */
    left: 0;
    right: 0;
    padding: 2rem; /* Reducido de 2.5rem */
    color: white;
    z-index: 2;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%); /* Gradiente para fondo */
    border-radius: 0 0 18px 18px; /* Redondear esquinas inferiores */
}


.event-title {
    font-size: 3.2rem; /* Reducido ligeramente */
    color: #fff;
    margin-bottom: 0.5rem; /* REDUCIDO de 1.5rem a 0.5rem para subir */
    margin-top: -0.5rem; /* NEGATIVO para subir aún más */
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative; /* Para mejor control */
    top: -100px; /* NEGATIVO para subir el título */
}
.event-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem; /* Reducido */
    margin-bottom: 1.2rem; /* Reducido */
    padding-bottom: 1.2rem; /* Reducido */
    border-bottom: 2px solid rgba(255, 255, 255, 0.3); /* Más visible */
}

.event-type {
    font-size: 1.5rem;
    padding: 6px 18px;
    border-radius: 25px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Borde para destacar */
}

.event-location,
.event-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95); /* Más visible */
}

.event-location i,
.event-time i {
    color: var(--accent-light); /* Color destacado para íconos */
}

.event-description {
    font-size: 1.5rem;
    line-height: 1.5; /* Más compacto */
    color: rgba(255, 255, 255, 0.95); /* Más visible */
    margin-bottom: 1.5rem; /* Reducido */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem; /* Padding lateral */
}

/* ACCIONES DEL EVENTO - SUBIDAS */
.event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5.2rem; /* Reducido */
    border-top: 2px solid rgba(255, 255, 255, 0.3); /* Más visible */
}

.btn-event-register {
    background: var(--primary-color);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 12px;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-event-register:hover {
    background: var(--white);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.event-status {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.4rem;
    font-weight: 600;
}

.status-badge.available {
    background: rgba(46, 125, 50, 0.2);
    color: #81c784;
    border: 1px solid rgba(129, 199, 132, 0.3);
}

.status-badge.limited {
    background: rgba(245, 124, 0, 0.2);
    color: #ffb74d;
    border: 1px solid rgba(255, 183, 77, 0.3);
}

.status-badge i {
    font-size: 1.6rem;
}

.price-tag {
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.price-tag.free {
    color: #81c784;
}

/* =========================================================
   SECCIÓN DIPLOMADO DESTACADO (SIN CARRUSEL)
========================================================= */
.diploma-feature-section {
  position: relative;
  padding: var(--section-padding);
  overflow: hidden;
}
.btn-feature {
  text-decoration: none;
}


/* Tarjeta grande */
.diploma-feature-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 0;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Hover SOLO de la tarjeta */
.diploma-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   LADO IMAGEN
========================================================= */
.diploma-feature-media {
  position: relative;
  min-height: 340px;
  background: #0b1b2b;
}

.diploma-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05);
}

.diploma-feature-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

/* =========================================================
   CONTENIDO
========================================================= */
.diploma-feature-content {
  padding: 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
}

.diploma-feature-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0;
}

.diploma-feature-desc {
  font-size: 1.6rem;
  color: var(--secondary-color);
  line-height: 1.7;
  margin: 0;
}

.diploma-feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.diploma-feature-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--light-color);
  border: 1px solid var(--border-color);
  font-size: 1.35rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* =========================================================
   BOTÓN CTA (SOLO REACCIONA AL TOCARLO)
========================================================= */
.diploma-feature-cta {
  margin-top: 1rem;
}

.btn-feature {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.6rem;
  border-radius: 999px;
  border: 2px solid var(--text);
  background: var(--primary);
  color: var(--text);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Hover SOLO del botón */
.btn-feature:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}

/* =========================================================
   RIBBON CRUZADO "PRÓXIMAMENTE"
========================================================= */
.ribbon-soon {
  position: absolute;
  top: 18px;
  right: -56px;
  width: 230px;
  height: 52px;
  transform: rotate(35deg);
  z-index: 5;
  pointer-events: none;
}

.ribbon-soon span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 173, 0, 0.85);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.65);
  border-radius: 10px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 992px) {
  .diploma-feature-card {
    grid-template-columns: 1fr;
  }

  .diploma-feature-media {
    min-height: 280px;
  }

  .diploma-feature-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 576px) {
  .diploma-feature-content {
    padding: 2rem;
  }

  .diploma-feature-title {
    font-size: 2.1rem;
  }

  .ribbon-soon {
    top: 14px;
    right: -66px;
    width: 210px;
  }
}


/* FOOTER */
.featured-event-footer {
    text-align: center;
    margin-top: 3rem; /* Reducido */
    padding-top: 2rem; /* Reducido */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.featured-event-footer p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
}

.featured-event-footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.featured-event-footer a:hover {
    color: var(--primary-color);
}

/* ==================================================================
   RESPONSIVE – LAPTOP
================================================================== */
@media (max-width: 992px) {

    .featured-event-card {
        height: 550px;
    }

    .featured-event-title {
        font-size: 3.2rem;
    }

    .event-title {
        font-size: 2.8rem;
    }

    .featured-event-footer {
        margin-top: 2rem;
    }
}

/* ==================================================================
   RESPONSIVE – TABLET
================================================================== */
@media (max-width: 768px) {

    .featured-event {
        padding: 8rem 0 4rem;
    }

    .featured-event-title {
        font-size: 2.8rem;
    }

    .featured-event-subtitle {
        font-size: 1.6rem;
        padding: 0 2rem;
    }

    .featured-event-card {
        height: 500px;
    }

    .featured-event-tag {
        font-size: 1.4rem;
        padding: 6px 16px;
    }

    .featured-event-date {
        min-width: 80px;
        padding: 12px;
    }

    .date-day {
        font-size: 2.6rem;
    }

    .date-month {
        font-size: 1.5rem;
    }

    .event-title {
        font-size: 2.4rem;
    }

    .event-details {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .event-type,
    .event-location,
    .event-time {
        font-size: 1.4rem;
    }

    .event-description {
        font-size: 1.4rem;
    }

    .event-actions {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .btn-event-register {
        width: 100%;
        justify-content: center;
    }

    .event-status {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==================================================================
   RESPONSIVE – MÓVIL
================================================================== */
@media (max-width: 576px) {

    .featured-event {
        padding: 6rem 0 3rem;
    }

    .featured-event-title {
        font-size: 2.4rem;
        padding: 0 1rem;
    }

    .featured-event-subtitle {
        font-size: 1.4rem;
        padding: 0 1rem;
    }

    .featured-event-card {
        height: 450px;
    }

    .featured-event-tag {
        font-size: 1.2rem;
        padding: 5px 12px;
    }

    .featured-event-date {
        top: 15px;
        right: 15px;
        min-width: 70px;
        padding: 10px;
    }

    .date-day {
        font-size: 2.2rem;
    }

    .date-month {
        font-size: 1.3rem;
    }

    .featured-event-info {
        padding: 1.5rem;
    }

    .event-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .event-details {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .event-type,
    .event-location,
    .event-time {
        font-size: 1.2rem;
    }

    .event-description {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .btn-event-register {
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }

    .price-tag {
        font-size: 2.2rem;
    }
}

/* ==================================================================
   RESPONSIVE – MÓVIL PEQUEÑO
================================================================== */
@media (max-width: 400px) {

    .featured-event-title {
        font-size: 2rem;
    }

    .featured-event-card {
        height: 400px;
    }

    .event-title {
        font-size: 1.8rem;
    }

    .btn-event-register {
        font-size: 1.3rem;
    }
}
/* ==========================================================================
   SECCIÓN: LA MESA RESOLUTIVA - Estilo adaptado
   ========================================================================== */
.mesa-resolutiva {
    position: relative;
    padding: 6rem 0;
}

.mesa-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    text-align: justify;

}

/* Título del podcast */
.podcast-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: black;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* Badge de descargas */
.downloads-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

/* Descripción del podcast */
.podcast-description {
    margin-bottom: 3rem;
}

.podcast-description p {
    font-size: 1.6rem;
    color: var(--primary-color);
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.podcast-description em {
    font-style: italic;
    color: var(--primary-color);
}

.host-info {
    font-size: 1.6rem;
    color: var(--primary-color);
    line-height: 1.6;
    font-style: italic;
    margin-top: 2rem;
    padding-left: 2rem;
    border-left: 3px solid var(--primary-color);
}

.host-info strong {
    font-weight: 700;
    color: var(--primary-color);
}

/* ==========================================================================
   BOTÓN PODCAST – MISMO ESTILO
   ========================================================================== */
.mesa-cta {
    margin-top: 2.5rem;
}

.btn-explorar-podcast {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background: white;
    color: #000;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    border: 2px solid #000;
    border-radius: 999px;
    transition: all 0.3s ease;
}

/* Hover / Touch */
.btn-explorar-podcast:hover,
.btn-explorar-podcast:active {
    background: #9ecae3;
    box-shadow:
        0 0 0 2px #000,
}



/* 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;
}

/* Responsive */
@media (max-width: 1024px) {
    .mesa-content {
        gap: 3.5rem;
    }
    
    .podcast-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mesa-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .podcast-title {
        font-size: 2.8rem;
        text-align: center;
    }
    
    .downloads-badge {
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }
    
    .mesa-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto 2rem;
    }
    
    .host-info {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .mesa-resolutiva {
        padding: 4rem 0;
    }
    
    .podcast-title {
        font-size: 2.5rem;
    }
    
    .podcast-description p,
    .host-info {
        font-size: 1.5rem;
    }
    
    .downloads-badge {
        font-size: 1.2rem;
        padding: 0.5rem 1.2rem;
    }
    
    .view-all-link {
        padding: 1.1rem 2.2rem;
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.newsletter-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: black;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.newsletter-content > p {
    font-size: 1.8rem;
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 4rem;
    line-height: 1.6;
    font-weight: 400;
}

.newsletter-form {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: white;
    padding: 0.8rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.newsletter-form:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.newsletter-form input {
    flex: 1;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    background: var(--light-color);
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgb(185, 185, 185);
    font-weight: 500;
}

.newsletter-form input:focus {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.1);
}

.newsletter-form button {
    padding: 1.5rem 3rem;
    background: var(--primary-color);
    color: white; /* Texto blanco inicial */
    border: 2px solid transparent; /* Borde transparente inicial */
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.3);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.newsletter-form button:hover {
    background: var(--light-color); /* Fondo claro al hover */
    color: black; /* Texto negro al hover */
    border-color: black; /* Borde negro al hover */
    transform: translateY(-2px);
}

.newsletter-note {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   SECCIÓN SOBRE EL DR. OROZCO
   ========================================================================== */

.about-doctor {
    position: relative;
    padding: 80px 20px;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow: hidden;
}

/* Fondo de sección */
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.section-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
}

.about-doctor .container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.doctor-profile {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* ===============================
   IMAGEN
================================ */
.doctor-image {
    flex: 0 0 450px;
}

.doctor-image img {
    width: 100%;
    max-width: 520px; /* Desktop controlado */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.doctor-image img:hover {
    transform: scale(1.02);
}

/* ===============================
   TEXTO
================================ */
.doctor-content {
    flex: 1;
}

.doctor-content p {
    margin-bottom: 24px;
    font-size: 17px;
    color: #444;
    line-height: 1.7;
    text-align: justify;

}

.doctor-content strong {
    color: #2c3e50;
    font-weight: 700;
}

/* ===============================
   PANTALLAS XL
================================ */
@media (min-width: 1400px) {
    .doctor-image {
        flex: 0 0 500px;
    }

    .doctor-image img {
        max-width: 580px;
    }
}

/* ===============================
   TABLET
================================ */
@media (max-width: 992px) {
    .doctor-profile {
        gap: 40px;
    }

    .doctor-image {
        flex: 0 0 380px;
    }

    .doctor-image img {
        max-width: 420px;
    }

    .doctor-content p {
        font-size: 16px;
    }
}

/* ===============================
   MÓVIL
================================ */
@media (max-width: 768px) {
    .about-doctor {
        padding: 60px 20px;
    }

    .doctor-profile {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 40px;
    }

    .doctor-image {
        flex: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .doctor-image img {
        max-width: 380px;
    }

    .doctor-content p {
        font-size: 16px;
    }
}

/* ===============================
   MÓVIL PEQUEÑO (CONTROL FINO)
================================ */
@media (max-width: 480px) {
    .about-doctor {
        padding: 50px 15px;
    }

    .doctor-image img {
        max-width: 300px; /* 👈 ajuste fino */
    }

    .doctor-content p {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* ==========================================================================
   PERLAS DE RESOLUCIÓN
   ========================================================================== */

.perlas-map-section {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

/* Fondo */
.section-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* Contenedor principal */
.perlas-map-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: auto;
    padding: 0 2rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

/* TEXTO */
.perlas-map-header {
    text-align: center;
    max-width: 900px;
}

.perlas-map-header h2 {
    font-size: 3.5rem;
    color: black;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.perlas-map-header p {
    font-size: 1.6rem;
    color: var(--secondary-color);
    line-height: 1.6;
    font-weight: 500;
}

/* IMAGEN */
.perlas-image-container {
    position: relative;
    width: 100%;
}

/* Imagen principal */
.perlas-main-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    padding: 30px;
    position: relative;
    z-index: 1;
}

/* Overlay imagen */
.image-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Hotspots */
.circle-hotspots {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.hotspot-point {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    cursor: pointer;
    z-index: 4;

    animation: pearlGlow 2.8s ease-in-out infinite;
}

/* Indicador */
.point-indicator {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: #fff;
    color: #000;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
}

.hotspot-point:hover .point-indicator {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}


/* ===============================
   POSICIONES DESKTOP
================================ */
.hotspot-point.pos1 { top: 25%; left: 67.5%; width: 175px; height: 175px; }
.hotspot-point.pos2 { top: 52%; left: 68.2%; width: 175px; height: 175px; }
.hotspot-point.pos3 { top: 73%; left: 49.5%; width: 210px; height: 210px; }
.hotspot-point.pos4 { top: 52%; left: 31%; width: 175px; height: 175px; }
.hotspot-point.pos5 { top: 25%; left: 32%; width: 175px; height: 175px; }

/* ===============================
   ANIMACIONES
================================ */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brillo de perlas */
@keyframes pearlGlow {
    0% {
        box-shadow:
            0 0 15px rgba(11, 92, 255, 0.4),
            0 0 30px rgba(11, 92, 255, 0.25);
    }
    50% {
        box-shadow:
            0 0 30px rgba(11, 92, 255, 0.9),
            0 0 60px rgba(11, 92, 255, 0.6);
    }
    100% {
        box-shadow:
            0 0 15px rgba(11, 92, 255, 0.4),
            0 0 30px rgba(11, 92, 255, 0.25);
    }
}

/* ==================================================================
   RESPONSIVE – TABLET / MOBILE
================================================================== */
@media (max-width: 768px) {

    .perlas-map-section {
        padding: 3rem 0;
    }

    .perlas-map-container {
        padding: 0 1.2rem;
        gap: 2rem;
    }

    .perlas-map-header h2 {
        font-size: 2.4rem;
        line-height: 1.2;
    }

    .perlas-map-header p {
        font-size: 1.3rem;
    }

    .perlas-main-image {
        padding: 15px;
    }

    /* PERLA 1 */
    .hotspot-point.pos1 {
        width: 70px;
        height: 70px;
        top: 22%;
        left: 67%;
    }

    /* PERLA 2 */
    .hotspot-point.pos2 {
        width: 68px;
        height: 68px;
        top: 44%;
        left: 68%;
    }

    /* PERLA 3 (central) */
    .hotspot-point.pos3 {
        width: 80px;
        height: 80px;
        top: 61%;
        left: 49.5%;
    }

    /* PERLA 4 */
    .hotspot-point.pos4 {
        width: 68px;
        height: 68px;
        top: 44%;
        left: 31.5%;
    }

    /* PERLA 5 */
    .hotspot-point.pos5 {
        width: 68px;
        height: 68px;
        top: 22%;
        left: 32%;
    }

    .point-indicator {
        font-size: 0.75rem;
        padding: 8px 10px;
        max-width: 180px;
        white-space: normal;
    }
}

/* ==================================================================
   RESPONSIVE – TELÉFONOS MUY PEQUEÑOS
================================================================== */
@media (max-width: 480px) {

    /* PERLA 1 */
    .hotspot-point.pos1 {
        width: 54px;
        height: 54px;
        top: 24.5%;
        left: 66.9%;
    }

    /* PERLA 2 */
    .hotspot-point.pos2 {
        width: 53px;
        height: 53px;
        top: 48.5%;
        left: 67.7%;
    }

    /* PERLA 3 (más grande, núcleo) */
    .hotspot-point.pos3 {
        width: 65px;
        height: 60.1px;
        top: 67.5%;
        left: 49.3%;
    }

    /* PERLA 4 */
    .hotspot-point.pos4 {
        width: 52px;
        height: 52px;
        top: 48.5%;
        left: 31.5%;
    }

    /* PERLA 5 */
    .hotspot-point.pos5 {
        width: 53px;
        height: 53px;
        top: 24.5%;
        left: 32.1%;
    }

    .point-indicator {
        font-size: 0.7rem;
    }
}
/* =========================================================
   "DAR CLIC" CENTRADO DENTRO DE CADA PERLA (FIX)
========================================================= */
.hotspot-point{
  position: absolute;                 /* ya lo tienes, lo reafirmo */
  transform: translate(-50%, -50%);
  border-radius: 50%;
  cursor: pointer;
  z-index: 4;

  /* IMPORTANTE para centrar el texto */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* El texto debe estar POR ENCIMA del brillo */
.tap-hint{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;

  z-index: 20;                        /* <<< CLAVE */
  pointer-events: none;
  user-select: none;

  background: rgba(255,255,255,0.92);
  color: #000;
  border: 1px solid rgba(0,0,0,0.2);
  padding: 8px 14px;
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;

  transition: opacity .2s ease, transform .2s ease;
}
/* Mostrar "DAR CLIC" también al pasar el mouse */
.hotspot-point:hover .tap-hint{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


/* cuando se toca */
.hotspot-point.show-hint .tap-hint{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}



/* ==========================================================================
   VENTANAS FLOTANTES DE PERLAS - CON COMENTARIOS EXPLICATIVOS
   ========================================================================== */

/* 
   OVERLAY PARA FONDO OSCURO
*/
.perlas-window-overlay {
    position: fixed;           /* Fijo en la pantalla, no se mueve al hacer scroll */
    top: 0;                    /* Posicionado desde la parte superior */
    left: 0;                   /* Posicionado desde la izquierda */
    width: 100%;               /* Ocupa todo el ancho de la pantalla */
    height: 100%;              /* Ocupa toda la altura de la pantalla */
    background: rgba(0, 0, 0, 0.7); /* Fondo negro con 70% de opacidad */
    backdrop-filter: blur(5px); /* Desenfoque del contenido detrás */
    z-index: 9998;             /* Se coloca detrás de la ventana pero sobre otros elementos */
    opacity: 0;                /* Inicialmente invisible */
    visibility: hidden;        /* Inicialmente oculto (no ocupa espacio) */
    transition: all 0.3s ease; /* Transición suave para mostrar/ocultar */
}

/* 
   ESTADO ACTIVO DEL OVERLAY
*/
.perlas-window-overlay.active {
    opacity: 1;      /* Opacidad completa */
    visibility: visible; /* Se hace visible */
}

/* 
   VENTANA FLOTANTE PRINCIPAL
*/
.perlas-floating-window {
    position: fixed;           /* Fijo en la pantalla */
    top: 50%;                  /* Centrado verticalmente */
    left: 50%;                 /* Centrado horizontalmente */
    transform: translate(-50%, -50%) scale(0.9); /* Centrado exacto y escala inicial */
    width: 100%;                /* Ocupa 90% del ancho de pantalla */
    max-width: 700px;          /* Ancho máximo para pantallas grandes */
    background: linear-gradient(135deg, #ffffff, #f8f9fa); /* Degradado de fondo */
    border-radius: 20px;       /* Esquinas redondeadas */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15); /* Sombra pronunciada para efecto elevado */
    z-index: 9999;             /* Encima de todo, incluyendo el overlay */
    opacity: 0;                /* Inicialmente invisible */
    visibility: hidden;        /* Inicialmente oculta */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animación de entrada con curva personalizada */
    overflow: hidden;          /* Oculta contenido que sobresale */
    max-height: 85vh;         /* Altura máxima: 85% del viewport */
    border: #8bc3de ; /* Borde sutil */
}

/* 
   ESTADO ACTIVO DE LA VENTANA
*/
.perlas-floating-window.active {
    opacity: 1;                /* Opacidad completa */
    visibility: visible;       /* Visible para el usuario */
    transform: translate(-50%, -50%) scale(1); /* Escala normal */
}

/* 
   CABECERA DE LA VENTANA
*/
.perlas-window-header {
    background: linear-gradient(135deg, #ffffff, #f8f9fa); /* Mismo degradado que la ventana */
    color: var(--accent-color); /* Color del texto según variable CSS */
    padding: 25px 30px;        /* Espaciado interno */
    position: relative;        /* Posicionamiento relativo para elementos hijos absolutos */
    border-bottom: #8bc3de ; /* Línea divisoria inferior */
    display: flex;             /* Usa flexbox para alinear elementos */
    justify-content: space-between; /* Espacia elementos horizontalmente */
    align-items: center;       /* Centra elementos verticalmente */
}

/* 
   TÍTULO DE LA PERLA
*/
.perlas-window-title {
    font-size: 1.8rem;        /* Tamaño de fuente grande para jerarquía */
    font-weight: 700;         /* Negrita para destacar */
    margin-bottom: 8px;       /* Espacio debajo del título */
    color: black;
}

/* 
   SUBTÍTULO DE LA PERLA
*/
.perlas-window-subtitle {
    font-size: 0.95rem;       /* Tamaño más pequeño que el título */
    color: black; /* Color más suave para menor énfasis */
    font-weight: 500;         /* Peso medio (no tan fuerte como el título) */
}
/* 
   BOTÓN DE CERRAR (X)
*/
.perlas-close-btn {
    background: none;         /* Sin fondo por defecto */
    border: none;             /* Sin bordes */
    color: black; /* Color que coincide con el tema */
    font-size: 24px;          /* Tamaño adecuado para hacer clic */
    cursor: pointer;          /* Cambia cursor a mano al pasar */
    width: 40px;              /* Ancho fijo */
    height: 40px;             /* Alto igual al ancho para cuadrado */
    border-radius: 50%;       /* Forma circular */
    display: flex;            /* Flexbox para centrar el icono X */
    align-items: center;      /* Centrado vertical */
    justify-content: center;  /* Centrado horizontal */
    transition: all 0.3s;     /* Transición suave para efectos hover */
    position: absolute;       /* Posicionamiento absoluto dentro del header */
    top: 1px;                /* 20px desde la parte superior del header */
    right: 1px;              /* 20px desde la derecha del header */
}

/* 
   ESTADO HOVER DEL BOTÓN CERRAR
*/
.perlas-close-btn:hover {
    background: rgba(0, 86, 179, 0.1); /* Fondo azul suave al pasar */
    transform: rotate(90deg);           /* Gira el icono 90 grados */
}

/* 
   CONTENIDO PRINCIPAL DE LA VENTANA
*/
.perlas-window-content {
    padding: 30px;            /* Espaciado interno generoso */
    max-height: 60vh;         /* Altura máxima: 60% del viewport */
    overflow-y: auto;         /* Scroll vertical si el contenido es muy largo */
}

/* 
   DESCRIPCIÓN PRINCIPAL DE LA PERLA
*/
.perlas-point-description {
    font-size: 1.1rem;        /* Tamaño de fuente legible */
    line-height: 1.7;         /* Espaciado entre líneas para mejor lectura */
    color: black; /* Color de texto secundario */
    margin-bottom: 25px;      /* Espacio debajo antes de las características */
}



/* 
   ITEM INDIVIDUAL DE CARACTERÍSTICA
*/
.perlas-feature-item {
    display: flex;            /* Flexbox para alinear icono y texto */
    align-items: flex-start;  /* Alinea elementos al inicio verticalmente */
    gap: 15px;                /* Espacio entre icono y contenido */
    margin-bottom: 15px;      /* Espacio entre items */
    padding: 15px;            /* Espaciado interno */
    background: rgba(248, 249, 250, 0.8); /* Fondo gris muy claro semitransparente */
    border-radius: 12px;      /* Esquinas redondeadas */
    transition: transform 0.3s; /* Transición suave para efecto hover */
    border: 1px solid var(--border-color); /* Borde sutil */
}

/* 
   ESTADO HOVER DEL ITEM DE CARACTERÍSTICA
*/
.perlas-feature-item:hover {
    transform: translateX(5px); /* Se mueve ligeramente a la derecha */
    background: rgba(0, 86, 179, 0.1); /* Fondo azul suave */
    border-color: black; /* Borde azul más visible */
}

/* 
   ICONO DE CARACTERÍSTICA
*/
.perlas-feature-icon {
    width: 40px;              /* Ancho fijo */
    height: 40px;             /* Alto igual al ancho para círculo */
    background: rgba(0, 86, 179, 0.1); /* Fondo azul semitransparente */
    color: black; /* Color del icono */
    border-radius: 50%;       /* Forma circular */
    display: flex;            /* Flexbox para centrar el icono */
    align-items: center;      /* Centrado vertical */
    justify-content: center;  /* Centrado horizontal */
    flex-shrink: 0;           /* Evita que se reduzca */
    border: 1px solid rgba(0, 86, 179, 0.3); /* Borde azul sutil */
}

/* 
   TÍTULO DE CARACTERÍSTICA
*/
.perlas-feature-content h4 {
    color: black; /* Mismo color que el tema */
    margin-bottom: 5px;       /* Pequeño espacio debajo del título */
    font-weight: 600;         /* Negrita moderada */
}

/* 
   DESCRIPCIÓN DE CARACTERÍSTICA
*/
.perlas-feature-content p {
    color: black; /* Color de texto suave */
    font-size: 0.95rem;       /* Tamaño ligeramente menor que el texto principal */
    line-height: 1.5;         /* Espaciado entre líneas adecuado */
}

/* 
   PIE DE PÁGINA DE LA VENTANA
*/
.perlas-window-footer {
    padding: 20px 30px;       /* Espaciado interno */
    background: rgba(248, 249, 250, 0.9); /* Fondo gris muy claro casi opaco */
    border-top: 1px solid var(--border-color); /* Línea divisoria superior */
    display: flex;            /* Flexbox para alinear elementos */
    justify-content: space-between; /* Espacia elementos a los extremos */
    align-items: center;      /* Centra verticalmente */
}

/* 
   CONTENEDOR DE BOTONES DE NAVEGACIÓN
*/
.perlas-window-nav {
    display: flex;            /* Flexbox para botones en línea */
    gap: 10px;                /* Espacio entre botones */
}

/* 
   BOTÓN DE NAVEGACIÓN GENÉRICO
*/
.perlas-nav-btn {
    padding: 12px 25px;       /* Espaciado interno cómodo para hacer clic */
    border: 1px solid var(--border-color); /* Borde sutil */
    border-radius: 12px;      /* Esquinas redondeadas */
    background: rgba(255, 255, 255, 0.8); /* Fondo blanco semitransparente */
    color: black; /* Color del texto */
    cursor: pointer;          /* Cursor de mano al pasar */
    font-weight: 600;         /* Negrita para visibilidad */
    font-size: 0.95rem;       /* Tamaño de texto legible */
    transition: all 0.3s;     /* Transición suave para efectos hover */
    display: flex;            /* Flexbox para alinear icono y texto */
    align-items: center;      /* Centrado vertical del contenido */
    gap: 8px;                 /* Espacio entre icono y texto */
}

/* 
   ESTADO HOVER DEL BOTÓN DE NAVEGACIÓN
*/
.perlas-nav-btn:hover {
    background: rgba(0, 86, 179, 0.1); /* Fondo azul suave */
    transform: translateY(-2px);        /* Elevación sutil */
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.1); /* Sombra para efecto de elevación */
    border-color: var(--accent-color);  /* Borde más visible */
}

/* 
   BOTÓN "ANTERIOR" ESPECÍFICO
*/
.perlas-nav-btn.prev {
    background: rgba(0, 86, 179, 0.1); /* Fondo azul por defecto */
    color: black;        /* Mismo color de texto */
}

/* 
   ESTADO HOVER DEL BOTÓN "ANTERIOR"
*/
.perlas-nav-btn.prev:hover {
    background: rgba(0, 86, 179, 0.2); /* Fondo azul más intenso */
    border-color: var(--accent-color); /* Borde destacado */
}

/* 
   INDICADOR DE PROGRESO
*/
.perlas-window-progress {
    font-size: 0.9rem;        /* Tamaño pequeño */
    color: black; /* Color suave para menor énfasis */
    font-weight: 600;         /* Negrita para visibilidad */
}
/* ==========================================================================
   POPUP NEWSLETTER - IMAGEN FULL + TEXTO NEGRO
   ========================================================================== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

/* ==========================================================================
   CONTENEDOR
   ========================================================================== */
.popup-container {
    background: #ffffff;
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* BOTÓN CERRAR */
.popup-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: #ffffff;
    border: 2px solid #000;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #000;
}

.popup-close:hover {
    background: #9ecae3;
    transform: rotate(90deg);
}

/* ==========================================================================
   GRID
   ========================================================================== */
.popup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

/* ==========================================================================
   IMAGEN – FULL SIDE
   ========================================================================== */
.popup-doctor {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.popup-doctor img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================================
   TEXTO (TODO NEGRO)
   ========================================================================== */
.popup-text {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(-1rem); /* ⬆️ */
    color: #000;
}
.popup-option-text {
    position: relative;
    top: -2.5px; /* ⬆️ ajusta: -1px, -3px, etc */
}
.popup-text h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #000;
}

.popup-text > p {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* ==========================================================================
   FORMULARIO
   ========================================================================== */
.popup-form {
    margin-bottom: 2rem;
}

.popup-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.popup-form input {
    width: 100%;
    padding: 1.4rem 1.4rem 1.4rem 4rem;
    border-radius: 12px;
    border: 2px solid #000;
    font-size: 1.4rem;
    color: #000;
}

.popup-form input::placeholder {
    color: #555;
}

.input-icon {
    position: absolute;
    left: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #000;
}

/* ==========================================================================
   BOTÓN – ESTILO SOLICITADO
   ========================================================================== */
.popup-submit-btn {
    width: 100%;
    padding: 1.4rem;
    border-radius: 12px;
    background: #9ecae3;
    color: #000;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* HOVER / TOUCH */
.popup-submit-btn:hover,
.popup-submit-btn:active {
    background: #ffffff;
    box-shadow: 
        0 0 0 2px #000,
        0 0 15px rgba(158, 202, 227, 0.9);
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE – IMAGEN ARRIBA EN MÓVIL
   ========================================================================== */
@media (max-width: 768px) {
    .popup-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .popup-doctor {
        grid-row: 1;
        min-height: 300px;
    }

    .popup-text {
        grid-row: 2;
        padding: 2rem;
        text-align: center;
    }

    .popup-text h3 {
        font-size: 1.8rem;
    }

    .popup-text > p {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .popup-container {
        border-radius: 16px;
    }

    .popup-doctor {
        min-height: 260px;
    }

    .popup-text {
        padding: 1.5rem;
    }

    .popup-text h3 {
        font-size: 1.6rem;
    }

    .popup-text > p {
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .popup-doctor {
        min-height: 220px;
    }

    .popup-text h3 {
        font-size: 1.4rem;
    }
}


/* ==========================================================================
   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;
}



.footer-section h4 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--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: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid white;
    padding-top: 3rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 1.4rem;
    color: white;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .floating-navbar {
        padding: 12px 25px;
        width: 92%;
    }
    
    .nav-menu {
        gap: 18px;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
    }
    
    .medicine-content,
    .mesa-content,
    .doctor-profile {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .episode-card,
    .webinar-card {
        flex: 0 0 calc(50% - 1.25rem);
        min-height: 500px;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .hotspot-point {
        width: 45px;
        height: 45px;
    }
    
    .perlas-image-container {
        height: 500px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .floating-navbar {
        padding: 10px 20px;
        width: 90%;
        border-radius: 15px;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.98) 0%,
            rgba(248, 249, 250, 0.98) 100%);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        padding: 100px 30px 40px;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 999;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 12px 0;
        text-align: left;
        width: 100%;
        display: block;
    }
    
    .nav-actions {
        display: none;
    }
    
    .professional-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none;
    }
    
    .mobile-dropdown.active .professional-dropdown {
        display: block;
    }
    
    body {
        padding-top: 70px;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .platform-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .spotify-badge,
    .youtube-badge {
        width: 100%;
        justify-content: center;
    }
    
    .episode-card,
    .webinar-card {
        flex: 0 0 calc(100% - 1rem);
        min-height: 480px;
    }
    
    .episode-title,
    .webinar-title {
        font-size: 1.7rem !important;
    }
    
    .carousel-nav {
        width: 55px;
        height: 55px;
    }
    
    .carousel-nav.prev {
        margin-right: 1.5rem;
    }
    
    .carousel-nav.next {
        margin-left: 1.5rem;
    }
    
    .view-all-link {
        font-size: 1.5rem;
        padding: 1.2rem 2.5rem;
    }
    
    .doctor-profile {
        padding: 2rem;
    }
    
    .doctor-role {
        font-size: 1.8rem;
    }
    
    .doctor-description p {
        font-size: 1.4rem;
    }
    
    .perlas-map-header h2 {
        font-size: 2.8rem;
    }
    
    .perlas-map-header p {
        font-size: 1.4rem;
    }
    
    .hotspot-point {
        width: 35px;
        height: 35px;
    }
    
    .point-indicator {
        font-size: 0.85rem;
        min-width: 140px;
        padding: 8px 12px;
    }
    
    .perlas-image-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .floating-navbar {
        padding: 8px 15px;
        width: 92%;
        border-radius: 12px;
        top: 15px;
    }
    
    .nav-logo span {
        font-size: 0.9rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .nav-menu {
        width: 90%;
        padding: 80px 20px 30px;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        padding: 10px 0;
    }
    
    body {
        padding-top: 65px;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    
    
    .medicine-text h2,
    .mesa-text h2 {
        font-size: 2.4rem;
    }
    
    .doctor-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .doctor-badge {
        width: fit-content;
    }
    
    .doctor-role {
        font-size: 1.7rem;
    }
    
    .doctor-description p {
        font-size: 1.4rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .perlas-map-header h2 {
        font-size: 2.2rem;
    }
    
    .hotspot-point {
        width: 30px;
        height: 30px;
    }
    
    .point-indicator {
        font-size: 0.8rem;
        min-width: 120px;
        padding: 6px 10px;
    }
    
    .perlas-image-container {
        height: 300px;
    }
    
    .popup-text {
        padding: 1.5rem;
    }
    
    .popup-image {
        padding: 1.5rem;
    }
    
    .popup-icon {
        font-size: 3rem;
    }
    
    .popup-text h3 {
        font-size: 1.8rem;
    }
    
    .popup-form input {
        padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    }
    
    .popup-submit-btn {
        padding: 1rem 1.2rem;
        font-size: 1.3rem;
    }
}

/* 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;
  }
}
/* =========================================================
   FIX DEFINITIVO: BLOQUEAR EPISODIOS RECIENTES (HOME)
   PÉGALO AL FINAL DEL CSS
========================================================= */

.recent-episodes .episode-card {
  flex: 0 0 calc((100% - 3rem) / 3) !important;
  height: 550px !important;
  min-height: unset !important;
}

@media (max-width: 1280px) {
  .recent-episodes .episode-card {
    flex: 0 0 calc((100% - 1.5rem) / 2) !important;
    height: 460px !important;
    min-height: unset !important;
  }
}

@media (max-width: 1024px) {
  .recent-episodes .episode-card {
    flex: 0 0 calc((100% - 1.5rem) / 2) !important;
    height: 420px !important;
    min-height: unset !important;
  }
}

@media (max-width: 768px) {
  .recent-episodes .carousel-nav { display: none !important; }

  .recent-episodes .episode-card {
    flex: 0 0 85% !important;
    height: 380px !important;
    min-height: unset !important;
  }

  .recent-episodes .episode-title {
    font-size: 1.2rem !important; /* evita que te lo suba el global */
  }
}

@media (max-width: 480px) {
  .recent-episodes .episode-card {
    flex: 0 0 100% !important;
    height: 340px !important;
    border-radius: 14px !important;
    min-height: unset !important;
  }
}
