﻿/* ============================================================
   XUSSO TATTOO — estilos
   Réplica de la estructura de Active Theory (DESIGN.md):
   escena WebGL a pantalla completa + cromo mínimo flotando encima.
   ============================================================ */

:root {
  --color-void-black: #080807;   /* negro profundo (75%) */
  --color-charcoal: #171512;     /* carbón cálido (10%): superficies */
  --color-ghost-white: #E8E4DC;  /* blanco marfil (2%): textos */
  --color-ash-border: #2a2620;
  --color-smoke: #7c756a;
  --color-fog: #a0988b;
  --color-pale-mist: #d2ccc1;
  --color-dusk-violet: #C99A48;
  --color-gold: #C99A48;         /* oro metálico (6%): botones, bordes, detalles */
  --color-champagne: #F1D6A0;    /* oro champagne (4%): brillos */
  --color-bronze: #8B672F;       /* bronce oscuro (3%): sombras doradas */

  /* interfaz: palo seco en negrita (como 'ARTISTAS') · títulos: extendida, negra y cursiva (como 'GANGA TATTOO') */
  --font-nbarchitekt: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Archivo', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-times: Times, 'Times New Roman', Georgia, serif;

  --text-caption: 10px;
  --text-body-sm: 12px;
  --text-body: 14px;

  --radius-md: 5px;
  --radius-xl: 12px;
  --radius-full: 500px;

  --surface-overlay: rgba(0, 0, 0, .5);
  --surface-frost: rgba(255, 255, 255, .1);

  --edge: 28px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--color-void-black);
  overscroll-behavior: none;
}

body {
  color: var(--color-ghost-white);
  font-family: var(--font-nbarchitekt);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, figure { margin: 0; }
:focus-visible { outline: 1px solid var(--color-ghost-white); outline-offset: 3px; }

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

/* ---------- Escena ---------- */
.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
.scene.is-pointer { cursor: pointer; }
.scene:active { cursor: grabbing; }

/* ---------- Carga ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--color-void-black);
  transition: opacity 1.2s ease;
}
.loader__arc {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--color-ghost-white);
  border-right-color: rgba(255, 255, 255, .35);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
body:not(.is-loading) .loader { opacity: 0; pointer-events: none; }

/* ---------- Título de la sección activa ---------- */
.card-title {
  position: fixed;
  left: 50%;
  top: var(--title-y, 70%);
  z-index: 10;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: min(90vw, 560px);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
}
.card-title.is-on { opacity: 1; }
.card-title__sec {
  font-size: var(--text-caption);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-pale-mist);
}
.card-title__name {
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--color-ghost-white);
  text-shadow: 0 0 18px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .9);
}
.card-title__hint {
  font-size: var(--text-caption);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* ---------- Cabecera: reserva + logo ---------- */
.hud-top {
  position: fixed;
  top: max(var(--edge), env(safe-area-inset-top));
  right: var(--edge);
  z-index: 50;
  display: grid;
  justify-items: end;
  gap: 12px;
  opacity: 0;
  transition: opacity 1s ease;
}
body.is-ready .hud-top { opacity: 1; }

/* indicador para bajar (sólo en la portada) */
.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 5;
  width: 12px;
  height: 52px;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
}
.scroll-cue::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(241, 214, 160, 0), rgba(241, 214, 160, .75));
}
.scroll-cue::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(241, 214, 160, .7);
  border-radius: 50%;
}
.scroll-cue i {
  position: absolute;
  left: calc(50% - 1.5px);
  top: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-champagne);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(44px); opacity: 0; }
}
body.is-ready.at-home .scroll-cue { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .scroll-cue i { animation: none; } }
.hud-top__row { display: flex; align-items: center; gap: 14px; }

/* logo arriba a la izquierda, alineado con la cápsula de reserva */
.brand {
  position: fixed;
  left: var(--edge);
  top: calc(max(var(--edge), env(safe-area-inset-top)) - 10px);
}
.brand img { display: block; width: 92px; height: auto; }

