/* Web pública de Voluntapp (19-WEB-PUBLICA). Un solo CSS, sin dependencias. Paleta del dosier de marca
   (D-029): fondo Nieve, Azul Cobalto en la estructura, Turquesa/Menta en la identidad y naranja solo en
   la acción principal (#C2410C con blanco, AA). Todo se lee sin JavaScript y con movimiento reducido. */
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url('../../fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url('../../fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url('../../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url('../../fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
    --snow: #f8fafc;       /* fondo */
    --white: #ffffff;      /* tarjetas y secciones alternas */
    --mist: #f1f5f9;
    --cobalt: #1e6091;     /* estructura, títulos, enlaces */
    --cobalt-dark: #16486e;
    --night: #0f172a;      /* pie */
    --ink: #0f172a;
    --muted: #475569;      /* texto de apoyo (7,2:1) */
    --teal: #0d9488;       /* identidad: decoración */
    --teal-text: #0f766e;  /* turquesa como texto o fondo con texto blanco (5,5:1) */
    --mint: #10b981;
    --mint-soft: #a7f3d0;  /* menta sobre cobalto (5,0:1) */
    --cta: #c2410c;        /* solo la acción principal */
    --cta-pressed: #9a3412;
    --line: #e2e8f0;
    --display: Poppins, system-ui, sans-serif;
    --text: Inter, system-ui, sans-serif;
    --radius: 16px;
    --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--snow); color: var(--ink); font: 400 1.0625rem/1.65 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--cobalt); color: var(--white); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); color: var(--cobalt); margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); font-weight: 700; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.12; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
a { color: var(--cobalt); text-underline-offset: 3px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 30; padding: 12px 18px; border-radius: 12px; background: var(--cobalt); color: var(--white); font-weight: 600; }
.skip:focus { top: 12px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 12px; border: 2px solid transparent; font: 700 1.05rem/1.2 var(--display); text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 0.95rem; }
.btn--primary { background: var(--cta); color: var(--white); box-shadow: 0 10px 24px -12px rgba(194, 65, 12, 0.7); }
.btn--primary:hover { background: var(--cta-pressed); }
.btn--cream { background: var(--white); color: var(--cobalt-dark); }
.btn--cream:hover { background: var(--mist); }
.btn--ghost { border-color: var(--cobalt); color: var(--cobalt); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Barra */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(248, 250, 252, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.brand__word { font: 600 1.45rem/1 var(--display); letter-spacing: -0.02em; color: var(--cobalt); }
.brand--light .brand__word { color: var(--white); }
.bar__nav { display: none; gap: 26px; }
.bar__nav a, .bar__lang { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 12px 0; }
.bar__nav a:hover, .bar__lang:hover { color: var(--cobalt); text-decoration: underline; }
.bar__lang { display: none; }
@media (min-width: 560px) { .bar__lang { display: inline; } }
@media (min-width: 960px) { .bar__nav { display: flex; } .brand { margin-right: 0; } .bar__nav { margin-inline: auto; } }

/* Portada */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero__in { display: grid; gap: 40px; align-items: center; }
.hero__kicker { font: 600 1rem/1.3 var(--display); color: var(--teal-text); margin-bottom: 14px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.hero__orgs { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-weight: 600; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 22px 0 0; padding: 0; }
.facts li { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 0.92rem; font-weight: 600; color: var(--teal-text); }
.hero__art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero__loop { position: absolute; width: min(125%, 640px); color: var(--teal); opacity: 0.16; transform: rotate(-6deg); }
.hero__art .phone { transform: rotate(3deg); }
@media (min-width: 900px) { .hero__in { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }

/* Marco de teléfono: misma proporción que la captura (390 × 844), nunca la recorta */
.phone { position: relative; display: block; width: min(62vw, 300px); aspect-ratio: 390 / 844; padding: 9px; border-radius: 42px; background: var(--night); box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(15, 23, 42, 0.2); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: var(--snow); }

/* Secciones */
section { padding: clamp(56px, 9vw, 112px) 0; }
.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }

/* El gran momento: los tres toques. En reposo (sin JS, móvil o movimiento reducido) cada paso lleva su
   captura. Con JS en pantallas anchas el teléfono se queda fijo a media pantalla y los pasos, como
   tarjetas compactas unidas por una línea, se encienden al leerlos (sin huecos grandes entre ellos). */
.story { background: var(--white); }
.story__stage { display: none; }
.story__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; }
.step { display: grid; gap: 28px; justify-items: center; }
.step__text { display: grid; gap: 10px; max-width: 46ch; }
.step__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cobalt); color: var(--white); font: 700 1.25rem/1 var(--display); }
.step h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 700; }
.step p { color: var(--muted); }
@media (min-width: 900px) {
    .step { grid-template-columns: 1fr auto; gap: 64px; align-items: center; justify-items: start; }
    .js .story__grid { display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: start; }
    .js .story__stage { display: block; position: sticky; top: max(96px, calc(50vh - 330px)); }
    .js .story__stage .phone img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); opacity: 0; transition: opacity 0.45s ease; }
    .js .story__stage .phone img.is-on { opacity: 1; }
    .js .story__steps { position: relative; gap: 20px; padding: 18vh 0 22vh; }
    .js .story__steps::before { content: ''; position: absolute; left: 51px; top: 18vh; bottom: 22vh; width: 2px; background: var(--line); }
    .js .step { position: relative; grid-template-columns: 1fr; min-height: 0; padding: 28px; border-radius: var(--radius); border: 1px solid transparent; opacity: 0.45; transition: opacity 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
    .js .step.is-on { opacity: 1; background: var(--white); border-color: var(--line); box-shadow: 0 12px 32px -18px rgba(15, 23, 42, 0.25); }
    .js .step__text { grid-template-columns: 48px 1fr; column-gap: 20px; max-width: 560px; }
    .js .step__text > :not(.step__n) { grid-column: 2; }
    .js .step__n { grid-row: 1 / span 2; position: relative; z-index: 1; }
    .js .step__phone { display: none; }
    .js .story { background: var(--snow); }
}

