/* Movaview: tokens de DESIGN.md. No agregar colores ni tipografías fuera de DESIGN.md. */

@font-face { font-family: "LT Superior"; src: url("/fonts/ltsuperior-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "LT Superior"; src: url("/fonts/ltsuperior-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "LT Superior"; src: url("/fonts/ltsuperior-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Brandbook Movaview 2026 */
  --primary: #1b263d;
  --primary-hover: #2c3d5e;
  --ink: #000000;
  --paper: #ffffff;
  --surface: #e2dcd6;
  --text: #1b263d;
  --text-muted: #4a5f7e;
  --accent: #566e91;
  --mist: #8a9eb7;
  --border: #c9d1dc;
  --on-primary: #ffffff;
  --on-primary-muted: #8a9eb7;
  --success: #15803d;
  --success-soft: #dcfce7;
  --warning: #8a5700;
  --warning-soft: #fff4dc;
  --danger: #c81e2e;
  --danger-soft: #fde8ea;

  --font: "LT Superior", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Títulos: Made Tommy según el Brandbook; Outfit hasta comprar su licencia comercial. */
  --font-title: "Outfit", "LT Superior", system-ui, sans-serif;
  --fs-display: 2.25rem;
  --fs-h1: 2rem;
  --fs-h2: 1.5rem;
  --fs-h3: 1.125rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-btn: 0.9375rem;
  --fs-label: 0.8125rem;

  --xs: 4px; --sm: 8px; --md: 12px; --lg: 16px; --xl: 24px; --xxl: 40px; --xxxl: 72px;
  --r-sm: 6px; --r-md: 12px; --r-full: 999px;
  --gutter: max(var(--lg), env(safe-area-inset-left, 0px));
  color-scheme: light;
}
@media (min-width: 768px) {
  :root { --fs-display: 3rem; --gutter: var(--xxl); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
}
img, video { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; font-weight: 500; font-family: var(--font-title); }
.t-display { font-family: var(--font-title); font-size: var(--fs-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.t-h1 { font-family: var(--font-title); font-size: var(--fs-h1); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.t-h2 { font-family: var(--font-title); font-size: var(--fs-h2); line-height: 1.2; }
.t-h3 { font-family: var(--font-title); font-size: var(--fs-h3); line-height: 1.3; }
.t-caption { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; }
.wrap { padding-inline: var(--gutter); }

/* Botones (píldora, la curva de los óvalos del logo) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sm);
  min-height: 44px; padding: 0 var(--lg);
  border-radius: var(--r-full); border: 1px solid var(--primary);
  font: 500 var(--fs-btn)/1.2 var(--font-title); text-decoration: none; cursor: pointer;
  background: var(--paper); color: var(--primary);
}
.btn:hover { background: var(--surface); color: var(--primary); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn:disabled { opacity: 0.5; cursor: progress; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* WhatsApp flotante: negro, no verde (DESIGN.md) */
.wa {
  position: fixed; right: var(--lg); bottom: calc(var(--lg) + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 56px; height: 56px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.wa:hover { background: var(--primary-hover); color: var(--on-primary); }
.wa svg { width: 28px; height: 28px; }

/* Barra de avance */
.progress { height: 4px; background: var(--surface); border-radius: var(--r-full); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--primary); transition: width 0.2s linear; }

.badge { display: inline-block; padding: 2px var(--sm); border-radius: var(--r-full); font: 500 var(--fs-label)/1.3 var(--font); }
.badge--ok { background: var(--success-soft); color: var(--success); }
.badge--warn { background: var(--warning-soft); color: var(--warning); }
.badge--err { background: var(--danger-soft); color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
