/* ==========================================================================
   MAIN CSS: cirujanodeparpados.com — Dra. Elizabeth Hernández
   Arquitectura Silo Semántico — v3.0 (Premium "Docshield" Aesthetic)
   WPO: Cero dependencias externas. CSS Vanilla puro. Dark mode nativo.
   ========================================================================== */

/* --- 1. DESIGN TOKENS (Variables Globales) --- */
:root {
  /* Tipografía de sistema refinada (Inter/SF Pro style) */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Paleta Cromática — Atmosférica y Suave */
  --bg-primary:    #ffffff;
  --bg-secondary:  #f8fafc; /* Gris azulado levísimo */
  --bg-tertiary:   #f1f5f9;

  /* Colores del Hero Unificado Venus */
  --color-midnight-deep: #020712;
  --color-midnight-glow: #0a1e3f;
  --color-sky-glow: #38bdf8;
  --color-text-white: #ffffff;

  /* Hero gradient — Radial y muy expansivo */
  --hero-gradient: radial-gradient(circle at 50% 10%, #e0f2fe 0%, #ffffff 70%);

  /* Textos — Alto contraste, no negros puros */
  --text-primary:   #020617;   /* Slate 950 — Muy oscuro pero elegante */
  --text-secondary: #475569;   /* Slate 600 */
  --text-muted:     #94a3b8;   /* Slate 400 */

  /* Bordes ultra sutiles */
  --border-color: #f1f5f9;     
  --border-hover: #e2e8f0;     

  /* Acentos Clínicos Profundos */
  --primary:       #0f172a;    /* Navy muy oscuro para botones principales */
  --primary-hover: #1e293b;    
  --primary-light: #f8fafc;    

  /* Acento de confianza secundario (Gris azulado frío) */
  --accent:        #64748b;    
  --accent-hover:  #475569;
  --accent-light:  #f1f5f9;    

  /* ─── ESPACIADO "AIRY" EXTREMO ───────────────────────────────────────── */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  3rem;
  --space-xl:  6rem;    /* Espaciado masivo entre componentes internos */
  --space-xxl: 9rem;    /* 144px — Espaciado corporativo entre secciones */

  /* ─── SISTEMA DE BORDER-RADIUS "BURBUJA" (Curvas suaves) ─────────────── */
  --container-width: 1160px;
  --radius-sm:   12px;     /* Elementos internos pequeños */
  --radius-md:   16px;     /* Inputs, tooltips */
  --radius-card: 32px;     /* Tarjetas normales y modulares */
  --radius-section: 40px;  /* Secciones masivas (ej: bloque gris EEAT) */
  --radius-btn:  9999px;   /* Píldoras perfectas */

  /* ─── SOMBRAS DIFUSAS (Glassmorphism & Elevación Premium) ────────────── */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  --shadow-sm:  0 2px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-md:  0 12px 32px -4px rgba(15, 23, 42, 0.04);
  /* Sombra premium: inmensamente difusa y muy transparente */
  --shadow-premium: 0 24px 64px -12px rgba(15, 23, 42, 0.04), 0 8px 24px -4px rgba(15, 23, 42, 0.02);
  --shadow-nav: 0 8px 32px rgba(15, 23, 42, 0.03);
}

/* --- 2. RESET GLOBAL --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- 3. ESTRUCTURA Y CONTENEDORES --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* Padding extremo nativo en sections */
section {
  padding-top: calc(var(--space-xl) * 0.8);
  padding-bottom: calc(var(--space-xl) * 0.8);
}

@media (min-width: 768px) {
  section {
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxl);
  }
}

/* --- 4. TIPOGRAFÍA PREMIUM --- */
h1, h2, h3, h4 {
  font-weight: 500; /* No muy pesados, elegancia editorial */
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.04em; /* Tight tracking fundamental */
}

h1 { font-size: 3rem; margin-bottom: var(--space-sm); font-weight: 600; letter-spacing: -0.05em; }
h2 { font-size: 2.5rem; margin-bottom: var(--space-sm); font-weight: 500; }
h3 { font-size: 1.5rem; margin-bottom: var(--space-xs); font-weight: 500; }
h4 { font-size: 1.1rem; margin-bottom: var(--space-xs); font-weight: 500; }

@media (min-width: 768px) {
  h1 { font-size: 4.5rem; line-height: 1.05; }
  h2 { font-size: 3.2rem; }
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  max-width: 60ch; /* Líneas cortas y legibles */
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Números Gigantes Finos (Stat blocks) */
.stat-number {
  font-size: 5rem;
  font-weight: 200;
  letter-spacing: -0.06em;
  color: var(--text-primary);
  line-height: 1;
}

@media (min-width: 768px) {
  .stat-number { font-size: 7.5rem; }
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

/* --- 5. NAVEGACIÓN — Navbar Píldora Glassmorphism + Mega Menú --- */
header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 300;
  pointer-events: none;
}

.nav-container {
  pointer-events: all;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  /* Píldora CONTENIDA — air maximum on sides */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6px 0 20px;
  background-color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.05), 0 1px 4px rgba(15,23,42,0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.logo {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 2px;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-menu { display: flex; }
}

@media (max-width: 767px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 66px; /* 56px height + 10px gap */
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.12);
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    z-index: 299;
  }
  
  .nav-menu.nav-menu--open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu .nav-link, .nav-menu .nav-link-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: 0.95rem;
    box-sizing: border-box;
  }

  /* Dropdown nested menu inside mobile view */
  .nav-item-mega.is-open .mega-panel {
    display: block;
    position: static !important;
    transform: none !important;
    width: 100% !important;
    box-shadow: none !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    background: rgba(0,0,0,0.02) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    margin-top: 8px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
  }

  .mega-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 6px 10px;
  border-radius: var(--radius-btn);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: rgba(0,0,0,0.035);
}

/* ──────────────────────────────────────────────
   MEGA MENÚ — Panel ancho flotante bajo la náv
────────────────────────────────────────────── */
.nav-item-mega {
  position: static; /* necesario para que el panel se posicione relativo al header */
}

/* Botón de trigger — RESET TOTAL: debe verse igual que un nav-link normal */
.nav-link-trigger {
  /* Reset de estilos nativos del <button> */
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  font: inherit;          /* hereda font-family, size, weight del nav */
  color: var(--text-secondary);
  cursor: pointer;
  margin: 0;
  /* Estilos visuales idénticos al .nav-link */
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--radius-btn);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-link-trigger:hover {
  color: var(--text-primary);
  background-color: rgba(0,0,0,0.035);
}
.nav-link-trigger::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}
.nav-item-mega.is-open .nav-link-trigger {
  color: var(--text-primary);
}
.nav-item-mega.is-open .nav-link-trigger::after {
  transform: rotate(-135deg) translateY(2px);
  opacity: 0.7;
}

