:root {
  /* Paleta oficial VITAHER IPS */
  --primary: #004b87;          /* Azul Vitaher Principal */
  --primary-dark: #003a6a;     /* Azul profundo derivado */
  --primary-light: #00a3e0;    /* Azul Celeste Salud */
  --primary-tint: #eaf6fc;     /* Tono suave del azul celeste */
  --accent: #2e7d32;           /* Verde Vida Institucional */
  --accent-dark: #1b5e20;      /* Verde profundo derivado */
  --accent-bright: #a3e53b;    /* Verde Claro Vitalidad */
  --accent-tint: #f4fbe8;      /* Tono suave del verde vitalidad */
  --ink: #004b87;              /* Textos principales y encabezados */
  --ink-soft: #3f5d75;         /* Texto de apoyo azul grisáceo */
  --bg: #ffffff;
  --bg-soft: #f5fafd;
  --border: #d9e8f2;
  --tint-border: #a9d8f0;
  --white: #ffffff;
  --success: #2e7d32;
  --danger: #dc2626;

  --font: 'Plus Jakarta Sans', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px -12px rgba(15, 23, 42, 0.2);
  --shadow-xl: 0 32px 80px -16px rgba(0, 75, 135, 0.28);
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  /* Prevenir que Chrome fuerce inversión de colores automática */
  forced-color-adjust: none;
}

body {
  margin: 0;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-family: var(--font-display);
}

h1 {
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section:nth-of-type(even) {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid var(--tint-border);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 75, 135, 0.06);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  text-wrap: balance;
}

.section-head p {
  margin-top: 14px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 640px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 14px;
  padding: 15px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  letter-spacing: -0.015em;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 14px 28px -10px rgba(0, 75, 135, 0.5);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: 0 18px 36px -12px rgba(46, 125, 50, 0.45);
}

.btn-ghost {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary-light);
}

.btn-ghost:hover {
  background: var(--primary-tint);
}

/* ---------- Animaciones ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 163, 224, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(0, 163, 224, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 163, 224, 0);
  }
}

@keyframes hero-card-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-anim {
  animation: hero-card-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-anim {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }
}

/* ==========================================================================
   MODO OSCURO — Solo se activa con el panel de accesibilidad (.dark-theme)
   Paleta corporativa del logo VITAHER IPS con alto contraste y legibilidad
   ========================================================================== */
html.dark-theme {
  color-scheme: dark;

  /* Fondos: azul marino profundo derivado del azul Vitaher */
  --bg:             #06182b;
  --bg-soft:        #091f36;
  --white:          #0c2740;

  /* Azul primario más luminoso (visible sobre fondo oscuro) */
  --primary:        #4fb3e8;
  --primary-dark:   #1b7fb5;
  --primary-light:  #7fd4f5;
  --primary-tint:   #0b2b47;

  /* Verde acento más vivo (visible sobre fondo oscuro) */
  --accent:         #5fbf63;
  --accent-dark:    #2e7d32;
  --accent-bright:  #a3e53b;
  --accent-tint:    #122b18;

  /* Texto blanco/gris claro — máxima legibilidad */
  --ink:            #f2f9ff;
  --ink-soft:       #a7c3d8;

  /* Bordes */
  --border:         #143a58;
  --tint-border:    #1f5a7e;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 32px 80px -16px rgba(0, 75, 135, 0.45);
}

/* Tarjetas de servicios en modo oscuro — fondo y texto legible */
html.dark-theme .servicio,
html.dark-theme .hero-card,
html.dark-theme .nosotros-card,
html.dark-theme .valor,
html.dark-theme .faq-item {
  background: #091f36;
  border-color: #143a58;
  color: var(--ink);
}

html.dark-theme .servicio h3,
html.dark-theme .servicio p,
html.dark-theme .servicio li {
  color: var(--ink);
}

/* Iconos de servicios — visibles en modo oscuro */
html.dark-theme .servicio-icon {
  background: #0b2b47;
  border-color: #1f5a7e;
  color: var(--primary-light);
}

html.dark-theme .servicio li svg {
  color: var(--accent-bright);
}

