/* ============================================================================
   MANIJAS · Abriendo Rutas Accesibles
   Hoja de estilos principal
   ----------------------------------------------------------------------------
   Índice:
   00. Tokens de diseño (variables)
   01. Reset y base
   02. Utilidades y tipografía
   03. Botones y links
   04. Navbar
   05. Hero
   06. Marquee
   07. Sobre Manijas
   08. Programa (cards)
   09. Cómo funciona (timeline)
   10. Beneficios (stats)
   11. Historias (testimonios)
   12. CTA final
   13. Footer y utilidades flotantes
   14. Animaciones
   15. Responsive
   16. Accesibilidad / reduced motion
   ========================================================================== */


/* ==========================================================================
   00. TOKENS DE DISEÑO
   Todo el sistema visual se controla desde acá. Cambiá estos valores
   y toda la página se re-tematiza.
   ========================================================================== */
:root {
  /* --- Paleta principal --- */
  --naranja:        #FF8A00;
  --naranja-osc:    #E8710A;
  --amarillo:       #FFC531;
  --amarillo-cla:   #FFE59B;
  --azul:           #2563EB;
  --azul-osc:       #1B3FBF;
  --celeste:        #38BDF8;
  --celeste-cla:    #BFE6FF;
  --verde:          #22C55E;
  --verde-osc:      #12A67A;
  --violeta:        #8B5CF6;
  --rosa:           #FF4D8D;

  /* --- Neutros --- */
  --tinta:          #14153A;   /* azul noche, el "negro" de la marca */
  --tinta-2:        #26295C;
  --gris:           #5A5F84;
  --gris-cla:       #9AA0C4;
  --crema:          #FFF8EF;
  --crema-2:        #FFF1DC;
  --blanco:         #FFFFFF;

  /* --- Degradados --- */
  --grad-fuego:     linear-gradient(120deg, #FF8A00 0%, #FF4D8D 55%, #8B5CF6 100%);
  --grad-sol:       linear-gradient(120deg, #FFC531 0%, #FF8A00 100%);
  --grad-mar:       linear-gradient(120deg, #38BDF8 0%, #2563EB 100%);
  --grad-bosque:    linear-gradient(120deg, #86EFAC 0%, #22C55E 60%, #12A67A 100%);
  --grad-cta:       linear-gradient(135deg, #FF8A00 0%, #FF4D8D 40%, #8B5CF6 75%, #2563EB 100%);

  /* --- Tipografía --- */
  --font-title: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:  'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Escala fluida: se adapta sola al ancho de pantalla */
  --fs-hero:   clamp(2.65rem, 6.2vw, 5.4rem);
  --fs-h2:     clamp(2rem, 4.4vw, 3.6rem);
  --fs-h3:     clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-lead:   clamp(1.05rem, 1.5vw, 1.3rem);
  --fs-body:   clamp(1rem, 1.15vw, 1.08rem);

  /* --- Espaciado y formas --- */
  --container:  1240px;
  --pad-x:      clamp(1.15rem, 4vw, 2.5rem);
  --section-y:  clamp(5rem, 11vw, 9.5rem);
  --r-sm:       14px;
  --r-md:       22px;
  --r-lg:       34px;
  --r-xl:       46px;
  --r-full:     999px;

  /* --- Sombras suaves --- */
  --sh-sm:  0 4px 14px rgba(20, 21, 58, .07);
  --sh-md:  0 14px 38px rgba(20, 21, 58, .10);
  --sh-lg:  0 30px 70px rgba(20, 21, 58, .14);
  --sh-glow: 0 20px 60px -18px var(--card, var(--naranja));

  /* --- Curvas de animación --- */
  --ease-out:  cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --ease-pop:  cubic-bezier(.34, 1.56, .64, 1);
}


/* ==========================================================================
   01. RESET Y BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* deja aire arriba al saltar con los anchors, por la navbar fija */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--tinta);
  background: var(--crema);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.06; margin: 0; letter-spacing: -.03em; }
p { margin: 0 0 1.1em; }
::selection { background: var(--naranja); color: #fff; }

/* Foco visible y consistente en toda la página (accesibilidad) */
:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { position: relative; padding-block: var(--section-y); }

/* Salto al contenido para usuarios de teclado / lectores de pantalla */
.skip-link {
  position: fixed; top: 10px; left: 50%;
  transform: translate(-50%, -140%);
  z-index: 999;
  background: var(--tinta); color: #fff;
  padding: .8rem 1.4rem; border-radius: var(--r-full);
  font-weight: 700;
  transition: transform .25s var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }


/* ==========================================================================
   02. UTILIDADES Y TIPOGRAFÍA
   ========================================================================== */
.h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  max-width: 18ch;
}
.h2--light { color: var(--blanco); }

.lead { font-size: var(--fs-lead); color: var(--gris); }

/* Texto con degradado */
.grad-text {
  background: var(--grad-fuego);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Resaltado tipo marcador (pincelada) */
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: '';
  position: absolute; inset: auto 0 .06em 0;
  height: .34em; z-index: -1;
  border-radius: var(--r-full);
  transform: rotate(-1deg) scaleX(1.04);
  opacity: .85;
}
.hl--yellow::after { background: var(--amarillo); }
.hl--orange::after { background: var(--naranja); }
.hl--green::after  { background: #86EFAC; }
/* "caminos": línea punteada de ruta debajo */
.hl--road::after {
  background: repeating-linear-gradient(90deg, var(--naranja) 0 22px, transparent 22px 36px);
  height: .16em; border-radius: 0; opacity: 1; bottom: -.02em;
}

/* Etiqueta pequeña sobre los títulos */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--naranja-osc);
  background: rgba(255, 138, 0, .1);
  border: 1px solid rgba(255, 138, 0, .24);
  padding: .45rem 1rem;
  border-radius: var(--r-full);
  margin-bottom: 1.4rem;
}
.eyebrow--dark  { color: var(--naranja-osc); }
.eyebrow--light { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2.4s var(--ease-soft) infinite;
}

.section__head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 760px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .h2 { max-width: none; }
.section__sub { font-size: var(--fs-lead); color: var(--gris); margin-top: 1.2rem; max-width: 58ch; }
.section__head--center .section__sub { margin-inline: auto; }
.section__sub--light { color: rgba(255,255,255,.72); }

/* Superficies de vidrio (glassmorphism) */
.glass {
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--sh-md);
}
.glass-dark {
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .14);
}

