@font-face { font-family: "Big Shoulders"; src: url(fonts/big-shoulders.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-grotesk.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Shantell Sans"; src: url(fonts/shantell-sans.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --ink: #0f0e0c;
  --slate: #181613;
  --slate-2: #24211c;
  --chalk: #f4efe6;
  --chalk-2: #bfb7aa;
  --line: #4a453c;
  --red: #ff4d1f;
  --tbc: #ffd84d;
  --display: "Big Shoulders", Impact, "Arial Narrow", sans-serif;
  --body: "Schibsted Grotesk", system-ui, sans-serif;
  --hand: "Shantell Sans", "Comic Sans MS", cursive;
  --pad: clamp(1rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--chalk); font: 400 1.125rem/1.5 var(--body); overflow-x: clip; }
h1, h2, h3, h4, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tbc); outline-offset: 3px; }
::selection { background: var(--red); color: var(--ink); }

.wrap, .hero-head, .hero-foot { position: relative; z-index: 2; }
.wrap { max-width: 78rem; margin-inline: auto; padding-inline: var(--pad); }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; line-height: 1; text-wrap: balance; }
h2 { font-size: clamp(3rem, 8.2vw, 7.5rem); }
.eyebrow { font: 500 1.25rem/1.2 var(--hand); color: var(--red); margin-bottom: .6rem; transform: rotate(-1.2deg); transform-origin: left; }
section { padding-block: clamp(5rem, 11vw, 10rem); position: relative; }

.skip { position: fixed; left: 1rem; top: -4rem; z-index: 50; background: var(--chalk); color: var(--ink); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

.tbc { font: 600 .82em/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0; text-transform: none; color: var(--tbc); border: 1.5px dashed var(--tbc); padding: .1em .4em; display: inline-block; max-width: 100%; }

/* Botón: la única acción de la página */
.btn { display: inline-flex; align-items: center; gap: .8rem; min-height: 3.75rem; padding: .7rem 1.5rem; background: var(--red); color: var(--ink); font: 800 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; box-shadow: 0 0 0 0 var(--chalk); transition: transform .18s, box-shadow .18s; }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 0 var(--chalk); }
.btn:active { transform: none; box-shadow: none; }
.arw { fill: none; stroke: currentColor; stroke-width: 2.5; flex: none; transition: transform .18s; }
.btn:hover .arw { transform: translateX(4px); }
.btn-sm { min-height: 2.75rem; padding: .4rem .95rem; font-size: 1.2rem; }

/* Cabecera */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 1.25rem; padding: .65rem var(--pad); background: var(--ink); }
.mark { font: 800 1.85rem/1 var(--display); text-decoration: none; letter-spacing: .005em; margin: 0; }
.mark i { color: var(--red); font-style: normal; }
.langs { margin-left: auto; display: flex; gap: .25rem; font: 700 1rem/1 var(--body); }
.langs > * { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; }
.langs [aria-current] { color: var(--ink); background: var(--chalk); min-height: 0; height: 1.7rem; align-self: center; min-width: 2.2rem; font-size: .9rem; }
.langs a { color: var(--chalk-2); text-decoration: none; font-size: .9rem; }
.langs a:hover { color: var(--chalk); text-decoration: underline; }

/* Hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding: clamp(6rem, 12vh, 8.5rem) var(--pad) clamp(2rem, 5vh, 3.5rem); overflow: clip; }
h1 { font-size: clamp(3.3rem, min(8.3vw, 17.5svh), 14rem); line-height: .98; }
.ln { display: block; }
.ln2 { color: var(--chalk-2); }
.ln3 { color: var(--red); }
.js .ln { opacity: 0; transform: translateY(.18em); animation: rise .6s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .ln2 { animation-delay: .35s; }
.js .ln3 { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: none; } }

#hero-arrow { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; fill: none; }
.ha-line, .ha-tip { stroke: var(--chalk); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ha-line { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: dash 1.3s 1.2s cubic-bezier(.5, 0, .2, 1) forwards; }
.ha-tip, .ha-note { opacity: 0; animation: show .2s 2.4s forwards; }
.ha-note { fill: var(--chalk); stroke: none; font: 500 clamp(1.1rem, 1.8vw, 1.5rem) var(--hand); }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }

.hero-foot { display: grid; grid-template-columns: minmax(0, 40rem) auto; gap: 2rem 4rem; align-items: end; justify-content: space-between; }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.35; max-width: 40rem; }
.hero-act { display: grid; justify-items: start; gap: .7rem; }
.markets { font-size: .95rem; color: var(--chalk-2); }

/* Ruta de página */
#route { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; fill: none; z-index: 1; display: none; }
.route-ghost { stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 11; stroke-linecap: round; }
.route-line { stroke: url(#route-paint); stroke-width: 3.5; stroke-linecap: round; }
.route-ball { fill: var(--chalk); stroke: var(--ink); stroke-width: 3; }
main { position: relative; }

/* Pizarra */
.plays { background: var(--slate); }
.hint { font: 500 1.4rem/1.2 var(--hand); color: var(--chalk-2); margin-top: 1rem; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: clamp(2rem, 4vw, 3.5rem); border-bottom: 2px solid var(--line); }
.tab { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem 1rem .1rem; color: var(--chalk-2); font: 600 1.05rem/1.2 var(--body); border-bottom: 5px solid transparent; margin-bottom: -2px; transition: color .15s; }
.tab:hover { color: var(--chalk); }
.tab:focus-visible { outline: 3px solid var(--tbc); outline-offset: -3px; }
.tab-n { font: 800 1.7rem/1 var(--display); }
.tab[aria-selected="true"] { color: var(--chalk); border-color: var(--red); }
.tab[aria-selected="true"] .tab-n { color: var(--red); }
.panels { display: grid; margin-top: clamp(1.75rem, 3vw, 2.75rem); }
.panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.panel:focus-visible { outline-offset: 8px; }
.js .panel:not(.on) { visibility: hidden; }
html:not(.js) .tabs { display: none; }
html:not(.js) .panel { grid-area: auto; margin-bottom: 3rem; }
.panel h3 { font: 800 clamp(2.1rem, 3.7vw, 3.4rem)/1 var(--display); text-transform: uppercase; text-wrap: balance; }
.panel dl { margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.panel dl > div { border-left: 4px dashed var(--line); padding-left: 1rem; }
.panel .then { border-left: 4px solid var(--red); }
.panel dt { font: 500 1.1rem var(--hand); color: var(--chalk-2); }
.panel .then dt { color: var(--red); }
.svc { margin-top: 1.5rem; color: var(--chalk-2); font-size: 1rem; }
.svc strong { display: block; color: var(--chalk); font: 800 1.75rem/1.05 var(--display); text-transform: uppercase; margin-top: .1rem; }

.board { width: 100%; height: auto; display: block; background: var(--ink); fill: none; }
.pitch * , .pitch { stroke: #2d2a24; stroke-width: 2; }
.board text { font: 500 24px var(--hand); fill: var(--chalk); }
.board text.muted { fill: var(--chalk-2); }
.board text.hot { fill: var(--red); font-weight: 700; }
.gray { stroke: var(--chalk-2); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.o { fill: var(--ink); stroke: var(--chalk); stroke-width: 4; }
.o.dim { stroke: var(--chalk-2); }
.o.hot { fill: var(--red); stroke: var(--red); }
.x { stroke: var(--chalk-2); stroke-width: 5; stroke-linecap: round; }
.red { stroke: var(--red); stroke-width: 6; stroke-linecap: round; }
.tip { stroke: var(--red); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.js .red { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .tip, .js .after { opacity: 0; }
.js .draw .red { animation: dash .7s calc(.25s + var(--i) * .6s) cubic-bezier(.5, 0, .2, 1) forwards; }
.js .draw .tip { animation: show .15s calc(.85s + var(--i) * .6s) forwards; }
.js .draw .after { animation: show .3s calc(.55s + var(--i) * .6s) forwards; }

/* Diagnóstico */
.diag h2 { font-size: clamp(2.7rem, 5.7vw, 5.4rem); }
.diag-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.spec > div { display: grid; gap: .3rem; padding-block: .9rem; border-top: 2px solid var(--line); }
.spec > div:last-child { border-bottom: 2px solid var(--line); }
.spec dt { font: 500 1.05rem var(--hand); color: var(--chalk-2); }
.steps-title { font: 800 clamp(1.7rem, 2.6vw, 2.3rem)/1.05 var(--display); text-transform: uppercase; margin-top: clamp(3.5rem, 7vw, 6rem); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-block: 1.75rem 3rem; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 3rem; height: 3rem; border: 3px solid var(--chalk); border-radius: 50%; font: 800 1.5rem/1 var(--display); margin-bottom: .9rem; }
.steps li:last-child::before { background: var(--red); border-color: var(--red); color: var(--ink); }
.steps h4 { font: 700 1.2rem/1.2 var(--body); }
.steps p { color: var(--chalk-2); font-size: 1.05rem; margin-top: .2rem; }

/* Socios: formación escalonada */
.team { background: var(--slate); }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.person:nth-child(2) { margin-top: 4.5rem; }
.person:nth-child(3) { margin-top: 9rem; }
.photo { aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 1rem; text-align: center; background: var(--ink); border: 2px dashed var(--tbc); }
.person h3 { font: 800 clamp(2.2rem, 3.9vw, 3.5rem)/.98 var(--display); text-transform: uppercase; margin-top: 1rem; }
.person h3 span { display: block; }
.person h3 .tbc { display: inline-block; font-size: .95rem; font-weight: 600; margin-top: .3rem; }
.person p { color: var(--chalk-2); margin-top: .4rem; }

/* Prueba */
.proof h2 { font-size: clamp(2.8rem, 7.4vw, 6.75rem); max-width: 16em; }
.proof h2 em { display: block; font-style: normal; color: var(--red); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.uses h3, .case h3 { font: 800 clamp(1.7rem, 2.6vw, 2.3rem)/1.05 var(--display); text-transform: uppercase; }
.uses > p { color: var(--chalk-2); margin-top: .25rem; }
.uses ul { margin-top: 1rem; }
.uses li { display: grid; gap: .4rem; justify-items: start; padding-block: .9rem; border-top: 2px solid var(--line); }
.uses li strong { font-weight: 600; }
.case { background: var(--chalk); color: var(--ink); padding: 1.5rem 1.5rem 1.25rem; transform: rotate(1.2deg); align-self: start; }
.case dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; align-items: center; padding-block: .65rem; border-top: 1.5px solid #cfc7b8; }
.case dl { margin-top: .9rem; }
.case dt { font-weight: 600; font-size: 1rem; }
.case .tbc { color: #6b4e00; border-color: #6b4e00; }
.case-note { font: 500 1.25rem/1.2 var(--hand); color: #b02c08; margin-top: .75rem; }

/* Cierre */
.close { background: var(--red); color: var(--ink); text-align: left; overflow: clip; }
.close h2 { font-size: clamp(4.5rem, 19vw, 20rem); line-height: .86; font-weight: 900; }
.close .lede { margin-block: 1.5rem 2rem; font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.8rem); }
.close .btn { background: var(--ink); color: var(--chalk); }
.close .btn:hover { box-shadow: 5px 5px 0 0 var(--chalk); }
.close .btn:focus-visible, .close a:focus-visible, .close .slot:focus-visible { outline-color: var(--ink); }
.close .tbc { color: var(--ink); border-color: var(--ink); background: rgba(255, 255, 255, .22); }
.slot { margin-top: 1.5rem; padding: 2rem 1rem; border: 2px dashed var(--ink); text-align: center; max-width: 34rem; }
.alt { margin-top: 1.5rem; display: grid; gap: .5rem; font-weight: 500; }

/* Pie */
.foot { padding-block: 2.5rem 2.5rem; font-size: 1rem; color: var(--chalk-2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: space-between; }
.foot .mark { color: var(--chalk); }

/* Barra móvil */
.dock { display: none; }

@media (min-width: 1180px) { #route { display: block; } }

@media (max-width: 900px) {
  .hero-foot, .panel, .diag-head, .proof-grid { grid-template-columns: minmax(0, 1fr); }
  .tabs { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .board { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .top .btn { display: none; }
  .top { padding-block: .4rem; }
  .hero { min-height: 100svh; }
  h1 { font-size: clamp(2.9rem, 14.2vw, 5.5rem); line-height: .96; }
  .btn { width: 100%; justify-content: center; font-size: 1.5rem; }
  .hero-act { justify-items: stretch; }
  .tabs { margin-inline: -.25rem; }
  .tab { padding: .7rem .5rem .8rem; font-size: 1rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .steps li { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
  .steps li::before { grid-row: 1 / 3; margin: 0; }
  .people { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .person:nth-child(n) { margin-top: 0; }
  .photo { aspect-ratio: 16 / 11; }
  .case { transform: none; }
  .case dl > div { grid-template-columns: 6.5rem 1fr; }
  .dock { display: block; position: fixed; inset: auto 0 0; z-index: 30; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .22s; }
  .dock.show { transform: none; }
  .foot { padding-bottom: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .ln { opacity: 1; transform: none; }
  .ha-line { stroke-dashoffset: 0; }
  .ha-tip, .ha-note { opacity: 1; }
  .js .red { stroke-dashoffset: 0; }
  .js .tip, .js .after { opacity: 1; }
}
