/* =========================================================================
   base.css — reset, variables de diseño, tipografía global
   Paleta ÍNDIGO (rediseño 2026). Tipografía: Poppins (títulos) + Source Sans 3 (cuerpo).
   ========================================================================= */

/* Fuentes: ahora se cargan vía <link> en el <head> de cada página (auditoría 2.5) */
:root {
  /* -------- Marca índigo -------- */
  /* Color de marca elegido por gerencia: índigo profundo #312e81.
     Escala completa para superficies, acentos y estados. */
  --indigo-50:  #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  --indigo-900: #312e81;
  --indigo-950: #1e1b4b;

  /* Alias semánticos (mantienen los nombres usados en layout/components) */
  --brand: #4338ca;        /* workhorse: botones, iconos, links. AA sobre blanco 7.0:1 */
  --brand-600: #3730a3;    /* hover */
  --brand-700: #312e81;    /* hover profundo / autoridad (pick de gerencia) */
  --brand-800: #272065;    /* sombra/acento */
  /* Superficies oscuras con texto blanco (hero, CTA): contraste muy alto */
  --brand-deep: #1e1b4b;       /* blanco 14:1 */
  --brand-deep-hover: #312e81; /* blanco 9.7:1 */

  --ink-900: #1c1b2e;
  --ink-700: #3a3950;
  --ink-500: #5b5a72;
  --ink-400: #6b6a82;
  --ink-300: #7a7990;

  --bg: #fff;
  --bg-soft: #fbfbfe;
  --bg-muted: #f4f5fb;
  --border: #e3e4f0;
  --dark-cta: #1e1b4b;

  --success-bg: #16a34a;
  --error-bg: #fde2e2;   /* con --error-ink: 4.99:1 ✓ AA */
  --error-ink: #c01c2c;
  /* TOKEN NUEVO (2026-07): verde profundo solo para icono/texto de confirmación.
     No es superficie ni acento decorativo. 6.3:1 sobre --indigo-50 ✓ AA. */
  --ok-ink: #166534;

  --font-body: "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-head: "Poppins", "Source Sans 3", sans-serif;

  --container-max: 1180px;
  --header-h: 84px;

  --shadow-sm: 0 1px 2px rgba(30, 27, 75, 0.06), 0 1px 3px rgba(30, 27, 75, 0.08);
  --shadow-md: 0 6px 18px rgba(30, 27, 75, 0.08), 0 2px 6px rgba(30, 27, 75, 0.05);
  --shadow-lg: 0 18px 40px rgba(30, 27, 75, 0.16), 0 4px 12px rgba(30, 27, 75, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-h);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-700);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  color: var(--ink-900);
  margin: 0 0 0.6em;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.1rem);
  font-weight: 700;
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  color: var(--ink-500);
}

ul {
  padding-left: 0;
  margin: 0;
}

ul li {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 1.75rem;
  }
}

.section {
  padding: 5.5rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading .title {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

/* Eyebrow opcional encima de los títulos de sección */
.section-heading .eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.section-heading p {
  font-size: 1.0625rem;
  color: var(--ink-500);
  max-width: 660px;
  margin-inline: auto;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.subtitle-des {
  color: var(--ink-500);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
