/* Aurel · capa de efectos (ver js/efectos.js). Todo se apaga con «reducir movimiento». */

/* ── 1. Títulos palabra por palabra ───────────────────────────────── */
.partido .pal { display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0 .06em .14em; margin: 0 -.06em -.14em; }
.partido .pal > span { display: inline-block; transform: translateY(108%);
  transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + 120ms); }
.momento.activo .partido .pal > span,
.revelar.visto .partido .pal > span { transform: none; }
.momento:not(.activo) .partido .pal > span { transition-delay: 0s; transition-duration: .5s; }

/* ── 2. Cursor de cobre ───────────────────────────────────────────── */
.cursor-propio, .cursor-propio * { cursor: none !important; }
.cursor-punto, .cursor-aro, .cursor-estela { position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none;
  opacity: 0; transition: opacity .3s; will-change: transform; }
.cursor-visible .cursor-punto, .cursor-visible .cursor-aro { opacity: 1; }
.cursor-visible .cursor-estela { opacity: calc(.5 - var(--k) * .07); }
.cursor-punto { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--acento-claro); }
.cursor-estela { width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--acento); }
.cursor-aro { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.cursor-aro::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgb(226 165 120 / .55);
  transition: transform .45s var(--ease), background-color .45s var(--ease), border-color .45s; }
.cursor-sobre .cursor-aro::before { transform: scale(1.75); background-color: rgb(192 119 74 / .14); border-color: rgb(226 165 120 / .9); }
.cursor-sobre .cursor-punto { opacity: 0; }
.magnetico { display: inline-flex; transition: transform .45s var(--ease), background .3s var(--ease); will-change: transform; }

/* ── 3. Despiece: etiquetas con líneas que se dibujan hacia la pieza ── */
.etiquetas { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.etiqueta { position: absolute; left: 13%; width: 21%; top: var(--y); translate: 0 -100%;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--texto-suave); padding-bottom: 7px; }
/* --y = centro de cada pieza en despiece.webp; si cambia la imagen, se mide otra vez */
.etiqueta--1 { --n: 1; --y: 14.5%; } .etiqueta--2 { --n: 2; --y: 37.5%; } .etiqueta--3 { --n: 3; --y: 57.5%; } .etiqueta--4 { --n: 4; --y: 79%; }
.etiqueta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--acento);
  transform: scaleX(0); transform-origin: right; transition: transform 1.1s var(--ease); transition-delay: calc(var(--n) * 140ms); }
.etiqueta::before { content: ""; position: absolute; right: -3px; bottom: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--acento-claro); opacity: 0; transition: opacity .4s; transition-delay: calc(var(--n) * 140ms); }
.etiqueta span { display: inline-block; opacity: 0; transform: translateX(8px);
  transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--n) * 140ms + 600ms); }
.despiece-arte.visto .etiqueta::after { transform: none; }
.despiece-arte.visto .etiqueta::before { opacity: 1; }
.despiece-arte.visto .etiqueta span { opacity: 1; transform: none; }
.pieza { transform-origin: 50% var(--y); }
.pieza--1 { --n: 1; --y: 14.5%; } .pieza--2 { --n: 2; --y: 37.5%; } .pieza--3 { --n: 3; --y: 57.5%; } .pieza--4 { --n: 4; --y: 79%; }

/* ── 4. Acabados: el color nuevo entra con una máscara circular ───── */
/* La mezcla con el fondo se hace en el contenedor: así las capas se tapan entre sí en lugar de sumarse. */
.acabados.con-mascara .acabados-arte { mix-blend-mode: var(--mezcla); }
.acabados.con-mascara .arte-acabado { mix-blend-mode: normal; opacity: 1; transform: none; clip-path: circle(0% at 70% 50%);
  transition: clip-path 1.15s cubic-bezier(.65, 0, .2, 1); }

/* ── 5. En uso: tres momentos de lado a lado ──────────────────────── */
.en-uso { position: relative; }
.uso-pin { padding: 14vh 0; overflow-x: auto; scroll-snap-type: x mandatory; }
.uso-pista { display: flex; align-items: center; gap: clamp(28px, 5vw, 96px); padding: 0 var(--margen); width: max-content; }
.en-uso.anclado .uso-pin { height: 100vh; height: 100svh; padding: 0; overflow: hidden; display: flex; align-items: center; }
.en-uso.anclado .uso-pista { will-change: transform; }
.uso-intro { flex: none; width: min(520px, 84vw); scroll-snap-align: start; }
.uso-escena { flex: none; margin: 0; width: min(64vw, 900px); scroll-snap-align: center; }
.uso-arte { position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); }
.uso-arte img { width: 112%; max-width: none; height: 100%; margin-left: -6%; object-fit: cover; mix-blend-mode: var(--mezcla); }
.uso-escena figcaption { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; max-width: 520px; margin: 6px 0 0 8%;
  padding-top: 14px; border-top: 1px solid var(--linea); color: var(--texto-suave); }
