/* ============================================================
   BASE — Reset, tipografía, utilidades globales
   ============================================================ */

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

html, body { margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  transition: background-color .4s ease, color .4s ease;
  min-height: 100vh;
}

::selection { background: var(--accent); color: var(--bg); }

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

/* ── Links ── */
a { color: var(--link); text-decoration: none; }
a.inline {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: border-color .2s, color .2s;
}
a.inline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Headings ── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.012em;
}
h1 em, h2 em, h3 em, h4 em {
  font-style: italic;
  font-weight: 400;
  color: var(--editorial);
}
em.hot { color: var(--hot); font-style: italic; }

/* ── Párrafos ── */
p { margin: 0; text-wrap: pretty; }
p.lede {
  font-size: var(--t-body-l);
  line-height: 1.55;
  color: var(--fg-mute);
  max-width: 62ch;
}

/* ── Eyebrow ── */
.eyebrow {
  font-family: var(--cond);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.eyebrow.pitaya .dot {
  background: var(--hot);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(.85); }
}

/* ── Meta / numeral / hr ── */
.meta {
  font-family: var(--cond);
  font-size: var(--t-meta);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.numeral {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--editorial);
}
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── Botones ── */
.btn {
  font-family: var(--cond);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 16px 26px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  background: transparent;
  color: var(--fg);
  transition: all .25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--blanco); }
.btn.primary:hover { background: var(--arcilla-2); border-color: var(--arcilla-2); color: var(--blanco); }
.btn .arrow { display: inline-block; transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ── Pill/badge ── */
.pill {
  font-family: var(--cond);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid currentColor;
  display: inline-block;
}
.pill.active  { color: var(--hot); }
.pill.soon    { color: var(--ocre); }
.pill.year    { color: var(--fg-dim); border-color: var(--line-strong); }

/* ── Animaciones de entrada ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── Accesibilidad ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.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;
}
