/* ============================================================
   STAYFRAME — reset.css
   Reset / normalize + box-sizing + variables globales (:root)
   ============================================================ */

:root {
  /* ---- Paleta (innegociable) ---- */
  --white: #ffffff;
  --rausch: #ff5a5f;
  --rausch-dim: rgba(255, 90, 95, 0.14);
  --rausch-line: rgba(255, 90, 95, 0.28);
  --pig-iron: #484848;
  --pig-iron-light: #767676;
  --gold: #c9a24b;

  --surface: rgba(20, 15, 10, 0.03);
  --surface-strong: rgba(20, 15, 10, 0.06);
  --surface-border: rgba(20, 15, 10, 0.08);

  /* ---- Tipografía ---- */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;

  /* ---- Espaciado / ritmo ---- */
  --section-pad-y: clamp(4.5rem, 9vw, 8.5rem);
  --container-w: 1180px;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* ---- Sombras / elevación ---- */
  --shadow-soft: 0 20px 60px -25px rgba(20, 15, 10, 0.25);
  --shadow-rausch-glow: 0 12px 40px -12px rgba(255, 90, 95, 0.45);

  /* ---- Movimiento ---- */
  --ease-cine: cubic-bezier(0.2, 0.9, 0.3, 1);
  --dur-fast: 0.22s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;
}

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

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

body {
  background: var(--white);
  color: var(--pig-iron);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

em {
  font-style: italic;
  color: var(--gold);
}

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

::selection {
  background: var(--rausch);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--rausch);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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