/* Blobs orgánicos de fondo */
.blob {
  position: absolute;
  border-radius: 47% 53% 62% 38% / 43% 38% 62% 57%;
  filter: blur(46px);
  opacity: .55;
  pointer-events: none;
  will-change: transform;
  animation: morph 18s var(--ease-soft) infinite alternate;
}

/* Ondas divisorias entre secciones */
.wave { position: absolute; left: 0; width: 100%; line-height: 0; pointer-events: none; }
.wave svg { width: 100%; height: clamp(50px, 7vw, 110px); }
.wave--bottom { bottom: -1px; }
.wave--top    { top: -1px; transform: scaleY(-1); }


/* ==========================================================================
   03. BOTONES Y LINKS
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -.01em;
  padding: .95rem 1.7rem;
  border-radius: var(--r-full);
  cursor: pointer;
  white-space: nowrap;
  isolation: isolate;
  transition: transform .35s var(--ease-pop), box-shadow .35s var(--ease-out), background-color .3s, color .3s;
  will-change: transform;
}
.btn--sm { padding: .6rem 1.15rem; font-size: .93rem; }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.08rem; }
.btn--xl { padding: 1.3rem 2.8rem; font-size: clamp(1.05rem, 1.7vw, 1.28rem); }

/* Primario: degradado de marca con brillo que barre en hover */
.btn--primary { color: #fff; background: var(--grad-fuego); background-size: 180% 180%; box-shadow: 0 12px 30px -8px rgba(255,77,141,.6); }
.btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.45) 50%, transparent 75%);
  background-size: 220% 100%;
  background-position: 200% 0;
  transition: background-position .7s var(--ease-out);
}
.btn--primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 44px -10px rgba(255,77,141,.7); }
.btn--primary:hover::before { background-position: -50% 0; }

.btn--ghost {
  color: var(--tinta);
  background: rgba(255,255,255,.7);
  border: 2px solid rgba(20,21,58,.12);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--tinta); background: #fff; box-shadow: var(--sh-md); }

