/* =========================================================================
   okbikers.com — hoja única.
   Tema: SOLO oscuro (asfalto), también si el sistema pide claro: decisión
   del usuario (2026-10-03).
   Un solo acento (naranja bengala), un solo radio (12px), dos familias de
   la misma casa: Barlow Condensed (títulos) y Barlow (texto).
   ========================================================================= */

:root {
  --bg: #0E0F11;
  --bg-2: #131518;
  --surface: #1A1D21;
  --surface-2: #22262B;
  --line: #2B2F35;
  --ink: #ECEAE6;
  --muted: #A4A8AE;
  --acc: #F26B2D;
  --acc-ink: #141518;
  --acc-soft: rgba(242, 107, 45, .12);
  --danger: #FF8C76;
  --ok: #7FD495;
  --shadow: 0 18px 48px rgba(0, 0, 0, .35);
  --r: 12px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; margin: 0; letter-spacing: -.005em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--acc); color: var(--acc-ink); padding: 8px 12px; border-radius: var(--r); z-index: 30; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.ico { width: 1em; height: 1em; flex: none; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-acc { background: var(--acc); color: var(--acc-ink); }
.btn-acc:hover { background: color-mix(in srgb, var(--acc) 88%, var(--ink)); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--muted); }
.btn-ghost { background: none; border: 0; color: var(--muted); padding: 0; min-height: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.btn-ghost:hover { color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn .ico { width: 18px; height: 18px; }

/* ------------------------------------------------------------- cabecera */
.hd {
  position: sticky; top: 0; z-index: 20; height: 68px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.hd-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand .logo { height: 34px; width: auto; }
.brand .logo-a { height: 44px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--acc-ink); min-height: 42px; padding: 0 18px; }
@media (max-width: 640px) {
  .nav .nav-hide-sm { display: none; }
  .brand .logo { height: 28px; }
  .brand .logo-a { height: 38px; }
}

/* ------------------------------------------------------------- avisos */
.flashes { margin: 18px auto 0; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.flash + .flash { margin-top: 8px; }
.flash .ico { width: 20px; height: 20px; margin-top: 2px; }
.flash-ok .ico { color: var(--ok); }
.flash-error .ico { color: var(--danger); }

/* ------------------------------------------------------------- portada */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-block; font: 700 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin-bottom: 22px; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.9rem); line-height: .94; text-transform: uppercase; }
.hero h1 .nw { white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--acc); }
.hero .lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 34ch; margin: 26px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-cta .btn { min-height: 54px; padding: 0 28px; font-size: 17px; }
.hero-media { position: relative; margin: 0; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: calc(100dvh - 140px); object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4 / 3; max-height: none; }
}

/* ------------------------------------------------------------- secciones */
.sec { padding: clamp(56px, 8vw, 112px) 0; }
.sec-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); text-transform: uppercase; }
.sec-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }

/* bento: 4 piezas, 6 columnas, dos filas que se cruzan */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cell { position: relative; border-radius: var(--r); overflow: hidden; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; isolation: isolate; }
.cell h3 { font-size: clamp(1.9rem, 2.6vw, 2.4rem); text-transform: uppercase; margin-bottom: 10px; }
.cell p { margin: 0; max-width: 40ch; font-size: 17px; }
.cell-4 { grid-column: span 4; }
.cell-2 { grid-column: span 2; }
.cell-photo { color: #F4F2EE; }
.cell-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.cell-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 11, 12, 0) 30%, rgba(10, 11, 12, .82) 100%); }
.cell-photo p { color: rgba(244, 242, 238, .86); }
.cell-photo:hover img { transform: scale(1.03); }
.cell-acc { background: var(--acc); color: var(--acc-ink); justify-content: space-between; }
.cell-acc p { opacity: .88; }
.cell-acc .big-ico, .cell-plain .big-ico { width: 64px; height: 64px; }
.cell-plain { background: var(--surface); border: 1px solid var(--line); justify-content: space-between; }
.cell-plain p { color: var(--muted); }
.cell-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--acc); text-decoration: none; }
.cell-link .ico { width: 18px; height: 18px; }
.cell-soon { margin-top: 18px; display: inline-block; font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 12px; align-self: flex-start; }
@media (max-width: 900px) {
  .cell-4, .cell-2 { grid-column: span 6; }
  .cell { min-height: 300px; }
}

