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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--geco-ink-900);
  background: var(--geco-mist-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--geco-navy-900);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
  font-weight: 650;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--space-4); color: var(--geco-ink-700); }
p:last-child { margin-bottom: 0; }
a { color: var(--geco-teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: var(--fs-small); }
ul, ol { padding-left: 1.2em; color: var(--geco-ink-700); }
img { max-width: 100%; display: block; }
strong { font-weight: 700; color: var(--geco-navy-900); }
hr { border: 0; border-top: var(--border-hair); margin: var(--space-6) 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input, select, textarea {
  background: var(--geco-paper);
  border: 1.5px solid var(--geco-mist-400);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[readonly], textarea[readonly] {
  background: var(--geco-mist-100);
  color: var(--geco-ink-500);
  cursor: not-allowed;
}
input:focus:not([readonly]), select:focus, textarea:focus:not([readonly]) {
  outline: none;
  border-color: var(--geco-teal-500);
  box-shadow: 0 0 0 4px var(--geco-teal-100);
}
textarea { resize: vertical; min-height: 96px; font-family: var(--font-body); }
label { display: block; font-size: var(--fs-small); font-weight: 650; color: var(--geco-ink-700); margin-bottom: var(--space-5); }
label > input, label > select, label > textarea { margin-top: var(--space-2); font-weight: 400; }

/* Visible keyboard focus everywhere (accesibilidad) */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--geco-teal-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--geco-navy-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 999;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* --- Utilidades de layout --- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}
.section-pad { padding-block: clamp(56px, 8vw, 108px); }
.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: var(--space-5); }
.text-center { text-align: center; }
.muted { color: var(--geco-ink-500); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--geco-teal-600);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--geco-teal-500);
  display: inline-block;
  border-radius: 2px;
}

.section-heading { max-width: 62ch; margin-bottom: var(--space-7); }
.section-heading.centered { max-width: 62ch; margin-inline: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading.centered .eyebrow::before { display: none; }
.section-heading p { font-size: var(--fs-lead); }

.soft-bg { background: linear-gradient(180deg, var(--geco-paper) 0%, var(--geco-mist-200) 100%); }
.navy-bg {
  background: var(--gradient-navy);
  color: #eaf1f4;
}
.navy-bg h1, .navy-bg h2, .navy-bg h3 { color: #ffffff; }
.navy-bg p { color: rgba(234, 241, 244, 0.82); }
.navy-bg .eyebrow { color: var(--geco-teal-300); }
.navy-bg .eyebrow::before { background: var(--geco-teal-300); }

/* --- Reveal al hacer scroll --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
