/* Odds Flipping · base de marca (compartida por la landing y el kit)
   Paleta calculada en oklch a partir del lima del boceto original (#ABF820, croma 0,23 → 0,165). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  /* tinta y grafitos: casi negro con un toque del verde de la marca (tono 128) */
  --tinta: #0b0d08;
  --tinta-2: #131610;
  --grafito: #1f221c;
  --grafito-2: #2c2f29;
  --linea: #3b3e38;
  --niebla: #a8ada3;
  --marcador: #8d9288; /* texto apagado y placeholder: 6,1:1 sobre tinta */
  --hueso: #f4f4eb;
  /* claros (la herramienta vive en papel) */
  --papel: #f2f4ef;
  --papel-2: #e6e9e1;
  --papel-linea: #d3d8cc;
  --pizarra: #4d5448;
  --pizarra-2: #666d60; /* texto apagado sobre papel: 4,8:1 */
  /* marca */
  --edge: #b9ed6f;
  --edge-vivo: #c9f58a;
  --edge-hondo: #47782c;
  --edge-tinta: #2d531f;
  /* vocabulario de Betfair: azul a favor, rosa en contra */
  --favor: #8cc5f0;
  --favor-claro: #d7ebff;
  --favor-tinta: #004f8b;
  --contra: #edb0c4;
  --contra-claro: #fbdbe2;
  --contra-tinta: #832543;
  --aviso: #f6bc5d;
  --aviso-claro: #fdecc8;
  --aviso-tinta: #804d0c;

  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --inclinacion: -10deg; /* la de la itálica de Archivo */
  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* expo.out */
  --radio: 3px;
  --gutter: clamp(16px, 4vw, 56px);
  --ancho: 1320px;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--tinta);
  color: var(--hueso);
  font-family: var(--f);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  scrollbar-color: var(--grafito-2) var(--tinta);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--tinta);
}
::-webkit-scrollbar-thumb {
  background: var(--grafito-2);
  border: 2px solid var(--tinta);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--linea);
}

body {
  margin: 0;
  background: var(--tinta);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  caret-color: var(--edge);
}

::selection {
  background: var(--edge);
  color: var(--tinta);
}

:focus-visible {
  outline: 3px solid var(--edge);
  outline-offset: 3px;
  border-radius: 2px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-color: var(--edge);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.saltar {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--edge);
  color: var(--tinta);
  font-weight: 700;
  transform: translateY(-150%);
}
.saltar:focus {
  transform: none;
}