/* Panel del mega menú — dropdown limpio (estilo Docshield exacto) */
.mega-panel {
  position: fixed;
  top: 102px; /* header top 20px + pill 72px + gap 10px */
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  /* ANCHO SUFICIENTE para 2 columnas de contenido limpio */
  width: min(520px, calc(100vw - 48px));
  /* Translucent glassmorphic background */
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px; /* corporate rounded border-radius */
  box-shadow:
    0 30px 60px -12px rgba(15, 23, 42, 0.08),
    0 18px 36px -18px rgba(15, 23, 42, 0.03);
  padding: 1.5rem 1.75rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s cubic-bezier(0.16,1,0.3,1),
    transform 0.25s cubic-bezier(0.16,1,0.3,1),
    visibility 0.25s;
  z-index: 299;
  pointer-events: none;
}

.nav-item-mega.is-open .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

/* Grid interno: 2 columnas limpias con divisor sutil */
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.mega-col {
  padding: 0 1.5rem 0 0;
}
.mega-col:last-child {
  padding-right: 0;
  padding-left: 1.5rem;
  border-left: 1px solid #f1f5f9;
}

.mega-col-title {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: block;
}

/* Link dentro del mega menú — solo texto, sin descripción, sin tarjetas */
.mega-link {
  display: block;
  padding: 0.5rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s ease;
  margin-bottom: 1px;
}
.mega-link:hover {
  background-color: #f8fafc;
}

.mega-link-name {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.3;
  display: block;
  transition: color 0.15s;
}
.mega-link:hover .mega-link-name {
  color: var(--text-primary);
}

/* La descripción se oculta — solo nombres limpios como Docshield */
.mega-link-desc { display: none; }

/* CTA card dentro del mega menú (simplificado) */
.mega-cta-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.75rem;
}
.mega-cta-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
  max-width: none;
  line-height: 1.4;
  font-weight: 400;
}
.mega-cta-card a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mega-cta-card a:hover { opacity: 0.7; }

/* Toggle móvil */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  display: block;
  padding: 4px 8px;
  line-height: 1;
}
@media (min-width: 768px) {
  .mobile-menu-toggle { display: none; }
}

/* --- 6. BOTONES (CTAs Píldoras Premium) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-btn);  /* 9999px */
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
  letter-spacing: -0.01em;
}

.btn-nav {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--bg-primary);
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* --- 7. HERO SECTION (Massive & Airy) --- */
.hero-section {
  padding-top: 130px;
  padding-bottom: 0;
  /* Beautiful Docshield-inspired blue gradient - lighter and premium */
  background: 
    radial-gradient(circle at 50% 90%, rgba(254, 215, 170, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #eff6ff 100%);
  position: relative;
  /* overflow: visible — allows the hero-select-dropdown (position:absolute) to
     escape the section boundary. Decorative clipping is handled by the ::before
     pseudo-element below so background shapes stay contained. */
  overflow: visible;
  text-align: center;
  color: #ffffff;
}

/* Clip decorative background shapes without clipping the dropdown */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-section h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  /* Ensure the inline hero-select-wrapper can overflow visually */
  position: relative;
  overflow: visible;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 3.2rem;
  }
}

.hero-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 90ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* CTAs inside hero to match Docshield style */
.hero-section .btn-primary {
  background-color: #ffffff;
  color: #0f172a;
}
.hero-section .btn-primary:hover {
  background-color: #f8fafc;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.hero-section .btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.hero-section .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* La imagen recortada del final del hero */
.hero-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.hero-doctor-img {
  max-height: 400px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}
@media (min-width: 768px) {
  .hero-doctor-img { max-height: 380px; }
}

/* Sección de logos del héroe con división limpia y fondo blanco sólido */
.hero-logos-section {
  background-color: #ffffff;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
}

.hero-logos-section .logo-title-centered {
  text-align: center;
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-muted);
  width: 100%;
}

/* Infinite Scrolling Ticker (Docshield style) */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0.5rem 0;
}

.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 3;
  pointer-events: none;
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 10%, transparent 100%);
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 10%, transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 4rem;
  animation: ticker-slide 20s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.ticker-item:hover {
  color: #2563eb;
}

.ticker-icon {
  color: #2563eb;
  display: flex;
  align-items: center;
}

@keyframes ticker-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- 8. CARDS PREMIUM (32px Radius) --- */
.card-grid-2, .card-grid-3, .card-grid-4 {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card-premium {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card); /* 32px */
  padding: var(--space-lg);
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  /* Sombra sutil por defecto, pero se revela en hover */
  box-shadow: var(--shadow-sm);
}

.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: #fff; /* Desaparece el borde para dar sensación flotante */
}

/* Tarjeta con fondo soft */
.card-soft {
  background-color: var(--bg-secondary);
  border: none;
}
.card-soft:hover {
  background-color: var(--bg-primary);
}

/* --- 9. SECCIÓN GIGANTE (EEAT Bloque 40px) --- */
.section-massive {
  background-color: #94a3b8; /* Slate 400 (como la caja gris de la docshield pic) */
  border-radius: var(--radius-section); /* 40px */
  padding: var(--space-xl) var(--space-lg);
  color: white;
  display: grid;
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

@media (min-width: 992px) {
  .section-massive {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-xxl) var(--space-xl);
  }
}

.section-massive h2 {
  color: white;
}
.section-massive p {
  color: rgba(255,255,255,0.8);
}
.section-massive .btn-secondary {
  background-color: white;
  border-color: white;
  color: var(--primary);
}

/* --- 10. SECTION HEADER (Textos Centrados Gigantes) --- */
.section-header-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- 11. FAQ ACORDEÓN (Estilo Docshield: texto azul + icono ⊕ derecha) --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid #e8edf2;
}
.faq-item:last-child {
  border-bottom: 1px solid #e8edf2;
}

/* Botón de la pregunta — toda la fila es clickeable */
.faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1.5rem;
}

.faq-q {
  font-size: 1rem;
  font-weight: 400;
  /* Azul exacto de Docshield */
  color: #3b82f6;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* Icono ⊕ circular */
.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
  transition: var(--transition);
}

.faq-toggle[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  border-color: #1d4ed8;
  color: #1d4ed8;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding-bottom: 0;
}

.faq-answer.is-open {
  max-height: 400px;
  padding-bottom: 1.5rem;
}

.faq-a {
  font-size: 0.975rem;
  color: var(--text-secondary);
  max-width: none;
  line-height: 1.7;
  margin: 0;
}

