/* ============================================================
   Base — reset ligero, tipografía, utilidades de layout
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) {
  body { font-size: 1.0625rem; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-navy-deep);
  margin: 0 0 var(--space-4);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.85rem, 1.2rem + 2.8vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.005em;
}

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand-turquoise-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

strong { font-weight: 600; color: var(--brand-navy-deep); }

/* --- Foco visible y accesible --- */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 200;
  background: var(--brand-navy);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

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

.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--tight { padding-block: clamp(var(--space-7), 4vw, var(--space-8)); }

@media (max-width: 560px) {
  :root { --section-y: var(--space-7); }
}

.section__head {
  max-width: 46rem;
  margin-bottom: var(--space-7);
}
.section__head p {
  color: var(--ink-muted);
  font-size: clamp(1.06rem, 1rem + 0.5vw, 1.25rem);
  line-height: 1.55;
}

/* --- Eyebrow con "marcador de esquina" (firma) --- */
.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-turquoise-ink);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 0.15em;
  border-left: 2px solid var(--brand-turquoise);
  border-top: 2px solid var(--brand-turquoise);
  box-shadow: -3px -3px 0 -2px var(--brand-green);
}

.lead { color: var(--ink-muted); }

.text-muted { color: var(--ink-muted); }

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

/* --- Reveal al hacer scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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