/* ==========================================================================
   LEVELEIT LANDING — style.css
   Índice (Ctrl+F para saltar):

   1.  Variables globales (:root)
   2.  Base y layout (body, .page-shell, .container-wide)
   3.  Header desktop (components/header.php)
   4.  Nav dropdown “Soluciones” + acordeón móvil
   5.  Botones (.btn-primary)
   6.  Home — títulos (.section-title)
   7.  Home — #soluciones (.feature-card)
   8.  Home — iconos de marca (Médica, Educa, etc.)
   9.  Home — #por-que (.why-row — solo tema claro)
  10.  Home — #proceso (.process-*)
  11.  Home — pills beneficios (.benefit-pill)
  12.  Home — #faq (.faq-*)
  13.  Home — #contacto (.cta-band-*)
  14.  Header fijo + menú móvil (.menu-panel)
  15.  Tokens responsive globales (:root en @media)
  16.  Legal (legal/*.php)
  17.  Footer — toggle tema (.theme-toggle)
  18.  Tema claro (html[data-theme="light"])
  19.  Accesibilidad (prefers-reduced-motion)

  Páginas con CSS propio:
  - assets/css/nosotros.css — nosotros.php
   ========================================================================== */

/* --- 1. Variables globales — colores, espaciado, header --- */
:root {
  --cookie-h: 0px;
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #6ec8ff;
  --violet: #9b8fd9;
  --sky: #8bb8ff;
  --indigo: #8a9dff;
  --amber: #e0b35a;
  --rose: #e08a9a;
  --medica: #f07178;
  --educa: #6ec8ff;
  --btn: #1e4d7a;
  --btn-hover: #2863a0;
  --gutter: clamp(16px, 3.2vw, 24px);
  --header-offset: 60px;
  --section-space: 6rem;
  --section-space-tight: 3rem;
  --hero-space: 5rem;
  --page-bottom: 6rem;
}

@media (min-width: 640px) {
  :root {
    --header-offset: 68px;
    --section-space: 8rem;
    --section-space-tight: 3.5rem;
    --hero-space: 7rem;
    --page-bottom: 8rem;
  }
}

@media (min-width: 768px) {
  :root {
    --header-offset: 72px;
    --section-space: 10rem;
    --section-space-tight: 4rem;
    --page-bottom: 10rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-offset: 76px;
    --section-space: 12rem;
    --section-space-tight: 5rem;
    --hero-space: 8rem;
    --page-bottom: 12rem;
  }
}