/* Causas */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.chips li { padding: 11px 20px; border-radius: 999px; font: 600 1.02rem/1.3 var(--display); background: var(--white); border: 1px solid var(--line); color: var(--cobalt); }
.chips li:nth-child(4n + 1) { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.chips li:nth-child(6n + 3) { background: var(--teal-text); border-color: var(--teal-text); color: var(--white); }

/* Entidades */
.orgs { background: var(--cobalt); color: var(--white); }
.orgs h2, .orgs h3 { color: var(--white); }
.orgs .lead, .orgs p { color: #e0ecf6; }
.orgs__in { display: grid; gap: 56px; align-items: center; }
.orgs__kicker { font: 600 1rem/1.3 var(--display); color: var(--mint-soft) !important; margin-bottom: 12px; }
.orgs h2 { margin-bottom: 16px; }
.orgs__list { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 22px; }
.orgs__list li { padding-left: 20px; border-left: 3px solid var(--mint); display: grid; gap: 4px; }
.orgs__count { font: 700 1.25rem/1.3 var(--display); color: var(--white) !important; }
.orgs__note { font-size: 0.95rem; margin: 6px 0 26px; max-width: 48ch; }
.orgs__art { position: relative; display: grid; place-items: center; min-height: 560px; }
.orgs__art .phone { background: var(--night); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6); }
.orgs__back { transform: translateX(-22%) rotate(-5deg) scale(0.9); opacity: 0.9; }
.orgs__front { position: absolute; transform: translateX(22%) translateY(4%) rotate(4deg); }
@media (min-width: 900px) { .orgs__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .orgs__art { min-height: 470px; } .orgs__art .phone { width: 52vw; } }

/* Quién lo hace posible */
.backers__group { display: grid; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.backers__group h3 { font-size: 1rem; color: var(--muted); font-weight: 600; }
.backers__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.backers__list a { display: grid; place-items: center; min-height: 96px; padding: 16px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: box-shadow 0.15s ease, border-color 0.15s ease; }
.backers__list a:hover { border-color: #cbd5e1; box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.3); }
.backers__list img { display: block; height: 64px; width: auto; max-width: 240px; object-fit: contain; }
@media (min-width: 760px) { .backers__group { grid-template-columns: 200px 1fr; align-items: center; gap: 32px; } }
@media (max-width: 520px) { .backers__list a { min-height: 80px; padding: 12px 16px; } .backers__list img { height: 48px; max-width: 200px; } }

/* Hecha con cuidado */
.care h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.care__list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.care__list > div { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.care__list dt { font: 600 1.2rem/1.3 var(--display); color: var(--cobalt); }
.care__list dd { margin: 0; color: var(--muted); max-width: 60ch; }
@media (min-width: 760px) { .care__list > div { grid-template-columns: 300px 1fr; gap: 32px; align-items: baseline; } }

/* Preguntas */
.faq { background: var(--white); }
.faq__in { display: grid; gap: 36px; }
.faq__list { display: grid; gap: 34px; }
.faq__list article { display: grid; gap: 8px; }
.faq__list p { color: var(--muted); max-width: 68ch; }
@media (min-width: 900px) { .faq__in { grid-template-columns: 300px 1fr; gap: 64px; } .faq h2 { position: sticky; top: 104px; align-self: start; } }

/* Cierre */
.close__in { display: grid; justify-items: center; text-align: center; gap: 16px; }
.close .lead { margin-bottom: 14px; }
.close .actions { justify-content: center; }

/* Pie */
.foot { background: var(--night); color: #cbd5e1; padding: 56px 0 28px; font-size: 0.97rem; }
.foot__in { display: grid; gap: 36px; }
.foot__brand { display: grid; gap: 8px; justify-items: start; }
.foot h2 { font: 600 0.95rem/1.3 var(--display); color: var(--white); margin-bottom: 8px; letter-spacing: 0; }
.foot nav { display: grid; justify-items: start; }
.foot a { color: #cbd5e1; text-decoration: none; padding: 9px 0; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(248, 250, 252, 0.14); font-size: 0.9rem; }
.foot__base a { margin-left: auto; padding: 0; }
@media (min-width: 760px) { .foot__in { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Legales y errores */
.legal { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin: 18px 0 24px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 8px; }
.legal p { max-width: 70ch; }
.legal__back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.legal__draft { padding: 14px 18px; border-radius: 14px; border-left: 4px solid var(--cobalt); background: var(--white); font-weight: 600; color: var(--ink); }
.holder { margin: 16px 0 0; padding: 6px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.holder > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.holder > div:last-child { border-bottom: 0; }
.holder dt { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.holder dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 560px) { .holder > div { grid-template-columns: 140px 1fr; align-items: baseline; } }
.oops { display: grid; justify-items: center; text-align: center; gap: 16px; padding: clamp(64px, 12vw, 140px) 0; }
.oops .lead { margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
