/* =========================================================
   bricco.cl · base.css — variables, reset y componentes base
   ========================================================= */
:root {
  --color-primary: #013159;          /* azul de la marca */
  --color-primary-strong: #02457F;
  --color-primary-bright: #1F63B5;
  --color-navy: #013159;
  --color-dark: #1F2937;
  --color-orange: #FF9A00;           /* naranja de la marca: acentos y llamadas a la acción */
  --color-orange-strong: #E08700;
  --color-orange-soft: #FFF1DB;
  --color-orange-border: #FFC46B;
  --color-orange-ink: #7A4300;
  --color-accent: var(--color-orange-soft);
  --color-sale: #E11D48;
  --color-sky: #93C5FD;

  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-900: #111827;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 30, 70, .06);
  --shadow: 0 4px 16px rgba(15, 30, 70, .08);
  --shadow-lg: 0 12px 32px rgba(15, 30, 70, .12);

  --transition: 200ms ease;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--color-primary-bright); transition: color var(--transition); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: var(--color-navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }

/* Foco visible (accesibilidad) */
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: 0; border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary { background: var(--color-dark); color: #fff; }
.btn-primary:hover { background: #000; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* Marca y placeholder de Fase 1 */
.brand { font-weight: 600; color: var(--color-navy); }
.brand sup { font-size: .4em; vertical-align: super; }
.placeholder { padding-block: 96px; text-align: center; }

/* Páginas de error */
.error-page { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; }
.error-code { margin: 0; font-size: clamp(64px, 12vw, 120px); font-weight: 700; color: var(--color-primary); line-height: 1; }
.error-page p { color: var(--gray-500); max-width: 420px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
