/* ===== QM Puentes Digitales ===== */
:root {
  --ink: #0e211d;
  --deep: #14322e;
  --teal: #1f6f66;
  --teal-2: #3f8c7f;
  --mint: #9fc2ba;
  --mint-2: #dce9e5;
  --accent: #e95714;
  --accent-2: #f0b593;
  --bg: #faf8f4;
  --tint: #f1ede4;
  --text: #16332c;
  --muted: #4d6660;
  --line: #d9cfc4;
  --radius: 20px;
  --shadow: 0 20px 50px -24px rgba(14, 33, 29, .35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.12; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--accent); }
cite { font-style: normal; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(233, 87, 20, .7); }
.btn--accent:hover { background: #d44c0d; }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.eyebrow--light { color: var(--mint); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61,220,151,.2); animation: pulse 2s infinite; }
.hero .eyebrow::before { display: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } }

/* ----- nav ----- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(14, 33, 29, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand img { width: 52px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font: 600 1.15rem var(--serif); font-style: italic; }
.brand__text small { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; opacity: .8; margin-top: .25rem; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a:not(.btn) { color: rgba(255,255,255,.82); text-decoration: none; font-size: .95rem; font-weight: 500; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: #fff; }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- hero ----- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, #1f6f66 0%, transparent 60%), linear-gradient(160deg, #14322e 0%, #0e211d 70%);
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 4rem) 0 9rem;
}
.hero__blob { position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none; }
.hero__blob--a { width: 520px; height: 520px; left: -180px; bottom: -240px; background: radial-gradient(circle, rgba(233,87,20,.38), transparent 65%); }
.hero__blob--b { width: 460px; height: 460px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(240,181,147,.22), transparent 65%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--accent-2); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.8); max-width: 38em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { font-size: .85rem; padding: .4rem .9rem; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.chips li::before { content: "✓ "; color: var(--accent-2); }
.hero__bridge { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; }

.hero__visual { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.05); } }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ----- saludo, rotador y selector ----- */
.greeting {
  display: inline-flex; align-items: center; gap: .6rem; max-width: 40rem;
  margin: 0 0 1.4rem; padding: .55rem 1rem .55rem .65rem; border-radius: 16px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  font-size: .9rem; line-height: 1.45; color: rgba(255,255,255,.88); animation: pop .6s ease;
}
.greeting b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(240,181,147,.18); font-size: 1.1rem; }
.hero h1 { transition: opacity .35s; }
.hero h1.is-swapping, .hero .lead.is-swapping { opacity: 0; }
.hero .lead { transition: opacity .35s; }