/* --- 12. FOOTER PREMIUM (Gran tarjeta redondeada atmosférica) --- */
.footer-card {
  background: linear-gradient(145deg,
    #dde6fb 0%,
    #c7d2fe 15%,
    #a5b4fc 40%,
    #93c5fd 65%,
    #bfdbfe 85%,
    #e0e7ff 100%
  );
  border-radius: 28px;
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
  max-width: var(--container-width);
  margin: 0 auto 3rem;
  width: calc(100% - 3rem); /* Margen lateral elegante de 1.5rem por lado */
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Top: nav cols a la izquierda + CTA a la derecha */
.footer-top {
  display: grid;
  grid-template-columns: 180px 180px 1fr auto;
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-cta-col { 
    grid-column: 1 / -1; 
  }
  .footer-card { 
    margin: 0 auto 2rem; 
    padding: 2.5rem; 
    width: calc(100% - 2rem);
    min-height: auto; 
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  footer {
    padding: 0 0 1rem !important; /* Reduces bottom gap to match reference */
  }
  .footer-top { 
    grid-template-columns: 1fr; 
    gap: 2rem;
  }
  .footer-card { 
    margin: 0 auto; 
    padding: 2.5rem 1.5rem; 
    width: calc(100% - 1.5rem);
    border-radius: 24px;
    gap: 2.5rem;
  }
}

.footer-nav-col a,
.footer-nav-col-2 a {
  display: block;
  color: rgba(20, 18, 70, 0.6);
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  text-decoration: none;
  transition: color 0.18s;
  line-height: 1.4;
}

.footer-nav-col a:hover,
.footer-nav-col-2 a:hover { 
  color: rgba(20, 18, 70, 0.95); 
}

/* Columna CTA — texto grande */
.footer-cta-col {
  text-align: right;
  align-self: flex-start;
}

.footer-cta-text {
  font-size: 2.2rem;
  font-weight: 500;
  color: #1a1660;
  letter-spacing: -0.04em;
  line-height: 1.15;
  max-width: 320px;
  margin-left: auto;
}

/* Bottom: logo izquierda + contacto derecha */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
}

.footer-logo-text {
  display: flex;
  align-items: center;
  line-height: 1;
}

.footer-logo-img {
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  margin-left: -10px; /* Adjusting margin to align visual logo left edge */
}

.footer-contact {
  text-align: right;
}

.footer-contact p {
  font-size: 0.85rem;
  color: rgba(20, 18, 70, 0.6);
  margin-bottom: 0.5rem;
  max-width: none;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  font-weight: 400;
}

.footer-contact p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .footer-cta-text { 
    font-size: 1.8rem; 
    margin-left: 0; 
    text-align: left;
    max-width: 100%;
  }
  .footer-cta-col { 
    text-align: left; 
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-top: 1rem;
  }
  .footer-contact { 
    text-align: left; 
    width: 100%;
  }
  .footer-contact p { 
    justify-content: flex-start; 
  }
}

/* --- 12. ANIMACIONES (Scroll Reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Preferencia usuario */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   13. ESPECIALISTA PAGE (Dra. Elizabeth Hernández)
   ========================================================================== */

/* Héroe Especialista */
.about-hero-section {
  padding-top: 130px;
  padding-bottom: var(--space-xl);
  background: 
    radial-gradient(circle at 50% 90%, rgba(254, 215, 170, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #eff6ff 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
}

.about-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-hero-section h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

@media (min-width: 768px) {
  .about-hero-section h1 { font-size: 3.2rem; }
}

.about-hero-section p {
  color: rgba(255, 255, 255, 0.95);
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

/* Componente Clínico Flotante (Inspirado en Docshield Risk Monitor) */
.clinical-card-flotante {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  box-shadow: 
    0 20px 48px -10px rgba(15, 23, 42, 0.12),
    0 10px 20px -5px rgba(15, 23, 42, 0.06);
  padding: 1.75rem 2rem;
  width: 100%;
  max-width: 480px;
  text-align: left;
  margin: 0 auto;
  color: var(--text-primary);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.clinical-card-flotante:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 30px 60px -15px rgba(15, 23, 42, 0.18),
    0 15px 30px -10px rgba(15, 23, 42, 0.08);
  border-color: rgba(226, 232, 240, 0);
}


.clinical-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.clinical-icon {
  width: 44px;
  height: 44px;
  background-color: #dbeafe;
  color: #2563eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clinical-header-text {
  display: flex;
  flex-direction: column;
}

.clinical-status {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  margin-bottom: 2px;
}

.clinical-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
}

.clinical-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.clinical-slider-track {
  width: 100%;
  height: 8px;
  background-color: #f1f5f9;
  border-radius: 9999px;
  position: relative;
}

.clinical-slider-thumb {
  position: absolute;
  top: 50%;
  left: 80%; /* Alta precisión */
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background-color: #2563eb;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.clinical-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Sección de Trayectoria y Misión */
.about-mission-section {
  background-color: var(--bg-primary);
  padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
  .about-mission-section {
    padding: var(--space-xxl) 0;
  }
}

.about-mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .about-mission-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xl);
  }
}

.about-mission-title-col h2 {
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  font-weight: 500;
}

@media (min-width: 768px) {
  .about-mission-title-col h2 {
    font-size: 3.8rem;
    line-height: 1.05;
    max-width: 12ch;
  }
}

.about-mission-text-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: center;
}

.section-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.about-banner-container {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-card); /* 32px */
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

@media (min-width: 768px) {
  .about-banner-container {
    height: 480px;
  }
}

.about-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* Sección de Respaldo Clínico y Valores */
.about-values-section {
  background-color: var(--bg-primary);
  padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
  .about-values-section {
    padding: var(--space-xxl) 0;
  }
}

.values-card-container {
  background-color: #eff6ff; /* Soft blue background container */
  border-radius: var(--radius-section); /* 40px */
  padding: 3.5rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .values-card-container {
    padding: 2rem 1.5rem;
  }
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 992px) {
  .values-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
  }
}

.values-left-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.values-left-col h2 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.values-left-col p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 32ch;
  line-height: 1.6;
}

.values-right-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.value-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.value-icon {
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  color: #2563eb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
}

.value-content h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.value-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
  max-width: none;
}

/* ==========================================================================
   14. INVESTIGACIÓN Y SOCIEDADES (E-E-A-T Accordion)
   ========================================================================== */
.about-research-section {
  background-color: var(--bg-primary);
  padding: var(--space-xl) 0 var(--space-xxl) 0;
}

.research-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.research-header h2 {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.research-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.accordion-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background-color: #ffffff;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.accordion-header {
  width: 100%;
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: #fafafa;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: #2563eb;
}

.accordion-item.active .accordion-icon,
details.accordion-item[open] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}
.accordion-item summary {
  list-style: none;
  outline: none;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
  padding: 0 1.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.accordion-item.active .accordion-content,
details.accordion-item[open] .accordion-content {
  padding: 1.25rem 1.75rem 1.25rem 1.75rem;
  max-height: 600px;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.accordion-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.accordion-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.accordion-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: bold;
}

/* ─── 13. COMPONENTES EXTRA ESTILO DOCSHIELD ───────────────────────────────── */

/* Silo Badge and Underline */
.silo-badge-complex {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-hover);
}

