/* ============================================================
   Awakelab — CSS compartido para páginas interiores
   Identidad AWK 2026 · estilo "bienvenida" (limpio · moderno)
   Rutas de assets relativas a esta carpeta: ../fonts/, ../imagenes/
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* TIPOGRAFÍAS (fallback local) */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-VariableFont_opsz,wght.woff") format("woff");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Light.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ════════════════════════════════════════════
   TOKENS — Paleta oficial AWK 2026
════════════════════════════════════════════ */
:root {
  /* Cianes vivos */
  --cyan-100:#D9FBFF; --cyan-200:#19F7F1; --cyan-300:#11EAEA;
  --cyan-400:#0FCED3; --cyan-500:#0ABCC9; --cyan-600:#0B93AA;
  /* Azules profundos */
  --blue-50:#F0F3FC;  --blue-100:#E2E6F2; --blue-200:#cdd6ea;
  --blue-300:#72A3C4; --blue-400:#4E7EA5; --blue-500:#3B6996;
  --blue-600:#34547A; --blue-700:#314668; --blue-800:#27334F;
  --navy-700:#003670; --navy-750:#003260; --navy-800:#01264C;
  --navy-850:#012142; --navy-900:#011932;

  /* Aliases de compatibilidad (usados por el marcado existente) */
  --color-bg:    #011932;
  --color-bg-2:  #01264C;
  --color-card:  #3B6996;
  --color-cyan:  #19F7F1;
  --color-blue:  #0FCED3;
  --color-text:  #F0F3FC;
  --color-muted: #9fb6d2;
  --color-line:  rgba(25, 247, 241, 0.16);

  --max-width:   1600px;
  --side-padding: clamp(24px, 5vw, 72px);
  --radius: 18px;
  --ease: cubic-bezier(.16,.84,.34,1);
  --font: "Poppins", "Segoe UI", Arial, sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  background: var(--navy-900);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* LAYOUT */
.page {
  min-height: 100vh;
  background:
    radial-gradient(120% 80% at 82% -8%, rgba(25, 247, 241, 0.10), transparent 46%),
    radial-gradient(90% 70% at 12% 46%, rgba(15, 206, 211, 0.06), transparent 40%),
    linear-gradient(180deg, #011932 0%, #01264C 55%, #011932 100%);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}

/* BOTÓN */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  border: 0;
  border-radius: 12px;
  padding: 14px 26px;
  background: linear-gradient(90deg, var(--cyan-200), var(--cyan-400));
  color: #011932;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 16px 40px -16px rgba(25, 247, 241, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 22px 50px -16px rgba(25, 247, 241, 0.65);
}
.button-ghost {
  background: transparent;
  border: 1px solid rgba(25, 247, 241, 0.40);
  color: var(--cyan-200);
  box-shadow: none;
  font-weight: 500;
}
.button-ghost:hover {
  background: rgba(25, 247, 241, 0.08);
  filter: none;
  transform: translateY(-2px);
}

/* ACENTO */
.accent { color: var(--cyan-200); font-style: italic; }

/* SECCIONES */
.section {
  padding-top: clamp(80px, 9vw, 128px);
  padding-bottom: clamp(80px, 9vw, 128px);
}
.section-dark   { background: var(--navy-800); }
.section-darker { background: var(--navy-850); }

/* ════════════════════════════════════════════
   EYEBROW — etiqueta editorial con línea
   (.section-badge reestilizada al estilo bienvenida)
════════════════════════════════════════════ */
.section-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: 22px;
}
.section-badge::before,
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--cyan-400);
  opacity: 0.7;
}
/* En cabeceras centradas, el eyebrow se centra solo gracias a inline-flex */
.section .section-heading .section-badge,
.section-dark .section-heading .section-badge { /* hereda alineación del heading */ }

