/* B8M · sistema visual común (login, cuestionario, resultados).
   Dirección: deportivo editorial. Sale del expositor: titulares condensados en mayúsculas,
   negro + terracota, diagonales y el producto como protagonista. */

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

:root {
  --ink: #161412;
  --paper: #F3EFE8;
  --surface: #FFFFFF;
  --surface-2: #EAE4DA;
  --line: #D9D1C5;
  --muted: #6A6159;
  --brand: #B9532A;
  --brand-strong: #9C4220;
  --brand-soft: #F4DED2;
  --on-brand: #FFFFFF;
  --green: #2E7548;
  --green-soft: #DCEADF;
  --amber-soft: #F6E7C3; --amber-ink: #744B00;
  --red-soft: #F5D8CB; --red-ink: #94361A;
  --tile: #E9E2D6;
  --focus: #B9532A;
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F3EEE6; --paper: #141210; --surface: #1D1A17; --surface-2: #29251F; --line: #3A342D; --muted: #A69B8F;
    --brand: #E06B3A; --brand-strong: #F08455; --brand-soft: #3A251B; --on-brand: #160F0B;
    --green: #6CC08A; --green-soft: #1F3727; --amber-soft: #3D3116; --amber-ink: #EBC878; --red-soft: #432219; --red-ink: #F2A98A;
    --tile: #E9E2D6; --focus: #F08455; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #F3EEE6; --paper: #141210; --surface: #1D1A17; --surface-2: #29251F; --line: #3A342D; --muted: #A69B8F;
  --brand: #E06B3A; --brand-strong: #F08455; --brand-soft: #3A251B; --on-brand: #160F0B;
  --green: #6CC08A; --green-soft: #1F3727; --amber-soft: #3D3116; --amber-ink: #EBC878; --red-soft: #432219; --red-ink: #F2A98A;
  --tile: #E9E2D6; --focus: #F08455; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; font-stretch: 100%; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- tipografía ---------- */
.display { font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; letter-spacing: -.005em; line-height: .92; }
.display-xl { font-size: clamp(52px, 13vw, 112px); }
.display-l { font-size: clamp(38px, 8vw, 64px); }
.display-m { font-size: clamp(28px, 5.4vw, 40px); }
.display-s { font-size: 22px; line-height: 1; }
.eyebrow { font-family: var(--display); font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; color: var(--brand); }
.lead { font-size: 17px; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.accent { color: var(--brand); }

/* ---------- motivo del expositor: diagonales ---------- */
.stripes { background-image: repeating-linear-gradient(-55deg, var(--brand) 0 9px, transparent 9px 22px); }
.stripe-band { height: 12px; }
.stripe-band.thick { height: 22px; }

/* ---------- logo ---------- */
.logo { display: block; height: 26px; width: auto; color: var(--ink); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 56px; padding: 0 22px; border: 0; border-radius: 4px;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 18px;
  text-decoration: none; transition: transform .15s var(--ease), background .15s;
}
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn.brand { background: var(--brand); color: var(--on-brand); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.btn:disabled .arr { transform: none; }
.textbtn { background: none; border: 0; padding: 6px 0; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.textbtn:hover { color: var(--ink); }

/* ---------- formularios ---------- */
.field { display: block; width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 4px; background: var(--surface); font-size: 17px; transition: border-color .15s; }
.field:focus { outline: none; border-color: var(--ink); }
textarea.field { min-height: 110px; resize: vertical; line-height: 1.45; }
.label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }

/* ---------- avisos ---------- */
.alert { border-left: 4px solid var(--red-ink); background: var(--red-soft); color: var(--red-ink); padding: 12px 14px; font-size: 14.5px; font-weight: 500; }
.note { border-left: 4px solid var(--brand); background: var(--surface); padding: 12px 14px; font-size: 14.5px; color: var(--muted); }

/* ---------- producto ---------- */
.pack { background: var(--tile); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.pack img { max-width: 86%; max-height: 86%; object-fit: contain; mix-blend-mode: multiply; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 4px; font-weight: 600; font-size: 15px; z-index: 50; max-width: calc(100% - 32px);
  transition: opacity .2s, transform .25s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