.underline-blue {
  text-decoration: none;
  border-bottom: 3px solid #6D88B4;
  padding-bottom: 4px;
}

/* Stat speedometer card grid */
.stat-speedometer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.card-speedometer {
  background-color: var(--primary-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 310px;
}

.card-speedometer:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.speedometer-container {
  position: relative;
  width: 200px;
  height: 120px;
  margin: 0 auto;
}

/* Gauge SVG and needle animation */
.speedometer-needle {
  transform-origin: 100px 100px;
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.stat-speedometer-label {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.stat-speedometer-number {
  font-size: 2.25rem;
  font-weight: 600;
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-speedometer-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.speedometer-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-btn);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.badge-green { background-color: rgba(16, 185, 129, 0.1); color: #10B981; }
.badge-blue { background-color: rgba(37, 99, 235, 0.1); color: #2563eb; }
.badge-amber { background-color: rgba(245, 158, 11, 0.1); color: #D97706; }

/* Progress bars inside card */
.progress-card-content {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.progress-bar-bg {
  height: 8px;
  background-color: var(--border-hover);
  border-radius: var(--radius-btn);
  overflow: hidden;
  width: 100%;
}

.progress-bar-fill {
  height: 100%;
  background-color: #6D88B4;
  border-radius: var(--radius-btn);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
}

/* Alternate Background Sections */
.section-light {
  background-color: #ffffff;
}

.section-accent-light {
  background-color: #F8FAFC;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Timeline component */
.timeline-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1000px;
  margin: 3rem auto 0 auto;
  gap: 1.5rem;
}

.timeline-line {
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: var(--border-hover);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: transparent;
}

.timeline-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 1rem;
}

.timeline-step:hover .timeline-node {
  border-color: #6D88B4;
  color: #1a1660;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(109, 136, 180, 0.15);
}

.timeline-step.active .timeline-node {
  border-color: var(--primary);
  background-color: var(--primary);
  color: #ffffff;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 220px;
}

@media (max-width: 768px) {
  .timeline-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding-left: 1.5rem;
    margin-top: 2rem;
  }
  .timeline-line {
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    height: auto;
  }
  .timeline-step {
    flex-direction: row;
    text-align: left;
    gap: 1.5rem;
    align-items: center;
  }
  .timeline-node {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .timeline-desc {
    max-width: 100%;
  }
}

/* Premium Expert Advisor Card (Docshield "Speak with a Med Mal Expert" Clone) */
.expert-advisor-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: 
    radial-gradient(circle at 50% 90%, rgba(254, 215, 170, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #93c5fd 100%);
  border-radius: var(--radius-card);
  padding: 3rem;
  color: #ffffff;
  box-shadow: var(--shadow-premium);
  margin-top: 4rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .expert-advisor-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.expert-advisor-profile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 576px) {
  .expert-advisor-profile {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    text-align: left;
  }
}

.expert-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.expert-avatar-ring {
  border-radius: 50%;
  padding: 4px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.expert-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.expert-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

@media (min-width: 576px) {
  .expert-info {
    text-align: left;
  }
}

.expert-title {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.expert-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.expert-badge {
  display: inline-block;
  align-self: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

@media (min-width: 576px) {
  .expert-badge {
    align-self: flex-start;
  }
}

.expert-action {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.btn-white-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #ffffff;
  color: #0A0F24;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.1rem 2.25rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-white-premium:hover {
  background-color: #F1F2F3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* EEAT List */
.eeat-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.eeat-check-item {
  position: relative;
  padding-left: 2rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.eeat-check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ─── 14. LAYOUT DE PROCEDIMIENTO Y SIDEBAR (Consistencia Global) ────────── */
.procedure-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 992px) {
  .procedure-detail-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-xl);
  }
}

.procedure-sidebar {
  background-color: var(--primary-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

.procedure-sidebar h3 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.procedure-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-hover);
  font-size: 0.95rem;
}

.procedure-detail-item:last-of-type {
  border-bottom: none;
}

.procedure-detail-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.procedure-detail-value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* ─── 15. BREADCRUMBS & HEADER CLEARANCE ───────────────────────────────────── */
.breadcrumb-container {
  padding-top: 90px;
  background-color: var(--primary-light);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0.85rem 0;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  gap: 0.5rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .current {
  color: var(--text-muted);
  pointer-events: none;
}

/* ─── 16. ANIMACIONES DE SCROLL PURAS (CSS Scroll-Driven Animations) ─────── */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    .reveal-scroll {
      animation: fadeInUp auto linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }
}

/* ─── 17. COMPONENTES Y HERO ESTILO DOCSHIELD ────────────────────────────── */
.hero-docshield {
  background: 
    radial-gradient(circle at 50% 90%, rgba(254, 215, 170, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #eff6ff 100%);
  color: #ffffff;
  padding-top: 130px;
  padding-bottom: var(--space-xl);
  text-align: center;
  position: relative;
  /* overflow: visible — required so the hero-select-dropdown can paint
     outside the section boundary without being clipped. */
  overflow: visible;
}

.hero-docshield h1 {
  color: #ffffff;
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  max-width: 25ch;
  margin-left: auto;
  margin-right: auto;
  /* Ensure dropdown wrapper can overflow visually */
  position: relative;
  overflow: visible;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero-docshield h1 {
    font-size: 3.2rem;
  }
}

.hero-docshield p.hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  line-height: 1.65;
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.hero-floating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.hero-docshield .btn-primary {
  background-color: #ffffff;
  color: #0f172a;
}
.hero-docshield .btn-primary:hover {
  background-color: #f8fafc;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.hero-docshield .btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.hero-docshield .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ====== HERO UNIFICADO PREMIUM (Tokens de Venus, Mercurio, Saturno y Marte) ====== */
.premium-hero-bg {
  background: 
    radial-gradient(circle at 50% 90%, rgba(254, 215, 170, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #eff6ff 100%);
  padding-top: 130px; /* Generoso para evitar tapar contenido y dar aire */
  padding-bottom: var(--space-xxl);
  text-align: center;
  position: relative;
  /* overflow: visible — required so the hero-select-dropdown can paint
     outside the section boundary without being clipped. */
  overflow: visible;
}

.premium-hero-bg:has(.hero-image-wrap) {
  padding-bottom: 0;
}

.premium-hero-bg h1 {
  color: var(--color-text-white);
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
  /* Ensure dropdown wrapper can overflow visually */
  position: relative;
  overflow: visible;
  z-index: 2;
}

@media (min-width: 768px) {
  .premium-hero-bg h1 {
    font-size: 3.2rem;
  }
}

/* Reescritura del badge superior para Mercurio (Centrado y sutil) */
.premium-hero-bg .hero-floating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  box-shadow: none;
}

.highlight-sky {
  color: var(--color-sky-glow);
  border-bottom: 2px solid var(--color-sky-glow);
  display: inline-block;
  padding-bottom: 2px;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  max-width: 48rem; /* max-w-3xl */
  margin: 0 auto 2.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-desc {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--color-midnight-deep);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(2, 7, 18, 0.15);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.btn-hero-primary:hover {
  transform: scale(1.03);
  background: #ffffff;
  color: var(--color-midnight-deep);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Margen de separación generoso entre secciones */
.section-airy {
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
}

@media (max-width: 768px) {
  .section-airy {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }
}

/* Línea decorativa o subrayado sutil estilo DocShield */
.underline-blue {
  background: linear-gradient(120deg, #60a5fa 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* ====== 18. SECCIÓN DE CONTACTO & FORMULARIO ESTILO DOCSHIELD ====== */
.contact-page {
  --radius-card: 24px;
  --radius-btn: 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: var(--space-xl);
  }
}

.form-group {
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: left;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.form-control {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 0.95rem 1.25rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md); /* 16px */
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15), var(--shadow-sm);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1rem;
  padding-right: 2.75rem;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

/* Tarjetas y Mapa de Ubicación */
.contact-info-block {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card); /* 24px en contact-page */
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  text-align: left;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-info-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.contact-info-text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-info-text a {
  color: inherit;
  font-weight: 500;
}

.contact-info-text a:hover {
  color: #3b82f6;
}

.contact-map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-card); /* 24px */
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-md);
  position: relative;
}

.contact-map-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ====== 19. PERFIL DE LA DOCTORA (TRAYECTORIA & SILUETA) ====== */
.doctor-profile-page {
  --radius-card: 24px;
  --radius-section: 24px;
  --radius-btn: 50px;
}

.about-trajectory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 992px) {
  .about-trajectory-grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: var(--space-xl);
  }
}

.about-trajectory-text-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: left;
}

.about-trajectory-text-col p {
  max-width: none;
}

.about-silhouette-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 480px;
  background: radial-gradient(circle at 50% 80%, #dbeafe 0%, #f8fafc 100%);
  border-radius: var(--radius-card); /* 24px */
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border: 1px solid rgba(226, 232, 240, 0.5);
  margin: 0 auto;
}

.about-silhouette-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.08));
}


.about-silhouette-container:hover .about-silhouette-img {
  transform: scale(1.03);
}

/* Transición suave cuando la última sección es gris (section-accent-light) */
main:has(> section.section-accent-light:last-of-type) > section.section-accent-light:last-of-type {
  border-bottom: none !important;
}

main:has(> section.section-accent-light:last-of-type) + footer {
  background: linear-gradient(to bottom, #F8FAFC 0%, #ffffff 300px);
}

/* ==========================================================================
   20. SILO DE CASOS REALES (ANTES Y DESPUÉS)
   Estética "Docshield" Premium, Azul Profundo, Spacing Airy y Aspect Ratios
   ========================================================================== */

.antes-y-despues-page {
  --radius-hub-card: 24px;
  --radius-hub-pill: 50px;
}

/* Hero con glow radial azul profundo */
.radial-glow-hero {
  padding-top: 130px;
  padding-bottom: var(--space-xl);
  background: 
    radial-gradient(circle at 50% 90%, rgba(254, 215, 170, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #eff6ff 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.radial-glow-hero h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  max-width: 25ch;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .radial-glow-hero h1 {
    font-size: 3.2rem;
  }
}

.radial-glow-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.radial-glow-hero .btn-hero-primary {
  background-color: #ffffff;
  color: #020712;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-hub-pill);
  text-decoration: none;
  transition: var(--transition);
}

.radial-glow-hero .btn-hero-primary:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(56, 189, 248, 0.15);
}

.radial-glow-hero .btn-hero-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-hub-pill);
  text-decoration: none;
  transition: var(--transition);
}

.radial-glow-hero .btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Espaciado masivo entre bloques de categorías */
.hub-category-block {
  margin-bottom: var(--space-xxl);
}

.hub-category-block:last-of-type {
  margin-bottom: 0;
}

/* Tailwind-compatible utility classes for aspect ratios & object containment */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-\[3\/4\] {
  aspect-ratio: 3 / 4;
}

.aspect-\[2\/3\] {
  aspect-ratio: 2 / 3;
}

.object-cover {
  object-fit: cover;
}

.object-center {
  object-position: center;
}

/* Componente Before-After (Lado a lado) */
.ba-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-hub-card); /* 24px */
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.ba-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(56, 189, 248, 0.15);
}

.ba-image-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #0b0f19;
  overflow: hidden;
  width: 100%;
}

.ba-image-col {
  position: relative;
  width: 100%;
  height: 100%;
}

.ba-image-col img {
  width: 100%;
  height: 100%;
  display: block;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: translateX(-50%);
  z-index: 10;
}

.ba-label {
  position: absolute;
  bottom: 12px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-hub-pill); /* 50px */
  color: #ffffff;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 11;
  pointer-events: none;
}

.ba-label-before {
  left: 12px;
}

.ba-label-after {
  right: 12px;
}

.ba-info {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-grow: 1;
}

.ba-tag {
  display: inline-flex;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-hub-pill); /* 50px */
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  width: fit-content;
  border: 1px solid var(--border-color);
}

.ba-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.ba-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0;
  max-width: none;
}

