:root {
  color-scheme: dark;
  --ink: #0b0b0c;
  --ink-2: #141415;
  --smoke: #cfc6b4;
  --smoke-deep: #8e8574;
  --chrome-hi: #ffffff;
  --chrome-mid: #cfcfcf;
  --chrome-lo: #8a8a8a;
  --text: #efece6;
  --muted: #b9b3a8;
  --orange: #ff7a1a;
  --orange-deep: #e0460b;
  --line: rgba(255,255,255,.14);
  --display: "Archivo Black", "Archivo", "Arial Black", Impact, sans-serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Texturas: malla hexagonal + grano ---------- */
.mesh {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 L56 16 L56 48.5 L28 64.5 L0 48.5 L0 16 Z M28 64.5 L28 97' fill='none' stroke='%23ffffff' stroke-opacity='.22' stroke-width='1.1'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 45%, transparent 20%, #000 75%);
          mask-image: radial-gradient(ellipse 75% 60% at 50% 45%, transparent 20%, #000 75%);
}
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 14 -11'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.smoke {
  position: absolute; pointer-events: none; filter: blur(40px);
  background:
    radial-gradient(closest-side, rgba(207,198,180,.55), transparent 70%) 50% 40% / 70% 60% no-repeat,
    radial-gradient(closest-side, rgba(207,198,180,.35), transparent 70%) 18% 75% / 55% 45% no-repeat,
    radial-gradient(closest-side, rgba(207,198,180,.35), transparent 70%) 85% 70% / 55% 45% no-repeat,
    radial-gradient(closest-side, rgba(142,133,116,.45), transparent 70%) 50% 95% / 90% 40% no-repeat;
  inset: -5% -10%;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-1.5%, 0, 0) scale(1); }
  to   { transform: translate3d(1.5%, -2%, 0) scale(1.05); }
}

