/* =====================================================================
   RANGO CREATIVE STUDIO — Base styles
   Reset moderno + elementos base + utilidades de marca.
   Depende de tokens.css y fonts.css (cargar en ese orden).
   ===================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

@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;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-300);
  line-height: var(--lh-body);
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ---- Titulares: display condensado ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;               /* Bebas/Sink ya son display bold */
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--ink);
}
h1 { font-size: var(--fs-700); }
h2 { font-size: var(--fs-600); }
h3 { font-size: var(--fs-500); }
h4 { font-size: var(--fs-400); }

strong, b { font-weight: 700; }

/* ---- Selección, foco, scrollbar (identidad de marca) ---- */
::selection { background: var(--red); color: var(--ink); }
:focus-visible { outline: var(--bw-thin) solid var(--red); outline-offset: 3px; }

* { scrollbar-width: thin; scrollbar-color: var(--red) var(--bg-elev); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-elev); }
::-webkit-scrollbar-thumb { background: var(--red); }
::-webkit-scrollbar-thumb:hover { background: var(--red-dark); }

/* =====================================================================
   UTILIDADES DE LAYOUT
   ===================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--space-8); }
.stack > * + * { margin-top: var(--space-3); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: var(--ink);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
}
.skip-link:focus { left: 0; }

/* ---- Etiqueta kicker (mayúsculas espaciadas con guion rojo) ---- */
.kicker {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--fs-100); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--red);
}
.kicker::before {
  content: ""; width: 2rem; height: 2px; background: var(--red);
}

/* ---- Regla roja de marca ---- */
.rule { height: var(--bw); background: var(--red); border: 0; }
/* Global: lo usan el hero de la home, los sec-head y partials/page-hero.php */
.rule-thick { height: 6px; background: var(--red); border: 0; margin-top: var(--space-4); }
.rule--short { max-width: 480px; }

/* ---- Texto atenuado ---- */
.muted { color: var(--ink-muted); }
.accent { color: var(--red); }

/* Solo para lectores de pantalla: da la frase completa cuando el sentido
   lo carga un tachado o una flecha decorativa. */
.u-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* =====================================================================
   BOTONES (brutalista refinado: sin radios, borde grueso, hover con
   desplazamiento — sin blur, sin ruido)
   ===================================================================== */
.btn {
  --_bg: var(--red); --_fg: var(--ink); --_bd: var(--red);
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body); font-weight: 900;
  font-size: var(--fs-200); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--_fg); background: var(--_bg);
  border: var(--bw) solid var(--_bd); border-radius: var(--radius);
  transition: transform var(--dur-fast) var(--ease-out-expo),
              background-color var(--dur-fast) var(--ease-out-expo),
              color var(--dur-fast) var(--ease-out-expo);
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateX(4px); }
.btn:active { transform: translateX(4px) scale(0.98); }

.btn--ghost { --_bg: transparent; --_fg: var(--ink); --_bd: var(--line); }
.btn--ghost:hover { --_bg: var(--ink); --_fg: var(--bg); border-color: var(--ink); transform: translateY(-3px); }

/* ---- Enlace con subrayado animado ---- */
.link-underline { position: relative; font-weight: 700; }
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 2px; background: var(--red);
  transition: width var(--dur) var(--ease-out-expo);
}
.link-underline:hover::after { width: 100%; }

/* ---- Card brutalista ---- */
.card {
  background: var(--bg-elev);
  border: var(--bw) solid var(--line);
  transition: border-color var(--dur-fast) var(--ease-out-expo),
              transform var(--dur-fast) var(--ease-out-expo);
}
.card:hover { border-color: var(--red); transform: translateY(-4px); }