.btn--white { color: var(--tinta); background: #fff; box-shadow: 0 16px 40px -10px rgba(0,0,0,.35); }
.btn--white:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 26px 56px -12px rgba(0,0,0,.45); }

.btn--outline-white { color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn--outline-white:hover { transform: translateY(-3px); background: rgba(255,255,255,.14); border-color: #fff; }

.btn__arrow { width: 20px; height: 20px; transition: transform .35s var(--ease-pop); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* Link con flecha */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--azul);
  border-bottom: 2px solid transparent;
  transition: gap .3s var(--ease-out), border-color .3s;
}
.link-arrow svg { width: 20px; height: 20px; }
.link-arrow:hover { gap: .9rem; border-color: var(--azul); }

/* Lista con tildes */
.checklist { display: grid; gap: .8rem; margin: 1.8rem 0 2.2rem; }
.checklist li {
  position: relative; padding-left: 2.4rem;
  font-weight: 500; color: var(--tinta-2);
}
.checklist li::before {
  content: '';
  position: absolute; left: 0; top: .22em;
  width: 1.55rem; height: 1.55rem; border-radius: 50%;
  background: var(--grad-bosque);
  box-shadow: 0 6px 14px -6px var(--verde);
}
.checklist li::after {
  content: '';
  position: absolute; left: .48rem; top: .58em;
  width: .58rem; height: .32rem;
  border-left: 2.6px solid #fff; border-bottom: 2.6px solid #fff;
  transform: rotate(-45deg);
}


/* ==========================================================================
   04. NAVBAR
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1rem;
  transition: padding .4s var(--ease-out), background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
/* Estado "scrolleado": se compacta y aparece el vidrio */
.nav.is-stuck {
  padding-block: .5rem;
  background: rgba(255, 248, 239, .82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 6px 30px -12px rgba(20,21,58,.22);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo { display: inline-flex; align-items: center; gap: .75rem; }
.logo__mark { width: 44px; height: 44px; flex: none; transition: transform .5s var(--ease-pop); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.08); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text strong {
  font-family: var(--font-title); font-weight: 900;
  font-size: 1.35rem; letter-spacing: -.04em;
}
.logo__text small { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--naranja-osc); }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__text small { color: var(--amarillo); }

.nav__links { display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1.6rem); }
.nav__links > a:not(.btn) {
  position: relative;
  font-weight: 600; font-size: .96rem;
  padding: .4rem .2rem;
  transition: color .25s;
}
.nav__links > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2.5px; border-radius: 2px;
  background: var(--grad-fuego);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav__links > a:not(.btn):hover { color: var(--naranja-osc); }
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { margin-left: .4rem; }

.nav__burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--tinta);
  padding: 12px 11px;
  flex-direction: column; justify-content: space-between;
}
.nav__burger span { display: block; height: 2.6px; width: 100%; border-radius: 2px; background: #fff; transition: transform .4s var(--ease-out), opacity .25s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.6px) rotate(-45deg); }


/* ==========================================================================
   05. HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(8rem, 15vw, 11rem);
  padding-bottom: clamp(6rem, 12vw, 10rem);
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% 8%, var(--crema-2) 0%, transparent 62%),
    linear-gradient(180deg, #FFFDF9 0%, var(--crema) 55%, #FFF2E0 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }

/* Grilla sutil de fondo */
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20,21,58,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,21,58,.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
}

.blob--orange { width: 520px; height: 520px; top: -8%;  left: -10%; background: var(--grad-sol); }
.blob--blue   { width: 440px; height: 440px; top: 44%;  right: -8%; background: var(--grad-mar); opacity: .38; animation-delay: -6s; }
.blob--green  { width: 360px; height: 360px; bottom: 2%; left: 24%; background: var(--grad-bosque); opacity: .34; animation-delay: -11s; }
.blob--violet { width: 300px; height: 300px; top: 10%;  right: 26%; background: linear-gradient(120deg, #C4B5FD, #8B5CF6); opacity: .3; animation-delay: -3s; }

.hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 900;
  letter-spacing: -.045em;
  margin-bottom: 1.6rem;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  color: var(--gris);
  max-width: 52ch;
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 3vw, 2.8rem);
  padding-top: 1.8rem;
  border-top: 2px dashed rgba(20,21,58,.14);
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong {
  font-family: var(--font-title); font-size: 1.9rem; font-weight: 900;
  line-height: 1; letter-spacing: -.04em;
  background: var(--grad-fuego); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__facts span { font-size: .88rem; color: var(--gris); font-weight: 500; }

/* --- Ilustración --- */
.hero__art { position: relative; }
.hero__svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 40px 60px rgba(20,21,58,.18)); }

