/* base.css — reset corto + tipografía. Todo sale de tokens.css. */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--txt-base);
  line-height: 1.5;
  color: var(--ink-700);
  background: var(--bg);
  /* la app se usa con el dedo: nada de "selección" accidental al arrastrar la agenda */
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink-900);
  line-height: 1.25;
  font-weight: var(--peso-fuerte);
}
h1 {
  font-size: var(--txt-2xl);
}
h2 {
  font-size: var(--txt-xl);
}
h3 {
  font-size: var(--txt-lg);
}

p {
  margin: 0;
}

a {
  color: var(--brand-600);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

/* El foco se ve SIEMPRE (teclado y lector de pantalla): accesibilidad no es opcional. */
:focus-visible {
  outline: 3px solid var(--brand-200);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Respeta a quien pidió menos movimiento en el sistema. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Alpine: esconde lo que todavía no se hidrató (evita el flash de todos los tabs juntos). */
[x-cloak] {
  display: none !important;
}

.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
