/* ==========================================================================
   MOXIFY · BASE
   Reset ligero, tipografía global y utilidades de layout.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Para que los anclajes no queden tapados por el header fijo */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Bloquea el scroll cuando el menú móvil está abierto */
body.menu-abierto { overflow: hidden; }

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

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

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

p { text-wrap: pretty; }

::selection {
  background: var(--red-500);
  color: var(--paper-100);
}

/* Foco visible y con el color de marca (accesibilidad). */
:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Barra de scroll a juego con la marca (WebKit + Firefox). */
* { scrollbar-color: var(--red-600) var(--ink-900); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb {
  background: var(--ink-600);
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink-900);
}
::-webkit-scrollbar-thumb:hover { background: var(--red-600); }


/* ---------------------------------------------------------------
   Layout
   --------------------------------------------------------------- */

.contenedor {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.seccion { padding-block: var(--section-y); }

.seccion--roja {
  background: var(--surface-brand);
  color: var(--text-on-brand);
}


/* ---------------------------------------------------------------
   Tipografía
   --------------------------------------------------------------- */

.eyebrow {
  display: block;
  margin: 0 0 var(--space-3);
  font-size: var(--size-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-brand);
}

.eyebrow--claro { color: rgba(255, 255, 255, .78); }

.titulo,
.titulo-hero {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
}

.titulo-hero { font-size: var(--size-hero); line-height: .86; }
.titulo      { font-size: var(--size-display-1); }
.titulo--sm  { font-size: var(--size-display-2); }

.rojo   { color: var(--text-brand); }
.blanco { color: var(--paper-100); }

.parrafo {
  margin: 0;
  font-size: var(--size-body);
  line-height: var(--lh-body);
  color: var(--text-soft);
}

.parrafo--lead  { font-size: var(--size-lead); }
.parrafo--mute  { color: var(--text-muted); }

.marcador {
  font-family: var(--font-marker);
  font-size: 26px;
  line-height: 1;
  color: var(--text-brand);
  white-space: nowrap;
  transform: rotate(-5deg);
}

/* Cabecera de sección: título a la izquierda, apoyo a la derecha */
.cabecera-seccion {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cabecera-seccion .parrafo { max-width: 360px; }


/* ---------------------------------------------------------------
   Utilidades
   --------------------------------------------------------------- */

.centrado { text-align: center; }

.acciones {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.acciones--centro { justify-content: center; }

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

/* Enlace "saltar al contenido" para navegación por teclado */
.saltar-contenido {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 100;
  padding: 12px 20px;
  background: var(--red-500);
  color: var(--paper-100);
  font-size: var(--size-caption);
  font-weight: 700;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: top var(--dur-fast) var(--ease-out);
}

.saltar-contenido:focus { top: var(--space-4); }