/* Hero en modo oscuro */
html.dark-theme .hero {
  background:
    radial-gradient(1100px 560px at 85% -10%, rgba(59, 158, 222, 0.1), transparent 60%),
    radial-gradient(900px 480px at -10% 20%, rgba(0, 40, 100, 0.18), transparent 60%),
    linear-gradient(180deg, #06182b 0%, #091f36 100%);
}

html.dark-theme .hero h1,
html.dark-theme .hero p,
html.dark-theme h1,
html.dark-theme h2,
html.dark-theme h3,
html.dark-theme h4 {
  color: var(--ink);
}

/* Hero card flotante */
html.dark-theme .hero-card {
  background: #091f36;
  border-color: #143a58;
}

html.dark-theme .hero-card h3,
html.dark-theme .hero-card p {
  color: var(--ink);
}

html.dark-theme .hero-card-list li {
  color: var(--ink);
}

html.dark-theme .hero-card-list svg {
  color: var(--primary-light);
}

/* Secciones alternas */
html.dark-theme .section:nth-of-type(even),
html.dark-theme .servicios {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

/* Modal en modo oscuro */
html.dark-theme .modal {
  background: #091f36;
  border-color: #143a58;
  color: var(--ink);
}

html.dark-theme body {
  background: var(--bg);
  color: var(--ink-soft);
}

html.dark-theme .navbar {
  background: rgba(9, 15, 31, 0.9);
  border-bottom-color: rgba(30, 49, 88, 0.8);
}

html.dark-theme .navbar.scrolled {
  background: rgba(9, 15, 31, 0.98);
  border-bottom-color: var(--border);
}

html.dark-theme .navbar .logo-text strong {
  color: #ffffff;
}

html.dark-theme .section:nth-of-type(even) {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

html.dark-theme .section-label {
  background: rgba(0, 75, 135, 0.35);
  border-color: rgba(0, 163, 224, 0.4);
  color: var(--primary-light);
}

html.dark-theme .btn-ghost {
  background: transparent;
  color: var(--primary-light);
  border-color: var(--primary-light);
}

html.dark-theme .btn-ghost:hover {
  background: var(--primary-tint);
}

html.dark-theme .form-input,
html.dark-theme .form-select,
html.dark-theme .form-textarea {
  background: #091f36;
  color: var(--ink);
  border-color: var(--border);
}

html.dark-theme .form-input:focus,
html.dark-theme .form-select:focus,
html.dark-theme .form-textarea:focus {
  background: #0c2740;
  border-color: var(--primary-light);
}

html.dark-theme .a11y-header {
  background: #091f36;
  border-bottom-color: var(--border);
}

html.dark-theme .a11y-header-text strong {
  color: var(--primary-light);
}

html.dark-theme .a11y-option {
  background: #091f36;
  border-color: var(--border);
  color: var(--ink);
}

html.dark-theme .a11y-option span {
  background: #0c2740;
  border-color: var(--border);
  color: var(--ink);
}

html.dark-theme .a11y-option:hover {
  background: var(--primary-tint);
  border-color: var(--primary-light);
}

html.dark-theme .a11y-option.is-active {
  background: var(--primary-tint);
  border-color: var(--primary-light);
  color: var(--primary-light);
}

html.dark-theme .a11y-reset {
  background: #091f36;
  border-color: var(--border);
  color: var(--ink-soft);
}

html.dark-theme .a11y-reset:hover {
  background: #0c2740;
  color: var(--ink);
}

/* ==========================================================================
   MODO OSCURO — Componentes con colores hardcoded
   ========================================================================== */

/* Hero badge */
html.dark-theme .hero-badge {
  background: rgba(15, 39, 71, 0.9);
  border-color: rgba(96, 186, 236, 0.35);
  color: var(--primary-light);
}

/* Hero stats (barra de estadísticas) */
html.dark-theme .hero-stats {
  background: linear-gradient(135deg, #06182b 0%, #091f36 100%);
  border-color: rgba(30, 49, 88, 0.8);
}

html.dark-theme .hero-stat strong {
  color: var(--accent-bright);
}

html.dark-theme .hero-stat span {
  color: #94a3b8;
}

/* Hero: fondo decorativo detrás de la card */
html.dark-theme .hero-card-wrap-bg {
  background: linear-gradient(135deg, rgba(59, 158, 222, 0.15), rgba(0, 75, 135, 0.1));
}

/* Destacados: fondo de la sección */
html.dark-theme .destacados {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

/* Nosotros — card misión/visión */
html.dark-theme .card-mv {
  background: #091f36;
  border-color: #143a58;
  color: var(--ink);
}

html.dark-theme .card-mv h2,
html.dark-theme .card-mv h3,
html.dark-theme .card-mv p {
  color: var(--ink);
}

html.dark-theme .card-mv .card-tag {
  color: var(--primary-light);
}

/* Nosotros — cards de valores */
html.dark-theme .valor {
  background: #091f36;
  border-color: #143a58;
}

html.dark-theme .valor h3,
html.dark-theme .valor p {
  color: var(--ink);
}

html.dark-theme .valor .num {
  color: var(--primary-light);
}

/* Nosotros — sección "¿Por qué VITAHER?" */
html.dark-theme .porque {
  background: linear-gradient(135deg, #06182b 0%, #091f36 100%);
  color: #cbd5e1;
  border: 1px solid #143a58;
}

html.dark-theme .porque h2 {
  color: #f8fafc;
}

html.dark-theme .badge {
  background: rgba(59, 158, 222, 0.08);
  border-color: rgba(59, 158, 222, 0.2);
  color: #e2e8f0;
}

html.dark-theme .badge svg {
  color: var(--primary-light);
}

/* Servicios — página interna */
html.dark-theme .servicios-grid .servicio {
  background: #091f36;
  border-color: #143a58;
}

/* Formularios */
html.dark-theme input,
html.dark-theme select,
html.dark-theme textarea {
  background: #091f36;
  border-color: #143a58;
  color: var(--ink);
}

html.dark-theme input::placeholder,
html.dark-theme textarea::placeholder {
  color: #64748b;
}

html.dark-theme input:focus,
html.dark-theme select:focus,
html.dark-theme textarea:focus {
  border-color: var(--primary-light);
  background: #0c2740;
}

/* Footer */
html.dark-theme footer {
  background: #04080f;
  color: #94a3b8;
}

html.dark-theme footer h3,
html.dark-theme footer strong {
  color: #f8fafc;
}

html.dark-theme footer a {
  color: #94a3b8;
}

html.dark-theme footer a:hover {
  color: var(--primary-light);
}

/* WhatsApp Preview */
html.dark-theme .wa-preview {
  background: #091f36;
  border-color: #143a58;
}

html.dark-theme .wa-bubble {
  background: #0c2740;
  color: var(--ink);
}

/* RutaCuidado / pasos de atención */
html.dark-theme .paso {
  background: #091f36;
  border-color: #143a58;
  color: var(--ink);
}

html.dark-theme .paso h3,
html.dark-theme .paso p {
  color: var(--ink);
}

/* Sección label (etiqueta de categoría) */
html.dark-theme .section-label {
  background: rgba(0, 75, 135, 0.35);
  border-color: rgba(96, 186, 236, 0.4);
  color: var(--primary-light);
}

/* Section headings */
html.dark-theme .section-heading,
html.dark-theme .section-sub {
  color: var(--ink);
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.12), 0 4px 12px -4px rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(226, 232, 240, 1);
}

.navbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.logo {
  justify-self: start;
}

.nav-links {
  justify-self: end;
  justify-content: flex-end;
}

.nav-cta,
.nav-toggle,
.toggle {
  justify-self: end;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.logo-text small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.nav-links a:not(.nav-cta) {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--primary);
}

.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-toggle:hover {
  background-color: var(--primary-tint);
  color: var(--primary);
}

.nav-backdrop {
  display: none;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Fondo oscuro interactivo (Backdrop) */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow-lg);
    padding: 12px 5%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 50;
    transition: max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.22s ease,
                padding 0.22s ease;
  }

  .nav-links.is-open {
    max-height: 75vh;
    opacity: 1;
    padding: 14px 5% 24px;
    overflow-y: auto;
  }

  .nav-links a:not(.nav-cta) {
    padding: 13px 12px;
    border-bottom: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .nav-links a:not(.nav-cta):hover {
    background: var(--primary-tint);
    color: var(--primary);
  }

  .nav-cta {
    margin-top: 16px;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.95rem;
  }
}

html.dark-theme .nav-backdrop {
  background: rgba(0, 0, 0, 0.72);
}
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 120px 0 0;
  background:
    radial-gradient(1100px 560px at 85% -10%, rgba(0, 163, 224, 0.18), transparent 60%),
    radial-gradient(900px 480px at -10% 20%, rgba(0, 75, 135, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(238, 247, 252, 0.92) 0%, rgba(255, 255, 255, 0.96) 75%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
  filter: saturate(0.9) contrast(1.05);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--tint-border);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-highlight {
  position: relative;
  color: var(--primary);
}

.hero-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 12px;
  background: rgba(0, 163, 224, 0.22);
  border-radius: 6px;
  z-index: -1;
}

.hero-text {
  margin: 20px 0 28px;
  font-size: 1.05rem;
  max-width: 520px;
  line-height: 1.65;
}

.hero-text em {
  color: var(--primary-dark);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card-wrap {
  position: relative;
}

.hero-card-wrap-bg {
  position: absolute;
  inset: -26px;
  background: linear-gradient(135deg, rgba(0, 163, 224, 0.28), rgba(0, 75, 135, 0.12));
  border-radius: 42px;
  transform: rotate(4deg);
  z-index: 0;
}

.hero-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 24px 60px -12px rgba(0, 75, 135, 0.25), 0 8px 24px -8px rgba(0, 75, 135, 0.2);
  padding: 32px 28px;
  animation: float 7s ease-in-out infinite;
}

.hero-card-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 16px 32px -8px rgba(0, 75, 135, 0.6);
  margin-bottom: 22px;
  animation: pulse-ring 3.2s ease-out infinite;
}

.hero-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.hero-card p {
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.hero-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-card-list svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

.hero-stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%);
  color: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 32px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 12px;
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat strong {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--accent-bright);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  min-width: 4ch;
}

.hero-stat span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 16px;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-card-wrap {
    max-width: 480px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 56px;
    padding: 28px;
  }

  .hero-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: 18px;
  }

  .hero-stat:last-child {
    border-bottom: none;
    padding-bottom: 6px;
  }
}.footer {
  background: linear-gradient(180deg, #0f172a 0%, #0b1e33 100%);
  color: #cbd5e1;
  padding: 72px 0 28px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent-bright));
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  margin-bottom: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
}

