/* ============ TOKENS ============ */
:root {
  --bg: #fbf5ee;
  --bg-2: #f3e9dd;
  --card: #ffffff;
  --ink: #1b1428;
  --ink-2: #4b4358;
  --muted: #7d7489;
  --line: rgba(27, 20, 40, .12);
  --coral: #ff5a3c;
  --coral-d: #e2401f;
  --violet: #6a4cff;
  --sun: #ffcf3f;
  --sea: #0b1730;
  --sea-2: #13254a;
  --teal: #13c4a3;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -20px rgba(27, 20, 40, .35);
  --shadow-sm: 0 8px 24px -12px rgba(27, 20, 40, .3);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --fs: 1rem;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html.hc {
  --bg: #ffffff; --bg-2: #ffffff; --card: #ffffff;
  --ink: #000000; --ink-2: #000000; --muted: #222222;
  --line: #000000; --coral: #c4000f; --coral-d: #8f000b; --violet: #2b00b8;
  --sea: #000000; --sea-2: #000000;
}
html.hc .card, html.hc .edu__card, html.hc .ranking li, html.hc .form, html.hc .quiz { border: 2px solid #000; }
html.dys { --font-display: "Plus Jakarta Sans", Verdana, sans-serif; --font-body: Verdana, Tahoma, sans-serif; }
html.dys body { letter-spacing: .03em; word-spacing: .12em; line-height: 1.8; }
html.dys em { font-style: normal; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }

html.nomotion *, html.nomotion *::before, html.nomotion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: calc(16px * var(--scale, 1)); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999; }
.skip:focus { left: 10px; top: 10px; }
em { font-style: italic; color: var(--coral); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
.h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.lead--narrow { max-width: 38ch; }
.small { font-size: .85rem; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--ink-2); margin: 0 0 18px;
}
.eyebrow--light { color: rgba(255,255,255,.7); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 var(--coral); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,60,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,90,60,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,60,0); } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  min-height: 46px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; min-height: 56px; }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -10px var(--coral); }
.btn--primary:hover { background: var(--coral-d); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--dark { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .35; pointer-events: none; }

/* ============ A11Y BAR ============ */
.a11y { background: var(--ink); color: #fff; font-size: .8rem; }
.a11y__inner { display: flex; align-items: center; gap: 6px; padding: 6px 0; flex-wrap: wrap; }
.a11y__label { font-weight: 700; margin-right: 6px; opacity: .7; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.a11y__btn { background: rgba(255,255,255,.08); border: 0; color: #fff; padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.a11y__btn:hover, .a11y__btn[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
.a11y__sep { flex: 1; }
.a11y__lang { opacity: .6; font-weight: 600; letter-spacing: .08em; }

/* ============ NAV ============ */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.logo em { font-weight: 400; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 8px;
  background: conic-gradient(from 200deg, var(--coral), var(--sun), var(--teal), var(--violet), var(--coral));
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.logo--light { color: #fff; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.nav__links a:hover { background: var(--bg-2); }
.nav__burger { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .3s; }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 25px; }
.nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============ HERO ============ */
.hero { position: relative; padding: 70px 0 0; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 16s ease-in-out infinite; }
.blob--1 { width: 520px; height: 520px; background: #ffb199; top: -160px; right: -80px; }
.blob--2 { width: 420px; height: 420px; background: #c9bcff; bottom: 40px; left: -160px; animation-delay: -5s; }
.blob--3 { width: 300px; height: 300px; background: #ffe58a; top: 200px; left: 45%; animation-delay: -10s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -40px) scale(1.08); } }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-bottom: 70px; }
.hero__title { font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 800; line-height: .95; letter-spacing: -.035em; }
.rotator { display: block; color: var(--coral); font-style: italic; font-weight: 400; min-height: 1em; }
.rotator__word { display: inline-block; transition: transform .5s var(--ease), opacity .5s, filter .5s; }
.rotator__word.is-out { transform: translateY(-40%) rotate(-4deg); opacity: 0; filter: blur(6px); }
.rotator__word.is-in { transform: translateY(40%) rotate(4deg); opacity: 0; filter: blur(6px); }
.hero__lead { font-size: 1.2rem; color: var(--ink-2); max-width: 44ch; margin: 26px 0 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 34px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.hero__stats span { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* una iniciativa de */
.nav__initiative { display: flex; align-items: center; margin: 0; padding-left: 20px; border-left: 1px solid var(--line); height: 44px; }
.nav__initiative span { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); line-height: 1; }
.nav__initiative img { height: 38px; width: auto; }
.initiative { display: flex; align-items: center; gap: 14px; margin: 30px 0 0; }
.initiative span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.initiative img { height: 44px; width: auto; }
.initiative--footer { margin-top: 22px; background: #fff; border-radius: 14px; padding: 10px 16px; display: inline-flex; }
.initiative--footer img { height: 38px; }

/* stack de tarjetas */
.hero__stack { position: relative; height: 560px; perspective: 1200px; }
.stack-card {
  position: absolute; width: 270px; height: 400px; border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; border: 0; padding: 0; background: #000;
  transition: transform .8s var(--ease), opacity .8s, z-index 0s .4s, box-shadow .3s;
  text-align: left;
}
.stack-card:hover { box-shadow: 0 30px 60px -20px rgba(27,20,40,.55); }
.stack-card .art { position: absolute; inset: 0; }
.stack-card__info { position: absolute; inset: auto 0 0; padding: 22px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.stack-card__info b { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1.1; }
.stack-card__info small { opacity: .85; font-weight: 600; }
.stack-card__play { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.25); backdrop-filter: blur(8px); display: grid; place-items: center; color: #fff; font-size: 1rem; }
.stack-card[data-pos="0"] { transform: translate(110px, 70px) rotate(-2deg); z-index: 3; }
.stack-card[data-pos="1"] { transform: translate(250px, 20px) rotate(7deg) scale(.88); z-index: 2; opacity: .95; }
.stack-card[data-pos="2"] { transform: translate(-10px, 30px) rotate(-10deg) scale(.82); z-index: 1; opacity: .9; }
.stack-card[data-pos="3"] { transform: translate(120px, 120px) scale(.6); z-index: 0; opacity: 0; }
.stack-badge {
  position: absolute; z-index: 5; background: #fff; border-radius: 999px; padding: 10px 16px;
  box-shadow: var(--shadow-sm); font-weight: 700; font-size: .85rem; display: flex; align-items: center; gap: 8px;
  animation: bob 5s ease-in-out infinite;
}
.stack-badge--1 { left: 0; bottom: 40px; }
.stack-badge--2 { right: 0; top: 0; animation-delay: -2.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* marquee */
.marquee { border-block: 1px solid var(--line); background: var(--ink); color: #fff; overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; gap: 44px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--font-display); font-size: 1.5rem; font-style: italic; }
.marquee__track span::after { content: "✦"; margin-left: 44px; color: var(--sun); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: 110px 0; position: relative; }
.section--dark { background: var(--sea); color: #fff; }
.section--dark .lead { color: rgba(255,255,255,.75); }
.section--dark em { color: var(--sun); }
.section--warm { background: var(--bg-2); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 36px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* search & filters */
.search input {
  width: min(380px, 100%); padding: 15px 20px 15px 48px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%237d7489' stroke-width='2.2'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='m14 14 4 4'/%3E%3C/svg%3E") no-repeat 18px center;
  font: inherit; color: var(--ink); transition: border-color .2s;
}
.search input:focus { outline: none; border-color: var(--violet); }
.chip {
  border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 16px;
  font-weight: 600; font-size: .9rem; transition: all .2s; display: inline-flex; gap: 6px; align-items: center;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* barra de filtros */
.filterbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.tabs { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; border: 0; background: none; padding: 14px 14px 16px;
  font-weight: 600; font-size: 1rem; color: var(--muted); white-space: nowrap; transition: color .25s;
}
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); }
.tab__n { font-size: .68rem; font-weight: 700; margin-left: 4px; color: var(--muted); font-variant-numeric: tabular-nums; vertical-align: super; }
.tab[aria-pressed="true"] .tab__n { color: var(--coral); }
.tab:focus-visible { outline-offset: -3px; }
.tabs__ink { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--coral); width: 0; transition: transform .45s var(--ease), width .45s var(--ease); }
.filterbar__side { display: flex; align-items: center; gap: 16px; padding-bottom: 10px; flex: none; }
.isl-select { position: relative; display: inline-flex; align-items: center; }
.isl-select svg { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; pointer-events: none; color: var(--muted); }
.isl-select select {
  appearance: none; -webkit-appearance: none; font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231b1428' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 2px solid var(--line); border-radius: 999px; padding: 10px 38px 10px 40px; cursor: pointer; transition: border-color .2s;
}
.isl-select select:hover, .isl-select select:focus { border-color: var(--ink); outline: none; }
.isl-select.is-set select { background-color: var(--ink); color: var(--bg); border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); }
.isl-select.is-set svg { color: var(--sun); }
.results { font-size: .85rem; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* grid de historias */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card);
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; display: flex; flex-direction: column;
  animation: cardIn .6s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 0; padding: 0; background: #000; width: 100%; }
.card__media .art { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.card:hover .card__media .art { transform: scale(1.06); }
.card__dur { position: absolute; bottom: 14px; left: 14px; background: rgba(0,0,0,.55); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; backdrop-filter: blur(6px); }
.card__tag { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ink); padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.card__tag--ex { background: rgba(255,255,255,.3); color: #fff; backdrop-filter: blur(6px); }
.card__playbtn { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; font-size: 1.3rem; transform: scale(.7); opacity: 0; transition: all .35s var(--ease); }
.card:hover .card__playbtn, .card__media:focus-visible .card__playbtn { transform: scale(1); opacity: 1; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__place { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.card__short { font-size: .92rem; color: var(--ink-2); margin: 0; flex: 1; }
.card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.trait { font-family: var(--font-display); font-style: italic; color: var(--coral); }
.heart {
  border: 2px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .85rem;
  display: inline-flex; gap: 6px; align-items: center; transition: all .2s;
}
.heart:hover { border-color: var(--coral); color: var(--coral); }
.heart.is-voted { background: var(--coral); border-color: var(--coral); color: #fff; }
.heart.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.25); } }
.empty { text-align: center; padding: 40px; color: var(--muted); font-size: 1.1rem; }

/* arte generativo (retratos) */
.art svg { width: 100%; height: 100%; }

/* ============ MAPA ============ */
.map { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: center; }
.map__svg-wrap { position: relative; }
.map__svg { width: 100%; height: auto; overflow: visible; }
.island {
  fill: #23406f; stroke: rgba(255,255,255,.25); stroke-width: 1.5; cursor: pointer;
  transition: fill .3s, transform .4s var(--ease), filter .3s; transform-box: fill-box; transform-origin: center;
}
.island:hover, .island:focus-visible { fill: #3b66ad; transform: scale(1.06); outline: none; }
.island.is-active { fill: var(--coral); filter: drop-shadow(0 0 22px rgba(255,90,60,.7)); }
.islet { fill: #23406f; stroke: rgba(255,255,255,.25); stroke-width: 1; }
.island { stroke-linejoin: round; }
.island-hit { fill: transparent; cursor: pointer; }
.graticule line { stroke: rgba(255,255,255,.05); stroke-width: 1; stroke-dasharray: 3 6; }
.map__compass circle { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 1.5; }
.map__compass path { fill: rgba(255,255,255,.6); }
.map__compass text, .map__scale text { fill: rgba(255,255,255,.55); font-family: var(--font-body); font-size: 13px; font-weight: 700; }
.map__scale path { stroke: rgba(255,255,255,.55); stroke-width: 2; fill: none; }
.map__labels text { fill: rgba(255,255,255,.65); font-family: var(--font-body); font-size: 21px; font-weight: 700; letter-spacing: .02em; pointer-events: none; }
.pin { fill: var(--sun); }
.pin-ring { fill: none; stroke: var(--sun); stroke-width: 2; animation: ring 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.map__panel { margin-top: 30px; background: var(--sea-2); border-radius: var(--radius); padding: 24px; min-height: 200px; border: 1px solid rgba(255,255,255,.08); }
.map__island { font-size: 1.6rem; margin-bottom: 14px; }
.map__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.map__list li button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 0;
  background: rgba(255,255,255,.05); color: #fff; text-align: left; transition: background .2s;
}
.map__list li button:hover { background: rgba(255,255,255,.12); }
.map__list .mini { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; }
.map__list b { display: block; font-weight: 700; }
.map__list small { opacity: .7; }
.map__hint { opacity: .7; margin: 0; }

/* ============ VOTAR ============ */
.vote { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.vote__timer { display: flex; gap: 12px; margin: 30px 0 12px; }
.vote__timer div { background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 10px; min-width: 76px; text-align: center; }
.vote__timer strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.vote__timer span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.ranking li {
  display: grid; grid-template-columns: 34px 54px 1fr auto; gap: 14px; align-items: center;
  background: var(--card); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-sm);
  transition: transform .6s var(--ease);
}
.ranking .pos { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--muted); text-align: center; }
.ranking li:nth-child(1) .pos { color: var(--coral); }
.ranking li:nth-child(1) { box-shadow: 0 0 0 2px var(--coral), var(--shadow-sm); }
.ranking .mini { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; }
.ranking .who b { display: block; font-weight: 700; }
.ranking .bar { height: 8px; border-radius: 99px; background: var(--bg-2); margin-top: 8px; overflow: hidden; }
.ranking .bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--coral), var(--sun)); width: 0; transition: width 1.2s var(--ease); }
.ranking .who small { color: var(--muted); font-weight: 600; font-size: .8rem; }

/* ============ QUOTE ============ */
.quote-band { background: var(--coral); color: #fff; padding: 90px 0; position: relative; overflow: hidden; }
.quote-band::before { content: "“"; position: absolute; font-family: var(--font-display); font-size: 30rem; line-height: 1; top: -90px; left: -20px; opacity: .12; }
.quote-band blockquote { margin: 0; }
.quote-band p { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.15; margin: 0; max-width: 24ch; letter-spacing: -.02em; }
.quote-band em { color: var(--ink); }

/* ============ COLEGIOS ============ */
.edu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.edu__card { border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; min-height: 300px; transition: transform .35s var(--ease); }
.edu__card:hover { transform: translateY(-6px) rotate(-.5deg); }
.edu__card h3 { font-size: 1.5rem; }
.edu__card p { margin: 0; flex: 1; color: var(--ink-2); }
.edu__card .btn { align-self: flex-start; }
.edu__card--a { background: #ffe0d6; } .edu__card--b { background: #e4ddff; }
.edu__card--c { background: #d4f5ec; } .edu__card--d { background: #fff1c2; }
.edu__icon { font-size: 2rem; }
.code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; background: #fff; border: 2px dashed var(--violet); padding: 10px 14px; border-radius: 12px; align-self: flex-start; letter-spacing: .08em; }
.code b { color: var(--violet); }

.quiz { margin-top: 40px; background: var(--ink); color: #fff; border-radius: 28px; padding: 36px; position: relative; overflow: hidden; }
.quiz::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--violet); filter: blur(80px); opacity: .45; right: -80px; top: -80px; pointer-events: none; }
.quiz__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; position: relative; z-index: 1; }
.quiz__head h3 { font-size: 1.8rem; flex: 1; }
.quiz__badge { background: var(--sun); color: var(--ink); font-weight: 800; padding: 4px 12px; border-radius: 999px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.quiz__progress { font-weight: 700; opacity: .7; }
.quiz__body { position: relative; z-index: 1; }
.quiz__q { font-size: 1.3rem; font-weight: 600; margin: 0 0 18px; }
.quiz__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quiz__opt { border: 2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: #fff; border-radius: 16px; padding: 18px; font-weight: 700; text-align: left; transition: all .2s; min-height: 64px; }
.quiz__opt:hover { border-color: #fff; }
.quiz__opt.is-right { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.quiz__opt.is-wrong { background: rgba(255,90,60,.25); border-color: var(--coral); }
.quiz__why { margin: 18px 0 0; padding: 14px 18px; background: rgba(255,255,255,.08); border-radius: 14px; }
.quiz__next { margin-top: 18px; }
.quiz__end { text-align: center; padding: 10px; }
.quiz__end strong { font-family: var(--font-display); font-size: 4rem; display: block; color: var(--sun); line-height: 1; }

/* ============ COMPARTE ============ */
.share { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.checks li::before { content: "✓"; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: .85rem; flex: none; }
.form { background: var(--card); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); position: relative; }
.form__steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 26px; counter-reset: s; }
.form__steps li { flex: 1; font-size: .8rem; font-weight: 700; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--bg-2); transition: all .3s; }
.form__steps li.is-active, .form__steps li.is-done { border-color: var(--coral); color: var(--ink); }
.form__step { border: 0; padding: 0; margin: 0; display: none; gap: 16px; }
.form__step.is-active { display: grid; animation: cardIn .5s var(--ease); }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea {
  font: inherit; font-weight: 500; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color .2s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); }
.form .is-invalid { border-color: var(--coral) !important; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.form__q { font-family: var(--font-display); font-size: 1.5rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #fff; }
.upload { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; cursor: pointer; transition: border-color .2s; }
.upload:hover { border-color: var(--violet); }
.upload input { display: none; }
.upload small { color: var(--muted); font-weight: 500; }
.check { display: flex !important; gap: 10px; align-items: center; font-weight: 600 !important; }
.check input { width: 22px; height: 22px; accent-color: var(--coral); }
.form__nav { display: flex; justify-content: space-between; margin-top: 26px; }
.form__done { text-align: center; padding: 30px 0; }
.form__done-icon { width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 50%; background: conic-gradient(var(--coral), var(--sun), var(--teal), var(--violet), var(--coral)); display: grid; place-items: center; color: #fff; font-size: 2rem; animation: spin 6s linear infinite; }
.form__done h3 { font-size: 2.2rem; margin-bottom: 8px; }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 70px 0 30px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__inner p { max-width: 30ch; }
.footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.footer__cols a { display: block; text-decoration: none; padding: 4px 0; opacity: .75; }
.footer__cols a:hover { opacity: 1; color: var(--sun); }
.footer__note { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; opacity: .6; }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 10, 25, .75); backdrop-filter: blur(8px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal__box {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--bg); border-radius: 30px; display: grid; grid-template-columns: 380px 1fr;
  animation: modalIn .5s var(--ease); box-shadow: 0 40px 80px -20px rgba(0,0,0,.6);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.modal__close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; z-index: 3; font-size: 1rem; }
.player { padding: 14px; }
.player__screen { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; max-height: calc(100vh - 80px); }
.player__art { position: absolute; inset: 0; }
.player__art .art { position: absolute; inset: 0; }
.player.is-playing .player__art .art { animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.15) translate(-3%, -2%); } }
.player__play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.8rem; color: var(--ink); transition: all .3s var(--ease); box-shadow: 0 0 0 12px rgba(255,255,255,.2); }
.player.is-playing .player__play { opacity: 0; transform: scale(.6); }
.player.is-playing .player__screen:hover .player__play { opacity: .9; transform: scale(.8); }
.player__caption { position: absolute; left: 16px; right: 16px; bottom: 64px; text-align: center; color: #fff; font-weight: 700; font-size: 1.1rem; line-height: 1.35; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.player__caption span { background: rgba(0,0,0,.55); padding: 4px 10px; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; animation: fade .4s; }
.player__bar { position: absolute; left: 16px; right: 16px; bottom: 40px; height: 4px; background: rgba(255,255,255,.3); border-radius: 9px; overflow: hidden; }
.player__bar span { display: block; height: 100%; width: 0; background: #fff; }
.player__meta { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; color: #fff; font-size: .78rem; font-weight: 700; }
.player__cc { background: rgba(255,255,255,.25); padding: 1px 8px; border-radius: 6px; }
.modal__info { padding: 44px 40px 36px 20px; display: flex; flex-direction: column; gap: 10px; }
.modal__tag { margin: 0; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--violet); }
.modal__name { font-size: clamp(2rem, 4vw, 3rem); }
.modal__years { margin: 0; color: var(--muted); font-weight: 600; }
.modal__quote { margin: 10px 0; padding-left: 18px; border-left: 4px solid var(--coral); font-family: var(--font-display); font-style: italic; font-size: 1.4rem; line-height: 1.3; }
.modal__story { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.modal__votes { font-size: .9rem; color: var(--muted); font-weight: 600; margin: 4px 0 0; }
.vote-btn.is-voted { background: var(--ink); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 600; z-index: 200; transition: transform .45s var(--ease), opacity .3s, visibility .45s; box-shadow: var(--shadow); max-width: calc(100% - 32px); opacity: 0; visibility: hidden; }
.toast.is-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* confetti */
.confetti { position: fixed; width: 10px; height: 14px; z-index: 300; pointer-events: none; border-radius: 2px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
  .hero__grid, .map, .vote, .share { grid-template-columns: 1fr; }
  .hero__stack { height: 480px; max-width: 520px; margin: 0 auto; width: 100%; }
  .edu { grid-template-columns: repeat(2, 1fr); }
  .modal__box { grid-template-columns: 1fr; }
  .player__screen { aspect-ratio: 4 / 5; max-height: 60vh; margin: 0 auto; }
  .modal__info { padding: 10px 26px 30px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; margin-left: auto; }
  .nav__inner { gap: 12px; }
  .logo { font-size: .95rem; gap: 7px; }
  .logo__mark { width: 26px; height: 26px; }
  .nav__initiative { padding-left: 12px; height: 38px; }
  .nav__initiative span { font-size: .5rem; letter-spacing: .08em; }
  .nav__initiative img { height: 28px; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0; background: var(--bg); padding: 16px; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links a { padding: 14px; font-size: 1.1rem; }
  .a11y__label, .a11y__lang, .a11y__sep { display: none; }
  .hero { padding-top: 40px; }
  .hero__stats { gap: 22px; }
  .hero__stack { height: 420px; }
  .stack-card { width: 210px; height: 310px; }
  .stack-card[data-pos="0"] { transform: translate(calc(50vw - 125px), 50px) rotate(-2deg); }
  .stack-card[data-pos="1"] { transform: translate(calc(50vw - 40px), 10px) rotate(7deg) scale(.85); }
  .stack-card[data-pos="2"] { transform: translate(calc(50vw - 230px), 20px) rotate(-10deg) scale(.8); }
  .stack-card[data-pos="3"] { transform: translate(calc(50vw - 125px), 80px) scale(.6); }
  .section { padding: 80px 0; }
  .edu { grid-template-columns: 1fr; }
  .filterbar { flex-direction: column-reverse; align-items: stretch; gap: 14px; border-bottom: 0; }
  .filterbar__side { justify-content: space-between; padding-bottom: 0; }
  .tabs { border-bottom: 1px solid var(--line); margin-inline: -16px; padding-inline: 12px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 28px), transparent); }
  .tab { padding: 12px 10px 14px; font-size: .95rem; }
  .edu__card { min-height: 0; }
  .quiz { padding: 24px; }
  .quiz__opts { grid-template-columns: 1fr; }
  .vote__timer div { min-width: 0; flex: 1; }
  .ranking li { grid-template-columns: 26px 44px 1fr auto; gap: 10px; padding: 10px 12px; }
  .ranking .mini { width: 44px; height: 44px; }
  .form { padding: 22px; }
  .map__labels text { font-size: 26px; }
}
