/*
  01-base.css — 224live
  Reset, elementos base, utilidades globales y animaciones.
  Base FIEL al HTML original. Único añadido: bloque "MEJORA A11Y" al final
  (foco visible y enlace de salto), que no altera la identidad visual.
*/

/* ─── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--lato);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

p {
  line-height: 1.78;
  text-wrap: pretty;
}

/* ─── UTILIDADES GLOBALES ────────────────────────────────────────────────── */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--ph);
}

.eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--t3);
}

/* ─── REVEAL (IntersectionObserver) ─────────────────────────────────────── */
.r {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .85s cubic-bezier(.4, 0, .2, 1),
              transform .85s cubic-bezier(.4, 0, .2, 1);
}

.r.d1 { transition-delay: .12s; }
.r.d2 { transition-delay: .22s; }
.r.d3 { transition-delay: .34s; }

.r.vis {
  opacity: 1;
  transform: none;
}

/* ─── ANIMACIÓN FLOTANTE (colibri) ──────────────────────────────────────── */
@keyframes fl {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ════════════════════════════════════════════════════════════════════════
   MEJORA A11Y (capa de mejora documentada — no estaba en el HTML original)
   Foco visible por teclado y enlace de salto al contenido.
   No cambia colores de marca ni layout.
   ════════════════════════════════════════════════════════════════════════ */

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .r { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Foco visible coherente con el acento naranja de marca */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 1px;
}

/* Enlace de salto: oculto hasta recibir foco */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 600;
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: top .2s;
}

.skip-link:focus { top: 16px; }

/* Solo visible para lectores de pantalla */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