.capsule {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-full);
  background: rgba(23, 21, 18, .6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: var(--text-caption);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .3s ease, border-color .3s ease;
}
.capsule:hover { background: rgba(201, 154, 72, .2); border-color: rgba(255, 255, 255, .5); }
/* resplandor de luz bajo la cápsula */
.capsule::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 1px;
  background: rgba(201, 154, 72, .95);
  filter: blur(1.5px);
  opacity: .8;
}

.switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity .8s ease;
}
body.in-work .switcher { opacity: 1; }
body.at-end .switcher { opacity: 0; pointer-events: none; }
.switcher__btn {
  display: grid;
  place-items: center;
  width: 22px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-md);
  font-size: var(--text-caption);
  font-weight: 700;
  transition: background .3s ease;
}
.switcher__btn:hover { background: var(--surface-frost); }
.switcher__ticker {
  width: 112px;
  height: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-md);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.switcher__track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: ticker 9s linear infinite;
}
.switcher__track span {
  padding-right: 28px;
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Buscador abajo a la izquierda ---------- */
.finder {
  position: fixed;
  left: calc(var(--edge) + 30px);
  bottom: max(var(--edge), env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  justify-items: start;
  gap: 18px;
  max-width: min(360px, calc(100vw - 2 * var(--edge)));
  opacity: 0;
  transition: opacity 1s ease .2s;
}
body.is-ready .finder { opacity: 1; }
/* la lista sólo tiene sentido en el inicio y la espiral */
.finder__list { transition: opacity .5s ease; }
body.in-work:not(.in-spiral) .finder__list { opacity: 0; pointer-events: none; }
body.at-end .finder { opacity: 0; pointer-events: none; }

.finder__list, .finder__info { display: grid; gap: 12px; justify-items: start; }
.finder__q { color: var(--color-ghost-white); font-size: var(--text-body); text-transform: uppercase; }
.finder__link {
  font-size: var(--text-body);
  text-transform: uppercase;
  color: var(--color-pale-mist);
  text-shadow: 0 0 10px rgba(201, 154, 72, .4);
  transition: color .3s ease;
}
.finder__link:hover, .finder__link.is-active { color: var(--color-gold); }
.finder__link.is-active::after { content: " ●"; font-size: 8px; vertical-align: middle; }

.info__title { font-size: var(--text-body-sm); font-weight: 700; text-transform: uppercase; }
.info__meta { font-size: var(--text-body-sm); color: var(--color-fog); text-transform: uppercase; }
.info__desc { font-size: var(--text-body-sm); text-transform: uppercase; line-height: 1.6; max-width: 34ch; }
.info__links { display: grid; gap: 10px; justify-items: start; }
.info__links a { font-size: var(--text-body-sm); text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.info__links a:hover { color: var(--color-gold); }
.info__close { font-size: var(--text-body-sm); text-transform: uppercase; }
.info__close:hover { color: var(--color-gold); }

/* ---------- Visor de sección ---------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .6s ease;
}
.viewer.is-open { opacity: 1; }
/* Fondo ambiental: la propia foto, gigante y desenfocada, tiñe el fondo con
   sus colores; encima un velo dorado, viñeta, grano y un destello lento. */
.viewer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  isolation: isolate;          /* sus capas se quedan siempre detrás de la foto */
  overflow: hidden;
  background: var(--color-void-black);
}
.viewer__bg::before, .viewer__bg::after, .viewer__sweep { pointer-events: none; }
.viewer__amb {
  position: absolute;
  inset: -15%;
  background: center / cover no-repeat;
  filter: blur(48px) saturate(1.3) brightness(.55);
  opacity: 0;
  transition: opacity 1.2s ease;
  animation: ambDrift 22s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
.viewer__amb.is-on { opacity: 1; }
.viewer__amb:nth-child(2) { animation-delay: -11s; }
@keyframes ambDrift {
  from { transform: scale(1.1) translate3d(-2.5%, -1.5%, 0) rotate(-2deg); }
  to { transform: scale(1.28) translate3d(2.5%, 2%, 0) rotate(2deg); }
}
.viewer__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(201, 154, 72, .14), transparent 70%),
    radial-gradient(ellipse at 50% 50%, rgba(8, 8, 7, .15) 30%, rgba(8, 8, 7, .9) 100%),
    linear-gradient(to bottom, rgba(8, 8, 7, .35), transparent 30%, transparent 70%, rgba(8, 8, 7, .55));
}
/* grano de película */
.viewer__bg::after {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 2;
  opacity: .09;
  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%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(5) infinite;
  pointer-events: none;
}
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-4%, 3%, 0); }
  40% { transform: translate3d(3%, -5%, 0); }
  60% { transform: translate3d(-2%, 4%, 0); }
  80% { transform: translate3d(5%, 1%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
/* destello champán que cruza el fondo de vez en cuando */
.viewer__sweep {
  position: absolute;
  inset: -40% -60%;
  z-index: 1;
  background: linear-gradient(105deg, transparent 42%, rgba(241, 214, 160, .07) 48%, rgba(241, 214, 160, .12) 50%, rgba(241, 214, 160, .07) 52%, transparent 58%);
  transform: translateX(-60%);
  animation: sweep 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep {
  0%, 15% { transform: translateX(-60%); }
  65%, 100% { transform: translateX(60%); }
}

.viewer__frame {
  position: relative;
  z-index: 1;                  /* la foto y los botones siempre por encima del fondo */
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: scale(.96);
  transition: transform .8s ease;
}
.viewer.is-open .viewer__frame { transform: none; }

.viewer__stage {
  --mw: min(52vw, 760px);
  --mh: 70vh;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--mw);
  height: var(--mh);
  cursor: zoom-in;
  touch-action: none;
}
.viewer__stage.is-zoomed { cursor: zoom-out; }
/* marco con la proporción exacta de la foto y bordes difuminados */
.viewer__fit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
  mask-composite: intersect;
  animation: mediaIn .5s ease both;
  transition: opacity .45s ease;
}
.viewer__fit.is-out { opacity: 0; }
.viewer__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .45s ease;
}
/* vídeos: un toque pausa / sigue */
.viewer__fit:has(video) { cursor: pointer; }
.viewer__pp {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 214, 160, .55);
  border-radius: 50%;
  background: rgba(8, 8, 7, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--color-champagne);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.viewer__pp svg { width: 28px; height: 28px; grid-area: 1 / 1; }