/* ---------- Tipos ---------- */
.chrome {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.01em;
  background: linear-gradient(180deg, var(--chrome-hi) 0%, var(--chrome-mid) 48%, var(--chrome-lo) 52%, #e9e9e9 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.55)) drop-shadow(0 10px 22px rgba(0,0,0,.6));
  text-wrap: balance;
}
.tracked {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .55em;
  font-size: clamp(.7rem, 1.6vw, .95rem);
  color: #e6e6e6;
  line-height: 1.35;
  margin-right: -.55em; /* compensa el tracking final para centrar */
}
.orange {
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(11,11,12,.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { font-family: var(--display); text-transform: uppercase; font-size: .95rem; letter-spacing: .04em; color: var(--text); text-decoration: none; line-height: 1; }
.brand small { display: block; font-family: var(--body); font-weight: 600; font-size: .62rem; letter-spacing: .3em; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .08em;
  font-size: .85rem; text-decoration: none; cursor: pointer; border: 0;
  padding: 14px 22px; color: #140800;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); clip-path: none; }
.btn.small { padding: 10px 16px; font-size: .74rem; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #1c1b19 0%, var(--ink) 65%); }
.hero-inner { position: relative; z-index: 2; text-align: center; padding-block: clamp(48px, 8vw, 88px) clamp(40px, 6vw, 72px); display: grid; justify-items: center; gap: clamp(20px, 3vw, 32px); }
.hero h1 { margin: 0; font-size: clamp(2.7rem, 10.5vw, 7.6rem); }
.hero h1 span { display: block; }

.team { margin: 0; width: 100%; max-width: 1000px; position: relative; z-index: 1; }
.team img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
          mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
}
.fights { margin: 0; font-size: clamp(2.4rem, 8.5vw, 6rem); margin-top: clamp(-140px, -12vw, -40px); position: relative; z-index: 3; }
.fights .num { font-size: 1.05em; }

.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Banda de fecha ---------- */
.dateband { position: relative; background: var(--ink); border-block: 1px solid var(--line); overflow: hidden; }
.dateband .mesh { -webkit-mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000); mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000); }
.dateband .wrap { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 44px); padding-block: 36px; flex-wrap: wrap; }
.date { font-family: var(--display); text-align: center; line-height: .85; }
.date .m { display: block; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .02em; }
.date .d { display: block; font-size: clamp(4.2rem, 11vw, 6.8rem); }
.divider { width: 7px; align-self: stretch; min-height: 110px; background: linear-gradient(180deg, var(--orange), var(--orange-deep)); }
.logo { width: 150px; height: auto; max-width: 40vw; display: block; filter: drop-shadow(0 0 1px rgba(255,255,255,.35)); }
.countdown { display: flex; gap: 10px; font-variant-numeric: tabular-nums; }
.countdown div { text-align: center; min-width: 64px; padding: 10px 8px; background: var(--ink-2); border: 1px solid var(--line); }
.countdown b { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1; color: var(--text); }
.countdown span { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Secciones ---------- */
section.block { position: relative; padding-block: clamp(64px, 9vw, 110px); overflow: hidden; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 52px); }
.sec-head .tracked { margin-right: 0; color: var(--orange); }
.sec-head h2 { margin: 0; font-size: clamp(2rem, 5.5vw, 3.6rem); }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); position: relative; }
.card { background: var(--ink); padding: clamp(24px, 3.5vw, 36px); display: grid; gap: 10px; align-content: start; }
.card .label { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.card .value { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.05; color: var(--text); }
.card .value em { font-style: normal; color: var(--orange); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 46ch; }

.timeline { display: grid; grid-template-columns: auto 1fr; gap: 0 18px; margin-top: 4px; }
.timeline .t { font-family: var(--display); font-size: 1.15rem; color: var(--text); font-variant-numeric: tabular-nums; padding-block: 8px; border-bottom: 1px solid var(--line); }
.timeline .e { font-weight: 600; color: var(--muted); padding-block: 8px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; align-self: end; }

/* ---------- Ubicación ---------- */
.venue { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.address { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.05; margin: 0 0 20px; }
.address span { display: block; color: var(--muted); font-size: .55em; letter-spacing: .06em; margin-top: 10px; }
.map-slot {
  aspect-ratio: 4 / 3; width: 100%; max-width: 100%; position: relative; overflow: hidden;
  border: 1px solid var(--line); background: var(--ink-2);
  display: grid; place-items: center;
}
.map-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; filter: grayscale(.35) contrast(1.05); }
.map-slot .pin { position: relative; z-index: 2; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 16px; }
.map-slot .pin i { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 8px rgba(255,122,26,.18), 0 0 0 18px rgba(255,122,26,.08); }
.map-slot .pin b { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; }
.map-slot .pin small { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; font-weight: 600; }

/* ---------- Inscripciones ---------- */
.signup { position: relative; background: radial-gradient(ellipse at 50% 120%, #2a2723 0%, var(--ink) 60%); border-top: 1px solid var(--line); }
.signup .wrap { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 22px; }
.signup h2 { margin: 0; font-size: clamp(2.2rem, 7vw, 5rem); }
.signup p { margin: 0; color: var(--muted); max-width: 54ch; }
.phone { font-family: var(--display); font-size: clamp(1.8rem, 6vw, 3.4rem); letter-spacing: .02em; color: var(--text); font-variant-numeric: tabular-nums; user-select: all; }
.signup .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.copied { font-size: .8rem; color: var(--orange); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; min-height: 1.2em; }

.rules { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.rules li { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--text); padding: 8px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }

/* ---------- Formulario de inscripción ---------- */
.reg {
  width: 100%; max-width: 760px; text-align: left; margin-top: 12px;
  background: rgba(14,14,15,.92); border: 1px solid var(--line);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.step { display: grid; gap: 22px; }
.step-head { display: grid; gap: 10px; justify-items: start; }
.step-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1; color: var(--text); }
.back { background: none; border: 0; padding: 0; color: var(--muted); font: 600 .75rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.back:hover { color: var(--orange); }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice {
  display: grid; gap: 8px; align-content: start; text-align: left; cursor: pointer;
  padding: 22px 20px 24px; color: var(--text); font-family: var(--body);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.22);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.choice:hover { border-color: var(--orange); transform: translateY(-2px); background: linear-gradient(180deg, rgba(255,122,26,.10), rgba(255,122,26,.02)); }
.choice-k { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.choice-t { font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; line-height: 1.05; }
.choice-d { font-size: .88rem; color: var(--muted); }
.spectator { justify-self: center; text-align: center; color: var(--muted); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.spectator:hover { color: var(--text); }

.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text); padding: 0; }
.field legend { margin-bottom: 8px; }
.unit { color: var(--muted); font-weight: 600; letter-spacing: .1em; text-transform: none; }
.field input[type="text"] {
  width: 100%; font: 500 1rem/1.3 var(--body); color: var(--text);
  background: #0a0a0b; border: 1px solid rgba(255,255,255,.2); border-radius: 0;
  padding: 13px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #6f6a62; }
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,26,.18); }
.field.invalid input[type="text"] { border-color: #ff5a4f; }
.err { color: #ff8a80; font-size: .8rem; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.help { color: var(--muted); font-size: .8rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.seg { display: flex; gap: 10px; }
.seg label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; padding: 12px; border: 1px solid rgba(255,255,255,.2); font-size: .9rem; letter-spacing: .12em; }
.seg label:has(input:checked) { border-color: var(--orange); background: rgba(255,122,26,.12); color: var(--text); }
.seg input { accent-color: var(--orange); margin: 0; }
.field.invalid .seg label { border-color: #ff5a4f; }

.stepper { display: flex; width: max-content; max-width: 100%; border: 1px solid rgba(255,255,255,.2); }
.stepper button { width: 52px; background: #161617; color: var(--text); border: 0; font: 700 1.4rem/1 var(--body); cursor: pointer; }
.stepper button:hover { background: rgba(255,122,26,.18); color: var(--orange); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; background: #161617; color: var(--text); }
.field .stepper input[type="text"] { width: 76px; text-align: center; border: 0; border-inline: 1px solid rgba(255,255,255,.2); font-family: var(--display); font-size: 1.4rem; font-variant-numeric: tabular-nums; }

.notice { border: 1px solid rgba(255,122,26,.45); background: rgba(255,122,26,.08); padding: 14px 16px; font-size: .9rem; color: #f3dccb; line-height: 1.5; }
.notice b { color: var(--orange); }
.alert-red { border: 1px solid #ff4d42; background: rgba(255,59,48,.14); color: #ffd9d6; padding: 14px 16px; font-size: .9rem; line-height: 1.5; }
.alert-red b { color: #ff6b61; }

.fighters { display: grid; gap: 14px; }
.fighter { border: 1px solid var(--line); background: rgba(255,255,255,.02); padding: 18px; display: grid; gap: 16px; margin: 0; min-width: 0; }
.fighter legend { font-family: var(--display); text-transform: uppercase; font-size: 1rem; letter-spacing: .04em; padding: 0 8px; color: var(--text); }
.fighter .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.minor-tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }

.submit { justify-self: start; padding: 16px 28px; font-size: .95rem; }
.done p { margin: 0; color: var(--muted); }
.wa-preview { margin: 0; white-space: pre-wrap; font: 500 .88rem/1.55 var(--body); color: var(--text); background: #0a0a0b; border: 1px solid var(--line); border-left: 3px solid #25d366; padding: 14px 16px; max-height: 260px; overflow: auto; }
.done .row { justify-content: flex-start; }

.contact { display: grid; justify-items: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.contact .phone { font-size: clamp(1.4rem, 4.5vw, 2.2rem); text-transform: none; letter-spacing: .02em; }

@media (max-width: 640px) {
  .choices, .grid2 { grid-template-columns: 1fr; }
  .fighter .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .submit { justify-self: stretch; }
}

footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: .78rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 800px) {
  .nav-links a:not(.btn) { display: none; }
  .card-grid, .venue { grid-template-columns: 1fr; }
  .divider { width: 100%; min-height: 0; height: 5px; flex-basis: 100%; max-width: 220px; }
  .dateband .wrap { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .smoke { animation: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Página de inscripción ---------- */
.signup h1 { margin: 0; font-size: clamp(2.2rem, 7vw, 5rem); }
.form-page { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 110px); border-top: 0; }
.cta-big { padding: 18px 34px; font-size: 1.05rem; }
.cta-note { font-size: .9rem; }

.pesaje-rule { width: 100%; max-width: 760px; text-align: left; }
.card .alert-red { font-size: .85rem; }
.inline-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--orange); }
.inline-link:hover { color: var(--orange); }