/* Tarjetas flotantes de vidrio sobre la ilustración */
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1.1rem;
  border-radius: var(--r-md);
  font-size: .86rem;
  animation: float 6s var(--ease-soft) infinite;
  will-change: transform;
}
.float-card b { display: block; font-size: .93rem; font-weight: 800; letter-spacing: -.02em; }
.float-card small { color: var(--gris); font-size: .78rem; }
.float-card__icon {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #fff; background: var(--c);
  box-shadow: 0 8px 18px -6px var(--c);
}
.float-card__icon svg { width: 20px; height: 20px; }
.float-card--1 { top: 6%;  left: -6%; animation-delay: -1s; }
.float-card--2 { top: 46%; right: -8%; animation-delay: -3s; }
.float-card--3 { bottom: 6%; left: 2%;  animation-delay: -5s; }


/* ==========================================================================
   06. MARQUEE
   ========================================================================== */
.marquee {
  position: relative;
  background: var(--tinta);
  color: #fff;
  padding-block: 1.4rem;
  overflow: hidden;
  border-block: 3px solid rgba(255,255,255,.06);
}
.marquee__track { display: flex; width: max-content; animation: scrollX 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; }
.marquee__group span {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 900; letter-spacing: -.03em;
  text-transform: uppercase;
}
/* Alterna colores para que la banda no sea plana */
.marquee__group span:nth-child(8n+1) { color: var(--naranja); }
.marquee__group span:nth-child(8n+3) { color: var(--amarillo); }
.marquee__group span:nth-child(8n+5) { color: var(--celeste); }
.marquee__group span:nth-child(8n+7) { color: #86EFAC; }
.marquee__group span:nth-child(8n+9) { color: var(--rosa); }
.marquee__group i { color: var(--violeta); font-style: normal; font-size: 1.2rem; }


/* ==========================================================================
   07. SOBRE MANIJAS
   ========================================================================== */
.sobre { background: var(--crema); }
.sobre__inner {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.sobre__art svg { width: 100%; height: auto; }
/* La puerta se abre al hacer hover sobre la ilustración */
.sobre__door { transform-origin: 126px 236px; transition: transform 1s var(--ease-out); }
.sobre__art:hover .sobre__door { transform: perspective(600px) rotateY(-62deg); }
.sobre__text .lead { margin-bottom: 1.4rem; }
.sobre__text p:not(.lead) { color: var(--gris); }


/* ==========================================================================
   08. PROGRAMA (CARDS)
   ========================================================================== */
.programa {
  position: relative;
  background: linear-gradient(180deg, var(--crema) 0%, #FFFDF9 40%, var(--crema) 100%);
  overflow: hidden;
}
.programa__bg { position: absolute; inset: 0; pointer-events: none; }
.blob--yellow-soft  { width: 560px; height: 560px; top: 4%; left: -14%; background: var(--grad-sol); opacity: .22; }
.blob--celeste-soft { width: 520px; height: 520px; bottom: -6%; right: -12%; background: var(--grad-mar); opacity: .2; animation-delay: -8s; }

.cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.2rem, 2.2vw, 1.9rem);
}

.card {
  position: relative;
  padding: clamp(1.9rem, 3vw, 2.6rem);
  border-radius: var(--r-lg);
  background: #fff;
  border: 1.5px solid rgba(20,21,58,.07);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
/* Halo de color que aparece en hover */
.card__glow {
  position: absolute; inset: -40% -20% auto -20%;
  height: 220px; z-index: -1;
  background: radial-gradient(closest-side, var(--card), transparent 72%);
  opacity: 0;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
  transform: translateY(-30px);
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--sh-glow), var(--sh-md);
  border-color: color-mix(in srgb, var(--card) 40%, transparent);
}
.card:hover .card__glow { opacity: .18; transform: translateY(0); }

.card__num {
  position: absolute; top: 1.2rem; right: 1.6rem;
  font-family: var(--font-title); font-size: 3.4rem; font-weight: 900;
  color: var(--card); opacity: .1; letter-spacing: -.06em;
  transition: opacity .4s, transform .5s var(--ease-out);
}
.card:hover .card__num { opacity: .22; transform: scale(1.1) rotate(-4deg); }

.card__icon {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  color: #fff;
  background: var(--card);
  box-shadow: 0 14px 28px -12px var(--card);
  transition: transform .55s var(--ease-pop), border-radius .5s;
}
.card__icon svg { width: 34px; height: 34px; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); border-radius: 26px; }