.viewer__pp .pp-play { margin-left: 4px; }
.viewer__pp .pp-pause, .viewer__fit.is-paused .viewer__pp .pp-play { display: block; }
.viewer__pp .pp-play, .viewer__fit.is-paused .viewer__pp .pp-pause { display: none; }
/* en pausa el botón de play se queda visible */
.viewer__fit.is-paused .viewer__pp { opacity: 1; transform: none; }
/* al reanudar aparece un momento el icono de pausa y se desvanece */
.viewer__pp.is-flash { animation: ppFlash .7s ease; }
.viewer__fit.is-paused .viewer__pp.is-flash { animation: none; }
@keyframes ppFlash {
  0% { opacity: 0; transform: scale(.85); }
  25% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(1.15); }
}
@keyframes mediaIn { from { opacity: 0; } }

.viewer__progress {
  width: min(var(--mw, 52vw), 760px);
  height: 1px;
  background: rgba(255, 255, 255, .18);
  overflow: hidden;
}
.viewer__progress span {
  display: block;
  height: 100%;
  background: var(--color-gold);
  transform-origin: left;
  transform: scaleX(0);
}
.viewer__bar { display: flex; align-items: center; gap: 10px; }
.viewer__count { font-size: var(--text-body-sm); letter-spacing: .06em; }
.viewer__state {
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-full);
  font-size: var(--text-caption);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.viewer__state:hover { background: var(--surface-frost); }

body.is-detail .card-title { opacity: 0 !important; }

/* ---------- Diapositivas: artistas y final ---------- */
.slides {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 120px var(--edge) 110px;
  visibility: hidden;
  opacity: 0;
  will-change: transform, opacity;
}
.slide.is-active a, .slide.is-active button { pointer-events: auto; }

