/* =====================================================================
   EFECTOS "PRO" — separado de style.css para poder sacarlo fácil.
   1. Scroll suave (Lenis)   2. Fechas que reaccionan
   3. Nubes-sticker de la gira: se arrastran y cada una toca una canción
   ===================================================================== */

/* ---------- 1. Lenis (scroll suave) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- 2. Fechas que reaccionan ---------- */
/* Aparecen una por una al scrollear (solo si hay JS) */
html.fx .date-row {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--delay, 0s);
}
html.fx .date-row.ve { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .date-row {
    position: relative; isolation: isolate;
    padding-left: 1rem; padding-right: 1rem;
    cursor: default;
  }
  /* franja mostaza que entra desde la izquierda */
  .date-row::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--mustard);
    transform: scaleX(0); transform-origin: left;
    transition: transform .45s cubic-bezier(.7, 0, .2, 1);
  }
  .date-row:hover::before { transform: scaleX(1); }
  .date-row h3, .date-row .date-when, .date-row .date-where {
    transition: color .3s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
  }
  .date-row:hover h3, .date-row:hover .date-when, .date-row:hover .date-where { color: var(--navy); }
  .date-row:hover h3 { transform: translateX(1.3em); }
  /* flechita que asoma antes del nombre */
  .date-row h3::before {
    content: "→"; position: absolute; margin-left: -1.3em;
    opacity: 0; transform: translateX(-.6em);
    transition: opacity .3s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
  }
  .date-row:hover h3::before { opacity: 1; transform: none; }

  /* botón magnético: sigue un poco al mouse (lo mueve el JS con --mx/--my) */
  .date-row .btn {
    transform: translate(var(--mx, 0px), var(--my, 0px));
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s, border-color .2s;
  }
  .date-row .btn.pegado { transition: transform .12s linear, background .2s, color .2s, border-color .2s; }
  .date-row .btn:hover { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(1.06); }
  .date-row:hover .btn-outline { border-color: var(--navy); color: var(--navy); }
  .date-row:hover .btn-outline:hover { background: var(--navy); color: var(--cream-yellow); }
  .date-row:hover .btn-soldout { border-color: rgba(14, 28, 63, .35); color: rgba(14, 28, 63, .55); }
  .date-row:hover .btn-pronto { border-color: var(--navy); color: var(--navy); }
}

