/* GoUppers — tokens de marca (Brand Guidelines · Vestigio Studio · abril 2026) */
:root {
  /* Primarios */
  --burdeos: #3b0014;
  --arena: #d3cab2;
  --bosque: #023023;
  --noche: #0c0c0c;
  /* Secundarios */
  --frambuesa: #a82947;
  --pino: #356347;
  --ambar: #ef9705;
  --blanco: #ffffff;
  /* Neutros cálidos */
  --durazno: #ffe7cb;
  --crema: #f0eade;
  --albaricoque: #f7dbb6;

  --font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --notch: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
}
::selection {
  background: var(--frambuesa);
  color: var(--crema);
}
:focus-visible {
  outline: 2px solid var(--ambar);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Botones */
.btn {
  --bg: var(--burdeos);
  --fg: var(--crema);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 48px;
  padding: 0 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ambar);
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform 0.6s var(--ease-out);
}
.btn:hover::before {
  transform: translateY(0);
}
.btn:hover {
  color: var(--noche);
}
.btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.6s var(--ease-out);
}
.btn:hover .arrow {
  transform: translateY(-3px);
}
.btn-sand {
  --bg: var(--arena);
  --fg: var(--burdeos);
}
.btn-ghost {
  --bg: transparent;
  --fg: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn-lg {
  height: 60px;
  padding: 0 2em;
  font-size: 17px;
}

/* Grano fílmico */
.grain {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  z-index: 90;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}
.silk-fallback {
  background: radial-gradient(120% 90% at 30% 20%, var(--frambuesa), var(--burdeos) 55%, var(--noche));
}

@media (prefers-reduced-motion: reduce) {
  .grain {
    animation: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
