/* Desafío A.C. — sistema de diseño
   Un solo tipo (Archivo, ancho variable), un fondo, una tinta, un acento (rojo de marca)
   y un campo azul tomado de las playeras del evento. Sin sombras, sin degradados. */

:root {
  --ground: #F5F5F2;
  --ground-2: #E9E9E3;
  --ink: #0F1115;
  --ink-soft: #3A3D45;
  --blue: #1D3FC4;
  --blue-deep: #142C8C;
  --red: #D9341F;
  --red-deep: #B72A18;
  --white: #FFFFFF;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 32px);
  --max: 1360px;
  --gap-section: clamp(96px, 14vw, 200px);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 clamp(16px, 1.1vw + 11px, 19px)/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--gap-section) 0; }

/* ---------- Tipografía ---------- */
.display {
  overflow-wrap: break-word; hyphens: manual;
  font-weight: 850; font-stretch: 72%; text-transform: uppercase;
  line-height: 0.92; letter-spacing: -0.015em;
}
.h-xl { font-size: clamp(44px, 7vw, 108px); }
.h-lg { font-size: clamp(36px, 5.2vw, 80px); }
.h-md { font-size: clamp(28px, 3.4vw, 48px); }
.lead { font-size: clamp(19px, 1.5vw + 10px, 26px); line-height: 1.4; max-width: 34ch; font-weight: 450; }
.copy { max-width: 62ch; }
.copy p + p { margin-top: 1em; }