/* ---------- 3. Stickers arrastrables que hablan ---------- */
.stickers { position: absolute; left: 0; top: 0; right: 0; z-index: 2; pointer-events: none; }
.sticker {
  position: absolute; left: 0; top: 0;
  pointer-events: auto; cursor: grab; touch-action: none;
  will-change: transform;
}
.sticker-cuerpo {
  display: block;
  transition: transform .25s cubic-bezier(.3, 1.8, .5, 1), filter .25s;
  /* borde blanco recortado + sombra, como un sticker de verdad */
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff)
    drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(0 5px 6px rgba(0, 0, 0, .25));
}
.sticker:hover .sticker-cuerpo { transform: scale(1.07) rotate(-4deg); }
.sticker.agarrado { cursor: grabbing; }
.sticker.agarrado .sticker-cuerpo {
  transform: scale(1.14);
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff)
    drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(0 22px 18px rgba(0, 0, 0, .3));
}
.sticker.aplasta .sticker-cuerpo { animation: aplasta .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes aplasta {
  30% { transform: scale(1.22, .8); }
  60% { transform: scale(.92, 1.1); }
  100% { transform: scale(1); }
}
.sticker img { width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }

/* globito de diálogo cuando apretás un sticker */
.globo {
  position: absolute; left: 0; top: 0; z-index: 50;
  pointer-events: none; white-space: nowrap;
  font-family: "Gauchito Font Family", sans-serif; font-weight: 900;
  font-size: clamp(1rem, 1.8vw, 1.5rem); line-height: 1.1;
  background: #fff; color: var(--navy);
  padding: .55em .9em .5em; border-radius: 1.2em;
  border: 3px solid var(--navy);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .18);
  transform-origin: 50% 100%;
  animation: globo-entra .4s cubic-bezier(.3, 1.8, .5, 1) both;
}
.globo::after { /* colita del globo */
  content: ""; position: absolute; left: 50%; bottom: -12px; margin-left: -9px;
  border: 9px solid transparent; border-top: 12px solid var(--navy); border-bottom: 0;
}
.globo.chau { animation: globo-sale .25s ease-in forwards; }
@keyframes globo-entra { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
@keyframes globo-sale { to { opacity: 0; scale: .6; } }


/* globo de historieta (el caracol "habla" letra por letra) */
.globo-tira {
  background: #fff; color: #111; border-color: #111;
  border-radius: 50% / 45%; padding: .9em 1.4em .8em;
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
  transform-origin: 20% 100%;
}
.globo-tira::after { /* colita torcida, tipo tira cómica */
  left: 26%; bottom: -16px; border-width: 0 0 0 0;
  border: none; width: 22px; height: 20px; margin-left: 0;
  background: #fff; border-left: 3px solid #111; border-bottom: 3px solid #111;
  transform: skewX(-35deg) rotate(-8deg);
  border-radius: 0 0 0 4px;
}
.globo .falta { visibility: hidden; }
/* globo a la izquierda: la colita apunta abajo a la derecha, hacia el que habla */
.globo-izq { transform-origin: 90% 100%; }
.globo-izq.globo-tira::after { left: auto; right: 14%; transform: skewX(35deg) rotate(8deg); border-left: none; border-right: 3px solid #111; border-radius: 0 0 4px 0; }

/* la nube llueve mientras suena la canción */
.sticker.llueve::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: 62%; height: 110px; z-index: -1;
  background: repeating-linear-gradient(100deg, transparent 0 14px, rgba(164, 187, 254, .9) 14px 16px, transparent 16px 30px);
  background-size: 100% 36px;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
  animation: lluvia .35s linear infinite;
  pointer-events: none;
}
.sticker.llueve .sticker-cuerpo img { animation: nube-late 1s ease-in-out infinite; }
@keyframes lluvia { to { background-position: 0 36px; } }
@keyframes nube-late { 50% { transform: scale(1.04); } }

/* el sol que asoma detrás de la nube */
.sol {
  position: absolute; left: -30%; top: -8%; width: 100%; z-index: -1;
  pointer-events: none;
  transform: translate(0, 45%) scale(.4); opacity: 0;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .4s ease;
}
.sticker.con-sol .sol { transform: translate(-4%, -52%) scale(1); opacity: 1; }
.sol svg { display: block; width: 100%; height: auto; overflow: visible; }
.sol-rayos path { fill: #ffd23f; stroke: #111; stroke-width: 3; stroke-linejoin: round; }
.sol-cara-fondo { fill: #ffcc1f; stroke: #111; stroke-width: 4; }
.sol-panuelo { fill: #d62828; stroke: #111; stroke-width: 3; stroke-linejoin: round; }
.sol-lunar { fill: #fff; }
.sol-lente { fill: #111; stroke: #111; stroke-width: 2; stroke-linejoin: round; }
.sol-trazo { fill: none; stroke: #111; stroke-width: 3; stroke-linecap: round; }
.sol-brillo { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; opacity: .8; }
.sol-labios { fill: #e11d2e; stroke: #111; stroke-width: 3; stroke-linejoin: round; }
.sol-lengua { fill: #ff5d7a; stroke: #111; stroke-width: 3; stroke-linejoin: round; }
.sol-lengua + .sol-trazo { stroke-width: 2; }
/* trasher: los rayos giran a los saltos y la cara tiembla, como animación hecha a mano */
.sticker.con-sol .sol-rayos { animation: sol-gira 4s steps(16) infinite; }
.sticker.con-sol .sol svg { animation: sol-tiembla .4s steps(2) infinite; }
@keyframes sol-tiembla { 0% { transform: rotate(-3deg); } 100% { transform: rotate(3deg) translateY(-1px); } }
@keyframes sol-gira { to { transform: rotate(360deg); } }
/* resplandor cálido mientras está el sol */
.sticker.con-sol .sticker-cuerpo { filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff)
    drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(0 0 22px rgba(255, 210, 63, .55)); }

/* rayo que cae de la nube cuando suena el trueno */
.rayo {
  position: absolute; left: 38%; top: 70%; width: 26%; z-index: -1; pointer-events: none;
  animation: rayo .9s steps(1) forwards;
}
.rayo svg { display: block; width: 100%; height: auto; overflow: visible; }
.rayo path { fill: #fff6b0; stroke: #ebbb57; stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 0 10px #fff6b0) drop-shadow(0 0 22px #ebbb57); }
@keyframes rayo { 0% { opacity: 1; } 18% { opacity: 0; } 30% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.flash {
  position: fixed; inset: 0; z-index: 900; pointer-events: none; background: #fff;
  animation: flash .6s ease-out forwards;
}
@keyframes flash { 0% { opacity: .55; } 15% { opacity: .1; } 28% { opacity: .4; } 100% { opacity: 0; } }
.sticker.trueno .sticker-cuerpo img { animation: nube-trueno .12s linear 6; }
@keyframes nube-trueno { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px) rotate(-2deg); } }

/* nubes "realistas": sin borde de sticker, solo una sombra suave */
.sticker.realista .sticker-cuerpo,
.sticker.realista:hover .sticker-cuerpo { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
.sticker.realista.agarrado .sticker-cuerpo { filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .4)); }
.sticker.realista.con-sol .sticker-cuerpo { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)) drop-shadow(0 0 22px rgba(255, 210, 63, .55)); }

/* ---------- 4. "Contacto" en relieve: letras blancas levantadas, se estampan una por una ---------- */
.contacto .section-title.relieve { text-shadow: none; }
.relieve span {
  display: inline-block; color: #fff;
  opacity: 0; transform: scale(1.25) translateY(-6px);
}
.relieve.estampado span {
  animation: estampa .3s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: calc(var(--i) * 45ms);
}
@keyframes estampa {
  0% { opacity: 0; transform: scale(1.2) translateY(-4px); }
  100% { opacity: 1; transform: none; }
}
/* el relieve está siempre (no aparece de golpe al final de la animación) */
.relieve span {
  text-shadow:
    1px 1px 0 #cfcfcf,
    2px 2px 0 #a8a8a8,
    3px 3px 0 #7d7d7d,
    5px 6px 8px rgba(0, 0, 0, .9);
}

/* ---------- 5. Tela del merch en WebGL (encima de la tela del collage) ---------- */
.tela-merch {
  position: absolute; left: 0; top: 0; width: 100%; z-index: 1; pointer-events: none;
  /* alto de la tela dentro del collage (336 de 1160) + un margen para que el borde ondule */
  height: calc(100% * 336 / 1160 + 2.2vw);
}
.merch-cta { z-index: 2; } /* el logo de CUYANO queda arriba de la tela */

/* ---------- 6. Discos: carrusel con vinilos (mezcla de Gorillaz + Silvestre) ---------- */
.discos {
  position: relative; overflow: hidden; background: #000; color: #fff;
  padding: 1.5rem 0 4rem; text-align: center; /* arranca pegado a las manos del merch */
}
/* fondo: la tapa del disco activo, gigante y desenfocada (dos capas que se funden) */
.discos-fondo { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.discos-fondo div {
  position: absolute; inset: -10%;
  background-position: center; background-size: cover;
  filter: blur(70px) saturate(1.4); opacity: 0; transform: scale(1.15);
  transition: opacity 1s ease;
}
.discos-fondo div.ve { opacity: .55; }
.discos-fondo::after { /* oscurece arriba y abajo para que se lea */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(#000 0%, rgba(0,0,0,.25) 30%, rgba(0,0,0,.25) 70%, #000 100%);
}
.discos > *:not(.discos-fondo) { position: relative; z-index: 1; }
.discos .section-title { color: var(--cream-yellow); margin-bottom: 1rem; }

.discos-titulo { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-bottom: 2.2rem; }
.discos-titulo p { min-width: min(420px, 60vw); }
.discos-nombre {
  display: block; font-family: "Gauchito Font Family", sans-serif; font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.1;
}
.discos-anio { display: block; margin-top: .3rem; font-size: 1.1rem; color: var(--mustard); }
.discos-flecha {
  background: none; border: 0; color: var(--mustard); font-size: 1.8rem; cursor: pointer;
  padding: .4rem .6rem; transition: transform .2s;
}
.discos-flecha:hover { transform: scale(1.25); }
.discos-flecha:focus-visible { outline: 2px dashed var(--mustard); outline-offset: 2px; }

/* escenario: los discos se ubican con JS según su distancia al del centro */
.discos-escenario {
  position: relative; height: calc(var(--tam) * 1.05); margin: 0 auto 2.5rem;
  --tam: min(340px, 62vw);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.disco {
  position: absolute; left: 50%; top: 0; width: var(--tam); height: var(--tam);
  margin-left: calc(var(--tam) / -2);
  background: none; border: 0; padding: 0; cursor: pointer;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s ease, filter .5s ease;
  will-change: transform;
}
.disco { perspective: 1400px; }
/* la funda gira en 3D: adelante la tapa, atrás la contratapa con los temas */
.disco .funda {
  position: relative; z-index: 2; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.funda .cara, .funda .dorso {
  position: absolute; inset: 0; width: 100%; height: 100%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.funda .cara { object-fit: cover; display: block; }
@media (hover: hover) and (pointer: fine) {
  .disco.activo:hover .funda { transform: rotateY(180deg); }
}
.disco.activo.girado .funda { transform: rotateY(180deg); }
.disco-pronto .funda { transform: none !important; }

.funda-pronto {
  display: flex !important; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #111 0 14px, #161616 14px 28px);
  border: 3px dashed rgba(255, 229, 162, .4); box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  font-family: "Gauchito Font Family", sans-serif; font-size: calc(var(--tam) * .45); color: rgba(255, 229, 162, .5);
}
/* el vinilo: negro con surcos y la tapa chiquita como etiqueta del centro */
.vinilo {
  position: absolute; z-index: 1; top: 3%; left: 3%; width: 94%; height: 94%; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 17%, rgba(255,255,255,.06) 17.5% 18%, transparent 18.5%),
    repeating-radial-gradient(circle, #111 0 2px, #1d1d1d 2px 3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  transform: translateX(6%);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.vinilo img {
  position: absolute; left: 32%; top: 32%; width: 36%; height: 36%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px #0a0a0a;
}
.vinilo::after { /* agujero */
  content: ""; position: absolute; left: 49%; top: 49%; width: 2%; height: 2%; border-radius: 50%; background: #000;
}
.disco.activo .vinilo { transform: translateX(42%); }
.disco.activo .vinilo { animation: vinilo-gira 4s linear infinite; animation-delay: .8s; }
@keyframes vinilo-gira { from { transform: translateX(42%) rotate(0); } to { transform: translateX(42%) rotate(360deg); } }
.disco:not(.activo):hover .funda { filter: brightness(1.15); }
.disco:focus-visible { outline: 3px dashed var(--mustard); outline-offset: 6px; }

/* contratapa = reproductor: la tapa desenfocada de fondo y los temas con su ▶ (Helvetica, tranqui) */
.dorso {
  transform: rotateY(180deg); overflow: hidden;
  display: flex; flex-direction: column; gap: calc(var(--tam) * .035);
  padding: calc(var(--tam) * .06); text-align: left; color: #fff;
  background: #111; cursor: default;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.dorso::before {
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background: var(--tapa) center / cover;
  filter: blur(16px) brightness(.28) saturate(1.2);
}
.dorso-cabeza { font-weight: 700; font-size: calc(var(--tam) * .062 * var(--esc, 1)); line-height: 1.1; letter-spacing: -.01em; }
.dorso-cabeza small {
  display: block; font-weight: 500; font-size: .48em; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mustard); margin-bottom: .35em;
}
.dorso-lados {
  display: flex; flex-direction: column; gap: calc(var(--tam) * .03); flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; margin-right: calc(var(--tam) * -.03); padding-right: calc(var(--tam) * .03);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent;
}
.dorso-lado { flex: 1; min-width: 0; }
.dorso-lado b {
  display: block; font-weight: 600; font-size: calc(var(--tam) * .03 * var(--esc, 1));
  letter-spacing: .14em; text-transform: uppercase; opacity: .55; margin-bottom: .5em;
}
.dorso-lado ol { list-style: none; margin: 0; padding: 0; }
.tema {
  width: 100%; display: flex; align-items: center; gap: .55em;
  background: none; border: 0; color: #fff; text-align: left; cursor: pointer;
  font: inherit; font-size: calc(var(--tam) * .036 * var(--esc, 1)); line-height: 1.25;
  padding: .32em .3em; border-radius: 4px; transition: background .15s;
}
.tema:hover, .tema:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.tema-play {
  flex: 0 0 auto; width: 1.55em; height: 1.55em; border-radius: 50%;
  background: #fff; position: relative; opacity: .9;
}
.tema-play::after { /* triángulo de play */
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-left: .5em solid #111; border-top: .32em solid transparent; border-bottom: .32em solid transparent;
}
.tema.sonando .tema-play { background: var(--mustard); }
.tema.sonando .tema-play::after { /* pausa */
  left: 50%; width: .48em; height: .55em; border: 0;
  background: linear-gradient(90deg, #111 0 35%, transparent 35% 65%, #111 65%);
}
.tema-num { flex: 0 0 auto; opacity: .45; min-width: 1.1em; text-align: right; font-variant-numeric: tabular-nums; }
.tema-nombre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tema-nombre .ft { display: block; font-size: .78em; opacity: .55; overflow: hidden; text-overflow: ellipsis; }
.tema-dur { flex: 0 0 auto; opacity: .5; font-size: .85em; font-variant-numeric: tabular-nums; }
.tema.elegido .tema-nombre { color: var(--mustard); }
.dorso-volver {
  position: absolute; right: calc(var(--tam) * .05); top: calc(var(--tam) * .05);
  background: rgba(255, 255, 255, .12); border: 0; color: #fff; border-radius: 999px;
  font: 600 calc(var(--tam) * .03) "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: .45em .8em; cursor: pointer;
}
.dorso-volver:hover { background: rgba(255, 255, 255, .22); }
@media (max-width: 760px) {
  /* celu: una sola columna que se scrollea adentro de la contratapa */
  .tema { font-size: 12px; }
  .dorso-cabeza { font-size: 16px; }
  .dorso-lado b { font-size: 10px; }
}

.discos-spotify { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }
.discos-player, .discos-spotify iframe { border-radius: 12px; display: block; }

@media (max-width: 760px) {
  .discos { padding-top: 1rem; }
  .discos-titulo { gap: .4rem; }
  .disco.activo .vinilo { transform: translateX(28%); }
  @keyframes vinilo-gira { from { transform: translateX(28%) rotate(0); } to { transform: translateX(28%) rotate(360deg); } }
}

/* ---------- Movimiento reducido: todo quieto ---------- */
@media (prefers-reduced-motion: reduce) {
  .disco .funda { transition: none; }
  .disco.activo .vinilo { animation: none; }
  .flash { display: none; }
  .relieve.estampado span { animation-duration: .01ms; animation-delay: 0s; }
  html.fx .date-row { opacity: 1; transform: none; transition: none; }
  .date-row::before, .date-row h3, .date-row .btn { transition: none !important; }
}