/* Acordeón nativo de FAQ (details/summary) */
.native-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.native-faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.native-faq-item:first-of-type {
  border-top: 1px solid var(--border-color);
}

.native-faq-item details {
  width: 100%;
}

.native-faq-item summary {
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #1e3a8a; /* Azul corporativo */
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.2s ease;
}

.native-faq-item summary:hover {
  color: #2563eb;
}

.native-faq-item summary::-webkit-details-marker {
  display: none;
}

.native-faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: #3b82f6;
  transition: transform 0.3s ease;
  width: 28px;
  height: 28px;
  border: 1px solid #93c5fd;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.native-faq-item details[open] summary::after {
  transform: rotate(45deg);
  color: #1d4ed8;
  border-color: #1d4ed8;
}

.native-faq-content {
  padding: 0 0 1.5rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Acordeones dinámicos del editor (details/summary) */
details.clinical-faq-details {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  background-color: var(--bg-secondary);
  overflow: hidden;
  transition: all 0.3s ease;
}

details.clinical-faq-details summary {
  padding: 12px 18px;
  font-weight: 600;
  color: #1e3a8a;
  cursor: pointer;
  outline: none;
  list-style: none;
  user-select: none;
  border-bottom: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.clinical-faq-details[open] summary {
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(30, 58, 138, 0.03);
}

details.clinical-faq-details .details-content {
  padding: 15px 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

details.clinical-faq-details summary::-webkit-details-marker {
  display: none;
}

details.clinical-faq-details summary::after {
  content: "▾";
  font-weight: bold;
  transition: transform 0.2s ease;
}

details.clinical-faq-details[open] summary::after {
  transform: rotate(180deg);
}

/* ==========================================================================
   COMPONENTES DE ANTES Y DESPUÉS (Hub y Slider Interactivo)
   ========================================================================== */

/* Tarjetas de Casos Clínicos del Hub (Estilo Cajas del Home) */
.ba-stats-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  box-shadow: 
    0 20px 48px -10px rgba(15, 23, 42, 0.1),
    0 10px 20px -5px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.ba-stats-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 30px 60px -15px rgba(15, 23, 42, 0.16),
    0 15px 30px -10px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Contenedor de Imágenes Side-by-Side en la Tarjeta */
.ba-stats-card-img-wrapper {
  display: flex;
  width: 100%;
  gap: 2px;
  position: relative;
  overflow: hidden;
  background-color: rgba(226, 232, 240, 0.5);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.ba-stats-card-img-col {
  flex: 1;
  position: relative;
}

.ba-stats-card-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Etiquetas flotantes Antes / Después en la Tarjeta */
.ba-card-badge {
  position: absolute;
  bottom: 10px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
}

.ba-card-badge-before {
  left: 10px;
  background-color: rgba(15, 23, 42, 0.65);
  color: #ffffff;
}

.ba-card-badge-after {
  right: 10px;
  background-color: #2563eb;
  color: #ffffff;
}

/* Área de Contenido de la Tarjeta */
.ba-stats-card-content {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Título de la Tarjeta (Efecto Hover Color) */
.ba-stats-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.ba-stats-card:hover .ba-stats-card-title {
  color: #2563eb;
}

/* Descripción de la Tarjeta */
.ba-stats-card-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ==========================================
   Slider Interactivo Deslizable (Páginas Detalle)
   ========================================== */
.interactive-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 
    0 25px 50px -12px rgba(15, 23, 42, 0.15),
    0 12px 24px -10px rgba(15, 23, 42, 0.08);
  background-color: #f1f5f9;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none; /* Previene scroll táctil al arrastrar */
  cursor: ew-resize;
  --exposure: 50%;
}

.interactive-slider[data-orientation="vertical"] {
  cursor: ns-resize;
}

/* Capa del Después (Fondo) */
.ba-slider-image {
  width: 100%;
  height: 100%;
  display: block;
}

.ba-slider-after {
  position: relative;
  width: 100%;
  z-index: 1;
}

.ba-slider-after img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Capa del Antes (Superpuesta con clip-path) */
.ba-slider-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  clip-path: polygon(0 0, var(--exposure) 0, var(--exposure) 100%, 0 100%);
}

.interactive-slider[data-orientation="vertical"] .ba-slider-before {
  clip-path: polygon(0 0, 100% 0, 100% var(--exposure), 0 var(--exposure));
}

.ba-slider-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Etiquetas del Slider en Detalle */
.ba-slider-badge {
  position: absolute;
  bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 6px;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.ba-slider-badge-before {
  left: 1.25rem;
  background-color: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ba-slider-badge-after {
  right: 1.25rem;
  background-color: rgba(37, 99, 235, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.interactive-slider[data-orientation="vertical"] .ba-slider-badge-before {
  top: 1.25rem;
  bottom: auto;
  left: 1.25rem;
}

.interactive-slider[data-orientation="vertical"] .ba-slider-badge-after {
  bottom: 1.25rem;
  right: 1.25rem;
}

/* Barra Divisoria (Handle) */
.ba-handle {
  position: absolute;
  z-index: 3;
  background-color: #ffffff;
  pointer-events: none;
}

/* Línea Horizontal (Control Horizontal) */
.interactive-slider:not([data-orientation="vertical"]) .ba-handle {
  top: 0;
  left: var(--exposure);
  height: 100%;
  width: 2px;
  transform: translateX(-50%);
}

/* Línea Vertical (Control Vertical) */
.interactive-slider[data-orientation="vertical"] .ba-handle {
  top: var(--exposure);
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

/* Botón Central de Deslizamiento */
.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background-color: #2563eb;
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 
    0 4px 12px rgba(37, 99, 235, 0.4),
    0 2px 4px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background-color 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interactive-slider:hover .ba-handle-button {
  background-color: #1d4ed8;
  transform: translate(-50%, -50%) scale(1.08);
}

.ba-handle-button svg {
  display: none;
  flex-shrink: 0;
}

/* Mostrar flechas según orientación */
.interactive-slider:not([data-orientation="vertical"]) .ba-handle-button .ba-arrow-left-right {
  display: block;
}

.interactive-slider[data-orientation="vertical"] .ba-handle-button .ba-arrow-up-down {
  display: block;
}

/* Indicador de Enfoque para Accesibilidad Teclado */
.interactive-slider:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 4px;
}

/* --- Modo Fade-Blur para Comparación de Imagen --- */
.interactive-slider.mode-fade-blur {
  cursor: pointer !important;
}

.interactive-slider.mode-fade-blur .ba-handle {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.interactive-slider.mode-fade-blur .ba-slider-before {
  clip-path: none !important;
  transition: opacity 0.4s ease, filter 0.4s ease-out;
}

.interactive-slider.mode-fade-blur.show-after .ba-slider-before {
  opacity: 0 !important;
  filter: blur(15px) !important;
}

/* Transiciones de Badges en modo Fade-Blur */
.interactive-slider.mode-fade-blur .ba-slider-badge-before {
  transition: opacity 0.3s ease;
}
.interactive-slider.mode-fade-blur .ba-slider-badge-after {
  transition: opacity 0.3s ease;
  opacity: 0;
}
.interactive-slider.mode-fade-blur.show-after .ba-slider-badge-before {
  opacity: 0 !important;
}
.interactive-slider.mode-fade-blur.show-after .ba-slider-badge-after {
  opacity: 1 !important;
}

/* Contenedor del Botón Toggle */
.ba-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  width: 100%;
}

.ba-toggle-pill {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  gap: 4px;
}

.ba-toggle-btn {
  border: none;
  outline: none;
  background: transparent;
  color: #64748b;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ba-toggle-btn:hover {
  color: #0f172a;
}

.ba-toggle-btn.active {
  background: #ffffff !important;
  color: #2563eb !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  font-weight: 600;
}

/* --- Estilos para Modal con diseño de Página Completa de Blog --- */
#case-preview-modal.blog-style {
  background: #ffffff !important;
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#case-preview-modal.blog-style .blog-back-btn {
  transition: color 0.2s ease, transform 0.2s ease;
}

#case-preview-modal.blog-style .blog-back-btn:hover {
  color: #1d4ed8 !important;
  transform: translateX(-4px);
}

@media (min-width: 992px) {
  #case-preview-modal.blog-style .modal-grid-container {
    grid-template-columns: 1.2fr 1fr !important;
    align-items: start !important;
  }
}

/* ==========================================================================
   DISEÑO DE TARJETAS CLÍNICAS (Iconos Vectoriales y Enlace de Botón)
   ========================================================================== */

/* Tarjetas Estilo Caja Limpia */
.ba-hub-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  box-shadow: 
    0 10px 30px -10px rgba(15, 23, 42, 0.04),
    0 4px 12px -5px rgba(15, 23, 42, 0.02);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.ba-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 25px 50px -12px rgba(15, 23, 42, 0.08),
    0 8px 16px -8px rgba(15, 23, 42, 0.03);
  border-color: rgba(37, 99, 235, 0.15);
}

/* Área Vectorial Dividida en 2 (Antes y Después) en la parte superior */
.ba-hub-card-vector-area {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  background-color: #ffffff !important;
  position: relative;
  height: 110px;
  gap: 1.5rem;
  width: 100%;
}

.ba-hub-card-vector-col {
  flex: 1 1 0% !important;
  width: calc(50% - 0.75rem) !important;
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  position: relative;
}

.ba-hub-card-vector-col svg {
  width: 100%;
  height: auto;
  max-height: 80px;
  display: block;
}

.ba-hub-card-vector-divider {
  display: none;
}

.ba-hub-card-vector-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  text-transform: capitalize;
  margin-top: 4px;
}

.ba-hub-card-vector-col:last-child .ba-hub-card-vector-label {
  color: #475569;
}

/* Títulos y Párrafos */
.ba-hub-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.25rem;
  margin-bottom: 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.ba-hub-card:hover .ba-hub-card-title {
  color: #2563eb;
}

.ba-hub-card-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  flex-grow: 1;
}

.ba-hub-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.55rem 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: auto;
  align-self: flex-start;
}