.artist {
  grid-template-columns: auto minmax(0, 420px);
  justify-content: center;
  align-content: center;
  column-gap: clamp(32px, 6vw, 96px);
}
.artist__media { display: grid; justify-items: center; gap: 14px; }
/* cartel sin marco: los bordes se funden con el fondo */
.artist__poster {
  display: block;
  overflow: hidden;
  cursor: pointer;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-composite: intersect;
  transition: transform .5s ease, filter .3s ease;
}
.artist__poster:hover { filter: brightness(1.08); }
.artist__poster img { display: block; height: min(62vh, 640px); width: auto; }
.artist__book {
  padding: 10px 26px;
  font-size: var(--text-body);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none !important;
  transition: opacity .4s ease, transform .4s ease;
}
.artist.is-booking .artist__book { opacity: 1; transform: none; pointer-events: auto !important; }
.artist__hint {
  margin-top: -50px;
  font-size: var(--text-caption);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-gold);
  transition: opacity .3s ease;
}
.artist.is-booking .artist__hint { opacity: 0; }

.artist__body { display: grid; gap: 14px; justify-items: start; }
.artist__num { font-size: var(--text-caption); letter-spacing: .14em; text-transform: uppercase; color: var(--color-pale-mist); }
.artist__name {
  margin: 0;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  text-transform: uppercase;
}
.artist__desc { font-size: var(--text-body-sm); text-transform: uppercase; line-height: 1.6; color: var(--color-ghost-white); max-width: 40ch; }
.artist__label { font-size: var(--text-caption); letter-spacing: .12em; text-transform: uppercase; color: var(--color-fog); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 3px 12px;
  border: 1px solid rgba(201, 154, 72, .5);
  border-radius: var(--radius-full);
  font-size: var(--text-caption);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Botón píldora violeta */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-full);
  background: var(--color-dusk-violet);
  color: var(--color-void-black);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(201, 154, 72, .45);
  transition: background .3s ease;
}
.pill:hover { background: var(--color-champagne); }

/* ---------- Final: logo líquido (liquid.js) ---------- */
.end.liq {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 104px clamp(20px, 3.2vw, 48px) 18px;
  overflow: hidden;
}
.liq-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.liq-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
.liq-fallback { position: absolute; display: block; max-width: none; user-select: none; -webkit-user-drag: none; transition: opacity .5s ease; }
.liq[data-gl="on"] .liq-canvas { opacity: 1; }
.liq[data-gl="on"] .liq-fallback { opacity: 0; }
.liq-hint {
  position: absolute;
  z-index: 1;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: var(--text-caption);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: .6;
  pointer-events: none;
  transition: opacity .8s ease;
}
.liq-hint::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: liqPulse 2.4s ease-in-out infinite;
}
.liq[data-touched="1"] .liq-hint { opacity: 0; }
@keyframes liqPulse { 0%, 100% { transform: scale(.6); opacity: .45; } 50% { transform: scale(1); opacity: 1; } }