.footer-logo-img {
  height: 56px;
}

.footer-logo-text strong {
  color: var(--white);
}

.footer-logo-text small {
  color: var(--accent-bright);
}

.footer-tagline {
  display: inline-block;
  margin-top: 16px;
  font-style: italic;
  font-size: 0.85rem;
  color: #94a3b8;
  border-left: 3px solid var(--primary-light);
  padding-left: 12px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.footer-social a {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-4px);
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: 0 10px 22px -6px rgba(0, 163, 224, 0.55);
}

.social-label {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--white);
}

.footer-social a:hover .social-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  color: #cbd5e1;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-link-btn:hover {
  color: var(--primary-light);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
}

.footer-contact svg {
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact a {
  color: #cbd5e1;
}

.tiktok-icon {
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.social-item:hover .tiktok-icon {
  filter: brightness(0) invert(0.72);
}

.footer-map {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
  min-height: 260px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-map:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, 0.45);
}

.footer-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(25%);
  pointer-events: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transform: rotate(180deg);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.back-top:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: rotate(180deg) translateY(-3px);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-map {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  animation: modal-fade 0.2s ease;
}

.modal {
  display: flex;
  flex-direction: column;
  width: min(780px, 100%);
  max-height: min(86vh, 900px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 30px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary-tint), var(--white));
}

