/* ==========================================================================
   BASE: tokens, reset y utilidades generales
   ========================================================================== */

:root {
  /* Marca */
  --red: #C8102E;
  --red-dark: #A00C24;
  --black: #111111;
  --off-white: #F8F5F0;
  --white: #FFFFFF;
  --muted: #5E5A55;                    /* texto secundario sobre fondo claro */
  --line: rgba(17, 17, 17, .07);       /* bordes suaves */
  --line-strong: rgba(17, 17, 17, .16);

  /* Para secciones oscuras */
  --red-light: #FF5C70;                /* rojo legible sobre #111 */
  --surface-dark: #1A1A1A;
  --muted-dark: #A8A29A;
  --line-dark: rgba(255, 255, 255, .1);

  --whatsapp: #138A47; /* verde WhatsApp oscurecido para que el texto blanco se lea */

  /* Tipografía */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;          /* alto del header sin scroll */
  --header-h-scrolled: 64px; /* alto del header con "scrolled" */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

/* Sin márgenes en html/body: el hero tiene que arrancar en el píxel 0.
   Fondo negro en html para que el "rebote" del scroll en mobile no muestre blanco. */
html {
  margin: 0;
  background: var(--black);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-scrolled);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--black);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* Oculto a la vista pero legible por lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

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

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 .95rem/1.2 var(--font-body);
  text-align: center; /* por si el texto parte en dos líneas en mobile */
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--lg { padding: .95rem 1.9rem; font-size: 1rem; }

.btn--red {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn--ghost {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--ghost:hover { background: var(--white); color: var(--black); }

.btn--sm { padding: .5rem 1.1rem; font-size: .85rem; }

.btn--outline-red {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}
.btn--outline-red:hover { background: var(--red); color: var(--white); }