.liq-band { flex: 1 1 auto; min-height: 120px; }
.liq-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 4vw, 72px);
}
.liq-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: var(--text-caption);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-pale-mist);
}
.liq-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--color-gold); opacity: .8; }
.liq-h1 {
  margin: 0;
  font-family: var(--font-nbarchitekt);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 76px);
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.liq-h1 > span { display: block; }
/* acento en la serif editorial (Times), como pide el sistema de diseño */
.liq-accent {
  font-family: var(--font-times);
  font-style: italic;
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--color-gold);
}
.liq-aside { justify-self: end; max-width: 400px; padding-bottom: .4em; }
.liq-body {
  margin: 0 0 22px;
  font-family: var(--font-times);
  font-size: 17px;
  line-height: 1.6;
  color: #ddd8ce;
}
.liq-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.liq-ctas svg { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.liq-ctas a:hover svg { transform: translateX(3px); }
.liq-txt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(201, 154, 72, .4);
  font-size: var(--text-body-sm);
  text-transform: uppercase;
  color: var(--color-ghost-white);
}
.liq-txt:hover { color: var(--color-gold); }
/* las dos cuentas de Instagram, cada una con su nombre */
.liq-ig { display: grid; gap: 6px; margin-top: 22px; justify-items: start; }
.liq-ig__label {
  margin: 0 0 2px;
  font-size: var(--text-caption);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-fog);
}
.liq-ig .liq-txt { text-transform: none; letter-spacing: .02em; }
.liq-ig__who {
  min-width: 58px;
  font-size: var(--text-caption);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.liq-foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--text-caption);
  text-transform: uppercase;
  color: var(--color-fog);
}
.liq-nav, .liq-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.liq-nav a { color: var(--color-pale-mist); }
.liq-legal a { text-decoration: underline; text-underline-offset: 3px; }
.liq-nav a:hover, .liq-legal a:hover { color: var(--color-gold); }
.liq-legal .liq-credit { text-decoration: none; opacity: .5; text-transform: none; }

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  :root { --edge: 16px; }
  .hud-top { gap: 10px; }
  .hud-top__row { gap: 10px; }
  .brand { top: calc(max(var(--edge), env(safe-area-inset-top)) - 5px); }
  .brand img { width: 70px; }
  .capsule { padding: 7px 12px; }
  .finder { left: calc(var(--edge) + 18px); gap: 14px; max-width: calc(100vw - 2 * var(--edge) - 18px); }
  .finder__q, .finder__link { font-size: var(--text-body-sm); }
  .finder__list, .finder__info { gap: 8px; }
  .info__desc { max-width: 40ch; }

  .viewer { place-items: start center; padding-top: 96px; }
  .viewer__stage { --mw: calc(100vw - 32px); --mh: min(40vh, calc(100vh - 430px)); }
  body.is-detail .info__desc { display: none; }
  .finder__info { gap: 7px; }
  .viewer__progress { width: calc(100vw - 32px); }

  /* en artistas y final cada uno tiene su propio botón de reserva */
  body.in-work:not(.in-spiral) .finder { opacity: 0; pointer-events: none; }
  .slide { padding: 100px 16px 24px; }
  .artist { grid-template-columns: 1fr; row-gap: 14px; align-content: start; }
  .artist__poster img { height: min(40vh, 380px); }
  .artist__media { gap: 10px; }
  .artist__hint { margin-top: -42px; }
  .artist__body { justify-items: center; text-align: center; gap: 8px; }
  .artist__name { font-size: 30px; }
  .artist__desc { font-size: 11px; }
  .tags { justify-content: center; }
  .end.liq { padding: 92px 16px 14px; }
  .liq-band { min-height: 90px; }
  .liq-content { grid-template-columns: 1fr; gap: 16px; }
  .liq-eyebrow { margin-bottom: 10px; }
  .liq-h1 { font-size: clamp(24px, 7.6vw, 40px); }
  .liq-aside { justify-self: start; max-width: none; padding-bottom: 0; }
  .liq-body { font-size: 15px; margin-bottom: 16px; }
  .liq-ctas { gap: 16px; }
  .liq-foot { margin-top: 16px; padding-top: 10px; gap: 6px 14px; font-size: 9px; }
  .liq-nav, .liq-legal { gap: 6px 14px; }
}
@media (max-height: 640px) and (max-width: 760px) {
  .viewer__stage { --mh: 34vh; }
  .artist__poster img { height: 32vh; }
  .artist__desc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .switcher__track, .viewer__amb, .viewer__bg::after, .viewer__sweep, .loader__arc { animation: none; }
}

.noscript { padding: 28px; font-family: var(--font-times); }

/* ---------- Sin WebGL ---------- */
body.no-webgl, html:has(body.no-webgl) { overflow: auto; height: auto; touch-action: auto; }
body.no-webgl .scene, body.no-webgl .switcher, body.no-webgl .card-title { display: none; }
body.no-webgl .slides { position: static; }
body.no-webgl .slide { position: relative; }
.fallback { display: grid; gap: 16px; padding: 96px 16px 40px; }
.fallback__logo { width: 220px; margin: 0 auto 24px; }
.fallback h2 { margin: 24px 0 0; font-size: var(--text-body); font-weight: 700; text-transform: uppercase; }
.fallback__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.fallback__grid img, .fallback__grid video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--color-ash-border); border-radius: var(--radius-xl); }