.card h3 { font-size: var(--fs-h3); font-weight: 800; margin-bottom: .7rem; }
.card p { color: var(--gris); font-size: .98rem; margin-bottom: 1.3rem; }

.card__tag {
  display: inline-block;
  font-size: .75rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--card);
  background: color-mix(in srgb, var(--card) 12%, transparent);
  padding: .35rem .85rem;
  border-radius: var(--r-full);
}
/* Barrita de color que crece en el borde inferior */
.card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 5px; background: var(--card);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease-out);
}
.card:hover::after { transform: scaleX(1); }


/* ==========================================================================
   09. CÓMO FUNCIONA (TIMELINE)
   ========================================================================== */
.como {
  position: relative;
  background:
    radial-gradient(900px 500px at 12% 10%, rgba(255,138,0,.22), transparent 60%),
    radial-gradient(800px 480px at 88% 80%, rgba(139,92,246,.24), transparent 62%),
    var(--tinta);
  color: #fff;
  padding-bottom: calc(var(--section-y) + 4rem);
  overflow: hidden;
}
/* Patrón de puntos */
.como::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.4px, transparent 1.4px);
  background-size: 34px 34px;
  opacity: .5; pointer-events: none;
}

.timeline { position: relative; max-width: 880px; margin-inline: auto; display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); }

/* Riel central que se "llena" con el scroll */
.timeline__rail {
  position: absolute; top: 0; bottom: 0; left: 33px;
  width: 4px; border-radius: 4px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}
.timeline__rail span {
  display: block; width: 100%; height: 0;
  background: linear-gradient(180deg, var(--naranja), var(--amarillo), var(--verde), var(--violeta));
  transition: height .25s linear;
}

.step { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: clamp(1rem, 2.4vw, 2rem); align-items: start; }
.step__dot {
  width: 70px; height: 70px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-title); font-size: 1.7rem; font-weight: 900;
  color: #fff;
  background: var(--step);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--step) 22%, transparent), 0 18px 34px -14px var(--step);
  position: relative; z-index: 2;
  transition: transform .5s var(--ease-pop);
}
.step:hover .step__dot { transform: scale(1.1) rotate(6deg); }
/* Flecha hacia abajo entre pasos */
.step:not(:last-child) .step__dot::after {
  content: '';
  position: absolute; top: calc(100% + 14px); left: 50%;
  width: 12px; height: 12px;
  border-right: 3px solid rgba(255,255,255,.4);
  border-bottom: 3px solid rgba(255,255,255,.4);
  transform: translateX(-50%) rotate(45deg);
  animation: nudge 2.2s var(--ease-soft) infinite;
}

.step__body {
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  border-radius: var(--r-lg);
  transition: transform .45s var(--ease-out), background-color .4s, border-color .4s;
}
.step:hover .step__body { transform: translateX(8px); background: rgba(255,255,255,.11); border-color: color-mix(in srgb, var(--step) 50%, transparent); }
.step h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 800; margin-bottom: .6rem; }
.step p { color: rgba(255,255,255,.74); margin-bottom: .9rem; }
.step__meta {
  display: inline-block; font-size: .8rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--step);
  background: color-mix(in srgb, var(--step) 18%, transparent);
  padding: .35rem .9rem; border-radius: var(--r-full);
}


/* ==========================================================================
   10. BENEFICIOS (STATS)
   ========================================================================== */
