@font-face { font-family: 'Inter'; src: url('/_web/fonts/inter-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/_web/fonts/montserrat-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/_web/fonts/montserrat-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/_web/fonts/montserrat-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/_web/fonts/montserrat-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }

/* Modo claro (fondo blanco). Los colores de toda la web salen de acá. */
:root {
  --fondo: #FFFFFF;
  --texto: #0A0A0A;
  --texto-2: #3D3D3D;
  --apagado: #6E6E6E;
  --borde: #DCDCDC;
  --borde-hover: #9A9A9A;
  --boton-hover: #2A2A2A;
  --subrayado: rgba(10,10,10,.3);
  --titulo: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --base: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--fondo); color-scheme: light; }
body { margin: 0; background: var(--fondo); color: var(--texto); font-family: var(--base); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  touch-action: pan-y;
}
.hero__escena { position: absolute; inset: 0; }
.hero__escena canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0; transition: opacity .6s ease;
}
.hero__imagen, .hero__imagen img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: opacity .6s ease;
}
/* Cambio de imagen fija a llavero en dos tiempos (primero se va una, después entra el otro),
   para que nunca se vean dos llaveros encimados. */
.hero--vivo .hero__escena canvas { opacity: 1; transition: opacity .45s ease .25s; }
.hero--vivo .hero__imagen { opacity: 0; transition: opacity .25s ease; }

.hero__texto {
  grid-row: 2;
  position: relative;
  text-align: center;
  padding: 0 16px clamp(72px, 13svh, 150px);
  pointer-events: none;
}
.hero__titulo { margin: 0; font-weight: inherit; }
.hero__marca {
  display: block;
  font-family: var(--base);
  font-weight: 400;
  font-size: clamp(14px, 1.8vw, 26px);
  letter-spacing: .45em;
  padding-left: .45em; /* compensa el espaciado de la última letra */
  margin-bottom: clamp(22px, 3.6vw, 52px);
}
.hero__frase {
  display: block;
  font-family: var(--titulo);
  font-weight: 300;
  font-size: clamp(46px, 7.2vw, 112px);
  line-height: 1.02;
  letter-spacing: -.025em;
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px;
  width: 1px; height: 36px;
  background: linear-gradient(var(--apagado), transparent);
}

.hero__controles {
  position: absolute; right: max(16px, 2vw); bottom: 22px;
  display: flex; gap: 8px;
  z-index: 2;
}
.hero__controles[hidden] { display: none; }
.hero__controles button {
  font: 400 10px/1 var(--base);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--apagado);
  background: transparent;
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.hero__controles button:hover { color: var(--texto); border-color: var(--borde-hover); }
.hero__controles button:focus-visible { outline: 2px solid var(--texto); outline-offset: 2px; color: var(--texto); }

@media (max-width: 600px) {
  .hero__controles { right: 12px; bottom: 14px; gap: 6px; }
  .hero__controles button { font-size: 9px; letter-spacing: .14em; padding: 6px 9px; }
  .hero__scroll { bottom: 18px; height: 28px; }
}

/* Modo captura (para generar la imagen fija) */
.captura .hero__texto, .captura .hero__scroll, .captura .hero__controles, .captura .hero__imagen { visibility: hidden; }

.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