.num {
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---------- tipografía ---------- */
.display {
  font-style: italic;
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.titulo-1 {
  font-size: clamp(2.6rem, 7.2vw, 6rem);
}
.titulo-2 {
  font-size: clamp(2rem, 4.6vw, 4rem);
}
.titulo-3 {
  font-style: italic;
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.entradilla {
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.5;
  max-width: 34em;
  color: var(--niebla);
}
.entradilla strong {
  color: var(--hueso);
  font-weight: 600;
}

/* ---------- botón: lo que se pulsa se inclina como la letra ---------- */
.boton {
  --fondo: var(--edge);
  --texto: var(--tinta);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 1.6rem;
  border: 0;
  background: none;
  color: var(--texto);
  font: italic 800 1rem/1 var(--f);
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.boton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fondo);
  border-radius: var(--radio);
  transform: skewX(var(--inclinacion));
  transition: background-color 0.25s var(--ease), transform 0.35s var(--ease);
}
.boton svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.35s var(--ease);
}
.boton:hover::before {
  background: var(--edge-vivo);
}
.boton:hover svg {
  transform: translateX(3px);
}
.boton:active::before {
  transform: skewX(var(--inclinacion)) scale(0.97);
}
.boton:focus-visible {
  outline: none;
}
.boton:focus-visible::before {
  outline: 3px solid var(--hueso);
  outline-offset: 3px;
}
.boton[disabled],
.boton[aria-busy="true"] {
  cursor: progress;
  opacity: 0.7;
}
.boton--chico {
  min-height: 40px;
  padding: 0 1.1rem;
  font-size: 0.875rem;
}
.boton--tinta {
  --fondo: var(--tinta);
  --texto: var(--edge);
}
.boton--tinta:hover::before {
  background: var(--grafito);
}
.boton--tinta:focus-visible::before {
  outline-color: var(--tinta);
}
.boton--hueco {
  --fondo: transparent;
  --texto: var(--hueso);
}
.boton--hueco::before {
  box-shadow: inset 0 0 0 1.5px var(--linea);
}
.boton--hueco:hover::before {
  background: var(--grafito);
}

/* ---------- cuotas: azul a favor, rosa en contra, siempre con su palabra ---------- */
.cuota {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  padding: 0.3em 0.75em;
  color: var(--tinta);
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.cuota::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 2px;
  transform: skewX(var(--inclinacion));
}
.cuota small {
  font-size: 0.68em;
  font-weight: 700;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cuota--favor::before {
  background: var(--favor);
}
.cuota--contra::before {
  background: var(--contra);
}

/* ---------- etiquetas ---------- */
.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.28em 0.6em;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  font-stretch: 110%;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.etiqueta svg {
  width: 1.1em;
  height: 1.1em;
}
.etiqueta--ejemplo {
  background: var(--grafito-2);
  color: var(--hueso);
}
.etiqueta--aviso {
  background: var(--aviso);
  color: var(--tinta);
}
.etiqueta--edge {
  background: var(--edge);
  color: var(--tinta);
}

/* ---------- formulario de la lista de espera ---------- */
.apuntarse {
  max-width: 560px;
}
.apuntarse__fila {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
}
.apuntarse__fila::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tinta-2);
  border-radius: var(--radio);
  box-shadow: inset 0 0 0 1.5px var(--linea);
  transform: skewX(var(--inclinacion));
  transition: box-shadow 0.25s var(--ease);
}
.apuntarse__fila:focus-within::before {
  box-shadow: inset 0 0 0 2px var(--edge);
}
.apuntarse__fila[data-error]::before {
  box-shadow: inset 0 0 0 2px var(--contra);
}
.apuntarse input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 0.5rem 0 1.1rem;
  border: 0;
  background: transparent;
  color: var(--hueso);
  font: 500 1.0625rem var(--f);
  outline: none;
}
.apuntarse input[type="email"]::placeholder {
  color: var(--marcador);
}
.casilla {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  min-height: 44px;
  font-size: 0.9375rem;
  color: var(--hueso);
  cursor: pointer;
}
.casilla input {
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--niebla);
  border-radius: 2px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.casilla input::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--tinta);
  border-bottom: 2.5px solid var(--tinta);
  transform: translateY(-1px) rotate(-48deg) scale(0);
  transition: transform 0.25s var(--ease);
}
.casilla input:checked {
  background: var(--edge);
  border-color: var(--edge);
}
.casilla input:checked::after {
  transform: translateY(-1px) rotate(-48deg) scale(1);
}
.casilla[data-error] input {
  border-color: var(--contra);
}
.apuntarse__nota {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--niebla);
}
.apuntarse__error {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--contra);
}
.apuntarse__hecho {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  background: var(--grafito);
  border-radius: var(--radio);
}
.apuntarse__hecho svg {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--edge);
}
.apuntarse__hecho strong {
  display: block;
  font-style: italic;
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 1.125rem;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.apuntarse__hecho p {
  color: var(--niebla);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}

/* variante sobre lima (cierre) */
.sobre-edge .apuntarse__fila::before {
  background: var(--tinta);
  box-shadow: none;
}
.sobre-edge .apuntarse__fila:focus-within::before {
  box-shadow: 0 0 0 3px var(--tinta), 0 0 0 5px var(--edge);
}
.sobre-edge .casilla,
.sobre-edge .apuntarse__nota {
  color: var(--tinta);
}
.sobre-edge .casilla input {
  border-color: var(--tinta);
}
.sobre-edge .casilla input:checked {
  background: var(--tinta);
  border-color: var(--tinta);
}
.sobre-edge .casilla input::after {
  border-color: var(--edge);
}
.sobre-edge .apuntarse__error {
  color: var(--contra-tinta);
}
.sobre-edge .apuntarse__hecho {
  background: var(--tinta);
}
.sobre-edge .apuntarse__hecho strong {
  color: var(--hueso);
}
.sobre-edge :focus-visible {
  outline-color: var(--tinta);
}