.beneficios { background: var(--crema); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
  margin-bottom: 3.5rem;
}
.stat {
  position: relative;
  text-align: center;
  padding: clamp(2rem, 3.4vw, 2.8rem) 1.5rem;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1.5px solid rgba(20,21,58,.07);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.stat::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: var(--stat);
}
.stat::after {
  content: ''; position: absolute; z-index: 0;
  width: 200px; height: 200px; bottom: -120px; left: 50%; translate: -50% 0;
  border-radius: 50%; background: var(--stat); opacity: .1; filter: blur(30px);
  transition: opacity .5s;
}
.stat:hover { transform: translateY(-8px); box-shadow: 0 26px 54px -20px var(--stat), var(--sh-md); }
.stat:hover::after { opacity: .24; }

.stat__num {
  position: relative; z-index: 1;
  font-family: var(--font-title);
  font-size: clamp(3.6rem, 7.4vw, 5.4rem);
  font-weight: 900; line-height: 1; letter-spacing: -.06em;
  color: var(--stat);
  margin-bottom: .8rem;
  font-variant-numeric: tabular-nums;
}
.stat__num i { font-style: normal; font-size: .55em; }
.stat h3 { position: relative; z-index: 1; font-size: 1.22rem; font-weight: 800; margin-bottom: .5rem; }
.stat p  { position: relative; z-index: 1; color: var(--gris); font-size: .93rem; margin: 0; }

.badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem;
}
.badges li {
  font-size: .92rem; font-weight: 700;
  background: #fff;
  border: 1.5px solid rgba(20,21,58,.09);
  padding: .65rem 1.2rem;
  border-radius: var(--r-full);
  box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease-pop), box-shadow .35s, border-color .3s;
}
.badges li:hover { transform: translateY(-4px) rotate(-2deg); border-color: var(--naranja); box-shadow: var(--sh-md); }


/* ==========================================================================
   11. HISTORIAS (TESTIMONIOS)
   ========================================================================== */
.historias {
  background: linear-gradient(180deg, var(--crema) 0%, var(--crema-2) 100%);
}
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.2rem, 2.4vw, 1.9rem);
}
.quote {
  position: relative;
  margin: 0;
  padding: clamp(1.9rem, 3vw, 2.5rem);
  border-radius: var(--r-lg);
  background: #fff;
  border: 1.5px solid rgba(20,21,58,.07);
  box-shadow: var(--sh-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
/* Comilla decorativa gigante */
.quote::before {
  content: '“';
  position: absolute; top: -.15em; right: .2em;
  font-family: var(--font-title); font-size: 8rem; font-weight: 900;
  color: var(--q); opacity: .12; line-height: 1;
}
.quote:hover { transform: translateY(-8px); box-shadow: 0 26px 54px -22px var(--q), var(--sh-md); }

.quote__avatar {
  width: 64px; height: 64px; margin-bottom: 1.3rem;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 10px 22px -10px var(--q);
  transition: transform .5s var(--ease-pop);
}
.quote:hover .quote__avatar { transform: scale(1.08) rotate(-6deg); }

.quote blockquote {
  margin: 0 0 1.4rem;
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 600; line-height: 1.45; letter-spacing: -.02em;
}
.quote figcaption { display: flex; flex-direction: column; }
.quote figcaption strong { font-weight: 800; color: var(--q); }
.quote figcaption span { font-size: .85rem; color: var(--gris); }


/* ==========================================================================
   12. CTA FINAL
   ========================================================================== */
.cta {
  position: relative;
  text-align: center;
  padding-block: clamp(6rem, 12vw, 10rem) clamp(8rem, 14vw, 12rem);
  background: var(--grad-cta);
  background-size: 240% 240%;
  animation: gradientShift 16s var(--ease-soft) infinite;
  color: #fff;
  overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; pointer-events: none; }
.blob--cta1 { width: 460px; height: 460px; top: -12%; left: 4%;  background: #fff; opacity: .16; }
.blob--cta2 { width: 380px; height: 380px; bottom: 4%; right: 6%; background: var(--amarillo); opacity: .3; animation-delay: -7s; }
.blob--cta3 { width: 300px; height: 300px; top: 34%; right: 34%; background: var(--celeste); opacity: .22; animation-delay: -12s; }
.cta__inner { position: relative; z-index: 2; }

.cta__title {
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  font-weight: 900; letter-spacing: -.045em;
  margin-bottom: 1.4rem;
  text-shadow: 0 14px 40px rgba(0,0,0,.18);
}
/* Palabra que se mueve al hacer hover */
.cta__wiggle { display: inline-block; color: var(--amarillo); transition: transform .5s var(--ease-pop); }
.cta__title:hover .cta__wiggle { transform: rotate(-5deg) scale(1.06); }

.cta__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  color: rgba(255,255,255,.9);
  max-width: 58ch; margin: 0 auto 2.6rem;
}
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 3rem; }

.cta__contact {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem clamp(1.2rem, 3vw, 2.6rem);
  font-weight: 600;
}
.cta__contact li { display: inline-flex; align-items: center; gap: .6rem; }
.cta__contact a { border-bottom: 2px solid rgba(255,255,255,.35); transition: border-color .3s; }
.cta__contact a:hover { border-color: #fff; }
.cta__contact-ico {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.18);
}
.cta__contact-ico svg { width: 18px; height: 18px; }
.wave--footer svg { height: clamp(60px, 8vw, 120px); }


/* ==========================================================================
   13. FOOTER Y UTILIDADES FLOTANTES
   ========================================================================== */
.footer { background: var(--tinta); color: rgba(255,255,255,.72); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
}
.footer__brand p { margin-top: 1.2rem; font-size: .95rem; max-width: 36ch; }
.footer__col h4 {
  font-size: .82rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--amarillo); margin-bottom: 1.2rem;
}
.footer__col a { display: block; padding: .3rem 0; font-size: .96rem; transition: color .25s, transform .3s var(--ease-out); }
.footer__col a:not(.btn):hover { color: #fff; transform: translateX(5px); }
.footer__col--cta p { font-size: .95rem; margin-bottom: 1.2rem; }
.footer__col--cta .btn { display: inline-flex; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .86rem;
}
.footer__bottom p { margin: 0; }
.footer__love { color: var(--gris-cla); }

/* Barra de progreso de lectura */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: 4px; background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: var(--grad-fuego);
  border-radius: 0 4px 4px 0;
  transition: width .1s linear;
}