/* ---------- Botón metálico (metallic.js) ---------- */
.metal {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--metal-h, 44px);
  padding: 0 22px;
  border: 0 !important;
  border-radius: 999px;
  background: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: var(--color-ghost-white) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  transition: transform .8s cubic-bezier(.34, 1.56, .64, 1);
}
.metal::after { content: none !important; }
.metal.is-pressed { transform: translateY(1px) scale(.98); }
/* aro: metal líquido en WebGL sólo en el borde; el centro es transparente y deja ver la escena */
.metal__rim {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: var(--metal-border, 2px);
  border-radius: inherit;
  overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  /* aro dorado en CSS: se ve si el móvil no tiene WebGL2 o lo pinta oscuro */
  background: linear-gradient(115deg, #8B672F 0%, #F1D6A0 12%, #C99A48 22%, #5c431c 34%, #F1D6A0 46%, #fff3d6 50%, #C99A48 58%, #5c431c 70%, #F1D6A0 82%, #8B672F 100%);
  background-size: 250% 100%;
  animation: metalShimmer 4.5s linear infinite;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 36px 14px 0 rgba(0, 0, 0, .02), 0 20px 12px 0 rgba(0, 0, 0, .08), 0 9px 9px 0 rgba(0, 0, 0, .12), 0 2px 5px 0 rgba(0, 0, 0, .15);
  transition: box-shadow .15s cubic-bezier(.4, 0, .2, 1);
}
@keyframes metalShimmer { from { background-position: 0% 50%; } to { background-position: 250% 50%; } }
.metal__surface { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.metal__surface canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 999px; }
/* sin cara negra: el botón entero es la superficie metálica */
.metal__face { display: none; }
.metal__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  pointer-events: none;
}
.metal__fx { position: absolute; inset: 0; z-index: 3; border-radius: inherit; overflow: hidden; pointer-events: none; }
.metal:hover .metal__rim {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 12px 6px 0 rgba(0, 0, 0, .05), 0 8px 5px 0 rgba(0, 0, 0, .1), 0 4px 4px 0 rgba(0, 0, 0, .15), 0 1px 2px 0 rgba(0, 0, 0, .2);
}
.metal.is-pressed .metal__rim { box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 1px 2px 0 rgba(0, 0, 0, .3); }
.metal.is-pressed .metal__face { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4), inset 0 1px 2px rgba(0, 0, 0, .3); }
.metal__ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, 0) 70%);
  animation: metalRipple .6s ease-out forwards;
}
@keyframes metalRipple {
  0% { transform: translate(-50%, -50%) scale(0); opacity: .6; }
  100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}
/* tamaños de cada botón */
.capsule.metal { --metal-h: 40px; padding: 0 18px; }
.end__cta.metal { --metal-h: 50px; padding: 0 36px; font-size: var(--text-body); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 760px) {
  .capsule.metal { --metal-h: 36px; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .metal, .metal__rim, .metal__face { transition: none; }
  .metal__rim { animation: none; }
  .metal__ripple { display: none; }
}

/* ---------- Por qué elegirnos ---------- */
.why {
  grid-template-columns: minmax(0, 400px) minmax(0, 620px);
  justify-content: center;
  align-items: center;
  column-gap: clamp(32px, 5vw, 84px);
  padding: 104px clamp(24px, 4vw, 64px) 40px;
}
/* panel de foto: franja lateral con estrella y texto vertical, como la referencia */
.why__photo {
  position: relative;
  justify-self: stretch;
  width: 100%;
  height: min(74vh, 660px);
  margin: 0;
  padding-left: 46px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-xl);
  background: rgba(23, 21, 18, .75);
}
.why__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}
.why__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 46px;
  height: 34%;
  background: linear-gradient(0deg, rgba(23, 21, 18, .88), transparent);
  border-radius: 0 0 var(--radius-xl) 0;
  pointer-events: none;
}
.why__star { position: absolute; top: 18px; left: 13px; width: 20px; height: 20px; color: var(--color-gold); }
.why__vertical {
  position: absolute;
  top: 64px;
  left: 14px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: var(--text-caption);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-pale-mist);
}
.why__caption {
  position: absolute;
  left: 66px;
  bottom: 18px;
  z-index: 1;
  font-size: var(--text-caption);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-ghost-white);
}
.why__caption i { font-style: normal; color: var(--color-gold); margin: 0 .4em; }

