/* =========================================================
   FUHDSE · Sistema de diseño
   Paleta tomada del logo: azul profundo + verde hoja
   ========================================================= */
:root {
  --blue-950: #061a3a;
  --blue-900: #0a2a5c;
  --blue-800: #0d3a7e;
  --blue-700: #114c9e;
  --blue-500: #1f6fd1;
  --blue-100: #e6effb;
  --green-700: #237a35;
  --green-600: #2e8b3e;
  --green-500: #45a84f;
  --green-300: #9bd06a;
  --green-100: #eaf6e4;
  --cream: #f7f9f4;
  --paper: #ffffff;
  --ink: #0e1a2b;
  --text: #2b3a4e;
  --muted: #64748b;
  --line: #e3e8ef;
  --warn: #f2a93b;
  --danger: #d64545;
  --grad: linear-gradient(120deg, var(--blue-700) 0%, var(--blue-500) 45%, var(--green-500) 100%);
  --grad-soft: linear-gradient(135deg, #eef4fc 0%, #f1f8ec 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 6px rgba(10, 42, 92, .06), 0 1px 2px rgba(10, 42, 92, .05);
  --shadow: 0 18px 40px -18px rgba(10, 42, 92, .28), 0 4px 12px rgba(10, 42, 92, .06);
  --shadow-lg: 0 40px 80px -30px rgba(10, 42, 92, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--cream);
  font-size: 16.5px; line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
body:not(.ready) > main { visibility: hidden; }
main { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 em, h2 em, h3 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--green-300); color: var(--blue-950); }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[data-lucide], .ico { width: 1.15em; height: 1.15em; stroke-width: 2; flex-shrink: 0; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: radial-gradient(1200px 600px at 50% 0%, #f1f8ec, #fff 60%);
  transition: clip-path .6s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.preloader.done { clip-path: inset(0 0 100% 0); }
.preloader__inner { text-align: center; width: min(360px, 82vw); }
.preloader__logo { width: 168px; height: 168px; margin: 0 auto 10px; position: relative; }
.preloader__logo img { width: 100%; height: 100%; object-fit: contain; animation: breathe 2.4s ease-in-out infinite; }
.preloader__ring { position: absolute; inset: -14px; }
.preloader__ring circle { fill: none; stroke-width: 3; }
.preloader__ring .bg { stroke: var(--line); }
.preloader__ring .fg { stroke: url(#plGrad); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.preloader__count { font-size: 64px; font-weight: 800; color: var(--blue-900); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.preloader__count small { font-size: .4em; color: var(--green-600); margin-left: 2px; }
.preloader__bar { height: 4px; background: var(--line); border-radius: 9px; overflow: hidden; margin: 18px 0 12px; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 9px; transition: width .1s linear; }
.preloader__msg { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
@keyframes breathe { 50% { transform: scale(1.04); } }

/* ---------- Transición entre páginas ---------- */
.curtain { position: fixed; inset: 0; z-index: 9998; pointer-events: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.curtain span { background: var(--blue-900); transform: scaleY(0); transform-origin: bottom; }
.curtain span:nth-child(2) { background: var(--blue-700); }
.curtain span:nth-child(3) { background: var(--green-700); }
.curtain span:nth-child(4) { background: var(--green-600); }
.curtain.cover span { animation: curtainIn .55s var(--ease-io) forwards; }
.curtain.reveal span { transform: scaleY(1); transform-origin: top; animation: curtainOut .65s var(--ease-io) forwards; }
.curtain span:nth-child(2) { animation-delay: .05s !important; }
.curtain span:nth-child(3) { animation-delay: .1s !important; }
.curtain span:nth-child(4) { animation-delay: .15s !important; }
.curtain__logo { position: fixed; inset: 0; display: grid; place-items: center; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .25s; }
.curtain__logo b { color: #fff; font-size: clamp(28px, 6vw, 54px); font-weight: 800; letter-spacing: .12em; }
.curtain.cover + .curtain__logo { opacity: 1; transition-delay: .3s; }
@keyframes curtainIn { to { transform: scaleY(1); } }
@keyframes curtainOut { to { transform: scaleY(0); } }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--blue-800); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.6em; border-radius: 999px; border: 0; font-weight: 700; font-size: 15.5px;
  background: var(--bg); color: var(--fg); position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); white-space: nowrap; line-height: 1.2;
}
.btn::before { content: ''; position: absolute; inset: 0; background: var(--grad); z-index: -1; transform: translateX(-101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(17, 76, 158, .6); }
.btn:active { transform: translateY(0); }
.btn--green { --bg: var(--green-600); }
.btn--white { --bg: #fff; --fg: var(--blue-900); }
.btn--white:hover { --fg: #fff; color: #fff; }
.btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.btn--outline { --bg: transparent; --fg: var(--blue-800); box-shadow: inset 0 0 0 2px var(--blue-100); }
.btn--outline:hover { color: #fff; }
.btn--lg { padding: 1.1em 2em; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }

/* ---------- Header ---------- */
.topbar { background: var(--blue-950); color: #c9d6ea; font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; opacity: .9; transition: opacity .2s, color .2s; }
.topbar a:hover { opacity: 1; color: var(--green-300); }
.topbar__left, .topbar__right { display: flex; gap: 22px; align-items: center; }

.header { position: sticky; top: 0; z-index: 100; transition: background .4s, box-shadow .4s, transform .4s var(--ease); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 92px; transition: height .4s var(--ease); }
.header.scrolled .header__inner { height: 78px; }
.header.scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(10, 42, 92, .35); }
.header.hide { transform: translateY(-100%); }
.page-home .header:not(.scrolled) { position: fixed; left: 0; right: 0; top: 40px; }
.page-home .header:not(.scrolled) .nav a { color: #fff; }
.page-home .header:not(.scrolled) .burger span { background: #fff; }
.page-home .header:not(.scrolled) .btn--outline, .header.over:not(.scrolled) .btn--outline { --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.page-home .header.scrolled { position: fixed; left: 0; right: 0; top: 0; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 80px; height: 80px; object-fit: contain; transition: width .4s var(--ease), height .4s var(--ease), opacity .3s; }
.header.scrolled .brand__logo { width: 66px; height: 66px; }
.brand__logo--lg { width: 132px; height: 132px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35)); }
/* Logo transparente: versión clara sobre fondos oscuros, versión original sobre fondo blanco */
.brand__logo--ondark { display: none; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35)); }
.page-home .header:not(.scrolled) .brand__logo--onlight, .header.over:not(.scrolled) .brand__logo--onlight { display: none; }
.page-home .header:not(.scrolled) .brand__logo--ondark, .header.over:not(.scrolled) .brand__logo--ondark { display: block; }
.mnav .brand__logo { width: 64px; height: 64px; }

/* Botón instalar */
.install-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .7); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.install-btn svg { width: 17px; height: 17px; color: var(--green-600); }
.install-btn:hover { border-color: var(--green-500); background: #fff; transform: translateY(-1px); }
.page-home .header:not(.scrolled) .install-btn, .header.over:not(.scrolled) .install-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(6px); }
.page-home .header:not(.scrolled) .install-btn svg, .header.over:not(.scrolled) .install-btn svg { color: var(--green-300); }

/* Panel de instalación */
.inst { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(4, 14, 32, .6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.inst.open { opacity: 1; }
.inst__card { position: relative; width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border-radius: 28px; padding: 30px 26px 24px; box-shadow: var(--shadow-lg); transform: translateY(30px) scale(.97); transition: transform .5s var(--ease); }
.inst.open .inst__card { transform: none; }
.inst__card h3 { font-size: 26px; margin: 0 0 6px; }
.inst__card > p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.inst__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--blue-100); color: var(--blue-800); display: grid; place-items: center; cursor: pointer; }
.inst__app { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; border: 1.5px solid var(--line); margin-bottom: 10px; }
.inst__app--main { border-color: var(--green-300); background: var(--green-100); }
.inst__app img { width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0; }
.inst__app div { flex: 1; min-width: 0; }
.inst__app b { display: block; color: var(--ink); font-size: 16px; }
.inst__app small { color: var(--muted); font-size: 13px; }
.inst__app .btn { padding: .65em 1.1em; font-size: 14px; flex-shrink: 0; }
.inst__hint { font-size: 12px; color: var(--muted); max-width: 120px; text-align: right; line-height: 1.3; }
.inst__ios { list-style: none; padding: 14px; margin: 6px 0 0; border-radius: 16px; background: var(--blue-100); display: grid; gap: 10px; font-size: 14px; color: var(--ink); }
.inst__ios[hidden] { display: none; }
.inst__ios li { display: flex; gap: 10px; align-items: center; }
.inst__ios svg { color: var(--blue-700); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 10px 14px; font-weight: 600; font-size: 15px; color: var(--ink); border-radius: 999px; transition: color .25s, background .25s; }
.nav a::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 0; height: 2px; border-radius: 2px; background: var(--green-500); transition: width .35s var(--ease), left .35s var(--ease); }
.nav a:hover::after, .nav a.active::after { width: 22px; left: calc(50% - 11px); }
.nav a.active { color: var(--blue-700); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .7); color: var(--ink); font-weight: 700; font-size: 13.5px; transition: background .3s, border-color .3s, color .3s; }
.lang svg { width: 17px; height: 17px; margin-right: 4px; color: var(--green-600); }
.lang b { opacity: .45; font-weight: 800; transition: opacity .3s; }
.lang b.on { opacity: 1; color: var(--blue-700); }
.lang span { opacity: .35; }
.lang:hover { border-color: var(--green-500); background: #fff; }
.page-home .header:not(.scrolled) .lang, .header.over:not(.scrolled) .lang { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(6px); }
.page-home .header:not(.scrolled) .lang b.on, .header.over:not(.scrolled) .lang b.on { color: var(--green-300); }
.mnav .lang { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #fff; justify-content: center; height: 50px; }
.mnav .lang b.on { color: var(--green-300); }
.burger { display: none; width: 48px; height: 48px; border-radius: 14px; border: 0; background: transparent; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease); }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 29px; }

/* Menú móvil */
.mnav { position: fixed; inset: 0; z-index: 200; background: var(--blue-950); color: #fff; display: flex; flex-direction: column; padding: 22px var(--gutter) 32px; clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .7s var(--ease-io); visibility: hidden; }
.mnav.open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mnav__top { display: flex; justify-content: space-between; align-items: center; }
.mnav__close { width: 48px; height: 48px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; display: grid; place-items: center; }
.mnav__links { margin: auto 0; display: flex; flex-direction: column; gap: 4px; }
.mnav__links a { font-size: clamp(30px, 9vw, 44px); font-weight: 800; letter-spacing: -.02em; padding: 4px 0; display: flex; align-items: center; justify-content: space-between; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease), color .2s; }
.mnav__links a.active, .mnav__links a:hover { color: var(--green-300); }
.mnav.open .mnav__links a { opacity: 1; transform: none; }
.mnav.open .mnav__links a:nth-child(1) { transition-delay: .25s; } .mnav.open .mnav__links a:nth-child(2) { transition-delay: .3s; } .mnav.open .mnav__links a:nth-child(3) { transition-delay: .35s; } .mnav.open .mnav__links a:nth-child(4) { transition-delay: .4s; } .mnav.open .mnav__links a:nth-child(5) { transition-delay: .45s; }
.mnav__foot { display: grid; gap: 10px; color: #b9c7dd; font-size: 15px; }
.mnav__foot a { display: flex; gap: 10px; align-items: center; }

/* ---------- Hero slider ---------- */
/* Las diapositivas se apilan en una misma celda: el alto del slider crece con el contenido y nunca se tapa */
.hero { position: relative; display: grid; min-height: max(640px, 100svh); overflow: hidden; background: var(--blue-950); color: #fff; }
.hero__slide { position: relative; grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 1.2s; }
.hero__slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero__img { position: absolute; inset: 0; background: var(--blue-900) 72% center/cover no-repeat; transform: scale(1.15); }
.hero__slide.active .hero__img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.15) translate3d(0, 0, 0); } to { transform: scale(1.02) translate3d(-1%, -1%, 0); } }
.hero__slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6, 26, 58, .9) 0%, rgba(6, 26, 58, .6) 40%, rgba(6, 26, 58, 0) 70%), linear-gradient(0deg, rgba(6, 26, 58, .55), transparent 35%); }
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-top: 160px; padding-bottom: 200px; }
.hero__text { max-width: 680px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; margin-bottom: 22px; }
.hero__kicker i { width: 28px; height: 28px; border-radius: 50%; background: var(--green-500); display: grid; place-items: center; font-style: normal; }
.hero h1 { color: #fff; font-size: clamp(36px, min(6vw, 8.2vh), 76px); margin-bottom: 20px; }
.hero h1 em { color: var(--green-300); }
.hero p { font-size: clamp(17px, 1.6vw, 20px); color: #d5deec; max-width: 540px; margin-bottom: 34px; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__slide .anim { opacity: 0; transform: translateY(40px); }
.hero__slide.active .anim { animation: rise 1s var(--ease) forwards; }
.hero__slide.active .anim:nth-child(2) { animation-delay: .15s; } .hero__slide.active .anim:nth-child(3) { animation-delay: .3s; } .hero__slide.active .anim:nth-child(4) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 104px; } /* 70px de la tarjeta de cifras + aire */
.hero__ui .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hero__dots { display: flex; gap: 10px; align-items: center; }
.hero__dot { width: 56px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .25); overflow: hidden; position: relative; }
.hero__dot::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dot.active::after { animation: dotfill var(--dur, 7s) linear forwards; }
.hero.paused .hero__dot.active::after { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero__num { font-weight: 700; font-size: 14px; letter-spacing: .1em; color: #c9d6ea; margin-right: 14px; font-variant-numeric: tabular-nums; }
.hero__num b { color: #fff; font-size: 22px; }
.hero__arrows { display: flex; gap: 10px; }
.arrow-btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .3s, transform .3s var(--ease), border-color .3s; }
.arrow-btn:hover { background: var(--green-500); border-color: var(--green-500); transform: scale(1.06); }
.arrow-btn--dark { color: var(--blue-900); border-color: var(--line); background: #fff; }
.arrow-btn--dark:hover { color: #fff; }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 104px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 20px; }
.hero__scroll::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: scrolly 1.8s infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--white { background: #fff; }
.section--soft { background: var(--grad-soft); }
.section--dark { background: var(--blue-950); color: #c9d6ea; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--green-600); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: var(--green-300); }
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .eyebrow::after { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 54px); }
.sec-head p { font-size: 18px; color: var(--muted); }
.section--dark .sec-head p { color: #a9b8cf; }
.sec-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.sec-head--split > div { max-width: 640px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.left { transform: translateX(-50px); } .reveal.right { transform: translateX(50px); } .reveal.zoom { transform: scale(.92); }
.reveal.in { opacity: 1; transform: none; }
.img-reveal { position: relative; overflow: hidden; }
.img-reveal::after { content: ''; position: absolute; inset: 0; background: var(--green-500); transform-origin: right; transition: transform 1.1s var(--ease-io); transition-delay: var(--d, 0s); }
.img-reveal img { transform: scale(1.25); transition: transform 1.6s var(--ease); transition-delay: var(--d, 0s); }
.img-reveal.in::after { transform: scaleX(0); }
.img-reveal.in img { transform: none; }

/* ---------- Franja de impacto (stats) ---------- */
.impact { position: relative; z-index: 5; margin-top: -70px; }
.impact__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 34px 28px; display: flex; gap: 16px; align-items: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 26%; bottom: 26%; width: 1px; background: var(--line); }
.stat__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-700); flex-shrink: 0; }
.stat:nth-child(even) .stat__ico { background: var(--green-100); color: var(--green-600); }
.stat__ico svg { width: 26px; height: 26px; }
.stat b { display: block; font-size: clamp(26px, 2.6vw, 34px); color: var(--ink); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- Sobre nosotros (home) ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about__media .m1 { grid-row: span 2; border-radius: var(--radius); aspect-ratio: 3/4.2; }
.about__media .m2, .about__media .m3 { border-radius: var(--radius); aspect-ratio: 1; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 150px; height: 150px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 3; }
.about__badge svg.spin { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 22s linear infinite; }
.about__badge svg text { font-size: 10.6px; font-weight: 700; letter-spacing: .22em; fill: var(--blue-800); }
.about__badge .c { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.checks { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checks li i { width: 26px; height: 26px; border-radius: 50%; background: var(--green-100); color: var(--green-600); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.checks li i svg { width: 15px; height: 15px; stroke-width: 3; }
.signature { display: flex; align-items: center; gap: 16px; padding-top: 26px; border-top: 1px solid var(--line); margin-top: 8px; }
.signature img { width: 58px; height: 58px; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: var(--shadow-sm); }
.signature b { display: block; color: var(--ink); }
.signature span { font-size: 14px; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { background: var(--grad); color: #fff; overflow: hidden; padding: 22px 0; transform: rotate(-1.5deg); margin: -10px -20px; position: relative; z-index: 4; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.marquee__track span::after { content: '✦'; color: var(--green-300); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tarjetas de programa ---------- */
.tabs { display: inline-flex; padding: 6px; background: #fff; border-radius: 999px; box-shadow: var(--shadow-sm); gap: 4px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--muted); transition: background .3s, color .3s; }
.tab.active { background: var(--blue-900); color: #fff; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pcard { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pcard__img { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--grad-soft); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.08); }
.pcard__tag { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 700; color: var(--blue-800); }
.pcard__ico { position: absolute; right: 20px; bottom: -26px; width: 56px; height: 56px; border-radius: 18px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px -8px rgba(31, 111, 209, .6); z-index: 2; transition: transform .5s var(--ease); }
.pcard:hover .pcard__ico { transform: rotate(-8deg) scale(1.08); }
.pcard__ico svg { width: 26px; height: 26px; }
.pcard__body { padding: 30px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard__body h3 { font-size: 22px; margin-bottom: 10px; }
.pcard__body p { color: var(--muted); font-size: 15.5px; flex: 1; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue-700); font-size: 15px; }
.link-arrow svg { transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.pcard.hidden { display: none; }

/* ---------- Cómo ayudar ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 34px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); position: relative; overflow: hidden; transition: background .4s, transform .5s var(--ease), border-color .4s; }
.step:hover { background: rgba(255, 255, 255, .08); transform: translateY(-6px); border-color: rgba(155, 208, 106, .4); }
.step::before { counter-increment: step; content: '0' counter(step); position: absolute; right: 18px; top: 10px; font-size: 64px; font-weight: 800; color: rgba(255, 255, 255, .05); letter-spacing: -.04em; }
.step__ico { width: 58px; height: 58px; border-radius: 18px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.step__ico svg { width: 26px; height: 26px; }
.step h3 { font-size: 20px; }
.step p { font-size: 15px; color: #a9b8cf; margin: 0; }

/* ---------- Campañas ---------- */
.ccard { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ccard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ccard__img { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--grad-soft); }
.ccard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ccard:hover .ccard__img img { transform: scale(1.06); }
.ccard__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.ccard__body h3 { font-size: 21px; }
.ccard__body p { color: var(--muted); font-size: 15px; flex: 1; }
.progress { height: 10px; border-radius: 10px; background: var(--blue-100); overflow: hidden; margin: 16px 0 12px; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 10px; transition: width 1.8s var(--ease); position: relative; }
.progress span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shimmer 2.2s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ccard__nums { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.ccard__nums b { color: var(--ink); font-size: 17px; }
.pct { position: absolute; top: 16px; right: 16px; width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--blue-800); box-shadow: var(--shadow-sm); }

/* ---------- Galería ---------- */
.gallery { columns: 4 240px; column-gap: 16px; }
.gallery__item { break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: zoom-in; background: var(--grad-soft); display: block; width: 100%; border: 0; padding: 0; }
.gallery__item img { width: 100%; transition: transform 1s var(--ease), filter .6s; }
.gallery__item:nth-child(3n+1) img { aspect-ratio: 4/5; object-fit: cover; }
.gallery__item:nth-child(3n+2) img { aspect-ratio: 1; object-fit: cover; }
.gallery__item:nth-child(3n) img { aspect-ratio: 4/3; object-fit: cover; }
.gallery__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 26, 58, .8), transparent 55%); opacity: 0; transition: opacity .5s; }
.gallery__item span { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff; font-weight: 700; text-align: left; transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after, .gallery__item:hover span { opacity: 1; transform: none; }

/* Carrusel horizontal (galería inicio) */
.strip { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) !important; }
.strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 20px; scrollbar-width: none; cursor: grab; }
.strip::-webkit-scrollbar { display: none; }
.strip.drag { cursor: grabbing; scroll-snap-type: none; }
.strip .gallery__item { flex: 0 0 clamp(240px, 28vw, 360px); margin: 0; scroll-snap-align: start; aspect-ratio: 4/5; }
.strip .gallery__item img { height: 100%; aspect-ratio: auto !important; object-fit: cover; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(4, 14, 32, .94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; padding: 20px; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; transform: scale(.94); transition: transform .5s var(--ease); }
.lightbox.open figure { transform: none; }
.lightbox img { max-height: 78vh; border-radius: var(--radius-sm); margin: 0 auto; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #fff; margin-top: 16px; font-weight: 600; }
.lightbox .arrow-btn { position: absolute; top: 50%; margin-top: -27px; }
.lightbox .lb-prev { left: 20px; } .lightbox .lb-next { right: 20px; }
.lightbox .lb-close { position: absolute; top: 20px; right: 20px; margin: 0; }

/* ---------- Testimonios ---------- */
.testi { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.testi__viewport { overflow: hidden; border-radius: var(--radius); }
.testi__track { display: flex; transition: transform .9s var(--ease); }
.tcard { flex: 0 0 100%; background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-sm); position: relative; }
.tcard__quote { font-family: var(--serif); font-size: 120px; line-height: .6; color: var(--green-300); height: 50px; display: block; }
.tcard p { font-size: clamp(18px, 2vw, 22px); color: var(--ink); font-weight: 500; line-height: 1.55; margin-bottom: 26px; }
.tcard__who { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; flex-shrink: 0; }
.tcard__who b { color: var(--ink); display: block; }
.tcard__who span { font-size: 14px; color: var(--muted); }
.stars { color: #f5b83d; display: flex; gap: 2px; margin-left: auto; }
.stars svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.testi__nav { display: flex; gap: 10px; margin-top: 26px; align-items: center; }
.testi__count { margin-left: 10px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- CTA ---------- */
.cta { position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden; padding: clamp(44px, 7vw, 90px) clamp(26px, 6vw, 80px); color: #fff; background: var(--blue-900); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta::before { content: ''; position: absolute; inset: 0; background: url('../img/bg/hero-voluntarios.svg') 80% center/cover; opacity: .55; }
.cta::after { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(69, 168, 79, .55), transparent 65%); }
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: #fff; font-size: clamp(30px, 4.4vw, 52px); }
.cta h2 em { color: var(--green-300); }
.cta p { color: #c9d6ea; font-size: 18px; margin: 0; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Page hero (páginas interiores) ---------- */
.phero { position: relative; padding: clamp(120px, 16vw, 190px) 0 clamp(80px, 10vw, 130px); color: #fff; overflow: hidden; background: var(--blue-950); margin-top: -92px; }
.phero__bg { position: absolute; inset: -10% 0; background: 75% center/cover no-repeat; opacity: .9; will-change: transform; }
.phero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(6, 26, 58, .94) 22%, rgba(6, 26, 58, .55) 55%, rgba(6, 26, 58, .08) 85%); }
.phero .container { position: relative; z-index: 2; }
.phero h1 { color: #fff; font-size: clamp(40px, 7vw, 84px); max-width: 900px; margin-bottom: 18px; }
.phero h1 em { color: var(--green-300); }
.phero p { font-size: clamp(17px, 1.8vw, 20px); color: #c9d6ea; max-width: 620px; margin: 0; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; color: #a9b8cf; margin-bottom: 22px; }
.crumbs a:hover { color: #fff; }
.phero .split-line { display: block; overflow: hidden; }
.phero .split-line > span { display: inline-block; transform: translateY(110%); }
.started .phero .split-line > span { animation: lineUp 1.1s var(--ease) forwards; animation-delay: var(--d, .2s); }
@keyframes lineUp { to { transform: none; } }
.phero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; color: var(--cream); }
.phero__wave svg { width: 100%; height: clamp(40px, 6vw, 90px); display: block; }
.header.over:not(.scrolled) .nav a { color: #fff; }
.header.over:not(.scrolled) .burger span { background: #fff; }

/* ---------- Formularios ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fbfcfe; transition: border-color .25s, box-shadow .25s, background .25s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(31, 111, 209, .12); }
.field.error input, .field.error select, .field.error textarea { border-color: var(--danger); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .err { font-size: 13px; color: var(--danger); display: none; }
.field.error .err { display: block; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 15px; color: var(--text); transition: all .25s; cursor: pointer; user-select: none; }
.choice span:hover { border-color: var(--blue-500); }
.choice input:checked + span { border-color: var(--blue-700); background: var(--blue-900); color: #fff; box-shadow: 0 8px 18px -10px rgba(10, 42, 92, .7); }
.choice input:focus-visible + span { outline: 3px solid var(--green-500); outline-offset: 2px; }
.choice-group--grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.choice-group--grid .choice span { width: 100%; justify-content: center; padding: 16px 10px; font-size: 18px; }
.check-inline { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.check-inline input { width: 20px; height: 20px; accent-color: var(--blue-700); margin-top: 2px; flex-shrink: 0; }

/* ---------- Donar ---------- */
.donate { display: grid; grid-template-columns: 1.25fr .9fr; gap: 30px; align-items: start; }
.donate__steps { display: flex; gap: 6px; margin-bottom: 28px; }
.donate__steps span { flex: 1; height: 5px; border-radius: 5px; background: var(--line); transition: background .5s; }
.donate__steps span.on { background: var(--grad); }
.dstep { display: none; animation: stepIn .6s var(--ease); }
.dstep.active { display: grid; gap: 22px; }
@keyframes stepIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.dstep h3 { font-size: 24px; margin: 0; }
.dstep__nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 6px; }
.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.type-card { position: relative; }
.type-card input { position: absolute; opacity: 0; }
.type-card label { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; border: 2px solid var(--line); cursor: pointer; transition: all .3s; height: 100%; background: #fff; }
.type-card label svg { width: 30px; height: 30px; color: var(--blue-700); margin-bottom: 6px; }
.type-card label b { color: var(--ink); font-size: 17px; }
.type-card label small { color: var(--muted); font-size: 14px; }
.type-card input:checked + label { border-color: var(--green-500); background: var(--green-100); box-shadow: 0 10px 24px -14px rgba(46, 139, 62, .7); }
.type-card input:focus-visible + label { outline: 3px solid var(--green-500); outline-offset: 2px; }
.impact-box { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--grad-soft); border: 1px dashed #c6d8ef; font-weight: 600; color: var(--blue-900); }
.impact-box i { width: 42px; height: 42px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--green-600); flex-shrink: 0; }
.summary { position: sticky; top: 104px; display: grid; gap: 20px; }
.summary__card { background: var(--blue-950); color: #c9d6ea; border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden; }
.summary__card::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: -120px; bottom: -140px; background: radial-gradient(circle, rgba(69, 168, 79, .5), transparent 65%); }
.summary__card h3 { color: #fff; font-size: 20px; }
.summary__amount { font-size: 56px; font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1; margin: 10px 0 18px; font-variant-numeric: tabular-nums; }
.summary__row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 15px; position: relative; z-index: 2; }
.summary__row b { color: #fff; text-align: right; }
.trust { display: grid; gap: 12px; }
.trust div { display: flex; gap: 12px; align-items: center; font-size: 14.5px; font-weight: 600; color: var(--ink); background: #fff; padding: 14px 16px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.trust svg { color: var(--green-600); }
.paybox { display: grid; gap: 12px; }
.paybtn { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; text-align: left; transition: all .3s; width: 100%; color: var(--ink); }
.paybtn:hover { border-color: var(--blue-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.paybtn__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; font-weight: 800; }
.paybtn b { display: block; }
.paybtn small { color: var(--muted); }
.paybtn .copy { margin-left: auto; color: var(--blue-700); font-size: 13px; font-weight: 700; display: flex; gap: 6px; align-items: center; }

/* ---------- Éxito ---------- */
.success { text-align: center; padding: 20px 0; }
.success__ico { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%; background: var(--green-100); display: grid; place-items: center; }
.success__ico svg { width: 52px; height: 52px; stroke: var(--green-600); stroke-width: 3; fill: none; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .8s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.code-pill { display: inline-flex; gap: 10px; align-items: center; padding: 12px 20px; border-radius: 14px; background: var(--blue-100); color: var(--blue-900); font-weight: 800; font-size: 22px; letter-spacing: .08em; margin: 10px 0 20px; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; align-items: start; }
.cinfo { display: grid; gap: 16px; }
.cinfo__item { display: flex; gap: 18px; align-items: center; padding: 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
a.cinfo__item:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.cinfo__ico { width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.cinfo__ico svg { width: 24px; height: 24px; }
.cinfo__item small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cinfo__item b { color: var(--ink); font-size: 17px; word-break: break-word; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; margin-top: 30px; }
.map iframe { width: 100%; height: 420px; border: 0; filter: saturate(.9); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.quick button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; color: var(--ink); font-size: 14.5px; transition: all .3s; }
.quick button svg { width: 26px; height: 26px; color: var(--blue-700); }
.quick button.active, .quick button:hover { border-color: var(--green-500); background: var(--green-100); }

/* ---------- Acordeón ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq__item { background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border: 0; background: transparent; text-align: left; font-weight: 700; font-size: 17px; color: var(--ink); }
.faq__q i { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; flex-shrink: 0; transition: transform .4s var(--ease), background .3s, color .3s; }
.faq__item.open .faq__q i { transform: rotate(45deg); background: var(--green-500); color: #fff; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 24px 22px; margin: 0; color: var(--muted); }
.faq__item.open .faq__a { grid-template-rows: 1fr; }

/* ---------- Nosotros ---------- */
.mv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mv__card { padding: 38px 30px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.mv__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mv__card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.mv__card:hover::before { transform: none; }
.mv__card .step__ico { margin-bottom: 20px; }
.mv__card h3 { font-size: 22px; }
.mv__card p { color: var(--muted); margin: 0; }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .12); }
.timeline__fill { position: absolute; left: 50%; top: 0; width: 2px; background: var(--grad); height: 0; }
.tl { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; position: relative; padding: 24px 0; }
.tl::after { content: ''; position: absolute; left: 50%; top: 36px; width: 18px; height: 18px; margin-left: -8px; border-radius: 50%; background: var(--blue-950); border: 3px solid var(--green-300); }
.tl__box { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.tl:nth-child(even) .tl__box { grid-column: 2; }
.tl:nth-child(odd) .tl__box { text-align: right; }
.tl__box b { color: var(--green-300); font-size: 14px; letter-spacing: .12em; }
.tl__box h3 { font-size: 20px; margin: 6px 0; }
.tl__box p { margin: 0; color: #a9b8cf; font-size: 15px; }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.value { text-align: center; padding: 30px 14px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease); }
.value:hover { transform: translateY(-6px) rotate(-1deg); }
.value i { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--grad-soft); color: var(--blue-700); display: grid; place-items: center; }
.value i svg { width: 28px; height: 28px; }
.value b { color: var(--ink); font-size: 17px; }
.leader { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.leader__img { width: 260px; height: 260px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; padding: 20px; position: relative; }
.leader__img::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px dashed var(--green-300); animation: spin 40s linear infinite; }
.leader__img img { width: 100%; height: 100%; object-fit: contain; }
.leader blockquote { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; color: var(--ink); font-style: italic; }

/* ---------- Seguimiento ---------- */
.track { display: flex; gap: 10px; }
.track input { flex: 1; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.status-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.status-steps div { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.status-steps div::before { content: ''; display: block; height: 6px; border-radius: 6px; background: var(--line); margin-bottom: 8px; }
.status-steps div.on { color: var(--green-700); }
.status-steps div.on::before { background: var(--grad); }

/* ---------- Mapa (todas las páginas) ---------- */
.visit { padding: 0 0 clamp(70px, 9vw, 110px); position: relative; }
.visit__wrap { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--blue-100); min-height: 460px; }
.visit__map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.visit__card { position: relative; z-index: 2; width: min(380px, calc(100% - 48px)); margin: 24px 24px 24px auto; padding: 28px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.visit__card h3 { font-size: 26px; margin-bottom: 14px; }
.visit__card h3 em { color: var(--green-600); }
.visit__card ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.visit__card li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 600; font-size: 15px; }
.visit__card li svg { color: var(--green-600); margin-top: 3px; }
.visit__card li a:hover { color: var(--blue-700); }
.visit__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.visit__btns .btn { padding: .85em 1.3em; font-size: 15px; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-950); color: #a9b8cf; padding-top: clamp(70px, 9vw, 110px); position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; width: 700px; height: 700px; left: -300px; bottom: -400px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 111, 209, .25), transparent 65%); }
.footer .container { position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 60px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a { transition: color .25s, padding .3s var(--ease); }
.footer ul a:hover { color: var(--green-300); padding-left: 6px; }
.footer__about p { margin: 20px 0; font-size: 15px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #fff; transition: background .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--green-500); transform: translateY(-3px); }
.fcontact li { display: flex; gap: 12px; align-items: flex-start; }
.fcontact svg { color: var(--green-300); margin-top: 4px; }
.footer__big { font-size: clamp(54px, 15vw, 210px); font-weight: 800; letter-spacing: -.05em; line-height: .8; text-align: center; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; margin-bottom: -.12em; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; position: relative; z-index: 2; background: var(--blue-950); }
.footer__bottom a:hover { color: #fff; }

/* ---------- Flotantes ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab a, .fab button { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 0; color: #fff; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .45); transition: transform .35s var(--ease), opacity .35s; }
.fab a:hover, .fab button:hover { transform: scale(1.08); }
.fab .wa { background: #25d366; position: relative; }
.fab .wa::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2s infinite; }
@keyframes pulse { to { transform: scale(1.6); opacity: 0; } }
.fab .wa svg { width: 28px; height: 28px; }
.fab .top { background: var(--blue-900); width: 48px; height: 48px; opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab .top.show { opacity: 1; pointer-events: auto; transform: none; }
.mobile-donate { display: none; }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 600; transform: translate(-50%, 220%); visibility: hidden; background: var(--blue-950); color: #fff; padding: 14px 22px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; transition: transform .5s var(--ease); max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast svg { color: var(--green-300); }

/* Cursor seguidor (solo escritorio) */
.cursor { position: fixed; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--green-500); pointer-events: none; z-index: 9990; transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s, opacity .3s; opacity: 0; mix-blend-mode: multiply; }
.cursor.hover { width: 64px; height: 64px; background: rgba(155, 208, 106, .25); border-color: transparent; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }

/* ---------- Apps y notificaciones ---------- */
.apps-list a, .push-link { display: inline-flex; align-items: center; gap: 10px; }
.apps-list img { width: 30px; height: 30px; border-radius: 8px; }
.push-link { background: none; border: 0; padding: 0; color: var(--green-300); font: inherit; font-weight: 700; cursor: pointer; }
.push-card { position: fixed; left: 20px; bottom: 20px; z-index: 95; width: min(380px, calc(100% - 40px)); display: flex; gap: 14px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .6s var(--ease); }
.push-card.show { transform: none; }
.push-card__ico { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; animation: ringb 3s ease-in-out infinite; }
@keyframes ringb { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(12deg); } 90% { transform: rotate(-10deg); } 95% { transform: rotate(6deg); } }
.push-card b { color: var(--ink); font-size: 16px; }
.push-card p { margin: 2px 0 12px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.push-card__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.push-card .btn { padding: .7em 1.1em; font-size: 14px; }
@media (max-width: 640px) { .push-card { left: 12px; right: 12px; width: auto; bottom: 84px; } }

/* ---------- Mantenimiento ---------- */
.maint-bar { position: fixed; left: 16px; bottom: 16px; z-index: 300; max-width: min(520px, calc(100% - 100px)); background: #f5b83d; color: #3d2a00; font-weight: 700; font-size: 14px; padding: 12px 16px; border-radius: 16px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); }
.maint-bar a { text-decoration: underline; margin-left: 6px; }
@media (max-width: 640px) { .maint-bar { bottom: 90px; left: 12px; font-size: 13px; } }
.is-maint { overflow: hidden; }
.maint-page { min-height: 100vh; display: grid; place-items: center; padding: 28px 20px; text-align: center; color: #dbe5f3; background: linear-gradient(180deg, rgba(6, 26, 58, .55), rgba(6, 26, 58, .94) 70%), url('../img/bg/hero-voluntarios.svg') 70% bottom/cover, var(--blue-950); }
.maint-page__card { max-width: 620px; display: grid; justify-items: center; gap: 18px; }
.maint-page img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .4)); }
.maint-page h1 { color: #fff; font-size: clamp(30px, 6vw, 52px); margin: 0; }
.maint-page p { margin: 0; font-size: 18px; }
.maint-page__pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; background: rgba(245, 184, 61, .15); border: 1px solid rgba(245, 184, 61, .45); color: #ffd27a; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.maint-page__pill i { width: 9px; height: 9px; border-radius: 50%; background: #f5b83d; }
.maint-page__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header__cta .btn--outline { display: none; }
  .install-btn span { display: none; }
  .install-btn { width: 44px; padding: 0; justify-content: center; }
  .burger { display: block; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .topbar__left a:not(:first-child) { display: none; }
  .about, .testi, .cta, .donate, .contact, .leader { grid-template-columns: 1fr; }
  .leader { justify-items: center; text-align: center; }
  .grid-3, .mv { grid-template-columns: repeat(2, 1fr); }
  .cta__btns { justify-content: flex-start; }
  .summary { position: static; }
  .timeline::before, .timeline__fill { left: 9px; }
  .tl { grid-template-columns: 1fr; gap: 0; padding-left: 40px; }
  .tl::after { left: 9px; }
  .tl:nth-child(even) .tl__box { grid-column: 1; }
  .tl:nth-child(odd) .tl__box { text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { display: none; }
  .page-home .header:not(.scrolled) { top: 0; }
  .header__inner, .header.scrolled .header__inner { height: 74px; }
  .phero { margin-top: -74px; }
  .brand__logo, .header.scrolled .brand__logo { width: 62px; height: 62px; }
  .brand__logo--lg { width: 112px; height: 112px; }
  .header__cta { gap: 6px; }
  .lang { padding: 0 10px; }
  .header__cta .btn { display: none; }
  .hero { min-height: max(600px, 100svh); }
  .hero__content { align-items: flex-end; padding-top: 110px; padding-bottom: 170px; }
  .hero__ui { bottom: 64px; }
  .hero__slide::after { background: linear-gradient(0deg, rgba(6, 26, 58, .95) 0%, rgba(6, 26, 58, .8) 45%, rgba(6, 26, 58, .25) 75%, rgba(6, 26, 58, .35) 100%); }
  .hero__btns .btn { flex: 1 1 150px; padding: .95em 1.2em; font-size: 15px; }
  .fab .wa { opacity: 0; pointer-events: none; transform: scale(.6); }
  .fab.show .wa { opacity: 1; pointer-events: auto; transform: none; }
  .hero__arrows, .hero__scroll { display: none; }
  .hero__dot { width: 36px; }
  .impact { margin-top: -40px; }
  .stat { padding: 22px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .stat__ico { width: 46px; height: 46px; }
  .grid-3, .grid-2, .grid-4, .steps, .mv, .form-row { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .values .value:last-child { grid-column: span 2; }
  .about__badge { width: 118px; height: 118px; }
  .about__badge .c { width: 50px; height: 50px; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .choice-group--grid { grid-template-columns: repeat(2, 1fr); }
  .type-cards { grid-template-columns: 1fr; }
  .quick { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .quick button { font-size: 12.5px; padding: 14px 4px; }
  .leader__img { width: 200px; height: 200px; }
  .lightbox .arrow-btn.lb-prev, .lightbox .arrow-btn.lb-next { top: auto; bottom: 20px; margin: 0; }
  .lightbox .lb-prev { left: calc(50% - 64px); } .lightbox .lb-next { right: calc(50% - 64px); }
  .fab { bottom: 84px; right: 14px; }
  .fab a, .fab button { width: 52px; height: 52px; }
  .mobile-donate { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95; gap: 8px; padding: 8px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-radius: 20px; box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .5s var(--ease); }
  .mobile-donate.show { transform: none; }
  .mobile-donate .btn { flex: 1; padding: .9em 1em; }
  .footer__bottom { padding-bottom: 96px; }
  .visit__wrap { min-height: 0; display: flex; flex-direction: column-reverse; }
  .visit__map { position: relative; height: 300px; }
  .visit__card { width: auto; margin: 0; border-radius: 0; box-shadow: none; background: #fff; }
  .visit__btns .btn { flex: 1; }
  .status-steps div { font-size: 11px; }
  .dstep__nav .btn { flex: 1; }
  .track { flex-direction: column; }
}
@media (hover: none) { .cursor { display: none; } }
@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; }
}

/* =========================================================
   Formularios a prueba de desbordes (todas las páginas)
   Un hijo de grid/flex no se encoge por debajo de su contenido
   (min-width: auto); un botón largo sin salto de línea ensanchaba
   toda la tarjeta en celulares. Aquí todo puede encogerse.
   ========================================================= */
.donate { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
.about--form { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.contact { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-group--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.donate > *, .contact > *, .card, .form, .form > *, .form-row > *, .dstep, .dstep > *, .field, .field > *, .summary, .summary > *, .track > * { min-width: 0; }
.field input, .field select, .field textarea, .track input { max-width: 100%; min-width: 0; }
.field input[type="date"], .field input[type="time"], .field input[type="number"] { min-height: 52px; }
.field input::-webkit-date-and-time-value { text-align: left; }
.choice { max-width: 100%; }
.choice span { max-width: 100%; white-space: normal; }
.check-inline { min-width: 0; overflow-wrap: anywhere; }
.summary__row { gap: 14px; }
.summary__row b { min-width: 0; overflow-wrap: anywhere; }
.form .btn, .dstep .btn, .track .btn { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 900px) {
  .about, .about--form, .testi, .cta, .donate, .contact, .leader { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .choice-group--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 22px 18px; }
  .dstep h3 { font-size: 22px; }
  /* Botones de los pasos: el principal arriba y a lo ancho, “Atrás” debajo */
  .dstep__nav { flex-direction: column-reverse; align-items: stretch; }
  .dstep__nav .btn, .dstep__nav .btn--lg { width: 100%; padding: 1em 1.2em; font-size: 16px; }
  .summary__card { padding: 26px 22px; }
  .summary__amount { font-size: 46px; }
  .impact-box { padding: 14px; gap: 12px; font-size: 15px; }
}
@media (max-width: 360px) {
  .choice-group--grid .choice span { font-size: 16px; padding: 14px 6px; }
  .type-card label { padding: 18px; }
}

/* ---------- Sin zoom accidental en celulares ----------
   1) touch-action: manipulation quita el zoom por doble toque (se mantiene el pellizco, por accesibilidad).
   2) iPhone hace zoom al tocar un campo con letra menor a 16px: en pantallas táctiles todos los campos usan 16px.
   3) overflow-x: clip evita que la página se pueda arrastrar hacia los lados. */
html, body { touch-action: manipulation; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, label, input, select, textarea, [role="button"] { touch-action: manipulation; }
@media (hover: none), (max-width: 1000px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
}

/* Pantalla instantánea mientras llegan los scripts (solo si tarda más de 0.25 s, para no parpadear al navegar) */
body:not(.ready)::before { content: ''; position: fixed; inset: 0; z-index: 9998; background: url("../img/logo.png") center 42% / 168px no-repeat, radial-gradient(1200px 600px at 50% 0%, #f1f8ec, #fff 60%); opacity: 0; animation: plIn .2s .25s forwards; pointer-events: none; }
@keyframes plIn { to { opacity: 1; } }
