/* =========================================================
   ONE · SISTEMA TIPOGRÁFICO + BASE COMPARTIDA
   Una sola familia (Montserrat) y una sola escala en todo el sitio.
   ========================================================= */
:root {
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala tipográfica */
  --fs-display: clamp(40px, 6.2vw, 72px);   /* títulos de portada */
  --fs-h1: clamp(34px, 5vw, 58px);          /* título principal de cada página */
  --fs-h2: clamp(30px, 4.2vw, 48px);        /* títulos de sección */
  --fs-h3: clamp(20px, 2.1vw, 24px);        /* títulos de tarjetas */
  --fs-lead: clamp(16px, 1.5vw, 18px);      /* bajadas */
  --fs-body: 16px;                          /* texto corrido */
  --fs-small: 14px;                         /* textos secundarios */
  --fs-label: 12px;                         /* etiquetas en mayúscula */

  --lh-tight: 1.02;
  --lh-body: 1.6;
  --track-label: .18em;
  --track-btn: .1em;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-body);
  background: var(--bg, #000);
  color: var(--fg, #fff);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

/* ---------- Tipografía: clases del sistema ---------- */
.t-display { font-size: var(--fs-display); font-weight: 900; line-height: var(--lh-tight); text-transform: uppercase; letter-spacing: -.01em; }
.t-h1 { font-size: var(--fs-h1); font-weight: 900; line-height: var(--lh-tight); text-transform: uppercase; }
.t-h2 { font-size: var(--fs-h2); font-weight: 900; line-height: 1.04; text-transform: uppercase; }
.t-h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.15; text-transform: uppercase; }
.t-lead { font-size: var(--fs-lead); font-weight: 500; line-height: 1.55; }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); }
.t-small { font-size: var(--fs-small); line-height: 1.5; }
.t-label { font-size: var(--fs-label); font-weight: 800; letter-spacing: var(--track-label); text-transform: uppercase; line-height: 1.4; }
.t-meta { font-size: var(--fs-small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-height: 44px;
  padding: .8em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: var(--track-btn);
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, filter .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn--sm { min-height: 38px; padding: .6em 1.25em; font-size: 12px; }
.btn--block { width: 100%; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg, #000); color: var(--nav-fg, #fff); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.nav__logo img { height: 28px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nav-links a:not(.btn):hover { opacity: .7; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; padding: 0; position: relative; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .25s, opacity .25s;
}
.nav-toggle span { top: 21px; }
.nav-toggle::before { top: 14px; }
.nav-toggle::after { top: 28px; }
.nav-open .nav-toggle span { opacity: 0; }
.nav-open .nav-toggle::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; animation: marquee 40s linear infinite; will-change: transform; }
.marquee__track > * { flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: var(--fs-label); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.field input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px; outline: none; min-height: 48px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-small); line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.form-msg { font-size: var(--fs-small); font-weight: 700; }
.form-msg:empty { display: none; }

/* ---------- Mini footer ---------- */
.mini-footer { background: var(--footer-bg, #000); color: #fff; padding: 32px 0; }
.mini-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mini-footer img { height: 24px; width: auto; }
.mini-footer__links { display: flex; gap: 26px; flex-wrap: wrap; font-size: var(--fs-label); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.mini-footer__links span { opacity: .75; font-weight: 600; }

/* ---------- Revelado ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 22px;
    padding: 28px clamp(20px, 5vw, 56px) 36px; background: var(--nav-bg, #000); font-size: 16px;
    transform: translateY(-130%); transition: transform .35s ease; z-index: -1;
  }
  .nav-open .nav-links { transform: none; }
  .nav__cta-desktop { display: none; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}