/* Botón volver arriba */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff; background: var(--grad-fuego);
  box-shadow: 0 14px 30px -10px rgba(255,77,141,.7);
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.85);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-pop), visibility .4s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { transform: translateY(-4px) scale(1.08); }
.to-top svg { width: 22px; height: 22px; }

/* Huellas que siguen al cursor */
.footprints { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.footprint {
  position: absolute;
  width: 11px; height: 16px;
  border-radius: 50% 50% 46% 46%;
  background: var(--naranja);
  opacity: .55;
  animation: stepFade 1.5s var(--ease-out) forwards;
}


/* ==========================================================================
   14. ANIMACIONES
   ========================================================================== */

/* Aparición al hacer scroll (la activa JS agregando .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(1.4deg); }
}

@keyframes morph {
  0%   { border-radius: 47% 53% 62% 38% / 43% 38% 62% 57%; transform: rotate(0deg) scale(1); }
  50%  { border-radius: 62% 38% 40% 60% / 58% 62% 38% 42%; transform: rotate(14deg) scale(1.08); }
  100% { border-radius: 38% 62% 55% 45% / 50% 44% 56% 50%; transform: rotate(-10deg) scale(.96); }
}

@keyframes scrollX {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  70%  { box-shadow: 0 0 0 9px transparent; opacity: .85; }
  100% { box-shadow: 0 0 0 0 transparent; opacity: 1; }
}

@keyframes nudge {
  0%, 100% { transform: translateX(-50%) rotate(45deg) translate(0, 0); opacity: .4; }
  50%      { transform: translateX(-50%) rotate(45deg) translate(3px, 3px); opacity: .9; }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes stepFade {
  0%   { opacity: .55; transform: scale(.6); }
  25%  { opacity: .5;  transform: scale(1); }
  100% { opacity: 0;   transform: scale(.9) translateY(6px); }
}

/* --- Animaciones internas de la ilustración del hero --- */
.hero__ring     { animation: spin 60s linear infinite; transform-origin: 320px 320px; }
.hero__sun      { animation: float 7s var(--ease-soft) infinite; transform-origin: 320px 196px; }
.hero__cloud--a { animation: drift 16s var(--ease-soft) infinite; }
.hero__cloud--b { animation: drift 21s var(--ease-soft) infinite reverse; }
.hero__roadline { animation: dash 2.6s linear infinite; }
.hero__bus      { animation: float 5.5s var(--ease-soft) infinite; }
.hero__flag     { animation: wave-flag 3.4s var(--ease-soft) infinite; transform-origin: 280px 264px; }
.hero__person--a { animation: bob 3.2s var(--ease-soft) infinite; }
.hero__person--b { animation: bob 3.2s var(--ease-soft) infinite -.6s; }
.hero__person--c { animation: bob 3.2s var(--ease-soft) infinite -1.2s; }
.hero__sparks   { animation: twinkle 3.6s var(--ease-soft) infinite; transform-origin: center; }
.hero__steps    { animation: twinkle 4.2s var(--ease-soft) infinite -1s; }

@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes drift  { 0%,100% { transform: translateX(0); } 50% { transform: translateX(26px); } }
@keyframes dash   { to { stroke-dashoffset: -56; } }
@keyframes bob    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes wave-flag { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-4deg); } }
@keyframes twinkle { 0%,100% { opacity: .45; } 50% { opacity: 1; } }