/* --- 2. Base y layout ---
   Archivos: todas las páginas
   Elementos: <body>, .page-shell, .container-wide, .muted */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at 0% 0%, rgba(12, 22, 77, 0.14), transparent 36%),
    radial-gradient(
      circle at 100% 18%,
      rgba(75, 150, 235, 0.12),
      transparent 32%
    ),
    radial-gradient(
      circle at 70% 100%,
      rgba(30, 70, 140, 0.22),
      transparent 40%
    ),
    linear-gradient(180deg, #04070d 0%, #07111c 25%, #0b1524 55%, #0f1a2c 100%);
  color: var(--text);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.muted {
  color: var(--muted);
}

.page-shell {
  position: relative;
  overflow-x: clip;
  isolation: isolate;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(126, 145, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 145, 255, 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 92%);
}

.page-shell > * {
  position: relative;
  z-index: 1;
}

.container-wide {
  width: min(1280px, calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* --- 3. Header — barra superior desktop (components/header.php) --- */

/* --- 4. Nav — dropdown “Soluciones” (desktop) y acordeón (móvil) --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  color: #fff;
}

.nav-dropdown-chevron {
  width: 1rem;
  height: 1rem;
  opacity: 0.8;
  transition: transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron,
.menu-accordion.is-open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 70;
  min-width: 17.5rem;
  padding-top: 0.75rem;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 140ms ease,
    visibility 140ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-item {
  color: #f8fafc !important;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-item:focus-visible {
  outline: 2px solid rgba(110, 200, 255, 0.55);
  outline-offset: 2px;
}

.menu-accordion-panel {
  display: grid;
  gap: 0.35rem;
  margin: 0.35rem 0 0.15rem;
  padding-left: 0.55rem;
}

.menu-accordion-panel[hidden] {
  display: none !important;
}

.menu-panel-sublink:hover,
.menu-panel-sublink:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(110, 200, 255, 0.24);
}

.menu-panel-sublink:focus-visible {
  outline: 2px solid rgba(110, 200, 255, 0.55);
  outline-offset: 2px;
}

/* --- 5. Botones — “Agendar Demo”, CTA, menú móvil --- */
.btn-primary {
  min-width: 10.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--btn);
  transition:
    background 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
}

.btn-primary:hover {
  background: var(--btn-hover);
  box-shadow: 0 8px 18px rgba(30, 77, 122, 0.35);
}

/* --- 6. Home — títulos de sección ---
   Archivo: index.php (y otras páginas)
   Elementos: .section-title, .hero-title (color en tema claro) */
.section-title {
  font-size: clamp(1.55rem, 1.1rem + 2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
}

@media (max-width: 479.98px) {
  .section-title {
    font-size: clamp(1.4rem, 7.2vw, 1.75rem);
  }
}

/* --- 7. Home — #soluciones tarjetas de plataformas (index.php) --- */
.feature-card {
  background: linear-gradient(180deg, rgb(14, 26, 45), rgba(5, 37, 71, 0.272));
  border: 1px solid transparent;
  box-shadow: 0 18px 50px rgba(3, 7, 18, 0.3);
}

/* --- 8. Home — iconos y links de marca por plataforma ---
   Tarjetas Médica / Educa / Infra y grid “Por qué” */
.icon-medica {
  color: var(--medica);
  border-color: rgba(240, 113, 120, 0.35);
  background: rgba(240, 113, 120, 0.1);
}

.link-medica {
  color: var(--medica);
}

.link-medica:hover {
  color: #ff9aa0;
}

.icon-educa {
  color: var(--educa);
  border-color: rgba(110, 200, 255, 0.35);
  background: rgba(110, 200, 255, 0.1);
}

.link-educa {
  color: var(--educa);
}

.link-educa:hover {
  color: #a8e0ff;
}

.icon-cyan {
  color: var(--cyan);
  border-color: rgba(110, 200, 255, 0.28);
  background: rgba(110, 200, 255, 0.08);
}

.icon-violet {
  color: var(--violet);
  border-color: rgba(155, 143, 217, 0.3);
  background: rgba(155, 143, 217, 0.1);
}

.icon-sky {
  color: var(--sky);
  border-color: rgba(139, 184, 255, 0.3);
  background: rgba(139, 184, 255, 0.1);
}

.icon-indigo {
  color: var(--indigo);
  border-color: rgba(138, 157, 255, 0.3);
  background: rgba(138, 157, 255, 0.1);
}

.icon-amber {
  color: var(--amber);
  border-color: rgba(224, 179, 90, 0.32);
  background: rgba(224, 179, 90, 0.1);
}

.icon-rose {
  color: var(--rose);
  border-color: rgba(224, 138, 154, 0.3);
  background: rgba(224, 138, 154, 0.1);
}

/* --- 9. Home — #por-que (bordes en tema claro; layout en Tailwind) --- */

/* --- 10. Home — #proceso / cómo funciona (index.php) --- */
.process-marker {
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: -1.75rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--step-accent) 70%, transparent),
    rgba(106, 169, 255, 0.08)
  );
}

.process-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--step-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--step-accent) 22%, transparent);
  transform: translateX(-50%);
}

@media (min-width: 1024px) {
  .process-marker {
    left: 0;
    right: 0;
    top: 0.35rem;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      color-mix(in srgb, var(--step-accent) 65%, transparent),
      color-mix(in srgb, var(--step-accent) 12%, transparent)
    );
  }

  .process-step:last-child .process-marker {
    right: 50%;
  }

  .process-dot {
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .process-step:first-child .process-dot {
    transform: translateY(-50%);
  }
}

/* --- 11. Home — pills de beneficios (index.php) ---
   Layout en Tailwind; colores por hijo vía ::before */
.benefit-pill {
  border: 1px solid rgba(134, 147, 255, 0.16);
  background: transparent;
}

.benefit-pill::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--pill-dot, var(--cyan));
  flex-shrink: 0;
}

.benefit-pill--cyan {
  --pill-dot: var(--cyan);
  border-color: rgba(110, 200, 255, 0.22);
}

.benefit-pill--violet {
  --pill-dot: var(--violet);
  border-color: rgba(155, 143, 217, 0.24);
}

.benefit-pill--indigo {
  --pill-dot: var(--indigo);
  border-color: rgba(138, 157, 255, 0.24);
}