/* ---------- Botones (planos, cuadrados) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  background: var(--red); color: var(--white); text-decoration: none;
  font-weight: 700; font-stretch: 85%; text-transform: uppercase; letter-spacing: .02em;
  padding: .95em 1.5em; border: 0; border-radius: 0; cursor: pointer; font-size: 1rem;
  transition: transform .16s var(--ease-out), background-color .16s ease;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--red-deep); } }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; border: 2px solid var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: var(--ink); color: var(--white); } }
.btn-light { background: var(--white); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-light:hover { background: var(--ground-2); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow-link {
  font-weight: 700; font-stretch: 85%; text-transform: uppercase; text-decoration: none;
  display: inline-flex; gap: .5em; align-items: center; border-bottom: 3px solid currentColor; padding-bottom: 2px;
}
.arrow-link span { transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .arrow-link:hover span { transform: translateX(4px); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); transition: transform .3s var(--ease-out); }
.site-header.is-hidden { transform: translateY(-100%); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 56px; width: auto; max-width: none; }
.menu { display: flex; align-items: center; gap: 32px; }
.menu ul { display: flex; gap: 28px; }
.menu a:not(.btn) {
  text-decoration: none; font-weight: 600; font-stretch: 90%; text-transform: uppercase; letter-spacing: .02em;
  padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  transition: background-size .25s var(--ease-out);
}
.menu a[aria-current="page"], .menu a:not(.btn):hover { background-size: 100% 3px; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; background: var(--ink); color: var(--white); border: 0; padding: .7em 1.1em; cursor: pointer;
    font: 700 .9rem var(--font); font-stretch: 85%; text-transform: uppercase;
  }
  .menu {
    position: fixed; inset: 76px 0 0 0; background: var(--blue); color: var(--white);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 32px;
    padding: 40px var(--gutter);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility .2s;
  }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .menu ul { flex-direction: column; gap: 6px; }
  .menu a:not(.btn) { font-size: clamp(40px, 12vw, 64px); font-stretch: 72%; font-weight: 850; line-height: 1.05; }
}

/* ---------- Hero (inicio) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: calc(100svh - 76px); }
.hero-text { padding: clamp(32px, 6vw, 96px) var(--gutter) clamp(32px, 5vw, 72px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hero-text h1 { max-width: 100%; }
.hero-text .lead { margin-top: 28px; }
.hero-media { position: relative; overflow: hidden; background: var(--blue); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.js .hero-media img { animation: hero-in 1.4s var(--ease-out) both; }
@keyframes hero-in { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { aspect-ratio: 4 / 3; order: -1; }
  .hero-text { padding: 36px var(--gutter) 0; }
}

/* ---------- Hero ancho (inicio) ---------- */
.hero2 .page-head { padding-bottom: 0; }
.hero2 .page-head .lead { justify-self: start; }
.hero-wide { margin-top: clamp(32px, 5vw, 64px); }
.hero-wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 62%; }
@media (max-width: 700px) { .hero-wide img { aspect-ratio: 4 / 3; } }
.hero2 + .ticker { margin-top: 0; }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; background: var(--ink); color: var(--white); margin-top: clamp(48px, 7vw, 96px); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track span { font-size: clamp(32px, 5vw, 64px); padding: .3em .6em; white-space: nowrap; }
.ticker-track span:nth-child(3n+2) { color: var(--red); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Campo azul / rojo ---------- */
.field-blue { background: var(--blue); color: var(--white); }
.field-red { background: var(--red); color: var(--white); }
.field-ink { background: var(--ink); color: var(--white); }

/* ---------- Cifras ---------- */
.figures { padding-block: clamp(64px, 9vw, 128px); }
.figures-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.figure b { display: block; font-size: clamp(48px, 7vw, 104px); font-weight: 850; font-stretch: 72%; line-height: .9; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.figure span { display: block; margin-top: 12px; max-width: 18ch; font-weight: 500; }
@media (max-width: 900px) { .figures-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }

/* ---------- Cómo lo hacemos / Participa ---------- */
.steps-band { padding-block: clamp(64px, 9vw, 128px); }
.steps-head { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: end; margin-bottom: clamp(32px, 5vw, 72px); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.steps li { padding: 24px 20px 0 0; border-top: 4px solid var(--white); }
.steps b { display: block; font-size: clamp(56px, 6vw, 96px); color: var(--red); margin-bottom: 12px; }
.steps h3 { font-size: 1.15rem; font-weight: 700; font-stretch: 85%; text-transform: uppercase; margin-bottom: 8px; line-height: 1.15; }
.steps p { max-width: 24ch; opacity: .9; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } .steps-head { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.join { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.join > div { padding: clamp(24px, 3vw, 40px); border-left: 4px solid var(--ink); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.join h3 { font-size: clamp(30px, 3.4vw, 52px); }
.join p { flex: 1; max-width: 28ch; }
@media (max-width: 820px) { .join { grid-template-columns: 1fr; } .join > div { border-left: 0; border-top: 4px solid var(--ink); padding-inline: 0; } }

/* ---------- Pilares ---------- */
.pillars-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.pillars-head p { max-width: 44ch; justify-self: end; }
.pillar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: clamp(24px, 3.5vw, 48px); border-top: 4px solid var(--ink); position: relative; }
.pillar:last-child { border-bottom: 4px solid var(--ink); }
.pillar h3 { font-size: clamp(40px, 6.4vw, 100px); min-width: 0; }
.pillar .txt { display: grid; grid-template-columns: minmax(0, 1fr) clamp(120px, 16vw, 220px); gap: 24px; align-items: center; }
.pillar .txt img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.pillar::before { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease-out); z-index: -1; }
@media (hover: hover) and (pointer: fine) {
  .pillar { transition: color .25s ease, padding .35s var(--ease-out); }
  .pillar:hover { color: var(--white); padding-inline: 16px; }
  .pillar:hover::before { transform: scaleY(1); }
}
.pillars { position: relative; isolation: isolate; }
@media (max-width: 820px) {
  .pillars-head, .pillar, .pillar .txt { grid-template-columns: 1fr; }
  .pillars-head p { justify-self: start; }
  .pillar .txt img { aspect-ratio: 16 / 10; }
}

/* ---------- Mosaico ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
.mosaic figure { margin: 0; overflow: hidden; background: var(--ground-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .mosaic figure:hover img { transform: scale(1.04); } }
.m1 { grid-column: 1 / 8; grid-row: 1 / 3; position: relative; min-height: 280px; }
.m1 img { position: absolute; inset: 0; }
.m2 { grid-column: 8 / 13; aspect-ratio: 4 / 3; }
.m3 { grid-column: 8 / 13; aspect-ratio: 4 / 3; }
.m4 { grid-column: 1 / 6; aspect-ratio: 4 / 3; }
.m5 { grid-column: 6 / 13; aspect-ratio: 16 / 9; }
.mosaic-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); flex-wrap: wrap; }
@media (max-width: 700px) {
  .m1, .m2, .m3, .m4, .m5 { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
}

/* ---------- Bloque de reconocimiento ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split-img img { aspect-ratio: 3 / 2; } }

/* ---------- Cierre ---------- */
.closing { padding-block: clamp(72px, 10vw, 160px); }
.closing .h-lg { max-width: 14ch; }
.closing .btn-row { margin-top: 40px; }

/* ---------- Encabezado de página interior ---------- */
.page-head { padding-block: clamp(48px, 8vw, 120px) 0; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.page-head .lead { justify-self: end; }
@media (max-width: 820px) { .page-head { grid-template-columns: 1fr; } .page-head .lead { justify-self: start; } }
.band-photo { margin-top: clamp(40px, 6vw, 80px); }
.band-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 700px) { .band-photo img { aspect-ratio: 4 / 3; } }

/* ---------- Ruta (Qué hacemos) ---------- */
.route { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.route-stage { position: sticky; top: 100px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ground-2); display: none; }
.route-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease-out); }
.route-stage img.on { opacity: 1; }
.route-steps li { padding-block: clamp(32px, 5vw, 72px); border-top: 4px solid var(--ink); min-height: 38vh; }
.route-steps li:last-child { border-bottom: 4px solid var(--ink); }
.route-steps h3 { margin-bottom: 16px; }
.route-steps img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; margin-bottom: 24px; }
.route-steps p { max-width: 52ch; }
@media (min-width: 900px) {
  .js .route-stage { display: block; }
  .js .route-steps img { display: none; }
  .js .route-steps li { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 899px) { .route { grid-template-columns: 1fr; } }

.who { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.who ul li { font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; font-stretch: 80%; text-transform: uppercase; padding-block: .5em; border-top: 2px solid currentColor; }
.who ul li:last-child { border-bottom: 2px solid currentColor; }
@media (max-width: 820px) { .who { grid-template-columns: 1fr; } }

/* ---------- Impacto ---------- */
.place-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); align-items: stretch; }
.place-title { grid-column: 1 / 13; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(16px, 3vw, 40px); }
.place-title .lead { justify-self: end; }
.place-grid figure { margin: 0; overflow: hidden; background: var(--ground-2); }
.place-grid img { width: 100%; height: 100%; object-fit: cover; }
.place-a { grid-column: 1 / 8; aspect-ratio: 3 / 2; }
.place-b { grid-column: 8 / 13; }
@media (max-width: 820px) {
  .place-title { grid-template-columns: 1fr; }
  .place-title .lead { justify-self: start; }
  .place-a, .place-b { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
}
.recog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.recog > div { padding: clamp(24px, 3vw, 40px); border-left: 4px solid var(--ink); }
.recog h3 { font-size: clamp(28px, 3.2vw, 48px); margin-bottom: 16px; }
@media (max-width: 820px) { .recog { grid-template-columns: 1fr; } .recog > div { border-left: 0; border-top: 4px solid var(--ink); padding-inline: 0; } }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(8px, 1.2vw, 16px); }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--ground-2); cursor: zoom-in; overflow: hidden; aspect-ratio: 3 / 2; position: relative; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gallery button:hover img { transform: scale(1.035); } }
@media (min-width: 901px) { .gallery button:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--white); }
.lightbox::backdrop { background: rgba(15, 17, 21, .94); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; animation: lb-in .25s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.lb-bar { display: flex; gap: 8px; padding: 12px; align-items: center; }
.lb-bar button { background: var(--white); color: var(--ink); border: 0; padding: .7em 1.1em; font: 700 .9rem var(--font); font-stretch: 85%; text-transform: uppercase; cursor: pointer; transition: transform .16s var(--ease-out); }
.lb-bar button:active { transform: scale(.96); }
.lb-count { font-variant-numeric: tabular-nums; min-width: 6ch; text-align: center; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact aside li { padding-block: 20px; border-top: 4px solid var(--ink); }
.contact aside li:last-child { border-bottom: 4px solid var(--ink); }
.contact aside h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 8px; }
.form { display: grid; gap: 20px; }
.field label { display: block; font-weight: 700; font-stretch: 85%; text-transform: uppercase; margin-bottom: 8px; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 0; border-bottom: 4px solid var(--ink);
  border-radius: 0; padding: .85em 1em; transition: border-color .16s ease, background-color .16s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 20px 24px; font-weight: 600; margin-bottom: 24px; }
.notice.ok { background: var(--ink); color: var(--white); }
.notice.err { background: var(--red); color: var(--white); }
@media (max-width: 820px) { .contact, .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: var(--white); margin-top: var(--gap-section); padding-block: clamp(56px, 8vw, 120px) 32px; }
.foot-top { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; }
.foot-claim { font-size: clamp(40px, 6.6vw, 104px); font-weight: 850; font-stretch: 72%; text-transform: uppercase; line-height: .92; letter-spacing: -.015em; }
.foot-cta p { margin-bottom: 20px; max-width: 34ch; font-size: 1.15em; }
.foot-allies { margin-top: clamp(56px, 8vw, 112px); padding-top: 32px; border-top: 4px solid var(--white); }
.foot-allies p { font-weight: 700; font-stretch: 85%; text-transform: uppercase; margin-bottom: 24px; }
.foot-allies ul { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 56px; }
.foot-allies img { width: auto; max-width: 220px; object-fit: contain; }
.foot-allies li:nth-child(1) img { height: 64px; }
.foot-allies li:nth-child(2) img { height: 36px; }
.foot-allies li:nth-child(3) img { height: 44px; }
.foot-allies li:nth-child(4) img { height: 36px; }
.foot-bottom { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: end; }
.foot-bottom img { height: 96px; width: auto; max-width: none; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-bottom a { text-decoration: none; font-weight: 600; text-transform: uppercase; font-stretch: 85%; }
@media (hover: hover) and (pointer: fine) { .foot-bottom a:hover { text-decoration: underline; text-underline-offset: 5px; } }
.foot-bottom p { font-size: .9rem; opacity: .85; }
@media (max-width: 820px) { .foot-top, .foot-bottom { grid-template-columns: 1fr; } }

/* ---------- Movimiento ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].in, .js.reveal-all [data-reveal] { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="img"] { transform: none; clip-path: inset(0 0 12% 0); transition: opacity .6s var(--ease-out), clip-path .9s var(--ease-out); }
.js [data-reveal="img"].in, .js.reveal-all [data-reveal="img"] { clip-path: inset(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal="img"] { transform: none; clip-path: none; transition: opacity .3s ease; }
  .js .hero-media img { animation: fade-only .4s ease both; }
  @keyframes fade-only { from { opacity: 0; } to { opacity: 1; } }
  .ticker-track { animation-duration: 120s; }
  .pillar::before, .mosaic img, 
}