.why__body { display: grid; justify-items: start; justify-self: stretch; }
.why__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: var(--text-caption);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-pale-mist);
}
.why__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--color-gold); }
.why__title {
  margin: 0;
  font-family: var(--font-times);
  font-weight: 400;
  font-size: clamp(28px, 2.9vw, 44px);
  line-height: 1.06;
  letter-spacing: -.01em;
  text-transform: none;
}
.why__title em { font-style: italic; color: var(--color-gold); }
.why__lead {
  margin: 12px 0 20px;
  max-width: 62ch;
  font-family: var(--font-times);
  font-size: 15px;
  line-height: 1.6;
  color: #ddd8ce;
}
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 30px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.why__item { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; align-items: start; }
.why__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(201, 154, 72, .45);
  border-radius: 50%;
  color: var(--color-gold);
}
.why__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.why__item h3 {
  margin: 2px 0 3px;
  font-family: var(--font-times);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.2;
  text-transform: none;
  color: var(--color-ghost-white);
}
.why__item p {
  margin: 0;
  font-family: var(--font-times);
  font-size: 13.5px;
  line-height: 1.42;
  color: #b8b1a5;
}
.why__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.why__cta.metal { --metal-h: 48px; padding: 0 30px; font-size: var(--text-body-sm); letter-spacing: .08em; text-transform: uppercase; }
.why__cta svg { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.why__cta:hover svg { transform: translateX(3px); }
.why__note { margin: 0; font-size: var(--text-caption); letter-spacing: .1em; text-transform: uppercase; color: var(--color-fog); }

@media (max-width: 1100px) and (min-width: 761px) {
  .why { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .why__item p { font-size: 13px; }
}
@media (max-width: 760px) {
  .why { grid-template-columns: 1fr; align-content: start; row-gap: 14px; padding: 92px 16px 16px; }
  .why__photo { height: 18vh; min-height: 110px; padding-left: 34px; }
  .why__photo img { object-position: 50% 24%; }
  .why__photo::after { left: 34px; }
  .why__star { top: 10px; left: 8px; width: 16px; height: 16px; }
  .why__vertical { display: none; }
  .why__caption { left: 48px; bottom: 10px; font-size: 9px; letter-spacing: .16em; }
  .why__eyebrow { margin-bottom: 8px; font-size: 9px; }
  .why__title { font-size: clamp(22px, 6.6vw, 30px); }
  .why__lead { margin: 8px 0 14px; font-size: 13.5px; line-height: 1.5; }
  .why__grid { gap: 12px 14px; }
  /* icono a la izquierda del título para ahorrar altura */
  .why__item { display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; align-items: center; }
  .why__icon { grid-row: auto; width: 24px; height: 24px; }
  .why__icon svg { width: 13px; height: 13px; }
  .why__item h3 { margin: 0; font-size: 13.5px; }
  .why__item p { grid-column: 1 / -1; margin-top: 4px; font-size: 11.5px; line-height: 1.4; }
  .why__ctas { margin-top: 14px; }
  .why__cta.metal { --metal-h: 42px; padding: 0 22px; }
}
@media (max-width: 760px) and (max-height: 860px) {
  .why__lead { display: none; }
  .why__note { display: none; }
}
@media (max-width: 760px) and (max-height: 640px) {
  .why__photo { display: none; }
}

/* ---------- Tipografía: interfaz y títulos ---------- */
body { font-weight: 600; }
/* los textos en Times mantienen su peso normal */
.why__lead, .why__item h3, .why__item p, .liq-body { font-weight: 400; }
.card-title__name,
.artist__name,
.liq-h1, .liq-h1 .liq-accent,
.why__title, .why__title em {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.card-title__name { font-size: clamp(22px, 3vw, 38px); line-height: .95; }
.artist__name { font-size: clamp(30px, 4.4vw, 58px); line-height: .92; }
.liq-h1 { font-size: clamp(26px, 3.4vw, 56px); line-height: .95; }
.liq-accent { color: var(--color-gold); }
.why__title { font-size: clamp(20px, 2.1vw, 32px); line-height: 1; }
.why__title em { color: var(--color-gold); }
@media (max-width: 760px) {
  .card-title__name { font-size: 22px; }
  .artist__name { font-size: 28px; }
  .liq-h1 { font-size: clamp(20px, 6.2vw, 30px); }
  .why__title { font-size: clamp(17px, 5vw, 22px); }
}
/* ---------- Sin números sobre las secciones ---------- */
.card-title__sec { display: none; }

/* ---------- Botón de menú (tres rayas), mismo estilo metálico ---------- */
.burger.metal { --metal-h: 40px; width: 40px; padding: 0; cursor: pointer; }
.burger__lines { position: relative; display: block; width: 16px; height: 12px; }
.burger__lines i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  border-radius: 2px;
  background: var(--color-ghost-white);
  transition: transform .35s ease, opacity .25s ease, top .35s ease;
}
.burger__lines i:nth-child(1) { top: 0; }
.burger__lines i:nth-child(2) { top: 5.2px; }
.burger__lines i:nth-child(3) { top: 10.4px; }
/* abierto → X */
.burger[aria-expanded="true"] .burger__lines i:nth-child(1) { top: 5.2px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lines i:nth-child(3) { top: 5.2px; transform: rotate(-45deg); }

/* ---------- Panel del menú ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 40px;
  padding: 110px var(--edge) 60px;
  background: rgba(23, 21, 18, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .45s ease;
}
.menu.is-open { opacity: 1; }
.menu__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; text-align: center; }
.menu__list a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-size: clamp(30px, 6vw, 72px);
  line-height: 1.05;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--color-ghost-white);
  transform: translateY(12px);
  opacity: 0;
  transition: color .3s ease, transform .6s ease, opacity .6s ease;
}
.menu.is-open .menu__list a { transform: none; opacity: 1; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .06s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .12s; }
.menu__list a:hover { color: var(--color-gold); }
.menu__arrow { font-size: .45em; color: var(--color-gold); font-style: normal; transition: transform .3s ease; }
.menu__list a:hover .menu__arrow { transform: translateX(6px); }
.menu__social { display: flex; gap: 18px; }
.menu__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(201, 154, 72, .6);
  border-radius: 50%;
  color: var(--color-gold);
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.menu__icon svg { width: 24px; height: 24px; }
.menu__icon:hover { background: var(--color-gold); color: var(--color-void-black); transform: translateY(-2px); }
.menu__ig { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: -22px; }
.ig-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 236px;
  padding: 10px 20px 10px 14px;
  border: 1px solid rgba(201, 154, 72, .45);
  border-radius: 999px;
  color: var(--color-ghost-white);
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}
.ig-card svg { flex: none; width: 22px; height: 22px; color: var(--color-gold); }
.ig-card span { display: grid; line-height: 1.2; font-size: 14px; letter-spacing: .02em; }
.ig-card small {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.ig-card:hover { border-color: var(--color-gold); background: rgba(201, 154, 72, .1); transform: translateY(-2px); }
body.menu-open .switcher, body.menu-open .card-title { opacity: 0 !important; pointer-events: none; }

/* ---------- Visor más grande en móvil ---------- */
@media (max-width: 760px) {
  .burger.metal { --metal-h: 36px; width: 36px; }
  .viewer { padding-top: 84px; }
  .viewer__stage { --mw: calc(100vw - 24px); --mh: calc(100svh - 300px); }
  .viewer__progress { width: calc(100vw - 24px); }
  body.is-detail .info__meta, body.is-detail .info__links a + a { display: none; }
  .menu__list a { font-size: clamp(24px, 7.4vw, 44px); gap: 10px; }
}
