/* ============================================================
   base.css — Tokens de marca, reset y tipografía
   Paleta oficial NUNA: no agregar colores fuera de esta lista.
   ============================================================ */

:root {
  /* Paleta de marca */
  --steel: #7393B3;       /* principal: tecnología, íconos, mockups */
  --sand: #D4C3A3;        /* fondos y tarjetas */
  --terra: #E07A5F;       /* acentos, palabras resaltadas, botones */
  --camel: #C19A6B;       /* detalles, madera, café */
  --cream: #FBF6EE;       /* fondo base */
  --ink: #1E1E1E;         /* texto */

  /* Derivados (solo transparencias de la paleta) */
  --ink-70: rgba(30, 30, 30, .72);
  --ink-50: rgba(30, 30, 30, .5);
  --ink-10: rgba(30, 30, 30, .08);
  --cream-70: rgba(251, 246, 238, .74);
  --cream-15: rgba(251, 246, 238, .12);
  --sand-30: rgba(212, 195, 163, .32);
  --sand-50: rgba(212, 195, 163, .55);
  --steel-15: rgba(115, 147, 179, .16);
  --terra-15: rgba(224, 122, 95, .16);
  --camel-15: rgba(193, 154, 107, .18);

  /* Tipografía */
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-logo: 'Cormorant Garamond', Georgia, serif;

  --fs-hero: clamp(2.5rem, 5.6vw + .5rem, 4.6rem);
  --fs-h2: clamp(2rem, 3.4vw + .6rem, 3.25rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.05rem, .6vw + .9rem, 1.25rem);

  /* Espaciado y forma */
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 10px rgba(30, 30, 30, .06);
  --shadow: 0 18px 40px -18px rgba(30, 30, 30, .28);
  --shadow-lg: 0 40px 80px -30px rgba(30, 30, 30, .4);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
[hidden] { display: none !important; }

::selection { background: var(--terra); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
p { text-wrap: pretty; }

/* Palabra resaltada en terracota (look de marca) */
.hl {
  color: var(--terra);
  position: relative;
  white-space: nowrap;
}

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
  max-width: 100%;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow--light { color: var(--sand); }

.section__title { font-size: var(--fs-h2); }
.section__title--light { color: var(--cream); }

.section__lead {
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  color: var(--ink-70);
  max-width: 60ch;
}
.section__lead--light { color: var(--cream-70); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: var(--cream);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* Círculos punteados suaves (firma visual de los posts) */
.dots {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed var(--sand);
  pointer-events: none;
  z-index: 0;
}
