/* ==========================================================================
   CrossBox BT El Prat · base: fuentes, tokens, reset, tipografía, botones, apariciones
   Concepto «Sin suerte»: el rombo del emblema como geometría (marcas, máscaras de foto),
   la herradura como indicador de progreso y el tablero de salidas de El Prat para el horario.
   ========================================================================== */
@font-face { font-family: "Big Shoulders"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url("/assets/fonts/bigshoulders-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url("/assets/fonts/bigshoulders-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 62% 125%; font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 62% 125%; font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+A720-A7FF; }

/* --------------------------------------------------------------------------
   Tokens. Color (del logo: cian #0098c0, negro, gris #909090, hielo #d8f0f8)
   -------------------------------------------------------------------------- */
:root {
  --cyan: #0098c0;
  --cyan-hi: #3cc0e4;      /* cian para estados sobre negro */
  --cyan-deep: #006b88;    /* cian para texto sobre claro (AA) */
  --cyan-wash: #c6e8f3;
  --ice: #d8f0f8;
  --ink: #080a0b;
  --ink-2: #111517;
  --ink-3: #1c2326;
  --steel: #909090;
  --steel-2: #5d676b;
  --bone: #edf2f3;          /* hueso azulado */
  --paper: #f7fafa;
  --muted: #485256;
  --muted-dark: rgba(237, 242, 243, .7);
  --line-light: rgba(8, 10, 11, .14);
  --line-dark: rgba(237, 242, 243, .14);
  --rule-light: 1px solid var(--line-light);
  --rule-dark: 1px solid var(--line-dark);
  --pending: #b2402a;
  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Escala tipográfica */
  --fs-micro: .75rem;
  --fs-small: .875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.4vw, 1.3rem);
  --fs-h3: clamp(1.5rem, 2.4vw, 2.25rem);
  --fs-h2: clamp(2.75rem, 7vw, 6.5rem);
  --fs-display: clamp(4rem, 13vw, 13.5rem);
  /* Espaciado y rejilla */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --section-y: clamp(64px, 10vw, 168px);
  --header-h: 68px;
  --abar-h: 0px;
  --shadow-deep: 0 50px 90px -40px rgba(8, 10, 11, .55), 0 18px 36px -18px rgba(8, 10, 11, .3);
  --shadow-soft: 0 1px 2px rgba(8, 10, 11, .06), 0 10px 30px -14px rgba(8, 10, 11, .2);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 1100px) { :root { --header-h: 84px; } }
@media (max-width: 899px) { :root { --abar-h: calc(62px + env(safe-area-inset-bottom, 0px)); } }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-padding-bottom: calc(var(--abar-h) + 12px); background: var(--ink); }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--text);
  font-stretch: 100%; padding-bottom: var(--abar-h); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* Grano de película muy sutil (estático) */
body::after { content: ""; position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--cyan); color: var(--ink); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 600; background: var(--ice); color: var(--ink); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Tipografía: Big Shoulders (condensada industrial, como el rotulado del logo) + Archivo
   -------------------------------------------------------------------------- */
h1, h2, .display { font-family: var(--display); font-weight: 850; line-height: .92; letter-spacing: -.005em;
  text-transform: uppercase; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-family: var(--display); font-weight: 800; font-size: var(--fs-h3); line-height: .95; text-transform: uppercase; letter-spacing: .005em; }
.num { font-variant-numeric: tabular-nums; }
.lead { font-size: var(--fs-lead); line-height: 1.5; }
.micro { font: 600 var(--fs-micro)/1.2 var(--text); font-stretch: 85%; letter-spacing: .16em; text-transform: uppercase; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--muted);
  font: 650 var(--fs-micro)/1 var(--text); font-stretch: 80%; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow .dia { width: 10px; height: 10px; color: var(--cyan); flex: none; }