/* Isotipo animado de cabecera de sección (visible en claro y oscuro) */
.section-iso {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(25, 247, 241, 0.6);
  margin-bottom: 18px;
  position: relative;
}
.section-iso img { width: 28px; height: 28px; display: block; position: relative; z-index: 1; }
/* Contraste sobre fondo claro: relleno oscuro tras el iris */
.section-light .section-iso,
main > section.section:nth-of-type(even) .section-iso { background: var(--navy-850); }
.section-iso::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(25, 247, 241, 0.40);
  animation: isoPulse 3s ease-out infinite;
}
@keyframes isoPulse {
  0%   { box-shadow: 0 0 0 0 rgba(25, 247, 241, 0.40); }
  70%  { box-shadow: 0 0 0 14px rgba(25, 247, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 247, 241, 0); }
}
@media (prefers-reduced-motion: reduce) { .section-iso::after { animation: none; } }
/* Centrado donde el heading está centrado */
.section .section-heading .section-iso,
.section-dark .section-heading .section-iso { margin-left: auto; margin-right: auto; }
/* Izquierda en secciones con imagen lateral */
.section-split-content .section-heading .section-iso,
.solutions-intro .section-heading .section-iso,
.hero-text-col .section-heading .section-iso { margin-left: 0; margin-right: 0; }

/* ENCABEZADO DE SECCIÓN */
.section-heading { max-width: 760px; margin-bottom: 52px; }
.section-heading h2 { font-size: clamp(28px, 3.4vw, 48px); }
.section-heading p,
.lead {
  color: var(--color-muted);
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 300;
  margin-top: 18px;
  max-width: 60ch;
  line-height: 1.6;
}

