/* ==========================================================================
   NO ME LLAMEN MÁS · base.css
   Reset mínimo, tipografía base, botones y utilidades compartidas.
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--papel);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--texto);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Con un modal abierto, la página de atrás no se desplaza */
body.sin-scroll { overflow: hidden; }

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
}

/* --- Utilidades ---------------------------------------------------------- */
.visualmente-oculto {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.saltar {
  position: absolute;
  top: -100px;
  left: var(--e-4);
  z-index: 100;
  padding: var(--e-3) var(--e-4);
  background: var(--tinta);
  color: var(--blanco);
  border-radius: var(--radio-boton);
  font-weight: 700;
  text-decoration: none;
}
.saltar:focus { top: var(--e-4); }

.contenedor {
  width: 100%;
  max-width: var(--ancho-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.rojo { color: var(--rojo); }
.mayus { text-transform: uppercase; }

/* Enlace en forma de botón dentro de texto (abre modales desde párrafos) */
.enlace {
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.enlace:hover { color: var(--rojo); }

/* --- Botones -------------------------------------------------------------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  width: 100%;
  min-height: 56px;
  padding: 0 var(--e-5);
  border-radius: var(--radio-boton);
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-boton);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.1;
  transition:
    background-color var(--dur-corta) ease,
    box-shadow var(--dur-corta) ease,
    transform var(--dur-corta) ease;
}
@media (min-width: 640px) {
  .boton { width: auto; min-width: 17rem; }
}

.boton--principal {
  background: var(--rojo);
  color: var(--blanco);
  box-shadow: var(--sombra-cta);
}
.boton--principal:hover { background: var(--rojo-oscuro); }
.boton--principal:active { transform: translateY(1px); box-shadow: none; }

.boton--claro {
  background: var(--blanco);
  color: var(--rojo);
}
.boton--claro:hover { background: var(--rojo-tinte); }

.boton--secundario {
  background: transparent;
  color: var(--tinta);
  box-shadow: inset 0 0 0 2px var(--linea-fuerte);
}
.boton--secundario:hover { box-shadow: inset 0 0 0 2px var(--tinta); }

.boton[disabled],
.boton[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

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