/* ==========================================================
   ACÁ — Base
   Reset liviano, tipografía global y utilidades.
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }

/* El atributo hidden siempre oculta, aunque la clase tenga display propio */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--negro);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  /* espacio para la bottom nav en celular */
  padding-bottom: calc(var(--alto-bottomnav) + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* Foco visible para teclado */
:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Contenedor central */
.contenedor {
  width: 100%;
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

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

/* Ocultar según viewport */
.solo-mobile { display: block; }
.solo-desktop { display: none; }
@media (min-width: 768px) {
  .solo-mobile { display: none; }
  .solo-desktop { display: block; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