.rotator { display: flex; align-items: center; gap: .9rem; margin: -.2rem 0 1.3rem; min-height: 56px; }
.rotator[hidden] { display: none !important; }
.rotator__avatar {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.6rem; background: linear-gradient(145deg, #f0b593, #e95714);
  box-shadow: 0 0 0 4px rgba(240,181,147,.18); transition: transform .45s cubic-bezier(.3,1.5,.5,1);
}
.rotator__text { margin: 0; display: flex; flex-direction: column; font: 400 1.12rem/1.35 var(--serif); color: #fff; }
.rotator__text > span { transition: opacity .35s, transform .35s; }
.rotator__text strong { color: var(--accent-2); font-weight: 600; }
.rotator.is-out .rotator__text > span { opacity: 0; transform: translateY(6px); }
.rotator.is-out .rotator__avatar { transform: scale(.6) rotate(-20deg); }

.chooser { margin: 1.6rem 0 .4rem; }
.chooser__label { margin: 0 0 .7rem; font: 600 1.05rem var(--serif); color: #fff; }
.chooser__opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.chooser__opts button {
  font: 600 .86rem var(--sans); color: #fff; cursor: pointer;
  padding: .5rem .95rem; border-radius: 999px; background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.2); transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.chooser__opts button:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.chooser__opts button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }

/* ----- manos que se encuentran ----- */
.hands { position: relative; width: min(100%, 480px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.hands__ring { position: absolute; inset: 4%; border-radius: 50%; border: 1.5px dashed rgba(159,194,186,.3); animation: spin 70s linear infinite; }
.hands__ring--2 { inset: 16%; border: 0; background: radial-gradient(circle at 50% 45%, rgba(31,111,102,.85), rgba(20,50,46,.2) 70%); animation: none; }
.hands__svg { position: relative; width: 82%; overflow: visible; --p: 0; }
.hands__left { transform: translateX(calc((1 - var(--p)) * -46px)) rotate(calc((1 - var(--p)) * -8deg)); transform-origin: 120px 170px; }
.hands__right { transform: translateX(calc((1 - var(--p)) * 46px)) rotate(calc((1 - var(--p)) * 8deg)); transform-origin: 222px 170px; }
.hands__arc { transform: translateY(calc((1 - var(--p)) * -10px)); opacity: calc(.35 + var(--p) * .65); }
.hands__spark { opacity: 0; transform-origin: 171px 118px; transform: scale(.4); transition: opacity .5s, transform .5s; }
.hands.is-together .hands__spark { opacity: 1; transform: scale(1.4); }
.hands__hint { position: absolute; bottom: 2%; left: 0; right: 0; margin: 0; text-align: center; font-size: .82rem; color: var(--mint); }
.hands__hint span { transition: opacity .4s; }
.hands__hint [data-when="together"] { position: absolute; inset: 0; opacity: 0; color: var(--accent-2); font-weight: 600; }
.hands.is-together .hands__hint [data-when="apart"] { opacity: 0; }
.hands.is-together .hands__hint [data-when="together"] { opacity: 1; }

/* ----- puente que se construye ----- */
.build { position: relative; height: 340vh; background: #07130f; --p: 0; }
.build::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: var(--bg); clip-path: ellipse(75% 100% at 50% 100%); }
.build__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(180deg, #07130f, #0b1d19); }
.build__inner { display: grid; gap: 1rem; padding-top: var(--nav-h); width: min(1240px, 100% - 2rem); }
.build__title { margin: 0; text-align: center; color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
.build__stage { width: 100%; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.06); }
.build__svg { width: 100%; height: auto; display: block; }
.build__svg text { font: 600 17px var(--sans); fill: #fff; paint-order: stroke; stroke: rgba(7,19,15,.55); stroke-width: 4px; }

/* etapas (derivadas de --p) */
.build { --dawn: clamp(0, calc((var(--p) - .2) * 1.6), 1);
  --tower: clamp(0, calc((var(--p) - .22) * 7), 1);
  --cable: clamp(0, calc((var(--p) - .34) * 6), 1);
  --lights: clamp(0, calc((var(--p) - .68) * 8), 1); }

.build .dawn { opacity: var(--dawn); }
.build .stars circle { fill: #fff; opacity: calc((1 - var(--dawn)) * .8); animation: twinkle 3s ease-in-out var(--d) infinite; }
@keyframes twinkle { 50% { opacity: calc((1 - var(--dawn)) * .25); } }
.build .sun { transform: translateY(calc(140px - var(--dawn) * 250px)); }
.build .sun-ref { opacity: calc(var(--dawn) * .7); }
.build .mnt--far { fill: #1a3a36; transform: translateY(calc(var(--p) * -14px)); }
.build .mnt--mid { fill: #143029; transform: translateY(calc(var(--p) * -6px)); }
.build .mnt--far { fill: color-mix(in srgb, #1a3a36, #8a5a55 calc(var(--dawn) * 45%)); }
.build .mnt--mid { fill: color-mix(in srgb, #143029, #5e4a45 calc(var(--dawn) * 35%)); }
.build .bank { fill: #1a3833; }
.build .hwin { fill: #ffcf87; filter: url(#glow); opacity: calc(1 - var(--dawn) * .5); }
.build .cwin { fill: #ffd9a0; opacity: .08; transition: opacity .4s; }
.build[data-step="1"] .cwin, .build[data-step="2"] .cwin { opacity: calc(.15 + var(--w) * .25); }
.build[data-step="3"] .cwin { opacity: .95; filter: url(#glow); }
.build .beacon { fill: #ff4d3a; animation: beacon 1.6s steps(1) infinite; }
@keyframes beacon { 50% { opacity: .2; } }

.build .waves path { fill: none; stroke: #9fc2ba; stroke-width: 1.4; stroke-linecap: round; opacity: .35; animation: drift 7s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(-24px); } }
.build .fogband { opacity: calc(.9 - var(--dawn) * .5); animation: fog 18s ease-in-out infinite alternate; }
@keyframes fog { to { transform: translateX(160px); } }
.build .bridge--ref { opacity: .28; }

.build .tw { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--tower)); }
.build .cable { fill: none; stroke: #f0b593; stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--cable)); }
.build .sp { stroke: #cfd8d4; stroke-width: 1.1; opacity: clamp(0, calc((var(--p) - .44 - var(--i) * .006) * 18), .85); }
.build .seg { opacity: clamp(0, calc((var(--p) - .48 - var(--k) * .028) * 22), 1); }
.build .seg--l { transform: translateX(calc((1 - clamp(0, calc((var(--p) - .48 - var(--k) * .028) * 22), 1)) * -60px)); }
.build .seg--r { transform: translateX(calc((1 - clamp(0, calc((var(--p) - .48 - var(--k) * .028) * 22), 1)) * 60px)); }
.build .rail { fill: #fff; opacity: clamp(0, calc((var(--p) - .66) * 12), .7); }
.build .lamp { fill: #ffe2b0; filter: url(#glow); opacity: clamp(0, calc((var(--p) - .66 - var(--i) * .004) * 14), 1); }

.build .walker { transform: translateX(calc(clamp(0, (var(--p) - var(--s)) / (.98 - var(--s)), 1) * var(--dist))); opacity: clamp(0, calc((var(--p) - var(--s) + .04) * 25), 1); }
.build .walker line { stroke-width: 3.4; stroke-linecap: round; }
.build .leg, .build .arm { transform-box: fill-box; transform-origin: 50% 0; animation: stride .5s ease-in-out infinite alternate; }
.build .leg--b { animation-direction: alternate-reverse; }
.build .arm { animation-direction: alternate-reverse; }
@keyframes stride { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
.build .walker__body { animation: bob .25s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-1.5px); } }

.build .bird { fill: none; stroke: #0b1d19; stroke-width: 1.8; stroke-linecap: round; opacity: calc(var(--dawn) * .8); animation: fly 16s linear calc(var(--b) * -3s) infinite; }
@keyframes fly { to { transform: translateX(1300px) translateY(-30px); } }

.build .lbl-after { opacity: 0; transition: opacity .6s; }
.build[data-step="3"] .lbl-before { opacity: 0; }
.build[data-step="3"] .lbl-after { opacity: 1; }
.build .lbl-before { transition: opacity .6s; }

.build__steps { list-style: none; margin: 0 auto; padding: 0; position: relative; min-height: 3.2em; width: min(100%, 760px); text-align: center; }
.build__steps li { position: absolute; inset: 0; font: 400 clamp(1.1rem, 2.1vw, 1.55rem)/1.35 var(--serif); color: #fff; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.build[data-step="0"] li[data-step="0"], .build[data-step="1"] li[data-step="1"],
.build[data-step="2"] li[data-step="2"], .build[data-step="3"] li[data-step="3"] { opacity: 1; transform: none; }
.build__steps li[data-step="3"] { color: var(--accent-2); }
.build__progress { display: flex; justify-content: center; gap: .4rem; }
.build__progress i { width: 34px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; position: relative; }
.build__progress i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(clamp(0, calc((var(--p) - var(--a)) / .25), 1)); }
.build.is-static { height: auto; padding: 5rem 0; }
.build.is-static .build__sticky { position: static; height: auto; }
.build.is-static li { position: static; display: none; }
.build.is-static li[data-step="3"] { display: block; opacity: 1; transform: none; }
.build.is-static .build__progress { display: none; }

/* ----- mapa ----- */
.map-section { overflow: hidden; }
.map-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.map { position: relative; width: min(100%, 440px); margin-inline: auto; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map__land { fill: rgba(159,194,186,.1); stroke: rgba(159,194,186,.55); stroke-width: 2; stroke-linejoin: round; }
.map__island { fill: rgba(159,194,186,.55); }
.map__arc { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; opacity: .75; transition: stroke-dashoffset 1.1s ease-out calc(var(--i) * .18s + .2s); }
.map.is-in .map__arc { stroke-dashoffset: 0; }
.map__hub { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.city__dot { fill: #fff; opacity: 0; transition: opacity .4s calc(var(--i) * .18s + .3s), fill .4s; }
.city__halo { fill: var(--accent-2); opacity: 0; transform-box: fill-box; transform-origin: center; }
.map.is-in .city__dot { opacity: 1; fill: var(--accent-2); }
.map.is-in .city__halo { animation: halo 2.8s ease-out calc(var(--i) * .18s + .3s) infinite; }
@keyframes halo { 0% { opacity: .7; transform: scale(.3); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
.map-legend { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .6rem; font-size: .95rem; }
.map-legend li { display: flex; align-items: center; gap: .7rem; }
.map-legend__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 5px rgba(240,181,147,.2); }
.map-legend__hub { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2.5px solid #fff; }
.map-legend__line { width: 26px; height: 3px; border-radius: 3px; background: var(--accent); }
.note--light { color: var(--mint); text-align: left; }

/* ----- idioma ----- */
.lang {
  font: 700 .8rem var(--sans); letter-spacing: .06em; color: #fff; cursor: pointer;
  padding: .45rem .7rem; border-radius: 10px; background: transparent; border: 1.5px solid rgba(255,255,255,.35);
}
.lang:hover { background: rgba(255,255,255,.12); }

/* ----- panel de accesibilidad ----- */
.a11y-btn {
  position: fixed; z-index: 61; left: 1.2rem; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff; cursor: pointer;
  display: grid; place-items: center; background: #1a5fd0; color: #fff;
  box-shadow: 0 12px 26px -10px rgba(26,95,208,.8); transition: transform .2s;
}
.a11y-btn:hover { transform: scale(1.06); }
.a11y-btn svg { width: 28px; height: 28px; fill: currentColor; }
.a11y {
  position: fixed; z-index: 62; left: 1.2rem; bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px));
  width: 320px; max-height: calc(100vh - 7rem); overflow: auto; padding: 1.2rem 1.3rem 1.3rem;
  border-radius: 20px; background: #fff; color: var(--text); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  display: grid; gap: .8rem; animation: pop .25s ease;
}
.a11y__head { display: flex; justify-content: space-between; align-items: center; }
.a11y__head h2 { font: 700 1.15rem var(--sans); margin: 0; letter-spacing: 0; }
.a11y__close { border: 0; background: var(--tint); width: 34px; height: 34px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--text); }
.a11y__label { margin: 0 0 .4rem; font-size: .85rem; font-weight: 600; }
.a11y__size { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; }
.a11y__size button { font: 700 1rem var(--sans); padding: .5rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; color: var(--text); }
.a11y__size output { font-weight: 700; min-width: 3.5em; text-align: center; }
.a11y__switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .2rem; border-top: 1px solid var(--tint); cursor: pointer; font-size: .95rem; }
.a11y__switch input { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #c9d3d0; position: relative; cursor: pointer; transition: background .2s; order: 2; }
.a11y__switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.a11y__switch input:checked { background: #1a5fd0; }
.a11y__switch input:checked::after { transform: translateX(18px); }
.a11y__reset { justify-self: start; border: 0; background: none; color: #1a5fd0; font: 600 .9rem var(--sans); text-decoration: underline; cursor: pointer; padding: 0; }
.a11y__lsc { display: flex; gap: .7rem; padding: .9rem; border-radius: 14px; background: var(--tint); font-size: .85rem; line-height: 1.45; }
.a11y__lsc p { margin: 0; }
.a11y__lsc-icon { font-size: 1.6rem; }

/* modos de accesibilidad */
html.a11y-links a { text-decoration: underline !important; }
html.a11y-readable body { letter-spacing: .03em; word-spacing: .08em; line-height: 1.8; }
html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable .rotator__text,
html.a11y-readable .mv__card p, html.a11y-readable .gap__note, html.a11y-readable .build__steps li { font-family: var(--sans); font-style: normal; letter-spacing: 0; }
html.a11y-readable em { font-style: normal; }
html.a11y-contrast {
  --text: #000; --muted: #1b1b1b; --line: #3a3a3a; --bg: #fff; --tint: #f2f2f2;
  --teal: #0b4f47; --accent: #b83c00; --mint: #e6f2ef; --accent-2: #ffd2b8;
}
html.a11y-contrast .section--dark, html.a11y-contrast .hero, html.a11y-contrast .footer, html.a11y-contrast .reqs,
html.a11y-contrast .pop__card--wide, html.a11y-contrast .build, html.a11y-contrast .nav.is-scrolled { background: #000 !important; color: #fff; }
html.a11y-contrast .section--dark p, html.a11y-contrast .hero .lead, html.a11y-contrast .footer a { color: #fff; }
html.a11y-contrast .pillar, html.a11y-contrast .fact, html.a11y-contrast .pop__card, html.a11y-contrast .faq details,
html.a11y-contrast .form, html.a11y-contrast .program__main { border: 2px solid #000; }
html.a11y-contrast .fact--highlight { background: #b83c00; }
html.a11y-contrast .btn--ghost { border-color: #fff; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion .reveal { opacity: 1 !important; transform: none !important; }

/* ----- sections ----- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section--tint { background: var(--tint); }
.section--soft { background: linear-gradient(180deg, var(--bg), #fdf1e9); }
.section--dark { background: linear-gradient(170deg, var(--deep), var(--ink)); color: rgba(255,255,255,.82); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark h2 em { color: var(--accent-2); }
.section--dark cite { color: var(--mint); }
.head { max-width: 720px; margin-bottom: 3.5rem; }
.sub { font-size: 1.15rem; color: var(--muted); }
.section--dark .sub { color: rgba(255,255,255,.7); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.split--center { align-items: center; }
.split p { color: var(--muted); }
.split p strong { color: var(--text); }

.pillars { display: grid; gap: 1rem; }
.pillar { display: flex; gap: 1.2rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s, box-shadow .3s, border-color .3s; }
.pillar:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar h3 { margin-bottom: .3rem; }
.pillar p { margin: 0; font-size: .95rem; }
.pillar__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--mint-2); }
.pillar__icon svg, .support__card svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* misión / visión */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv__card { position: relative; padding: clamp(2rem, 4vw, 3rem); border-radius: 28px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.mv__card p { font: 400 clamp(1.1rem, 1.7vw, 1.3rem)/1.6 var(--serif); margin: 0; }
.mv__card--dark { background: var(--teal); color: #fff; }
.mv__card--dark strong { color: var(--accent-2); }
.mv__card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 30px solid rgba(233,87,20,.08); }
.mv__tag { display: inline-block; font: 700 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; background: var(--mint-2); color: var(--teal); margin-bottom: 1.4rem; }
.mv__card--dark .mv__tag { background: rgba(255,255,255,.15); color: #fff; }

/* brecha */
.gap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: stretch; }
.gap__bridge { align-self: center; }
.gap__side { padding: 2.2rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.gap__label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.stat { display: block; font: 700 clamp(2.6rem, 5vw, 3.8rem)/1.05 var(--serif); color: var(--accent-2); margin: .6rem 0 .8rem; }
.gap__bridge { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; font-size: .82rem; color: var(--mint); width: 200px; }
.gap__bridge svg { width: 100%; overflow: visible; }
.gap__bridge .arc, .gap__bridge .deck, .gap__bridge .cables path { fill: none; stroke-linecap: round; }
.gap__bridge .arc { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.6s ease .2s; }
.gap__bridge .deck { stroke: #fff; stroke-width: 3; }
.gap__bridge .cables path { stroke: var(--mint); stroke-width: 1.4; opacity: .6; }
.gap__bridge.is-in .arc { stroke-dashoffset: 0; }
.gap__note { max-width: 680px; margin: 3rem auto 0; text-align: center; font: 400 clamp(1.15rem, 2vw, 1.45rem)/1.5 var(--serif); color: #fff; }

/* programa */
.program { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
.program__main { position: relative; padding: clamp(2rem, 4vw, 3rem); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.program__num { position: absolute; right: 2rem; top: 1rem; font: 700 5.5rem/1 var(--serif); color: var(--mint-2); }
.program__main h3 { font: 600 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--serif); max-width: 80%; position: relative; }
.program__main > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .75rem; align-items: start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: .15rem; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.badges span { font-size: .8rem; font-weight: 600; padding: .4rem .85rem; border-radius: 999px; background: var(--mint-2); color: var(--teal); }

.steps { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 1.1rem; }
.steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 12px); }
.steps li { position: relative; display: flex; gap: 1.2rem; padding: 1rem 0; }
.steps li > span { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: #fff; font: 700 1.1rem var(--serif); box-shadow: 0 0 0 6px var(--bg); }
.steps li:last-child > span { background: var(--accent); }
.steps h4 { margin: .2rem 0 .25rem; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* poblaciones */
.pop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.pop__card { display: flex; flex-direction: column; padding: 1.7rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.pop__card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pop__card--wide { grid-column: span 2; background: var(--deep); color: rgba(255,255,255,.8); border-color: transparent; }
.pop__card--wide h3 { color: #fff; }
.pop__card--wide cite { color: var(--mint); }
.pop__card--plain { background: transparent; }
.pop__card--full { grid-column: 1 / -1; }
.pop__card h3 { font-size: 1.05rem; }
.pop__card p { font-size: .93rem; margin-bottom: .6rem; }
.pop__card cite { margin-top: auto; }
.pop__num { font: 700 2.3rem/1.1 var(--serif) !important; color: var(--accent); margin: .2rem 0 .4rem !important; }
.pop__card--wide .pop__num { color: var(--accent-2); }
.note { margin-top: 2rem; font-size: .85rem; color: var(--muted); text-align: center; }

/* alianza */
.platform { position: relative; padding: 2rem; border-radius: 32px; background: linear-gradient(145deg, var(--teal), var(--deep)); box-shadow: var(--shadow); }
.platform::before { content: ""; position: absolute; inset: -14px 24px auto auto; width: 90px; height: 90px; border-radius: 22px; background: var(--accent); transform: rotate(12deg); z-index: -1; }
.platform__screen { background: #0b1a17; border-radius: 18px; padding: 1.6rem; display: grid; gap: 1.1rem; }
.platform__top { display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 600; margin-bottom: .4rem; }
.platform__top b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); font-family: var(--mono); }
.platform__row { display: grid; grid-template-columns: 1fr 96px; align-items: center; gap: 1rem; }
.platform__row span { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.platform__row span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal-2), var(--mint)); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.platform.is-in .platform__row span::after { width: var(--w); }
.platform__row em { font: 500 .78rem var(--mono); color: var(--mint); font-style: normal; }

/* apoyar */
.support { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.support__card { display: flex; flex-direction: column; padding: 1.8rem; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .3s, transform .3s, border-color .3s; }
.support__card:hover { background: rgba(255,255,255,.09); transform: translateY(-5px); border-color: rgba(240,181,147,.4); }
.support__card svg { width: 34px; height: 34px; stroke: var(--accent-2); margin-bottom: 1.2rem; }
.support__card p { font-size: .93rem; }
.support__card a { margin-top: auto; color: var(--accent-2); font-weight: 600; text-decoration: none; }
.support__card a:hover { text-decoration: underline; }

/* contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact > div > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; flex-direction: column; padding-bottom: 1rem; border-bottom: 1px solid var(--line); word-break: break-word; }
.contact__list span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact__list a { color: var(--teal); font-weight: 600; text-decoration: none; }
.contact__list a:hover { color: var(--accent); }
.form { padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 28px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,111,102,.15); }
.field .is-invalid { border-color: #c0392b; }
.form__hint { margin: 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* footer */
.footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 4rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer img { width: 120px; margin-bottom: 1rem; }
.footer h4 { color: #fff; margin-bottom: 1rem; }
.footer nav, .footer__grid > div:last-child { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.footer a { color: rgba(255,255,255,.75); text-decoration: none; word-break: break-word; }
.footer a:hover { color: var(--accent-2); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer__bottom p { margin: 0; }

/* detalles del programa */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.fact { padding: 1.8rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.fact:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.fact__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--tint); font-size: 1.6rem; margin-bottom: 1rem; }
.fact h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.fact__big { font: 700 2rem/1.1 var(--serif); color: var(--ink); margin-bottom: .5rem; }
.fact p:last-child { margin: 0; font-size: .93rem; color: var(--muted); }
.fact--highlight { background: var(--accent); border-color: transparent; color: #fff; }
.fact--highlight .fact__icon { background: rgba(255,255,255,.2); }
.fact--highlight h3, .fact--highlight p:last-child { color: rgba(255,255,255,.9); }
.fact--highlight .fact__big { color: #fff; font-size: 2.8rem; }
.reqs { margin-top: 1.5rem; padding: clamp(1.8rem, 4vw, 2.6rem); border-radius: 28px; background: var(--deep); color: rgba(255,255,255,.88); }
.reqs h3 { color: #fff; font: 600 1.5rem var(--serif); }
.ticks--grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .9rem 2rem; margin-bottom: 2rem; }

/* minijuego */
.game-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.game-note { font-size: .82rem; color: var(--muted); }
.game { position: relative; padding: clamp(1.4rem, 3.5vw, 2.2rem); border-radius: 28px; background: var(--tint); border: 1px solid var(--line); min-height: 420px; }
.game__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.game__dots { display: flex; gap: .4rem; }
.game__dots i { width: 28px; height: 6px; border-radius: 999px; background: var(--line); }
.game__dots i.is-done { background: var(--teal-2); }
.game__dots i.is-now { background: var(--accent); }
.msg { background: #fff; border-radius: 18px; box-shadow: 0 14px 34px -20px rgba(14,33,29,.45); overflow: hidden; }
.msg__head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--tint); }
.msg__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--teal-2); }
.msg__from { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.msg__from strong { font-size: .95rem; }
.msg__from small { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.msg__kind { margin-left: auto; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--tint); padding: .25rem .6rem; border-radius: 999px; }
.msg__body { padding: 1.1rem 1.2rem 1.3rem; font-size: .96rem; }
.msg__body p { margin: 0 0 .6rem; }
.msg__body p:last-child { margin: 0; }
.msg__link { color: #1a5fd0; text-decoration: underline; overflow-wrap: anywhere; }
.msg__btn { display: inline-block; margin-top: .3rem; padding: .5rem 1rem; border-radius: 8px; background: #1a5fd0; color: #fff; font-weight: 600; font-size: .9rem; }
.game__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.2rem; }
.choice { font: inherit; font-weight: 700; padding: 1rem; border-radius: 14px; cursor: pointer; border: 2px solid transparent; transition: transform .2s, background .2s; }
.choice:hover { transform: translateY(-2px); }
.choice--safe { background: #e1f3ec; color: #16664a; border-color: #bfe5d5; }
.choice--scam { background: #fde6dc; color: #a53c0c; border-color: #f7c7b0; }
.feedback { margin-top: 1.2rem; padding: 1.1rem 1.2rem; border-radius: 16px; background: #fff; border-left: 5px solid var(--teal-2); animation: pop .35s ease; }
.feedback.is-wrong { border-left-color: var(--accent); }
.feedback h4 { margin-bottom: .4rem; font-size: 1.05rem; }
.feedback ul { margin: .3rem 0 1rem; padding-left: 1.1rem; font-size: .93rem; }
.feedback p { font-size: .93rem; }
.feedback li { margin-bottom: .25rem; }
.game__end { text-align: center; padding: 1.5rem .5rem; animation: pop .35s ease; }
.game__score { font: 700 4rem/1 var(--serif); color: var(--accent); margin: .5rem 0; }
.game__end p { color: var(--muted); max-width: 30em; margin-inline: auto; }
.game__end .btn { margin: .4rem; }
.btn--outline { border-color: var(--line); color: var(--text); background: #fff; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq { display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 3.4rem 1.15rem 1.3rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent); font-size: 1.3rem; font-weight: 500; transition: transform .3s; }
.faq details[open] summary::after { content: "–"; background: var(--accent); color: #fff; }
.faq details p { margin: 0; padding: 0 1.3rem 1.3rem; color: var(--muted); }

/* WhatsApp */
.btn--wa { background: #25d366; color: #0b3d22; margin-top: .5rem; }
.btn--wa:hover { background: #1fbd5a; }
.wa-float {
  position: fixed; z-index: 60; right: 1.2rem; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: .6rem; padding: .8rem 1.2rem .8rem .9rem; border-radius: 999px;
  background: #25d366; color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.7); transition: transform .2s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: ring 2.6s infinite; }
@keyframes ring { 70%, 100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }

/* consentimiento */
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .84rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--accent); }
.consent a { color: var(--teal); font-weight: 600; }
.consent.is-invalid span { color: #c0392b; }

/* página legal */
.page-legal .nav__inner .btn--ghost { white-space: nowrap; }
.legal { max-width: 860px; padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 3.5rem) 0 5rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.legal h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-top: 2.8rem; }
.legal h3 { font-size: 1.05rem; }
.legal p, .legal li { color: #34504a; }
.legal li { margin-bottom: .45rem; }
.legal a { color: var(--teal); }
.legal__meta { color: var(--muted); font-size: .9rem; }
.legal__toc { margin: 2rem 0; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--tint); }
.legal__toc ol { columns: 2; column-gap: 2rem; margin: .8rem 0 0; padding-left: 1.2rem; }
.legal__toc li { margin-bottom: .3rem; break-inside: avoid; }
.legal__data { list-style: none; padding: 0; display: grid; gap: .1rem; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.legal__data li { display: grid; grid-template-columns: 190px 1fr; gap: 1rem; margin: 0; padding: .8rem 1.1rem; background: #fff; overflow-wrap: anywhere; }
.legal__data li:nth-child(even) { background: var(--bg); }
.legal__data span { font-weight: 600; color: var(--ink); }
.legal__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.legal__cards > div { padding: 1.4rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.legal__cards p { margin: 0; font-size: .95rem; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ===== responsive ===== */
@media (max-width: 1080px) {
  .support { grid-template-columns: repeat(2, 1fr); }
  .pop { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 920px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.25rem 1.5rem; background: rgba(14,33,29,.97); backdrop-filter: blur(14px);
    transform: translateY(-120%); opacity: 0; visibility: hidden; transition: transform .35s, opacity .35s, visibility .35s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 1rem; }
  .nav.menu-open { background: rgba(14,33,29,.97); }

  .hero__grid, .split, .program, .contact, .mv, .game-wrap, .faq-wrap, .map-wrap { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 320px; margin: 0 auto -1rem; }
  .nav__links .lang { margin-top: .8rem; align-self: flex-start; }
  .build { height: 280vh; }
  .build__svg text { font-size: 26px; }
  .build__stage { border-radius: 14px; }
  .build__svg { height: clamp(260px, 42vh, 420px); }
  .build__svg .labels { display: none; }
  .gap { grid-template-columns: 1fr; }
  .gap__bridge { margin: 0 auto; transform: rotate(90deg); height: 120px; justify-content: center; }
  .gap__bridge span { display: none; }
  .platform { order: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 2rem); }
  .brand__text { display: none; }
  .hero { padding-bottom: 7rem; }
  .hero__cta .btn { width: 100%; }
  .hands { width: 86%; }
  .chooser__opts button { font-size: .8rem; padding: .45rem .8rem; }
  .build__title { font-size: 1.5rem; }
  .build__steps li { font-size: 1.05rem; }
  .a11y { left: .75rem; right: .75rem; width: auto; }
  .facts { grid-template-columns: 1fr; }
  .game { min-height: 0; }
  .game__actions { grid-template-columns: 1fr; }
  .msg__kind { display: none; }
  .wa-float span { display: none; }
  .wa-float { padding: .85rem; right: .9rem; }
  .a11y-btn { left: .9rem; width: 50px; height: 50px; }
  .a11y { bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }
  .hero__visual { max-width: 240px; }
  .hands__hint { font-size: .72rem; bottom: -2%; }
  .legal__toc ol { columns: 1; }
  .legal__data li { grid-template-columns: 1fr; gap: .1rem; }
  .legal__cards { grid-template-columns: 1fr; }
  .pop, .support { grid-template-columns: 1fr; }
  .pop__card--wide { grid-column: auto; }
  .program__num { font-size: 4rem; right: 1.2rem; }
  .platform__row { grid-template-columns: 1fr 80px; }
  .footer__grid { grid-template-columns: 1fr; }
}

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