/* BASE: variables (design tokens), reset y tipografía */
:root {
  /* Paleta: grises para fondos; negro, amarillo y rojo para recuadros, títulos y acentos */
  --bg: #F2F3F5;        /* gris claro (fondo general) */
  --bg-2: #E3E5E9;      /* gris claro alterno */
  --dark: #2A2C30;      /* gris oscuro (secciones oscuras) */
  --dark-2: #1C1E21;    /* gris muy oscuro (header, footer) */
  --ink: #111214;       /* negro (texto y recuadros) */
  --muted: #4B4F56;     /* texto secundario */
  --line: #CBCED4;      /* bordes suaves */
  --yellow: #FFC20E; --yellow-h: #FFD24D;
  --red: #D62828;
  --wa: #25D366;        /* verde WhatsApp: se mantiene por reconocimiento */
  --font: 'Montserrat', system-ui, sans-serif;
  /* Escala de espaciado */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 5rem;
  --radius: 8px;
  --header-h: 84px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 1rem; -webkit-font-smoothing: antialiased; }
img, iframe, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: var(--s4); }
h2::after { content: ""; display: block; width: 64px; height: 5px; background: var(--red); margin-top: .7rem; border-radius: 2px; }
.section--dark h2::after { background: var(--yellow); }
h3 { font-size: 1.2rem; font-weight: 700; }
.lead { font-size: 1.1rem; max-width: 52ch; }
.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(560px, 100% - 2.5rem); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.section--light :focus-visible, .section:not(.section--dark) :focus-visible { outline-color: var(--ink); }

/* Accesibilidad: primer tab llega al contenido, no al menú */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--yellow); color: var(--ink); padding: .75rem 1.25rem; font-weight: 800; text-decoration: none; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
