/* ==========================================================================
   GREY GAMBOA — base: tokens, reset, tipografía, botones, utilidades
   Paleta sacada del local: negro tinta, luz violeta neón, tubos LED blancos,
   el azul eléctrico de los colores de pelo y el dorado del ribete de su camisa.
   ========================================================================== */

:root {
  /* Color */
  --ink: #0b0b0c;
  --ink-2: #131313;
  --ink-3: #1b1b1c;
  --ink-4: #252526;
  --line: rgba(240, 236, 228, 0.12);
  --line-strong: rgba(240, 236, 228, 0.24);
  --bone: #f4f2ee;
  --mute: #aaa59c;
  --mute-2: #7c7870;
  --neon: #c9a46a;        /* latón: relleno de botones (texto negro encima) */
  --neon-2: #fff4e1;      /* brillo blanco cálido de los LED */
  --neon-3: #d9bb85;      /* texto acento */
  --electric: #3ea6ff;
  --gold: #c9a46a;

  /* Tipografía */
  --f-display: "Antonio", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;
  --f-body: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-2xl: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  --fs-3xl: clamp(3rem, 2rem + 5vw, 6.5rem);

  /* Espaciado */
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(52px, 9vw, 160px);
  --max: 1440px;
  --radius: 18px;
  --radius-lg: 28px;

  /* Movimiento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Glow de tubo LED (reutilizable) */
  --tube-glow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 18px rgba(255, 244, 225, 0.85),
    0 0 48px rgba(201, 164, 106, 0.65), 0 0 110px rgba(201, 164, 106, 0.35);

  color-scheme: dark;
}

/* ---------- Reset mínimo ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
html:not(.lenis) {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
::selection {
  background: var(--neon);
  color: #0b0b0c;
}

:focus-visible {
  outline: 2px solid var(--neon-3);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--bone);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus {
  transform: none;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: var(--section);
}

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 300;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--fs-3xl);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.h2 em,
.h3 em {
  font-style: normal;
  color: var(--neon-3);
}
.h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-xl);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lead {
  font-size: var(--fs-lg);
  color: var(--mute);
  line-height: 1.55;
  max-width: 56ch;
  text-wrap: pretty;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--bone);
  box-shadow: 0 0 6px #fff, 0 0 14px var(--neon-2), 0 0 26px var(--neon);
}
.gold {
  color: var(--gold);
}
.mono-num {
  font-family: var(--f-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

/* ---------- Botones ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--h);
  padding-inline: 26px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    background-color 0.3s, color 0.3s, border-color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn--primary {
  background: var(--neon);
  color: #0b0b0c;
  box-shadow: 0 0 0 1px rgba(230, 210, 170, 0.35) inset, 0 10px 30px -8px rgba(201, 164, 106, 0.75),
    0 0 50px -10px rgba(255, 244, 225, 0.6);
}
.btn--primary::before {
  /* barrido de luz al pasar el mouse */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn--primary:hover::before {
  transform: translateX(120%);
}
.btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(230, 210, 170, 0.55) inset, 0 14px 40px -8px rgba(201, 164, 106, 0.95),
    0 0 80px -6px rgba(255, 244, 225, 0.75);
}
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--bone);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--bone);
  background: rgba(255, 255, 255, 0.06);
}
.btn--light {
  background: var(--bone);
  color: var(--ink);
}
.btn--light:hover {
  background: #fff;
  box-shadow: 0 0 60px -10px rgba(255, 255, 255, 0.6);
}
.btn--sm {
  --h: 44px;
  padding-inline: 20px;
  font-size: 0.875rem;
}
.btn--lg {
  --h: 64px;
  padding-inline: 34px;
  font-size: 1.0625rem;
}
.btn:active {
  transform: scale(0.97);
}

/* Enlace con subrayado animado */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Tubo LED (motivo del local) ---------- */
.tube {
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: #fbf9ff;
  box-shadow: var(--tube-glow);
  pointer-events: none;
}

/* ---------- Grano de película sobre todo el sitio ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%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); }
}

/* ---------- Imágenes con placeholder borroso ---------- */
.media {
  position: relative;
  overflow: hidden;
  background-color: var(--ink-3);
  background-size: cover;
  background-position: center;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}
.media img.is-loaded,
.no-js .media img {
  opacity: 1;
}

/* ---------- Reveal genérico (lo activa main.js) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}

@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;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .grain {
    animation: none;
  }
}
