/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #14161A;
  --bg-2: #1C1F25;
  --line: #2C3038;
  --steel: #9AA3AF;
  --paper: #EDEFF2;
  --yellow: #F5B700;
  --orange: #F26A1B;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--display);
  font-size: 16px; line-height: 1.55;
  color: var(--paper); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, select, input { font: inherit; }
h1 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--yellow); color: var(--bg); z-index: 99; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute !important; left: 0 !important; top: 0 !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

/* Hazard stripe on top */
.stripes {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 16px, var(--bg) 16px 32px);
  background-size: 45px 10px;
  animation: slide 2.4s linear infinite;
}

/* =============================================================
   3. Header
   ============================================================= */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; color: var(--yellow); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-weight: 900; font-size: 1.15rem; letter-spacing: .04em; }
.brand-name b { color: var(--yellow); }
.top-tag { font-family: var(--mono); font-size: .8rem; color: var(--steel); border: 1px solid var(--line); padding: .25rem .6rem; }

/* =============================================================
   4. Hero
   ============================================================= */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--bg-2); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(.35) contrast(1.1); transform: scale(1.06); animation: drift 22s ease-in-out infinite alternate; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(20,22,26,.86) 45%, rgba(20,22,26,.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.hero-copy { max-width: 44rem; }
.code { font-family: var(--mono); font-size: .82rem; color: var(--yellow); letter-spacing: .08em; }
.blink { animation: blink 1.1s steps(2) infinite; }
h1 {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.3rem, 7vw, 5.2rem);
  line-height: .95; letter-spacing: -.02em;
  margin: 1rem 0 1.3rem;
}
.hl { color: var(--bg); background: var(--yellow); padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lead { font-family: var(--mono); font-size: clamp(.95rem, 1.5vw, 1.05rem); color: #C9CED6; max-width: 38rem; }
.lead strong { color: var(--paper); font-weight: 600; }

.progress { margin: 2rem 0 1.8rem; max-width: 30rem; font-family: var(--mono); }
.progress-head { display: flex; justify-content: space-between; font-size: .78rem; color: var(--steel); letter-spacing: .08em; margin-bottom: .45rem; }
.progress-head span:last-child { color: var(--yellow); font-weight: 600; }
.progress-bar { height: 14px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.progress-bar span {
  display: block; height: 100%; width: var(--p);
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, #D99F00 10px 20px);
  transform-origin: left; animation: fill 1.6s var(--ease-out) both .3s;
}

.notify {
  display: grid; gap: .7rem; max-width: 46rem;
  background: rgba(28,31,37,.85); border: 1px solid var(--line);
  padding: 1rem; backdrop-filter: blur(6px);
}
.field { display: grid; gap: .3rem; }
.field label { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.notify input, .notify select {
  width: 100%; padding: .85rem .9rem; color: var(--paper);
  background: var(--bg); border: 1px solid var(--line); border-radius: 0;
}
.notify input:focus, .notify select:focus { border-color: var(--yellow); outline: none; }
.notify button {
  padding: .95rem 1.3rem; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--bg);
  font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
  transition: background .25s var(--ease-out), transform .25s var(--ease-out);
}
.notify button:hover { background: #FFC81F; transform: translateY(-2px); }
.notify button[disabled] { opacity: .6; transform: none; cursor: progress; }
.form-msg { font-family: var(--mono); font-size: .88rem; min-height: 1.2em; }
.form-msg.ok { color: var(--yellow); }
.form-msg.err { color: #FF8A5B; }
.form-msg a { font-weight: 600; }
.alt { margin-top: 1rem; font-family: var(--mono); font-size: .9rem; color: var(--steel); }
.alt a { color: var(--yellow); font-weight: 600; }

/* =============================================================
   5. Photo strip
   ============================================================= */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 clamp(1rem, 4vw, 3rem) 1rem;
  scrollbar-width: thin; scrollbar-color: var(--yellow) var(--bg-2);
}
.card { position: relative; scroll-snap-align: start; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: transform 1s var(--ease-out), filter .6s var(--ease-out); }
.card:hover img { transform: scale(1.06); filter: none; }
.card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem .9rem .9rem;
  background: linear-gradient(0deg, rgba(20,22,26,.95), transparent);
  font-weight: 700; text-transform: uppercase; font-size: .92rem; letter-spacing: .02em;
}
.card figcaption span { display: block; font-family: var(--mono); color: var(--yellow); font-size: .75rem; font-weight: 500; }

/* =============================================================
   6. Specs
   ============================================================= */
.specs {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 2.5rem 0 0;
}
.specs div { padding: 1.3rem clamp(1rem, 3vw, 1.6rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs b { display: block; font-size: 1.6rem; font-weight: 900; color: var(--yellow); line-height: 1; margin-bottom: .4rem; }
.specs span { font-family: var(--mono); font-size: .82rem; color: var(--steel); }

/* =============================================================
   7. Footer + WhatsApp
   ============================================================= */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem;
  padding: 1.4rem clamp(1rem, 4vw, 3rem) 5.5rem;
  font-family: var(--mono); font-size: .82rem; color: var(--steel);
}
.foot a { text-decoration: none; color: var(--paper); }
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.6);
  transition: transform .3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* =============================================================
   8. Effects
   ============================================================= */
@keyframes slide { to { background-position: 45px 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drift { to { transform: scale(1.14) translateX(-2%); } }

/* =============================================================
   9. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .strip { grid-auto-columns: 46%; }
  .specs { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .notify { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .form-msg { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .strip { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); grid-auto-columns: auto; overflow: visible; }
  .specs { grid-template-columns: repeat(6, 1fr); }
  .foot { padding-bottom: 1.4rem; }
}

/* =============================================================
   10. Reduced motion (only intrusive loops)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .stripes, .blink, .hero-bg img { animation: none; }
}

/* Crédito Klipis */
.credit { flex-basis: 100%; font-size: .78rem; }
.credit a { color: var(--yellow); font-weight: 600; text-decoration: underline; }