.modal-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.modal-header h2 {
  font-size: 1.5rem;
  margin-top: 4px;
}

.modal-updated {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 4px;
}

.modal-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
  background: var(--danger);
  border-color: var(--danger);
  color: var(--white);
}

.modal-body {
  padding: 26px 30px 32px;
  overflow-y: auto;
}

.modal-intro {
  font-size: 0.98rem;
  border-left: 4px solid var(--primary-light);
  padding-left: 16px;
  margin-bottom: 26px;
}

.modal-section {
  margin-bottom: 22px;
}

.modal-section h3 {
  font-size: 1.02rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.modal-section p {
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.modal-section ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
}

.modal-section li {
  font-size: 0.9rem;
}

.modal-footnote {
  font-size: 0.88rem;
  background: var(--primary-tint);
  border: 1px solid var(--tint-border);
  border-radius: 12px;
  padding: 14px 18px;
}

@media (max-width: 560px) {
  .modal-overlay {
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-header,
  .modal-body {
    padding-left: 18px;
    padding-right: 18px;
  }
}.a11y-float {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 60;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  padding: 0;
  overflow: hidden;
}

.a11y-float:hover {
  transform: translateY(-2px) scale(1.04);
  background: var(--primary-dark);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26);
}

.a11y-float:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

.a11y-panel {
  position: fixed;
  left: 18px;
  bottom: 84px;
  z-index: 60;
  width: 280px;
  max-width: calc(100vw - 28px);
  overflow: visible;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  /* Estado base explícito: evita parpadeo cuando animation:none cancela a11y-in */
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: a11y-in 0.22s ease;
}

.a11y-panel--compact {
  width: 260px;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.a11y-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  background: var(--primary-tint);
  border-bottom: 1px solid var(--tint-border);
  border-radius: 16px 16px 0 0;
}

.a11y-header-icon {
  width: 36px;
  height: 36px;
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.a11y-header-text strong {
  font-size: 0.9rem;
  color: var(--primary-dark);
  display: block;
  line-height: 1.2;
}

.a11y-header-text p {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

.a11y-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 0;
}

.a11y-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  height: 42px;
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
}

.a11y-option span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.a11y-option:hover {
  border-color: var(--primary-light);
  background: var(--primary-tint);
}

.a11y-option.is-active {
  background: var(--primary-tint);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

.a11y-option.is-active span {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.a11y-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 24px);
  margin: 12px 12px 14px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  height: 42px;
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
}

.a11y-reset:hover {
  background: var(--bg-soft);
  border-color: #cbd5e1;
  color: var(--ink);
}

@keyframes a11y-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.a11y-options::-webkit-scrollbar,
.a11y-panel::-webkit-scrollbar {
  width: 6px;
}

.a11y-options::-webkit-scrollbar-thumb,
.a11y-panel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

@media (max-width: 640px) {
  .a11y-float {
    left: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  /* Panel compacto flotante — NO ocupa todo el ancho en móvil */
  .a11y-panel {
    left: 14px;
    right: auto;
    bottom: 78px;
    top: auto;
    width: 270px;
    max-width: calc(100vw - 28px);
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    /* restablecer los overrides de bottom-sheet */
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .a11y-panel--compact {
    width: 270px;
    max-width: calc(100vw - 28px);
    height: auto;
    max-height: 70vh;
    overflow-y: auto;
  }
}

.a11y-reduced-motion *,
.a11y-reduced-motion *::before,
.a11y-reduced-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

.a11y-subtitles video::cue {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.a11y-high-contrast {
  filter: contrast(1.2);
}
.a11y-high-contrast body {
  background: #fff !important;
  color: #000 !important;
}
.a11y-high-contrast * {
  color: inherit !important;
  background-color: inherit !important;
  border-color: #000 !important;
}
.a11y-invert-colors {
  filter: invert(100%) hue-rotate(180deg);
}
.a11y-underline-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.a11y-float.dragging {
  cursor: grabbing !important;
  transform: scale(1.06);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.a11y-float {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

/* ==========================================================================
   Aviso emergente amigable (Estilo Asistente Profesional)
   ========================================================================== */
.a11y-hint {
  position: fixed;
  left: 80px;
  bottom: 18px;
  height: 52px; /* Altura exacta idéntica al botón para alineación perfecta */
  box-sizing: border-box;
  z-index: 59;
  width: auto;
  max-width: calc(100vw - 92px);
  background: linear-gradient(135deg, #003a68 0%, #002244 100%);
  border: 1.5px solid rgba(0, 163, 224, 0.45);
  border-radius: 14px;
  padding: 0 16px 0 12px;
  box-shadow: 0 14px 34px -4px rgba(0, 35, 75, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  animation: a11y-hint-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.a11y-hint:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: 0 16px 36px -4px rgba(0, 75, 135, 0.5);
}

.a11y-hint-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 163, 224, 0.16);
  border: 1px solid rgba(0, 163, 224, 0.35);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.a11y-hint-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  text-align: left;
}

.a11y-hint-content strong {
  display: block;
  font-size: 0.81rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
}

.a11y-hint-content p {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

@keyframes a11y-hint-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .a11y-hint {
    left: 74px;
    bottom: 14px;
    height: 52px;
    padding: 0 12px 0 10px;
    gap: 10px;
    max-width: calc(100vw - 86px);
  }

  .a11y-hint-icon {
    width: 30px;
    height: 30px;
  }

  .a11y-hint-content strong {
    font-size: 0.76rem;
  }

  .a11y-hint-content p {
    font-size: 0.68rem;
  }
}

html.dark-theme .a11y-hint {
  background: linear-gradient(135deg, #0f1c36 0%, #091224 100%);
  border-color: rgba(0, 163, 224, 0.6);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
}

html.dark-theme .a11y-hint-content strong {
  color: #ffffff;
}

html.dark-theme .a11y-hint-content p {
  color: #94a3b8;
}
