/*
 * La página de entrada de siempredelocal.app (2026-11-06, Kevin aprobó la maqueta): un bloque
 * cobalto con los afiches en abanico y, debajo, qué hace la app. Mismos colores y letras que la
 * app (docs/design-system.md); fuentes servidas desde aquí, sin estilos en línea (CSP).
 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}

:root {
  --canvas: #eef1f7;
  --surface: #ffffff;
  --ink: #14161c;
  --muted: #565e72;
  --line: #dde2ee;
  --cobalt: #3155e8;
  --kicker: #3155e8;
  --mist: #c9d4fb;
  --volt: #d4f34a;
  --tint: #e8edfd;
  --ok-bg: #dff5e4;
  --ok-fg: #146c2e;
  --due-bg: #fdecd8;
  --due-fg: #93470b;
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --num: 'Space Grotesk', 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0f1118;
    --surface: #181b25;
    --ink: #eef0f6;
    --muted: #a3aabd;
    --line: #282d3a;
    --kicker: #8ea3ff;
    --tint: #1f2742;
    --ok-bg: #12321c;
    --ok-fg: #8fdca3;
    --due-bg: #3a2410;
    --due-fg: #f3b77c;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 500 16px/1.55 var(--font);
}

.in {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font: 800 16px var(--font);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible,
.top a:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 3px;
}

.btn.volt {
  background: var(--volt);
  color: #14161c;
}

.btn.line {
  border: 2px solid rgb(255 255 255 / 55%);
  color: #fff;
}

/* Arriba */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: max(18px, env(safe-area-inset-top, 0px));
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / 45%);
}

.enter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

/* El bloque cobalto */
.hero {
  overflow: hidden;
  background: var(--cobalt);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding-block: 28px 64px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--volt);
}

.lead {
  max-width: 34ch;
  margin: 20px 0 0;
  color: var(--mist);
  font-size: clamp(17px, 2vw, 20px);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.small {
  margin: 14px 0 0;
  color: var(--mist);
  font-size: 14px;
}

.fan {
  position: relative;
  height: 520px;
}

.fan img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 230px;
  max-width: 46%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgb(8 16 60 / 45%);
}

.fan img:nth-child(1) {
  transform: translate(-108%, -48%) rotate(-9deg);
}

.fan img:nth-child(2) {
  z-index: 2;
  transform: translate(-50%, -54%);
}

.fan img:nth-child(3) {
  transform: translate(8%, -46%) rotate(8deg);
}

@media (prefers-reduced-motion: no-preference) {
  .fan img {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .fan:hover img:nth-child(1) {
    transform: translate(-118%, -48%) rotate(-12deg);
  }

  .fan:hover img:nth-child(3) {
    transform: translate(18%, -46%) rotate(11deg);
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 40px;
  }

  .fan {
    height: 400px;
  }

  .fan img {
    width: 190px;
  }
}

/* Secciones */
.block {
  padding-block: 64px 8px;
}

.kicker {
  margin-bottom: 8px;
  color: var(--kicker);
  font-weight: 800;
  font-size: 15px;
}

.block h2 {
  max-width: 22ch;
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.intro {
  max-width: 60ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.swap,
.features,
.player,
.steps {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.swap {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.features,
.player {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.swap > div,
.feature,
.player .card,
.steps li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
}

.swap s {
  color: var(--muted);
  font-size: 15px;
  text-decoration-thickness: 2px;
}

.swap b {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.feature {
  gap: 14px;
}

.feature h3,
.player h3 {
  font-size: 20px;
  font-weight: 800;
}

.feature p,
.player p {
  margin: 0;
  color: var(--muted);
}

.ui {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--canvas);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tile {
  padding: 10px;
  border-radius: 12px;
  background: var(--surface);
}

.tile b {
  display: block;
  font: 700 28px/1 var(--num);
}

.tile span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.vote {
  display: flex;
  gap: 8px;
}

.vote span {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
}

.vote .yes {
  background: var(--volt);
  color: #14161c;
}

.vote .no {
  border: 1.5px solid var(--line);
  background: var(--surface);
}

/* La cancha con un 4-3-3: cada disco en su lugar. */
.pitch {
  position: relative;
  height: 150px;
  border-radius: 12px;
  background: repeating-linear-gradient(180deg, #2b4fe0 0 25px, #3155e8 25px 50px);
}

.pitch i {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--volt);
  color: #14161c;
  font: 700 13px/30px var(--num);
  font-style: normal;
  text-align: center;
  transform: translate(-50%, -50%);
}

.pitch .gk {
  left: 50%;
  top: 86%;
  background: #fff;
}
.pitch .lb {
  left: 18%;
  top: 62%;
}
.pitch .cb1 {
  left: 40%;
  top: 66%;
}
.pitch .cb2 {
  left: 60%;
  top: 66%;
}
.pitch .rb {
  left: 82%;
  top: 62%;
}
.pitch .m1 {
  left: 30%;
  top: 38%;
}
.pitch .m2 {
  left: 50%;
  top: 44%;
}
.pitch .m3 {
  left: 70%;
  top: 38%;
}
.pitch .lw {
  left: 22%;
  top: 16%;
}
.pitch .st {
  left: 50%;
  top: 13%;
}
.pitch .rw {
  left: 78%;
  top: 16%;
}

.money {
  gap: 8px;
}

.money div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  font-weight: 700;
}

.pill {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
}

.pill.ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
}

.pill.due {
  background: var(--due-bg);
  color: var(--due-fg);
}

.pill.check {
  background: var(--tint);
  color: var(--kicker);
}

.score {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
}

.score b {
  color: var(--kicker);
  font: 700 40px/1 var(--num);
}

.goals {
  color: var(--muted);
  font-size: 14px;
}

.goals strong {
  color: var(--ink);
}

.podium {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 110px;
}

.podium div {
  display: grid;
  flex: 1;
  place-items: center;
  border-radius: 12px 12px 4px 4px;
  color: #fff;
  font: 700 22px var(--num);
}

.podium span {
  display: block;
  font: 700 12px var(--font);
  opacity: 0.9;
}

.podium .second {
  height: 72%;
  background: #5a77ee;
}
.podium .first {
  height: 100%;
  background: var(--cobalt);
}
.podium .third {
  height: 56%;
  background: #7b93f0;
}

.rating {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rating b {
  color: var(--kicker);
  font: 700 72px/0.9 var(--num);
}

.bars {
  display: grid;
  flex: 1;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.bars div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
}

.bars i {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}

.bars i::after {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 99px;
  background: var(--cobalt);
  content: '';
}

.bars .w72::after {
  width: 72%;
}
.bars .w84::after {
  width: 84%;
}
.bars .w79::after {
  width: 79%;
}
.bars .w61::after {
  width: 61%;
}

/* Cómo empezar: es una secuencia de verdad. */
.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}

.steps li {
  gap: 8px;
  counter-increment: s;
}

.steps li::before {
  color: var(--kicker);
  font: 700 34px/1 var(--num);
  content: counter(s);
}

.steps b {
  font-size: 18px;
}

.steps span {
  color: var(--muted);
}

.final {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 56px;
  padding: 36px 28px;
  border-radius: 28px;
  background: var(--cobalt);
  color: #fff;
}

.final h2 {
  max-width: 20ch;
  font-size: clamp(26px, 3.4vw, 36px);
}

.final .ctas {
  margin: 0;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 36px;
  padding-bottom: max(48px, env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 14px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

footer a {
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 860px) {
  .swap {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .features,
  .player,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