.eyebrow b { color: var(--cyan-deep); font-variant-numeric: tabular-nums; }
.eyebrow span { padding-left: 10px; border-left: var(--rule-light); }
.eyebrow--light { color: var(--muted-dark); }
.eyebrow--light b { color: var(--cyan-hi); }
.eyebrow--light span { border-color: var(--line-dark); }

/* --------------------------------------------------------------------------
   Botones: relleno que sube desde abajo, flecha que avanza
   -------------------------------------------------------------------------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 26px; text-decoration: none; cursor: pointer; border: 0; border-radius: 0;
  font: 700 .82rem/1 var(--text); font-stretch: 88%; letter-spacing: .14em; text-transform: uppercase;
  isolation: isolate; overflow: hidden; white-space: nowrap; transition: color .4s var(--ease); will-change: transform; }
.btn > span { position: relative; }
.btn .ico { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease-out); }
.btn:hover .ico--arrow { transform: translateX(4px); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fx, transparent);
  transform: translateY(101%); transition: transform .55s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn--cyan { background: var(--cyan); color: var(--ink); --fx: var(--ice); }
.btn--ink { background: var(--ink); color: var(--bone); --fx: var(--cyan); }
.btn--ink:hover, .btn--ink:focus-visible { color: var(--ink); }
.btn--ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px rgba(237, 242, 243, .38); --fx: var(--bone); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); --fx: var(--ink); }
.btn--line:hover, .btn--line:focus-visible { color: var(--bone); }
.btn--sm { min-height: 46px; padding: 0 18px; gap: 10px; }
@media (max-width: 899px) { .btn { min-height: 52px; padding: 0 20px; } .btn--sm { min-height: 44px; } }

.tlink { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none;
  font: 700 .8rem/1 var(--text); font-stretch: 88%; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out); }
.tlink:hover { background-size: 0 1px; background-position: 100% calc(100% - 10px); }
.tlink .ico { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.tlink:hover .ico { transform: translateX(4px); }

/* Dato pendiente de confirmar */
.pending { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: repeating-linear-gradient(-45deg, rgba(178, 64, 42, .09) 0 6px, transparent 6px 12px);
  outline: 1.5px dashed var(--pending); outline-offset: 2px; padding: 0 4px; }
.pending small { font: 650 .66rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--pending); white-space: nowrap; }
.on-dark .pending small, .board .pending small, .ftr .pending small { color: #f0a08e; }
.on-dark .pending, .board .pending { outline-color: #e07a62; }

/* --------------------------------------------------------------------------
   Apariciones (solo con JS y movimiento permitido; un temporizador en <head> lo enseña todo si el JS falla)
   -------------------------------------------------------------------------- */
.ln { display: block; overflow: hidden; padding: .16em 0 .1em; margin: -.16em 0 -.1em; }
.ln > span { display: block; pointer-events: auto; }
.ln { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-lines] .ln > span { transform: translateY(105%); transition: transform 1.15s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 100ms + var(--d, 0) * 90ms); }
  .js [data-lines].is-in .ln > span { transform: none; }
  .js [data-bar] { transform: scaleX(0); transform-origin: left; transition: transform 1.5s var(--ease-out) .2s; }
  .js [data-bar].is-in { transform: none; }
  /* Máscara en rombo (el emblema) que se abre hasta cubrir la foto */
  .js [data-dia] { clip-path: polygon(50% 18%, 82% 50%, 50% 82%, 18% 50%); transition: clip-path 1.3s var(--ease-out); }
  .js [data-dia] img { transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
  .js [data-dia].is-in { clip-path: polygon(50% -50%, 150% 50%, 50% 150%, -50% 50%); }
  .js [data-dia].is-in img { transform: none; }
}
.reveal-all [data-reveal], .reveal-all [data-lines] .ln > span, .reveal-all [data-bar], .reveal-all [data-dia] img { opacity: 1 !important; transform: none !important; }
.reveal-all [data-dia] { clip-path: none !important; }

@media (max-width: 380px) { h1, h2 { overflow-wrap: break-word; } }