/* ------------------------------------------------------------- formulario */
.join { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.join-copy p { color: var(--muted); font-size: 18px; max-width: 42ch; }
.join-copy h2 { margin-bottom: 20px; }
.join-note { display: flex; gap: 14px; margin-top: 28px; padding: 18px; border-radius: var(--r); background: var(--acc-soft); border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent); }
.join-note .ico { width: 26px; height: 26px; color: var(--acc); margin-top: 2px; }
.join-note p { margin: 0; color: var(--ink); font-size: 16px; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label, .label { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: 400 17px/1 var(--body); transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder { color: color-mix(in srgb, var(--muted) 78%, transparent); }
input:focus, select:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23999'%3E%3Cpath d='M216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.has-error input, .has-error select { border-color: var(--danger); }
.err { color: var(--danger); font-size: 14px; margin: 0; }
.help { color: var(--muted); font-size: 14px; margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--acc); flex: none; cursor: pointer; }
.check a { color: var(--ink); text-underline-offset: 3px; }
.club-extra[hidden] { display: none; }
.form-error { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); margin-bottom: 18px; font-size: 15px; }
.form-error .ico { width: 20px; height: 20px; margin-top: 1px; }
.cf-turnstile { min-height: 65px; margin: 6px 0 18px; }
.submit-row { display: grid; gap: 12px; }
.submit-row .btn { width: 100%; min-height: 54px; font-size: 17px; }

/* ------------------------------------------------------------- páginas de paso */
.narrow { max-width: 520px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) var(--pad); }
.narrow h1 { font-size: clamp(2.6rem, 6vw, 3.6rem); text-transform: uppercase; margin-bottom: 14px; }
.narrow .lead { color: var(--muted); font-size: 18px; }
.code-input { height: 72px !important; text-align: center; font: 700 38px/1 var(--display) !important; letter-spacing: .4em; padding: 0 0 0 .4em !important; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.inline-form { display: inline; margin: 0; }

/* Mi cuenta */
.account { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 80px) var(--pad); }
.account h1 { font-size: clamp(2.6rem, 6vw, 3.8rem); text-transform: uppercase; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 28px; padding: 8px 14px; border-radius: var(--r); background: var(--acc-soft); color: var(--ink); font-weight: 600; font-size: 15px; }
.status .ico { color: var(--acc); width: 18px; height: 18px; }
.welcome { display: flex; gap: 16px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin-bottom: 28px; }
.welcome .ico { width: 30px; height: 30px; color: var(--acc); }
.welcome h2 { font-size: 1.8rem; text-transform: uppercase; margin-bottom: 6px; }
.welcome p { margin: 0; color: var(--muted); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0 0 22px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.danger-zone { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.danger-zone h2 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: 8px; }
.danger-zone p { color: var(--muted); }
.confirm-box[hidden] { display: none; }
.confirm-box { margin-top: 14px; padding: 16px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); }
.confirm-box .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

/* Legales */
.prose { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 80px) var(--pad); }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); text-transform: uppercase; margin-bottom: 26px; }
.prose h2 { font-size: 1.7rem; text-transform: uppercase; margin: 34px 0 12px; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 86%, var(--muted)); }
.prose a { color: var(--acc); }

/* ------------------------------------------------------------- ventana (dialog) */
.modal {
  padding: 0; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  width: min(720px, calc(100% - 32px)); max-width: none; max-height: min(86dvh, 900px);
}
.modal::backdrop { background: rgba(6, 7, 8, .74); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-in { display: flex; flex-direction: column; max-height: min(86dvh, 900px); }
.modal-hd { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-hd h2 { font-size: clamp(1.6rem, 4vw, 2rem); text-transform: uppercase; }
.modal-x { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: none; color: var(--muted); cursor: pointer; }
.modal-x:hover { color: var(--ink); background: var(--surface-2); }
.modal-x .ico { width: 22px; height: 22px; }
.modal-bd { overflow: auto; overscroll-behavior: contain; padding: 4px 22px 20px; }
.modal-bd h2 { font-size: 1.3rem; text-transform: uppercase; margin: 22px 0 8px; }
.modal-bd p, .modal-bd li { color: color-mix(in srgb, var(--ink) 86%, var(--muted)); font-size: 16px; }
.modal-bd ul { padding-left: 20px; margin: 0 0 1em; }
.modal-bd a { color: var(--acc); }
.modal-ft { display: flex; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); }
body:has(dialog[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: rise .35s cubic-bezier(.16, 1, .3, 1) both; }
}

/* ------------------------------------------------------------- pie */
.ft { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 15px; }
.ft-in { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
.ft .logo { height: 26px; width: auto; color: var(--ink); }
.ft .logo-a { height: 40px; }
.ft nav { display: flex; gap: 20px; flex-wrap: wrap; }
.ft a { text-decoration: none; }
.ft a:hover { color: var(--ink); }

/* ------------------------------------------------------------- movimiento */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero-media img { animation: heroIn 1.1s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-copy > * { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
}
@keyframes heroIn { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* sueltos */
.help.spaced { margin-top: 22px; }
.ft-brand { color: inherit; }