/* Centrado en secciones de ancho completo (sin imagen lateral) */
.section .section-heading,
.section-dark .section-heading {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section .section-heading p,
.section-dark .section-heading p {
  margin-left: auto;
  margin-right: auto;
}
/* Excepciones: secciones con imagen lateral → alineación izquierda */
.section-split-content .section-heading,
.hero-split-text .section-heading,
.solutions-intro .section-heading,
.hero-text-col .section-heading {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.section-split-content .section-heading p,
.hero-split-text .section-heading p,
.solutions-intro .section-heading p,
.hero-text-col .section-heading p {
  margin-left: 0;
  margin-right: 0;
}

/* ── NAVBAR (legacy .site-* — el header real vive en _header.html) ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(1, 25, 50, 0.85);
  border-bottom: 1px solid rgba(25, 247, 241, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-nav { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.site-logo img { width: clamp(148px, 12vw, 210px); height: auto; display: block; }

/* ════════════════════════════════════════════
   HERO DE PÁGINA — oscuro inmersivo (estilo bienvenida)
════════════════════════════════════════════ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 9vh, 120px);
  padding-bottom: clamp(72px, 8vw, 116px);
  background:
    radial-gradient(120% 95% at 50% 122%, rgba(25, 247, 241, 0.16) 0%, rgba(15, 206, 211, 0.05) 32%, transparent 62%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-850) 55%, var(--navy-800) 100%);
}
/* Malla de rejilla sutil con desvanecido radial */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(114, 163, 196, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 163, 196, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 18%, #000 0%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 18%, #000 0%, transparent 78%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }

/* Texto del hero sobre fondo oscuro */
.page-hero,
.page-hero h1,
.page-hero h2,
.page-hero h3 { color: var(--blue-50); }
.page-hero .page-hero-desc {
  color: #e8eefb;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(1, 19, 42, 0.55);
}
.page-hero .accent { color: var(--cyan-200); }
.page-hero .link-arrow { color: var(--cyan-200); }
.page-hero .metric-value { color: var(--cyan-200); }
.page-hero .metric-label { color: rgba(255, 255, 255, 0.72); }
.page-hero .page-metrics {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(25, 247, 241, 0.18);
}
.page-hero .page-metric { border-right-color: rgba(255, 255, 255, 0.12); }
.page-hero .breadcrumb a,
.page-hero .breadcrumb span { color: rgba(255, 255, 255, 0.62); font-weight: 500; }
.page-hero .breadcrumb [aria-current="page"] { color: var(--blue-50); }
.page-hero .breadcrumb-sep { color: rgba(255, 255, 255, 0.42); }

/* Eyebrow del hero: sin píldora, color cian claro */
.page-hero .section-badge { color: var(--cyan-300); background: none; border: 0; }

/* Vídeo de fondo del hero (algunas páginas) → cubre la rejilla */
.page-hero:has(.page-hero-bg-video) { background: var(--navy-900); }
.page-hero:has(.page-hero-bg-video)::before { display: none; }

/* Imagen de fondo anclada a la derecha del hero */
.hero-bg-image {
  position: absolute;
  top: 0; right: 0;
  width: 52%; height: 100%;
  z-index: 1;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 35%, rgba(0,0,0,0.9) 70%, black 100%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 35%, rgba(0,0,0,0.9) 70%, black 100%);
  opacity: 0.85;
}
.hero-text-col { max-width: 58%; }
.hero-text-col h1,
.hero-text-col .page-hero-desc { max-width: none; }
@media (max-width: 860px) {
  .hero-bg-image { display: none; }
  .hero-text-col { max-width: none; }
}

.page-hero h1 {
  font-size: clamp(36px, 4.6vw, 68px);
  margin-bottom: 24px;
  max-width: 18ch;
}
.page-hero-desc {
  color: var(--color-muted);
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 300;
  max-width: 56ch;
  margin-bottom: 38px;
  line-height: 1.55;
}

/* Hero split: texto izquierda · imagen derecha */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.hero-split h1,
.hero-split .page-hero-desc { max-width: none; }
.hero-split-image {
  display: flex; align-items: center; justify-content: center; min-width: 0;
}
.hero-split-image img {
  width: 100%; max-width: 100%; height: auto;
  max-height: 480px; object-fit: contain; object-position: center;
  display: block; border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(25, 247, 241, 0.16),
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(25, 247, 241, 0.10);
}
/* Hover sutil en imágenes/vídeos del hero: leve elevación + brillo cian */
.hero-split-image img,
.hero-split-image video {
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.hero-split-image img:hover,
.hero-split-image video:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 0 0 1px rgba(25, 247, 241, 0.34),
    0 34px 72px -20px rgba(0, 0, 0, 0.66),
    0 0 90px rgba(25, 247, 241, 0.18);
}
@media (prefers-reduced-motion: reduce) {
  .hero-split-image img,
  .hero-split-image video { transition: none; }
  .hero-split-image img:hover,
  .hero-split-image video:hover { transform: none; }
}
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split-image { order: -1; }
  .hero-split-image img { max-height: 280px; object-fit: contain; }
}
.hero-split.hero-split-fill { align-items: stretch; }
.hero-split-fill .hero-split-image img { height: 100%; max-height: 560px; object-fit: cover; }
@media (max-width: 860px) { .hero-split-fill .hero-split-image img { max-height: 320px; } }
.hero-split-fill.hero-split-contain .hero-split-image img { object-fit: contain; }

/* Métricas del hero */
.page-metrics {
  display: flex; align-items: stretch; gap: 0; flex-wrap: wrap;
  margin-bottom: 38px;
  border: 1px solid rgba(25, 247, 241, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: fit-content;
  overflow: hidden;
}
.page-metric { padding: 20px 28px; border-right: 1px solid rgba(255, 255, 255, 0.12); }
.page-metric:last-child { border-right: none; }
.metric-value {
  font-family: var(--font);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 600;
  color: var(--cyan-200);
  line-height: 1;
  display: block;
}
.metric-label {
  font-size: 11px; font-weight: 500;
  color: rgba(255, 255, 255, 0.66);
  margin-top: 6px; display: block; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.link-arrow {
  font-size: 15px; font-weight: 500; color: var(--cyan-200);
  display: inline-flex; align-items: center; gap: 5px; transition: gap 0.2s;
}
.link-arrow:hover { gap: 9px; }

/* ════════════════════════════════════════════
   TARJETAS — planas y limpias (estilo bienvenida)
════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.feature-card,
.solution-card,
.stat-card {
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(39, 51, 79, 0.50), rgba(1, 25, 50, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.feature-card { padding: 32px 30px; }
.feature-card:hover,
.solution-card:hover,
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(25, 247, 241, 0.28);
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(25, 247, 241, 0.06);
}
.feature-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(25, 247, 241, 0.10);
  border-radius: 12px;
  margin-bottom: 18px;
  color: var(--cyan-200);
  flex-shrink: 0;
}
.feature-card h3 {
  font-family: var(--font);
  font-size: 18px; font-weight: 600;
  margin-bottom: 9px;
  color: var(--color-text);
}
.feature-card p { color: var(--color-muted); font-size: 15px; font-weight: 300; line-height: 1.65; }

/* Grilla de 3 columnas */
.features-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Tarjeta que es enlace completo */
.feature-card-link {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.feature-card-link .link-arrow { margin-top: auto; padding-top: 16px; }

/* Número de paso */
.feature-step {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(25, 247, 241, 0.10);
  border: 1px solid rgba(25, 247, 241, 0.30);
  color: var(--cyan-200);
  font-weight: 600; font-size: 17px;
  margin-bottom: 18px;
}
.section-light .feature-step,
main > section.section:nth-of-type(even) .feature-step {
  background: rgba(11, 147, 170, 0.12);
  border-color: rgba(11, 147, 170, 0.35);
  color: var(--color-cyan);
}

/* ── STATS ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.stat-card { padding: 34px 26px; text-align: center; }
.stat-value {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 56px);
  color: var(--cyan-200);
  display: block; line-height: 1; margin-bottom: 10px;
}
.stat-label { font-size: 15px; color: var(--color-muted); font-weight: 300; display: block; }
.stat-note { font-size: 12px; color: rgba(255, 255, 255, 0.34); margin-top: 6px; display: block; }

/* ── CASO DE USO ── */
.case-block {
  padding: 38px 42px;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(39, 51, 79, 0.55), rgba(1, 25, 50, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.case-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-200), var(--cyan-400));
}
.case-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: 14px; display: block;
}
.case-block h3 { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 14px; }
.case-block > p { color: var(--color-muted); font-size: 16px; font-weight: 300; max-width: 760px; line-height: 1.7; }
.case-result {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 8px 18px;
  background: rgba(25, 247, 241, 0.08);
  border: 1px solid rgba(25, 247, 241, 0.22);
  border-radius: 100px;
  font-size: 14px; font-weight: 500; color: var(--cyan-200);
}

/* ── OTRAS SOLUCIONES / RELACIONADOS ── */
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.solution-card { display: block; padding: 26px; }
.card-icon-sm {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(25, 247, 241, 0.10);
  border-radius: 11px;
  color: var(--cyan-200);
  margin-bottom: 16px;
}
.solution-card h3 { font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; margin-bottom: 8px; }
.solution-card p { color: var(--color-muted); font-size: 14px; font-weight: 300; line-height: 1.6; }

/* ── CTA BAND ── */
.cta-band {
  padding: clamp(72px, 8vw, 116px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  border-top: 1px solid rgba(25, 247, 241, 0.12);
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 50%; top: -30%;
  width: 720px; height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(25, 247, 241, 0.12) 0%, rgba(15, 206, 211, 0.05) 42%, transparent 68%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(30px, 3.8vw, 54px); margin-bottom: 18px; }
.cta-band p {
  color: var(--color-muted); font-size: clamp(16px, 1.2vw, 20px); font-weight: 300;
  max-width: 560px; margin: 0 auto 36px; line-height: 1.6;
}
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .cards-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .page-metrics { width: 100%; flex-direction: row; }
}
@media (max-width: 640px) {
  :root { --side-padding: 22px; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-grid-4 { grid-template-columns: 1fr; }
  .case-block { padding: 26px 22px; }
  .page-metric { padding: 16px 20px; }
  .button { min-width: auto; padding: 12px 20px; font-size: 15px; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   SCROLL REVEAL + ANIMACIONES (global)
══════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal="left"]  { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="scale"] { transform: scale(0.94) translateY(16px); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

[data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-stagger].is-revealed > * { opacity: 1; transform: none; }
[data-stagger].is-revealed > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger].is-revealed > *:nth-child(2) { transition-delay: 90ms; }
[data-stagger].is-revealed > *:nth-child(3) { transition-delay: 180ms; }
[data-stagger].is-revealed > *:nth-child(4) { transition-delay: 270ms; }
[data-stagger].is-revealed > *:nth-child(5) { transition-delay: 360ms; }
[data-stagger].is-revealed > *:nth-child(6) { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] > * {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* Pop animado en cifras */
@keyframes metricPop {
  0%   { opacity: 0; transform: scale(0.72) translateY(10px); }
  100% { opacity: 1; transform: none; }
}
[data-stagger].is-revealed > *:nth-child(1) .metric-value,
[data-stagger].is-revealed > *:nth-child(1) .stat-value { animation: metricPop 0.5s var(--ease) 30ms both; }
[data-stagger].is-revealed > *:nth-child(2) .metric-value,
[data-stagger].is-revealed > *:nth-child(2) .stat-value { animation: metricPop 0.5s var(--ease) 130ms both; }
[data-stagger].is-revealed > *:nth-child(3) .metric-value,
[data-stagger].is-revealed > *:nth-child(3) .stat-value { animation: metricPop 0.5s var(--ease) 230ms both; }
[data-stagger].is-revealed > *:nth-child(4) .metric-value,
[data-stagger].is-revealed > *:nth-child(4) .stat-value { animation: metricPop 0.5s var(--ease) 330ms both; }

/* Brillo deslizante en botones */
.button { position: relative; overflow: hidden; }
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}
.button:hover::after { transform: translateX(100%); }

/* ══════════════════════════════════════════════════
   ALTERNANCIA OSCURO / CLARO
   Cada sección de contenido PAR se vuelve clara (blanca).
   Resultado por página: hero oscuro → clara → oscura → clara…
   Se recolorean texto y tarjetas vía override de tokens.
══════════════════════════════════════════════════ */
.section-light,
main > section.section:nth-of-type(even) {
  background: var(--blue-50);
  color: var(--navy-900);
  /* Re-mapeo de tokens para los descendientes (texto/acentos) */
  --color-text: #012142;
  --color-muted: #45648a;
  --cyan-200: #0B93AA;
  --cyan-300: #0B93AA;
  --cyan-400: #0ABCC9;
  --color-cyan: #0B93AA;
}

/* Tarjetas blancas sobre fondo claro */
.section-light .feature-card,
.section-light .solution-card,
.section-light .stat-card,
.section-light .case-block,
main > section.section:nth-of-type(even) .feature-card,
main > section.section:nth-of-type(even) .solution-card,
main > section.section:nth-of-type(even) .stat-card,
main > section.section:nth-of-type(even) .case-block {
  background: #ffffff;
  border-color: var(--blue-100);
  box-shadow: 0 22px 44px -30px rgba(1, 33, 66, 0.45);
}
.section-light .feature-card:hover,
.section-light .solution-card:hover,
.section-light .stat-card:hover,
main > section.section:nth-of-type(even) .feature-card:hover,
main > section.section:nth-of-type(even) .solution-card:hover,
main > section.section:nth-of-type(even) .stat-card:hover {
  border-color: var(--cyan-400);
  box-shadow: 0 30px 60px -28px rgba(1, 33, 66, 0.5), 0 0 0 1px rgba(11, 147, 170, 0.16);
}

/* Detalles con colores literales que requieren ajuste en claro */
.section-light .stat-note,
main > section.section:nth-of-type(even) .stat-note { color: rgba(1, 33, 66, 0.5); }

.section-light .feature-icon,
.section-light .card-icon-sm,
main > section.section:nth-of-type(even) .feature-icon,
main > section.section:nth-of-type(even) .card-icon-sm { background: rgba(11, 147, 170, 0.12); }


.section-light .case-result,
main > section.section:nth-of-type(even) .case-result {
  background: rgba(11, 147, 170, 0.10);
  border-color: rgba(11, 147, 170, 0.28);
}

.section-light .button-ghost,
main > section.section:nth-of-type(even) .button-ghost {
  border-color: rgba(11, 147, 170, 0.5);
  color: #0B93AA;
}
.section-light .button-ghost:hover,
main > section.section:nth-of-type(even) .button-ghost:hover {
  background: rgba(11, 147, 170, 0.08);
}

/* ══════════════════════════════════════════════════
   SPATIAL UI · profundidad, vidrio y luz (AWK 2026)
   Coherencia con el index en todas las páginas internas.
════════════════════════════════════════════════════ */

/* — Luz ambiental flotante en el hero — */
.page-hero { position: relative; overflow: hidden; }
.hero-orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; will-change: transform; }
.hero-orb.a { width: clamp(300px, 36vw, 500px); aspect-ratio: 1; top: -16%; left: -8%;
  background: radial-gradient(circle, rgba(25, 247, 241, 0.26), transparent 68%); filter: blur(70px); }
.hero-orb.b { width: clamp(340px, 42vw, 580px); aspect-ratio: 1; bottom: -34%; right: -12%;
  background: radial-gradient(circle, rgba(15, 206, 211, 0.20), transparent 70%); filter: blur(84px); }
.hero-orb.c { width: clamp(220px, 24vw, 360px); aspect-ratio: 1; top: 26%; right: 28%;
  background: radial-gradient(circle, rgba(11, 147, 170, 0.15), transparent 70%); filter: blur(90px); }
.page-hero > .container { position: relative; z-index: 2; }

/* — Vidrio esmerilado + elevación por capas (tarjetas sobre oscuro) — */
.feature-card, .solution-card, .stat-card, .case-block {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(1, 25, 50, 0.32));
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.24),
    0 30px 60px -34px rgba(0, 0, 0, 0.82);
}
.feature-card:hover, .solution-card:hover, .stat-card:hover, .case-block:hover {
  border-color: rgba(25, 247, 241, 0.40);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 22px rgba(0, 0, 0, 0.28),
    0 46px 82px -30px rgba(0, 0, 0, 0.88),
    0 0 44px -12px rgba(25, 247, 241, 0.32);
}

/* — Vidrio blanco + profundidad en secciones claras — */
.section-light .feature-card,
.section-light .solution-card,
.section-light .stat-card,
.section-light .case-block,
main > section.section:nth-of-type(even) .feature-card,
main > section.section:nth-of-type(even) .solution-card,
main > section.section:nth-of-type(even) .stat-card,
main > section.section:nth-of-type(even) .case-block {
  background: linear-gradient(155deg, #ffffff, #f4f7fd);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: var(--blue-100);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(1, 33, 66, 0.06),
    0 26px 50px -30px rgba(1, 33, 66, 0.42);
}
.section-light .feature-card:hover,
.section-light .solution-card:hover,
.section-light .stat-card:hover,
main > section.section:nth-of-type(even) .feature-card:hover,
main > section.section:nth-of-type(even) .solution-card:hover,
main > section.section:nth-of-type(even) .stat-card:hover {
  border-color: var(--cyan-400);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 26px rgba(1, 33, 66, 0.08),
    0 34px 64px -28px rgba(1, 33, 66, 0.5),
    0 0 0 1px rgba(11, 147, 170, 0.16);
}

/* Perspectiva para el tilt 3D (lo activa el JS) */
.spatial-tilt { transform-style: preserve-3d; }

/* Botones con profundidad flotante */
.button { box-shadow: 0 12px 30px -12px rgba(11, 147, 170, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22); }

@media (prefers-reduced-motion: reduce) {
  .hero-orb { display: none; }
  .spatial-tilt { transform: none !important; }
}
@media (max-width: 760px) { .hero-orb.c { display: none; } }
