/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: var(--tracking-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, video, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
}
/* Highlight del manual: frase de 2 a 3 palabras en Misoka y UNA palabra en Velvety Retro, apilada debajo.
   Colores por fondo (manual): crema → negro + rojo · rojo → crema + negro · negro → crema + naranja */
.highlight {
  font-family: var(--font-highlight); font-weight: 400; letter-spacing: var(--tracking-highlight); text-transform: none;
  color: var(--brand-red);
}
.hl-title { color: var(--brand-black); }
.hl-title .highlight { display: block; margin-top: -0.22em; font-size: 1.12em; line-height: 1; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
p { max-width: 65ch; }

:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 3px; border-radius: 6px; }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--brand-red); color: var(--brand-cream); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* ── Layout ───────────────────────────────────────────────────────── */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { position: relative; z-index: 1; padding-block: var(--section-y); }
.section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { color: var(--brand-red); }
.section-head h2.hl-title { color: var(--brand-black); } /* fondo crema → negro + rojo */
.section-head p { margin: 16px auto 0; color: var(--muted); }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-weight: 700; font-size: 0.8125rem; line-height: 1.4; letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--brand-brown);
}

/* ── Botones ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; line-height: 1.1; text-align: center;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, color 0.2s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-red); color: var(--brand-cream); box-shadow: 0 8px 22px rgba(201, 24, 0, 0.3); }
.btn-primary:hover { background: var(--red-hover); }
.btn-outline { border: 2px solid var(--brand-red); color: var(--brand-red); }
.btn-outline:hover { background: var(--brand-red); color: var(--brand-cream); }
.btn-light { background: var(--brand-cream); color: var(--brand-red); }
.btn-light:hover { background: var(--cream-deep); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }

/* ── Revelado al hacer scroll ─────────────────────────────────────── */
/* Solo se oculta si JS está activo (clase .js en <html>), así el contenido nunca queda invisible */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ── Slider genérico ──────────────────────────────────────────────── */
.slider { position: relative; }
.slider-track { display: grid; }
.slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  /* La slide saliente se apaga rápido para que los textos no se crucen */
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0s 0.2s;
}
.slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.5s var(--ease-out) 0.15s, transform 0.5s var(--ease-out) 0.15s, visibility 0s;
}
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.slider-prev, .slider-next {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--cream-deep); color: var(--brand-red); box-shadow: var(--shadow);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.slider-prev:hover, .slider-next:hover { background: var(--brand-red); color: var(--brand-cream); transform: scale(1.06); }
.slider-prev svg, .slider-next svg { width: 22px; height: 22px; }
.slider-dots { display: flex; gap: 8px; }
.slider-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--border); transition: width 0.3s var(--ease-out), background-color 0.3s; }
.slider-dot[aria-current="true"] { width: 30px; background: var(--brand-red); }

@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; }
  .js .reveal { opacity: 1; transform: none; }
}