.uso-escena figcaption strong { font-family: var(--titulo); font-weight: 300; font-size: clamp(22px, 1.9vw, 30px); color: var(--texto); line-height: 1.1; }
.uso-n { grid-row: span 2; font-family: var(--titulo); font-style: italic; color: var(--acento); font-size: 18px; min-width: 1.4em; }
.vapor { position: absolute; left: var(--vapor-x, 20.6%); top: var(--vapor-y, 17%); width: 14%; height: auto; overflow: visible;
  filter: blur(5px); opacity: .7; mix-blend-mode: screen; }
.vapor path { fill: none; stroke: rgb(239 230 218 / .45); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 70 300; stroke-dashoffset: 370; animation: vapor 6.5s linear infinite; }
.vapor path:nth-child(2) { animation-delay: -2.2s; animation-duration: 7.4s; }
.vapor path:nth-child(3) { animation-delay: -4.4s; animation-duration: 8.2s; }
@keyframes vapor { 0% { stroke-dashoffset: 370; opacity: 0; } 18% { opacity: 1; } 75% { opacity: .8; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (max-width: 760px) {
  .uso-escena { width: 84vw; }
  .uso-escena figcaption { margin-left: 0; }
  .uso-arte { aspect-ratio: 4 / 5; }
  .uso-arte img { object-position: 30% 50%; }
  .vapor { --vapor-y: 37%; }
}

/* ── 6. Cierre: el precio se revela línea por línea y la cinta corre ── */
.js .cierre .revelar > * { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .cierre .revelar > :nth-child(1) { transition-delay: .1s; }
.js .cierre .revelar > :nth-child(3) { transition-delay: .55s; }
.js .cierre .revelar > :nth-child(4) { transition-delay: .8s; }
.js .cierre .revelar > :nth-child(5) { transition-delay: 1s; }
.js .cierre .revelar > :nth-child(6) { transition-delay: 1.1s; }
.js .cierre .revelar > h2 { opacity: 1; transform: none; }
.js .cierre .revelar.visto > * { opacity: 1; transform: none; }
.precio .cifra { display: inline-block; overflow: hidden; padding-bottom: .08em; }
.precio .cifra > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease) .6s; }
.cierre .revelar.visto .precio .cifra > span { transform: none; }
.cinta { overflow: hidden; border-block: 1px solid var(--linea); padding: clamp(14px, 2vw, 26px) 0; }
.cinta-pista { display: flex; width: max-content; animation: cinta 46s linear infinite; }
.cinta span { flex: none; padding-right: .3em; white-space: nowrap; font-family: var(--titulo); font-weight: 300; font-style: italic;
  font-size: clamp(40px, 7vw, 116px); line-height: 1.05; color: rgb(239 230 218 / .18); }
.cinta i { font-style: normal; color: var(--acento); opacity: .7; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ── 7. Las fotos respiran: un acercamiento lento y continuo ──────────
   Usa la propiedad «scale», aparte de «transform», para sumarse al parallax de GSAP sin pisarlo. */
@keyframes respirar { from { scale: 1; } to { scale: 1.08; } }
.arte-acabado, .uso-arte img, .cierre .arte { animation: respirar 11s ease-in-out infinite alternate; }
.uso-escena:nth-child(odd) .uso-arte img { animation-delay: -5s; }
.uso-arte { will-change: transform; }
.uso-escena figcaption { will-change: transform; }

/* ── Reducir movimiento: todo quieto y legible ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .etiqueta::after, .etiqueta span, .etiqueta::before { transform: none; opacity: 1; transition: none; }
  .vapor path { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; opacity: .5; }
  .cinta-pista { animation: none; }
  .arte-acabado, .uso-arte img, .cierre .arte { animation: none; }
  .js .cierre .revelar > *, .precio .cifra > span { opacity: 1; transform: none; transition: none; }
}