/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */

/* --- Tablet grande --- */
@media (max-width: 1080px) {
  .hero__inner  { grid-template-columns: 1fr; text-align: center; }
  .hero__copy   { max-width: 720px; margin-inline: auto; }
  .hero__sub    { margin-inline: auto; }
  .hero__actions, .hero__facts { justify-content: center; }
  .hero__facts li { align-items: center; }
  .hero__art    { max-width: 560px; margin-inline: auto; order: -1; }
  .float-card--1 { left: -2%; }
  .float-card--2 { right: -2%; }

  .sobre__inner { grid-template-columns: 1fr; }
  .sobre__art   { max-width: 460px; margin-inline: auto; }
  .h2           { max-width: none; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* --- Tablet / mobile: menú hamburguesa --- */
@media (max-width: 900px) {
  .nav__burger { display: flex; }

  .nav__links {
    position: fixed; inset: 0 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .3rem;
    padding: 6.5rem var(--pad-x) 2.5rem;
    background: rgba(255, 248, 239, .96);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 24px 60px -20px rgba(20,21,58,.35);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
    transform: translateY(-100%);
    opacity: 0; visibility: hidden;
    transition: transform .55s var(--ease-out), opacity .4s, visibility .4s;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__links > a:not(.btn) {
    font-size: 1.25rem; font-family: var(--font-title); font-weight: 700;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(20,21,58,.08);
  }
  .nav__cta { margin: 1.2rem 0 0; justify-content: center; padding: 1rem; font-size: 1.05rem; }
  /* La navbar necesita el fondo sí o sí cuando el menú está abierto */
  .nav.is-open-menu { background: rgba(255,248,239,.96); }
}

/* --- Mobile --- */
@media (max-width: 640px) {
  :root { --section-y: 4.5rem; }

  .hero { padding-top: 7.5rem; }
  .hero__facts { gap: 1.4rem 2rem; }
  .hero__facts strong { font-size: 1.55rem; }
  .btn--lg, .btn--xl { width: 100%; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }

  /* Las tarjetas flotantes molestan en pantallas chicas */
  .float-card--2, .float-card--3 { display: none; }
  .float-card--1 { top: 0; left: 50%; transform: translateX(-50%); }

  .timeline__rail { left: 25px; }
  .step { grid-template-columns: 54px 1fr; gap: 1rem; }
  .step__dot { width: 54px; height: 54px; font-size: 1.3rem; box-shadow: 0 0 0 5px color-mix(in srgb, var(--step) 22%, transparent); }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .quote::before { font-size: 6rem; }
}

/* En pantallas muy anchas, las cards se acomodan de a 3 prolijas */
@media (min-width: 1180px) {
  .cards  { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(4, 1fr); }
}


/* ==========================================================================
   16. ACCESIBILIDAD
   ========================================================================== */

/* Respeta la preferencia del sistema: sin movimiento. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .footprints { display: none; }
}

/* Modo alto contraste: reforzamos bordes */
@media (prefers-contrast: more) {
  .card, .stat, .quote, .badges li { border-width: 2px; border-color: var(--tinta); }
  .section__sub, .card p, .stat p, .lead { color: var(--tinta-2); }
}

/* Impresión: versión limpia */
@media print {
  .nav, .to-top, .scroll-progress, .footprints, .marquee, .hero__bg, .wave { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