.ba-hub-card:hover .ba-hub-card-link {
  border-color: #0f172a;
  background-color: #0f172a;
  color: #ffffff;
}

/* ==========================================
   Diseño de Páginas de Detalle en 2 Columnas
   ========================================== */
.case-detail-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: var(--space-xl); /* Mayor separación con el menú superior */
  margin-bottom: var(--space-lg);
}

.case-detail-slider-col {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.case-detail-info-col {
  display: none;
}

/* ==========================================================================
   21. HERO SELECTOR INTERACTIVO (Venus, Mercurio, Saturno)
   ========================================================================== */

.hero-select-wrapper {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  /* Ensures the dropdown (position:absolute child) is always above other hero
     elements. Value 10 keeps us far below the nav (z-index: 1000) but above
     the hero gradient / image layers. */
  z-index: 10;
  overflow: visible;
}

.hero-select-trigger {
  background: none;
  border: none;
  border-bottom: 2px solid var(--color-sky-glow);
  padding: 0 4px 4px;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
  color: var(--color-sky-glow);
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: inherit;
  transform-origin: center bottom;
}

.hero-select-trigger:hover {
  opacity: 0.9;
  border-color: rgba(56, 189, 248, 0.6);
  transform: scale(1.03);
}

.hero-select-chevron {
  width: 0.45em;
  height: 0.45em;
  stroke: var(--color-sky-glow);
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  vertical-align: middle;
}

.hero-select-wrapper.is-open .hero-select-chevron {
  transform: rotate(180deg);
}

.hero-select-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  transform-origin: top center;
  z-index: 1100;
  width: 380px;
  max-height: 420px;
  overflow-y: auto;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0.25s;
  box-sizing: border-box;
  /* Scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.12) transparent;
}

.hero-select-dropdown::-webkit-scrollbar {
  width: 4px;
}
.hero-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 4px;
}

.hero-select-dropdown.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) scale(1);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0s;
}

.hero-select-option-wrapper {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-select-option {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: #4b5563;
  padding: 10px 24px;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  line-height: 1.5;
  letter-spacing: normal;
}

.hero-select-option:hover {
  background-color: #f9fafb;
  color: #111827;
  text-decoration: none;
}

.hero-select-option.is-active {
  font-weight: 600;
  color: #0f172a;
  background-color: transparent;
}

.hero-select-option.is-active:hover {
  background-color: #f9fafb;
}

@media (max-width: 480px) {
  .hero-select-dropdown {
    width: calc(100vw - 32px);
    max-width: 380px;
    /* On very small screens left:50%+translateX(-50%) can render off-viewport.
       Cap at viewport edge with a secondary clamp. */
    left: 50%;
    transform: translateX(-50%) scale(0.95);
  }
  .hero-select-dropdown.is-open {
    transform: translateX(-50%) scale(1);
  }
}

