/* ───────────────────────────────────────────────────────────
   BASE · Reset + Tipografía + Container + Utilidades
   ─────────────────────────────────────────────────────────── */

/* Reset ligero */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-700); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ── Skip link ──────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-md);
  z-index: 9999;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; outline: none; }

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Tipografía — roles ─────────────────────────────────── */
.t-display {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.02em;
}
.t-h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
}
.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--color-primary-900);
}
.t-h3 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}
.t-h4 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.t-body-lg {
  font-size: 19px;
  line-height: 1.55;
}
.t-body {
  font-size: 16px;
  line-height: 1.6;
}
.t-body-sm {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
}
.t-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.t-caption {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--color-text-soft);
}

/* ── Eyebrow ────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-secondary-700);
  margin-bottom: var(--space-sm);
}
.eyebrow--light { color: var(--color-secondary-300); }

/* ── Section padding ────────────────────────────────────── */
.section {
  padding-block: var(--space-3xl);
}
@media (min-width: 1024px) {
  .section { padding-block: var(--space-4xl); }
}

/* ── Placeholder imagen (rayado DS) ─────────────────────── */
.img-ph {
  background-color: var(--color-primary-100);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(15,107,107,.08) 10px,
    rgba(15,107,107,.08) 11px
  );
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-ph span {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary-300);
  font-weight: 600;
  text-align: center;
  padding: var(--space-md);
}

/* ── Fade-in (IntersectionObserver) ─────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.fade-in.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { transition: none; opacity: 1; transform: none; }
}

/* ── Utilidades ─────────────────────────────────────────── */
.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;
}