.benefit-pill--amber {
  --pill-dot: var(--amber);
  border-color: rgba(224, 179, 90, 0.26);
}

.benefit-pill--sky {
  --pill-dot: var(--sky);
  border-color: rgba(139, 184, 255, 0.24);
}

/* --- 12. Home — #faq preguntas frecuentes (index.php + faq.js) ---
   .faq-item.active = acordeón abierto */
.faq-icon {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 5px;
}

@media (max-width: 767.98px) {
  .faq-icon {
    width: 11px;
    height: 11px;
    margin-top: 5px;
  }

  .faq-icon::before {
    width: 11px;
  }

  .faq-icon::after {
    height: 11px;
  }
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #b7c8ff;
  border-radius: 1px;
  transition: transform 0.4s ease;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.4s ease;
}

.faq-content-inner {
  overflow: hidden;
  min-height: 0;
  padding-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.faq-item.active .faq-content {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-content-inner {
  opacity: 1;
}

/* --- 13. Home — #contacto banda CTA final (index.php) --- */
.cta-band-inner {
  padding: clamp(1.85rem, 4vw, 2.75rem) clamp(1.35rem, 3.2vw, 2.4rem);
  border: 1px solid rgba(106, 169, 255, 0.18);
  border-radius: 1.35rem;
  background: linear-gradient(135deg, #152846 0%, #101d33 48%, #0c1729 100%);
  box-shadow: 0 18px 48px rgba(2, 8, 25, 0.38);
}

/* --- 14. Header fijo + menú móvil ---
   Archivos: components/header.php + assets/js/menu-component.js
   Elementos: .site-header, .menu-toggle, .menu-panel, .menu-backdrop
   Estado abierto: body.menu-open, .site-header.menu-open */

/* Logo dual: blanco (tema oscuro) / azul (tema claro) — components/logo.php */
.site-logo--light {
  display: none;
}

html[data-theme="light"] .site-logo--dark {
  display: none;
}

html[data-theme="light"] .site-logo--light {
  display: block;
}

.menu-toggle .menu-icon-close {
  display: none;
}

.site-header.menu-open .menu-toggle .menu-icon-open {
  display: none;
}

.site-header.menu-open .menu-toggle .menu-icon-close {
  display: block;
}

body.menu-open {
  overflow: hidden;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(2, 8, 25, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.menu-backdrop[hidden] {
  display: none !important;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.menu-panel {
  position: fixed;
  top: var(--header-offset);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  padding: 1.25rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background: #0b1524;
  border-top: 1px solid rgba(134, 147, 255, 0.14);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    visibility 220ms ease;
}

body.menu-open .menu-panel {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-panel-link:hover,
.menu-panel-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(110, 200, 255, 0.28);
}

.menu-panel-link:focus-visible {
  outline: 2px solid rgba(110, 200, 255, 0.55);
  outline-offset: 2px;
}

.menu-panel-btn--primary {
  background: var(--btn);
  color: #fff;
  border: 1px solid transparent;
}

.menu-panel-btn--primary:hover {
  background: var(--btn-hover);
}

/* Ancla: compensa header fijo al hacer scroll a #sección */
main section[id] {
  scroll-margin-top: calc(var(--header-offset) + 1rem);
}

/* --- 15. Tokens responsive globales (:root, body) --- */
@media (max-width: 767.98px) {
  body {
    font-size: 0.975rem;
    line-height: 1.6;
  }
}

@media (max-width: 479.98px) {
  :root {
    --gutter: 14px;
  }
}

/* --- 16. Legal — legal/*.php (términos, privacidad, índice) --- */
.legal-page {
  max-width: 68rem;
  padding-bottom: var(--page-bottom);
}

.legal-hero {
  padding-top: var(--hero-space);
  padding-bottom: 0;
  text-align: center;
}

.legal-hero__title {
  width: 100%;
  font-size: clamp(2.35rem, 1.75rem + 2.8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.legal-hero__lead {
  width: 100%;
  max-width: 56rem;
  margin-top: 1.75rem;
  margin-inline: auto;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.125rem);
  line-height: 1.75;
}

@media (min-width: 640px) {
  .legal-hero__lead {
    margin-top: 2rem;
  }
}

.legal-content {
  margin-top: 2.25rem;
  display: grid;
  gap: 0.35rem;
}

.legal-content h2 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-content ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.legal-content a {
  color: #9ec8ff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-content a:hover {
  color: #c5ddff;
}

.legal-content strong {
  color: #f8fafc;
  font-weight: 650;
}

.legal-id {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: var(--section-space-tight);
  padding: 1.1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid #2a3a55;
  background: #1b283c;
}

.legal-id__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-id__brand {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.legal-id__caption {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.55);
}

.legal-id__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem 1.25rem;
}

@media (min-width: 640px) {
  .legal-id__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .legal-id:has(.legal-id__row:nth-child(4)) .legal-id__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .legal-id:has(.legal-id__row:nth-child(4)) .legal-id__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.legal-id__row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.legal-id__icon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(168, 180, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: #9ec8ff;
}

.legal-id__icon svg {
  width: 0.85rem;
  height: 0.85rem;
}

.legal-id__text {
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: #e8eef8;
  text-decoration: none;
}

a.legal-id__text:hover {
  color: #c5ddff;
}

.legal-id__text--muted {
  color: rgba(226, 232, 240, 0.72);
}

.legal-index-list {
  list-style: none;
  margin: var(--section-space-tight) 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.legal-index-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.legal-index-card:hover {
  border-color: rgba(110, 200, 255, 0.28);
  background: rgba(110, 200, 255, 0.06);
}

.legal-index-card__title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.legal-index-card__desc {
  font-size: 0.92rem;
  line-height: 1.55;
}

.legal-index-card__cta {
  margin-top: 0.35rem;
  color: #9ec8ff;
  font-size: 0.85rem;
  font-weight: 600;
}

.legal-index-card:hover .legal-index-card__cta {
  color: #c5ddff;
}

/* --- 18. Footer — toggle tema (components/footer.php) --- */

.theme-toggle {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  width: 3.35rem;
  height: 1.75rem;
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(110, 200, 255, 0.55);
  outline-offset: 4px;
  border-radius: 999px;
}

.theme-toggle-track {
  --track-w: 3.35rem;
  --track-h: 1.75rem;
  --thumb: 1.35rem;
  --pad: 0.2rem;
  position: relative;
  flex-shrink: 0;
  width: var(--track-w);
  height: var(--track-h);
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.1);
  transition:
    background 0.35s ease,
    border-color 0.35s ease;
}

html[data-theme="light"] .theme-toggle-track {
  background: #f3f4f6;
  border-color: rgba(17, 24, 39, 0.12);
  box-shadow:
    inset 0 1px 2px rgba(17, 24, 39, 0.06),
    0 1px 2px rgba(17, 24, 39, 0.06);
}

.theme-track-icon {
  position: absolute;
  top: 50%;
  width: 0.72rem;
  height: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%);
  transition:
    color 0.35s ease,
    opacity 0.35s ease;
  pointer-events: none;
}

.theme-track-icon svg {
  width: 100%;
  height: 100%;
}

.theme-track-icon--moon {
  left: 0.55rem;
}

.theme-track-icon--sun {
  right: 0.55rem;
  color: rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] .theme-track-icon--moon {
  color: rgba(17, 24, 39, 0.22);
}

html[data-theme="light"] .theme-track-icon--sun {
  color: rgba(245, 158, 11, 0.75);
}

.theme-toggle-thumb {
  position: absolute;
  top: var(--pad);
  left: var(--pad);
  width: var(--thumb);
  height: var(--thumb);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #e8edf5);
  color: #1e293b;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.35s ease;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .theme-toggle-thumb {
  transform: translate3d(
    calc(var(--track-w) - var(--thumb) - var(--pad) * 2),
    0,
    0
  );
  background: linear-gradient(180deg, #fff9e6, #fcd34d);
  color: #92400e;
  box-shadow:
    0 2px 6px rgba(245, 158, 11, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.65);
}

.theme-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.78rem;
  height: 0.78rem;
  transition: opacity 0.25s ease;
}

.theme-icon-sun {
  opacity: 0;
}

.theme-icon-moon {
  opacity: 1;
}

html[data-theme="light"] .theme-icon-sun {
  opacity: 1;
}

html[data-theme="light"] .theme-icon-moon {
  opacity: 0;
}

.theme-toggle:active .theme-toggle-thumb {
  transition-duration: 0.22s;
}

/* --- 19. Tema claro — html[data-theme="light"] (theme-toggle.js) --- */

/* 19a. Variables y fondo general */
html[data-theme="light"] {
  color-scheme: light;
  --text: #111827;
  --muted: #6b7280;
  --btn: #2b6cb0;
  --btn-hover: #2f7bcc;
  --surface-header: #f6f8fb;
  --surface-glass: rgba(246, 248, 251, 0.96);
  --border-header: #dde4ec;
}

html[data-theme="light"] body {
  background: #ffffff;
  color: var(--text);
}

html[data-theme="light"] .page-shell::before {
  background-image:
    linear-gradient(rgba(100, 116, 139, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 116, 139, 0.055) 1px, transparent 1px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 92%);
}

/* 19b. Header, nav y menú móvil */
html[data-theme="light"] .site-header {
  background: var(--surface-glass) !important;
  border-bottom-color: var(--border-header) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

html[data-theme="light"] .site-header a,
html[data-theme="light"] .header-nav a,
html[data-theme="light"] .nav-dropdown-trigger {
  color: #6b7280;
}

html[data-theme="light"] .site-header a:hover,
html[data-theme="light"] .header-nav a:hover,
html[data-theme="light"] .nav-dropdown:hover .nav-dropdown-trigger,
html[data-theme="light"] .nav-dropdown:focus-within .nav-dropdown-trigger {
  color: #111827;
}

html[data-theme="light"] .menu-toggle {
  color: #111827 !important;
  border-color: #d1d5db !important;
  background: #ffffff !important;
}

html[data-theme="light"] .nav-dropdown-menu .nav-dropdown-panel {
  background: #f8fafc;
  border-color: var(--border-header);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

html[data-theme="light"] .nav-dropdown-item {
  color: #374151 !important;
}

html[data-theme="light"] .nav-dropdown-item:hover,
html[data-theme="light"] .nav-dropdown-item:focus-visible {
  background: #e8edf3;
}

html[data-theme="light"] .nav-dropdown-item-title {
  color: #111827;
}

html[data-theme="light"] .nav-dropdown-item-desc {
  color: #6b7280;
}

html[data-theme="light"] .menu-panel {
  background: var(--surface-header);
  border-top-color: var(--border-header);
}

html[data-theme="light"] .menu-panel-link,
html[data-theme="light"] .menu-accordion-trigger {
  color: #111827;
  background: #ffffff;
  border-color: #d1d5db;
}

html[data-theme="light"] .menu-panel-sublink {
  color: #374151;
  background: #f8fafb;
  border-color: #d1d5db;
}

html[data-theme="light"] .menu-backdrop {
  background: rgba(17, 24, 39, 0.25);
}

/* 19c. Home — títulos, tarjetas, FAQ, CTA */
html[data-theme="light"] .section-title,
html[data-theme="light"] .hero-title,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] main .text-white:not(.btn-primary),
html[data-theme="light"] .feature-card .text-white,
html[data-theme="light"] .feature-card h3 {
  color: #111827 !important;
}

html[data-theme="light"] #inicio .bg-white\/30 {
  background-color: #9ca3af !important;
}

html[data-theme="light"] .btn-primary,
html[data-theme="light"] .site-header .btn-primary,
html[data-theme="light"] .menu-panel-btn--primary {
  color: #ffffff !important;
}

html[data-theme="light"] .feature-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: #e5e7eb;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.06),
    0 8px 24px rgba(15, 23, 42, 0.07) !important;
}

html[data-theme="light"] #soluciones .grid .feature-card:first-child {
  border-color: rgba(240, 113, 120, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

html[data-theme="light"] #soluciones .grid .feature-card:last-child {
  border-color: rgba(43, 108, 176, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

html[data-theme="light"] #soluciones > .feature-card {
  border-color: rgba(180, 130, 50, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

html[data-theme="light"] .feature-card .feature-icon {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .feature-card p {
  color: #6b7280;
}

html[data-theme="light"] .feature-card a.border-white\/12 {
  color: #111827 !important;
  border-color: #d1d5db !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .feature-card a.border-white\/12:hover {
  background: #f9fafb !important;
  border-color: #9ca3af !important;
}

html[data-theme="light"] .why-row,
html[data-theme="light"] .process-step,
html[data-theme="light"] .faq-list,
html[data-theme="light"] .faq-item {
  border-color: #e5e7eb !important;
}

/* 19d. Footer */
html[data-theme="light"] footer {
  background: var(--surface-glass) !important;
  border-top: none !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #374151;
}

html[data-theme="light"] footer h3,
html[data-theme="light"] footer .text-white {
  color: #111827 !important;
}

html[data-theme="light"] footer .border-white\/5 {
  border-color: #e5e7eb !important;
}

html[data-theme="light"] footer a.muted,
html[data-theme="light"] .footer-legal-row a {
  color: #6b7280;
}

html[data-theme="light"] footer a.muted:hover,
html[data-theme="light"] .footer-legal-row a:hover {
  color: #111827 !important;
}

html[data-theme="light"] .footer-legal-sep {
  background: #d1d5db;
}

html[data-theme="light"] .muted,
html[data-theme="light"] .faq-content-inner {
  color: #6b7280;
}

html[data-theme="light"] .cta-band-inner {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

html[data-theme="light"] .cta-band-inner .text-white:not(.btn-primary),
html[data-theme="light"] .cta-band-inner h2 {
  color: #111827 !important;
}

html[data-theme="light"] .cta-band-inner .btn-primary {
  color: #ffffff !important;
}

html[data-theme="light"] .process-marker {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--cyan) 35%, #e5e7eb),
    color-mix(in srgb, var(--cyan) 6%, #ffffff)
  );
}

@media (min-width: 1024px) {
  html[data-theme="light"] .process-marker {
    background: linear-gradient(
      90deg,
      color-mix(in srgb, var(--cyan) 35%, #e5e7eb),
      color-mix(in srgb, var(--cyan) 8%, #ffffff)
    );
  }
}

html[data-theme="light"] .process-dot {
  background: var(--cyan);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 22%, #ffffff);
}

html[data-theme="light"] .benefit-pill {
  color: #374151 !important;
  background: transparent;
  box-shadow: none;
}

html[data-theme="light"] .benefit-pill--cyan {
  border-color: rgba(43, 108, 176, 0.35);
}

html[data-theme="light"] .benefit-pill--violet {
  border-color: rgba(124, 58, 237, 0.28);
}

html[data-theme="light"] .benefit-pill--indigo {
  border-color: rgba(79, 70, 229, 0.28);
}

html[data-theme="light"] .benefit-pill--amber {
  border-color: rgba(180, 130, 50, 0.35);
}

html[data-theme="light"] .benefit-pill--sky {
  border-color: rgba(37, 99, 235, 0.28);
}

html[data-theme="light"] footer a[href*="facebook"],
html[data-theme="light"] footer a[href*="linkedin"] {
  color: #374151 !important;
  border-color: #c8d2dc !important;
  background: #ffffff !important;
}

html[data-theme="light"] footer a[href*="facebook"]:hover,
html[data-theme="light"] footer a[href*="linkedin"]:hover {
  color: #111827 !important;
  background: #f3f4f6 !important;
  border-color: #9ca3af !important;
}

html[data-theme="light"] .faq-icon::before,
html[data-theme="light"] .faq-icon::after {
  background: #6b7280;
}

/* 19f. Legal */
html[data-theme="light"] .legal-hero__title {
  color: #111827;
}

html[data-theme="light"] .legal-content h2,
html[data-theme="light"] .legal-content strong,
html[data-theme="light"] .legal-index-card__title {
  color: #0f172a;
}

html[data-theme="light"] .legal-index-card {
  background: #ffffff;
  border-color: #e5e7eb;
}

html[data-theme="light"] .legal-id {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

html[data-theme="light"] .legal-id__top {
  border-bottom-color: #e5e7eb;
}

html[data-theme="light"] .legal-id__brand {
  color: #0f172a;
}

html[data-theme="light"] .legal-id__caption {
  color: #6b7280;
}

html[data-theme="light"] .legal-id__icon {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #1a365d;
}

html[data-theme="light"] .legal-id__text {
  color: #111827;
}

html[data-theme="light"] a.legal-id__text:hover {
  color: #2b6cb0;
}

html[data-theme="light"] .legal-id__text--muted {
  color: #6b7280;
}

html[data-theme="light"] .legal-content a,
html[data-theme="light"] .legal-index-card__cta {
  color: #1a365d;
}

html[data-theme="light"] .legal-content a:hover,
html[data-theme="light"] .legal-index-card:hover .legal-index-card__cta {
  color: #2b6cb0;
}

/* --- 20. Accesibilidad — menos animaciones si el usuario lo pide --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .menu-backdrop,
  .menu-panel,
  .theme-toggle-thumb,
  .theme-icon,
  .theme-track-icon,
  .theme-toggle-track {
    transition: none;
  }
}