/* ==========================================================================
   COMPONENTES DUAL-MODE ANTES Y DESPUÉS (MODO A & MODO B)
   ========================================================================== */

/* Contenedor del selector global de modo */
.view-mode-selector-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 10;
}

.view-mode-selector {
  display: inline-flex;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-btn);
  padding: 4px;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.03);
}

.view-mode-btn {
  border: none;
  background: transparent;
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.view-mode-btn:hover {
  color: var(--text-primary);
}

.view-mode-btn.active {
  background-color: var(--bg-primary);
  color: #2563eb !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
}

/* Grid del Hub adaptado al Modo Dual */
#gallery-grid.view-mode-slider .card-comparison-fade {
  display: none !important;
}

#gallery-grid.view-mode-slider .card-comparison-slider {
  display: block !important;
}

#gallery-grid.view-mode-fade .card-comparison-slider {
  display: none !important;
}

#gallery-grid.view-mode-fade .card-comparison-fade {
  display: block !important;
}

/* Tarjeta de Galería adaptada */
.ba-hub-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: var(--space-sm);
  transition: var(--transition-slow);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
}

.ba-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(226, 232, 240, 0.5);
}

.ba-hub-card-info {
  padding: 1rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ba-hub-card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #2563eb;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.ba-hub-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.2;
}

.ba-hub-card-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  flex-grow: 1;
  max-width: none;
}

.ba-hub-card-link-btn {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
  margin-top: auto;
}

.ba-hub-card-link-btn:hover {
  color: #1d4ed8;
  transform: translateX(3px);
}

/* Contenedor del Deslizador (Modo A) */
.card-comparison-slider {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  height: 220px;
}

.card-comparison-slider .interactive-slider {
  height: 100%;
  border-radius: 0;
}

/* Contenedor del Fade-Blur (Modo B) */
.card-comparison-fade {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  height: 220px;
}

.fade-container {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #0f172a;
  cursor: pointer;
}

.fade-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.fade-container .img-after {
  z-index: 1;
}

.fade-container .img-before {
  z-index: 3;
  transition: filter 0.5s ease-in-out, opacity 0.5s ease-in-out;
  will-change: filter, opacity;
}

