/* ============================================================
   Juárez Protege — Base: reset + tipografía + utilidades
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

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

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

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

a {
  color: var(--naranja);
  text-decoration: none;
}

a:hover {
  color: var(--naranja-oscuro);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
}

h1 { font-size: var(--fs-hero); font-weight: 900; }
h2 { font-size: var(--fs-h2); font-weight: 900; }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p + p { margin-top: var(--sp-4); }

/* Foco de teclado visible (piso de accesibilidad) */
:focus-visible {
  outline: 3px solid var(--naranja);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 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;
}

/* Texto secundario */
.texto-secundario {
  color: var(--tinta-60);
}

.small {
  font-size: var(--fs-small);
}

/* Placeholder editorial: contenido pendiente de Alan */
.pendiente {
  border: 2px dashed var(--linea);
  background: var(--durazno);
  color: var(--tinta-60);
  border-radius: var(--radio-input);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-small);
}
.pendiente::before {
  content: "Pendiente · ";
  font-weight: 600;
  color: var(--naranja-oscuro);
}

/* Scroll-reveal (§6): estado inicial y revelado */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

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