/* ============================================================
   EL ZAPATÓN — Reset + base
   Depende de tokens.css. No define colores nuevos: solo usa var().
   ============================================================ */

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

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden; /* garantía anti scroll horizontal */
}

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

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: none; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
}

/* ---- Foco de teclado visible en TODO control ---- */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

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

/* ---- Eyebrow / etiqueta utilitaria ---- */
.eyebrow {
  font-family: var(--font-util);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-util);
  text-transform: uppercase;
  color: var(--accent-strong);
}

/* ---- Título de sección ---- */
.section-title {
  font-size: var(--fs-xl);
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .section-title { font-size: var(--fs-2xl); }
}

/* ---- Utilidad: solo para lectores de pantalla ---- */
.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;
}

/* ---- Botón base (área táctil garantizada) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  min-height: var(--touch);
  padding: var(--sp-2) var(--sp-5);
  font-family: var(--font-util);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-pill);
  transition: background var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--blanco); }
.btn--primary:hover { background: var(--accent-strong); }

.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--tinta); }

/* ---- Skeleton loader base ---- */
.skeleton {
  background: linear-gradient(100deg, var(--arena) 30%, var(--hueso) 50%, var(--arena) 70%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s var(--ease) infinite;
  border-radius: var(--r-md);
}
@keyframes skeleton-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

/* ---- Skip link (accesibilidad) ---- */
.skip-link:focus {
  position: fixed; top: var(--sp-2); left: var(--sp-2);
  width: auto; height: auto; z-index: var(--z-modal);
  padding: var(--sp-2) var(--sp-4); margin: 0; clip: auto;
  background: var(--tinta); color: var(--blanco); border-radius: var(--r-md);
}

/* Oculto util */
[hidden] { display: none !important; }