/* Estado Revelado */
.fade-container.revealed .img-before {
  filter: blur(12px) opacity(0);
}

/* Insignias de Antes/Después para el Fade */
.fade-container .ba-slider-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.fade-container .ba-slider-badge-before {
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  z-index: 4;
  transition: opacity 0.3s ease;
}

.fade-container .ba-slider-badge-after {
  background: rgba(37, 99, 235, 0.85);
  color: #ffffff;
  z-index: 2;
}

.fade-container.revealed .ba-slider-badge-before {
  opacity: 0;
}

/* Botón flotante de revelado */
.btn-reveal-floating {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 5;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-reveal-floating:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: scale(1.05);
}

.btn-reveal-floating svg {
  transition: transform 0.3s ease;
}

.fade-container.revealed .btn-reveal-floating {
  background: #2563eb;
  border-color: #2563eb;
}

.fade-container.revealed .btn-reveal-floating svg {
  transform: rotate(180deg);
}

/* ==========================================================================
   BLOG & QUILL EDITOR WYSIWYG FORMATS
   ========================================================================== */

.blog-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tarjeta de Artículo de Blog */
.blog-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: var(--space-sm);
  transition: var(--transition-slow);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(226, 232, 240, 0.5);
}

.blog-card-img-wrap {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-tertiary);
  position: relative;
}

.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.04);
}

.blog-card-info {
  padding: 1rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #2563eb;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.2;
}

.blog-card-summary {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  flex-grow: 1;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.blog-card-author-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-card-author-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.blog-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* Vista de Artículo Detallado */
.article-detail-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.article-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  background-color: #eff6ff;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
}

.article-title-h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 15px;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .article-title-h1 {
    font-size: 3.25rem;
  }
}

.article-meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 25px;
}

.article-author-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-author-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.article-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-premium);
}

/* E-E-A-T Autor Box en el Blog */
.author-eeat-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  border-radius: 24px;
  padding: var(--space-md);
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

@media (min-width: 600px) {
  .author-eeat-box {
    grid-template-columns: 100px 1fr;
  }
}

.author-eeat-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
}

.author-eeat-text {
  text-align: center;
}

@media (min-width: 600px) {
  .author-eeat-text {
    text-align: left;
  }
}

.author-eeat-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.author-eeat-title {
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 500;
  margin-bottom: 10px;
}

.author-eeat-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0;
  max-width: none;
}

/* Estilos para renderizar el contenido HTML generado por Quill en el Blog */
.ql-rendered-content {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.ql-rendered-content p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: none;
}

.ql-rendered-content h1,
.ql-rendered-content h2,
.ql-rendered-content h3,
.ql-rendered-content h4 {
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ql-rendered-content h1 { font-size: 2rem; }
.ql-rendered-content h2 { font-size: 1.6rem; border-left: 3px solid #2563eb; padding-left: 12px; }
.ql-rendered-content h3 { font-size: 1.35rem; }
.ql-rendered-content h4 { font-size: 1.15rem; }

.ql-rendered-content strong {
  font-weight: 600;
  color: var(--text-primary);
}

.ql-rendered-content ul,
.ql-rendered-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.ql-rendered-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.ql-rendered-content a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

.ql-rendered-content a:hover {
  color: #1d4ed8;
}

.ql-rendered-content img {
  border-radius: 12px;
  margin: 1.5rem auto;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}


@media (max-width: 767px) {
  .hide-on-mobile { display: none !important; }
}
@media (min-width: 768px) {
  .mobile-only { display: none !important; }
}

/* ====== OPTIMIZACIÓN HERO MOBILE (Estilo Docshield) ====== */
@media (max-width: 768px) {
  .hero-section, .premium-hero-bg {
    padding-top: 90px !important;
  }
  .hero-section h1, .premium-hero-bg h1 {
    font-size: 2rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.1;
  }
  .hero-desc {
    font-size: 0.95rem !important;
    margin-bottom: 1.25rem !important;
    padding: 0 0.5rem;
    line-height: 1.35;
  }
  .hero-floating-pill {
    margin-bottom: 0.75rem !important;
  }
  .cta-group {
    margin-top: 1rem !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
    justify-content: center;
  }
  .btn-hero-primary, .btn-hero-secondary, .radial-glow-hero .btn-hero-primary, .radial-glow-hero .btn-hero-secondary {
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
    width: auto !important;
  }
  .hero-image-wrap {
    margin-top: 1rem !important;
  }
  .hero-doctor-img {
    max-height: 350px !important;
  }
}



/* ==========================================================================
   GALERÍA HUB - SEARCH, FILTERS & PAGINATION (DROPDOWN PREMIUM)
   ========================================================================== */

.filter-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 100;
}

.dropdown-search-container {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.dropdown-search-container .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  transition: color 0.3s ease;
  z-index: 10;
  pointer-events: none;
}

.dropdown-search-container .chevron-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  transition: transform 0.3s ease, color 0.3s ease;
  z-index: 10;
  pointer-events: none;
}

.dropdown-search-container.open .chevron-icon {
  transform: translateY(-50%) rotate(180deg);
  color: #38bdf8;
}

.search-input {
  width: 100%;
  padding: 18px 48px 18px 52px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px; /* Pill shape fully rounded */
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #0f172a;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 8px 30px -10px rgba(0, 0, 0, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  cursor: text;
}

.search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-input:focus, .dropdown-search-container.open .search-input {
  outline: none;
  border-color: rgba(56, 189, 248, 0.4);
  background-color: #ffffff;
  box-shadow: 
    0 12px 40px -12px rgba(2, 132, 199, 0.15),
    0 0 0 4px rgba(56, 189, 248, 0.1);
}

.search-input:focus ~ .search-icon, .dropdown-search-container.open .search-icon {
  color: #0284c7;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 12px;
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.1),
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.dropdown-search-container.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-category-label {
  padding: 8px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 4px;
}

.dropdown-item {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-item:hover {
  background: rgba(241, 245, 249, 0.8);
  color: #0f172a;
}

.dropdown-item.active {
  background: rgba(56, 189, 248, 0.1);
  color: #0284c7;
  font-weight: 600;
}

.dropdown-item.active::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #38bdf8;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.btn-load-more {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #0f172a;
  padding: 16px 36px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.03),
    inset 0 -2px 0 rgba(0,0,0,0.02);
}

.btn-load-more svg {
  color: #38bdf8;
  transition: transform 0.3s ease;
}

.btn-load-more:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 25px -8px rgba(0, 0, 0, 0.1),
    inset 0 -2px 0 rgba(0,0,0,0.01);
  border-color: rgba(56, 189, 248, 0.3);
  color: #0284c7;
}

.btn-load-more:hover svg {
  transform: translateY(2px);
}

.no-results-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px dashed rgba(0, 0, 0, 0.1);
  color: #64748b;
  font-weight: 500;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
