/* =========================================================
   DJ Santy Rodríguez - estilos
   Si querés cambiar los colores del sitio, tocá las variables
   de abajo (están en :root). Todo el sitio las usa.
   ========================================================= */

:root {
  --noche: #0a0308;
  --bordo-hondo: #1d0510;
  --bordo: #560c30;
  --magenta: #e5177f;
  --magenta-boton: #d6136f;
  --hueso: #f6eff3;
  --humo: #bba9b3;
  --linea: rgba(246, 239, 243, 0.16);

  --f-titulo: "Michroma", "DejaVu Sans", system-ui, sans-serif;
  --f-texto: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 76rem;
  --alto-menu: 4.5rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--alto-menu);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--noche);
  color: var(--hueso);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-family: var(--f-titulo); font-weight: 400; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.5rem); letter-spacing: 0.01em; overflow: hidden; padding-block: 0.08em 0.14em; }
h2 > span { display: inline-block; }
p { margin: 0 0 1.1em; }
ul, dl, dd { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

.saltar {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--hueso); color: var(--noche); padding: 0.6rem 1rem; text-decoration: none;
}
.saltar:focus { top: 1rem; }

.contenedor { max-width: var(--max); margin-inline: auto; }
.seccion { padding: clamp(4rem, 9vw, 8rem) var(--gutter); }

/* ---------- Botones (esquinas cortadas, como la tipografía del press kit) ---------- */
.btn {
  --corte: 0.7rem;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: 0.8rem 1.7rem;
  font-family: var(--f-texto); font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; color: #fff; border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--corte)) 0, 100% var(--corte), 100% 100%, var(--corte) 100%, 0 calc(100% - var(--corte)));
  transition: background-color 0.2s ease;
}
.btn:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.btn--wa { background: var(--magenta-boton); }
.btn--wa:hover { background: #ee2a8c; }
.btn--suave { background: rgba(246, 239, 243, 0.1); }
.btn--suave:hover { background: rgba(246, 239, 243, 0.2); }
.btn--chico { min-height: 2.5rem; padding: 0.5rem 1.2rem; font-size: 0.95rem; --corte: 0.55rem; }
.btn--grande { min-height: 3.6rem; padding: 1rem 2.2rem; font-size: 1.125rem; }

/* ---------- Menú ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--alto-menu);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  transition: background-color 0.3s ease, transform 0.35s ease;
}
.nav.is-oculto { transform: translateY(-100%); }
.nav.is-scrolled {
  background: rgba(10, 3, 8, 0.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.nav__marca {
  font-family: var(--f-titulo); font-size: 0.8rem; letter-spacing: 0.04em;
  text-decoration: none; color: var(--hueso);
}
.nav__menu { display: flex; align-items: center; gap: 1.8rem; }
.nav__menu a:not(.btn) { text-decoration: none; font-size: 0.95rem; font-weight: 400; color: var(--humo); transition: color 0.2s; }
.nav__menu a:not(.btn):hover { color: var(--hueso); }
.nav__boton {
  display: none; background: none; border: 1px solid var(--linea); color: var(--hueso);
  font: 500 0.9rem var(--f-texto); padding: 0.5rem 1rem; cursor: pointer;
}

/* ---------- Portada ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--alto-menu) + 2rem) max(var(--gutter), calc((100vw - var(--max)) / 2)) 3.5rem;
  background:
    radial-gradient(ellipse 65% 85% at 18% 45%, rgba(116, 17, 66, 0.8), transparent 70%),
    var(--noche);
}
.hero__foto {
  position: absolute; z-index: -2; top: 0; right: 0; bottom: 0;
  width: min(62vw, 60rem); height: 100%;
  object-fit: cover; object-position: 62% 0;
  /* difumina el borde izquierdo de la foto para que se funda con el fondo */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--noche) 0%, rgba(10, 3, 8, 0.82) 30%, rgba(10, 3, 8, 0) 64%),
    linear-gradient(0deg, var(--noche) 0%, rgba(10, 3, 8, 0) 20%);
}
.hero__texto { width: min(100%, 36rem); }
.hero__logo img { width: clamp(17rem, 38vw, 28rem); height: auto; margin-left: -0.5rem; }
.hero__lead { margin: 1.2rem 0 0.4rem; font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 500; line-height: 1.35; }
.hero__generos { margin: 0 0 2rem; color: var(--humo); font-size: 1.05rem; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Único momento animado de la página: se "prenden las luces" al cargar */
@keyframes luces {
  from { opacity: 0; filter: brightness(0.2); }
  to   { opacity: 1; filter: brightness(1); }
}
@keyframes entrar {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero__foto { animation: luces 1.8s ease-out both; }
.hero__texto > * { animation: entrar 0.8s ease-out both; }
.hero__texto > :nth-child(1) { animation-delay: 0.35s; }
.hero__texto > :nth-child(2) { animation-delay: 0.55s; }
.hero__texto > :nth-child(3) { animation-delay: 0.7s; }
.hero__texto > :nth-child(4) { animation-delay: 0.85s; }

/* ---------- Biografía ---------- */
.bio__grilla { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.bio__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bio__texto h2 { margin-bottom: 1.6rem; }
.bio__texto p { max-width: 38rem; color: #dccfd6; }
.bio__intro { font-size: 1.3rem; line-height: 1.5; font-weight: 400; color: var(--hueso) !important; }

/* ---------- Trayectoria ---------- */
.tray { background: linear-gradient(180deg, var(--noche), var(--bordo-hondo) 18%, var(--bordo-hondo) 82%, var(--noche)); }
.tray__grilla { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.tray__texto h2 { margin-bottom: 1rem; }
.tray__intro { color: var(--humo); margin-bottom: 2rem; }
.plazas { border-bottom: 1px solid var(--linea); }
.plaza { position: relative; display: grid; grid-template-columns: minmax(7.5rem, 11rem) 1fr; gap: 0.4rem 1.5rem; padding: 1.15rem 0; }
.plaza::before, .medio::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--linea); transform-origin: left;
}
.plaza dt { color: var(--humo); font-size: 0.95rem; padding-top: 0.25rem; }
.locales { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; }
.locales li { font-size: 1.25rem; font-weight: 500; }
.tray__foto { position: sticky; top: calc(var(--alto-menu) + 1.5rem); }
.tray__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Galería ---------- */
.galeria > .contenedor:first-child { margin-bottom: 2.2rem; }
.galeria__marco { container-type: inline-size; }
.galeria__grilla {
  --sep: clamp(0.5rem, 1.2vw, 1rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sep);
  grid-auto-rows: calc((100cqw - 3 * var(--sep)) / 4 * 1.25);
}
.tile { padding: 0; border: 0; background: var(--bordo-hondo); cursor: zoom-in; overflow: hidden; min-width: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.25s ease; }
.tile:hover img { filter: brightness(1.12); }
.tile--grande { grid-column: span 2; grid-row: span 2; }
.tile:focus-visible { outline-offset: -4px; outline-color: #fff; }

/* ---------- Set en vivo ---------- */
.set { background: var(--bordo-hondo); }
.set h2 { margin-bottom: 0.8rem; }
.set__intro { color: var(--humo); margin-bottom: 2rem; }
.set__grilla { display: grid; grid-template-columns: 7fr 3fr; gap: clamp(0.75rem, 2vw, 1.5rem); }
.set__video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.set__video img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); }
.set__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.set__aviso {
  position: absolute; inset: 0; display: grid; place-items: end start;
  padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(0deg, rgba(10, 3, 8, 0.85) 0%, rgba(10, 3, 8, 0) 55%);
}
.set__aviso p { margin: 0; max-width: 26rem; font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 500; line-height: 1.45; }
/* cuando ya hay video cargado, el botón de reproducir va al centro */
.set__video.is-listo .set__aviso { place-items: center; background: none; }
.set__foto { overflow: hidden; }
.set__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 85%; }

/* ---------- Para tu evento ---------- */
.evento { padding-bottom: clamp(2rem, 4vw, 4rem); }
.evento h2 { margin-bottom: 2.4rem; }
.evento__lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.evento__item { position: relative; padding-top: 1.2rem; }
.evento__item::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--magenta); transform-origin: left;
}
.evento__item:nth-child(2) { --d: 0.12; }
.evento__item:nth-child(3) { --d: 0.24; }
.evento__item h3 { font-size: 1rem; margin-bottom: 0.7rem; letter-spacing: 0.02em; }
.evento__item p { color: #dccfd6; margin: 0; max-width: 24rem; }

/* ---------- Contacto ---------- */
.contacto {
  background:
    radial-gradient(ellipse 70% 90% at 85% 100%, rgba(116, 17, 66, 0.7), transparent 70%),
    var(--noche);
}
.contacto__grilla { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contacto__texto h2 { margin-bottom: 1.2rem; }
.contacto__texto p { max-width: 30rem; color: #dccfd6; margin-bottom: 2rem; }
.medios { border-bottom: 1px solid var(--linea); }
.medio { position: relative; display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1.1rem 0; }
.medio dt { color: var(--humo); font-size: 0.95rem; }
.medio dd { font-size: 1.15rem; font-weight: 500; overflow-wrap: anywhere; }
.medio a { text-decoration: none; border-bottom: 1px solid var(--magenta); }
.medio a:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- Descarga de material (booking) ---------- */
.descarga {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 3rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--linea);
}
.descarga__texto { max-width: 40rem; }
.descarga__botones { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.descarga h3 { font-size: 1.05rem; margin-bottom: 0.6rem; letter-spacing: 0.02em; }
.descarga p { margin: 0; color: #dccfd6; }

/* ---------- Cinta de géneros ---------- */
.cinta { overflow: hidden; display: grid; gap: 0.3rem; padding: clamp(2.5rem, 6vw, 5rem) 0 0; }
.cinta__fila {
  display: flex; width: max-content; white-space: nowrap;
  font-family: var(--f-titulo); text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 6.5rem); line-height: 1.12;
}
.cinta__fila span { display: inline-flex; align-items: center; }
.cinta__fila span::after {
  content: ""; width: 0.3em; height: 0.3em; margin-inline: 0.55em; background: var(--magenta);
  clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 30% 100%, 0 70%);
}
.cinta__fila--a { color: var(--hueso); }
.cinta__fila--b { color: transparent; -webkit-text-stroke: 1.5px rgba(246, 239, 243, 0.55); }

/* ---------- Pie ---------- */
.pie { padding: 2.5rem var(--gutter); border-top: 1px solid var(--linea); }
.pie__fila { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.pie img { width: 5.5rem; }
.pie p { margin: 0; color: var(--humo); font-size: 0.9rem; }

/* ---------- Visor de fotos ---------- */
.visor {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 2, 5, 0.97); color: var(--hueso);
}
.visor[open] { display: grid; grid-template-columns: 4.5rem 1fr 4.5rem; align-items: center; }
.visor::backdrop { background: rgba(6, 2, 5, 0.9); }
.visor__figura { margin: 0; display: grid; justify-items: center; gap: 0.7rem; min-width: 0; }
.visor__figura img { max-width: 100%; max-height: calc(100dvh - 6rem); width: auto; height: auto; object-fit: contain; }
.visor__figura figcaption { color: var(--humo); font-size: 0.9rem; }
.visor__flecha, .visor__cerrar {
  background: none; border: 0; color: var(--hueso); cursor: pointer;
  display: grid; place-items: center; width: 3rem; height: 3rem; justify-self: center;
}
.visor__flecha:hover, .visor__cerrar:hover { color: var(--magenta); }
.visor__flecha svg, .visor__cerrar svg { width: 1.7rem; height: 1.7rem; }
.visor__cerrar { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2; }

/* ---------- Celular y tablet ---------- */
@media (max-width: 62rem) {
  .nav__boton { display: inline-block; }
  .nav__menu {
    display: none; position: fixed; top: var(--alto-menu); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.1rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: rgba(10, 3, 8, 0.97); border-bottom: 1px solid var(--linea);
  }
  .nav__menu.is-abierto { display: flex; }
  .nav__menu a:not(.btn) { font-size: 1.1rem; }

  .bio__grilla, .tray__grilla, .contacto__grilla { grid-template-columns: 1fr; }
  .bio__foto { max-width: 26rem; }
  .tray__foto { position: static; order: -1; max-width: 26rem; }
  .set__grilla { grid-template-columns: 1fr; }
  .set__foto { display: none; }
  .evento__lista { grid-template-columns: 1fr; gap: 2rem; }
  .descarga { border-top: 0; padding-top: 0; margin-top: 2.5rem; }
}

@media (max-width: 48rem) {
  .hero { align-items: flex-end; padding-bottom: 2.5rem; }
  .hero__foto {
    width: 100%; bottom: auto; height: 86svh; min-height: 30rem;
    object-position: 70% 0; -webkit-mask-image: none; mask-image: none;
  }
  .hero::after {
    background:
      linear-gradient(0deg, var(--noche) 12%, rgba(10, 3, 8, 0.78) 46%, rgba(10, 3, 8, 0) 80%);
  }
  .hero__logo img { width: min(60vw, 15rem); }
  .hero__lead { font-size: 1.15rem; margin-top: 0.8rem; }
  .hero__generos { font-size: 0.95rem; margin-bottom: 1.4rem; }
  .hero__acciones { gap: 0.6rem; }
  .hero__acciones .btn { flex: 1 1 100%; min-height: 3rem; }
  .descarga__botones { width: 100%; }
  .descarga__botones .btn { flex: 1 1 100%; }

  .galeria__grilla { grid-template-columns: repeat(2, 1fr); grid-auto-rows: calc((100cqw - var(--sep)) / 2 * 1.25); }

  .plaza { grid-template-columns: 1fr; gap: 0.3rem; }
  .medio { grid-template-columns: 1fr; gap: 0.2rem; }

  .visor[open] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .visor__figura { padding: 3.5rem 0.5rem 4.5rem; }
  .visor__figura img { max-height: calc(100dvh - 8rem); }
  .visor__flecha { position: absolute; bottom: 0.8rem; }
  .visor__flecha--prev { left: calc(50% - 4rem); }
  .visor__flecha--next { left: calc(50% + 1rem); }
}

/* =========================================================
   ANIMACIONES AL SCROLLEAR
   script.js le agrega la clase "anim" a la página y va actualizando
   estas variables en cada elemento mientras scrolleás:
     --s  avance de la portada (0 al inicio, 1 cuando ya la pasaste)
     --e  qué tan "entrado" está un elemento (0 abajo de la pantalla, 1 ya a la vista)
     --p  recorrido completo del elemento por la pantalla (0 a 1)
     --t  avance del texto que se va iluminando palabra por palabra
     --scroll  avance de toda la página
   Si la persona tiene activado "reducir movimiento", la clase no se
   agrega y el sitio se ve quieto.
   ========================================================= */
.progreso { display: none; }
.anim .progreso {
  display: block; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--magenta); transform-origin: left; transform: scaleX(var(--scroll, 0)); pointer-events: none;
}

/* Portada: la foto sube más lento que el texto y se va acercando */
.anim .hero__foto {
  transform-origin: 70% 25%;
  transform: translate3d(0, calc(var(--s, 0) * 14svh), 0) scale(calc(1 + var(--s, 0) * 0.12));
  will-change: transform;
}
.anim .hero__texto {
  transform: translate3d(0, calc(var(--s, 0) * -12svh), 0);
  opacity: max(0, calc(1 - var(--s, 0) * 1.7));
  will-change: transform, opacity;
}

/* Cinta de géneros: una fila va hacia un lado y la otra hacia el otro */
.anim .cinta__fila--a { transform: translate3d(calc(var(--p, 0) * -18%), 0, 0); }
.anim .cinta__fila--b { transform: translate3d(calc((var(--p, 0) - 1) * 18%), 0, 0); }

/* Títulos: suben desde abajo de una "ventana" */
.anim h2 > span { transform: translate3d(0, calc((1 - min(1, var(--e, 0) * 1.6)) * 115%), 0); }

/* Fotos grandes: se descubren de abajo hacia arriba y se asientan con un zoom */
.anim .bio__foto, .anim .tray__foto {
  overflow: hidden;
  clip-path: inset(max(0%, calc((1 - var(--e, 0) * 1.4) * 100%)) 0 0 0);
}
.anim .bio__foto img, .anim .tray__foto img {
  transform: translate3d(0, calc((var(--p, 0.5) - 0.5) * -6%), 0) scale(calc(1.1 + (1 - var(--e, 0)) * 0.14));
}

/* Texto de la bio: se va iluminando palabra por palabra */
.anim .palabra { opacity: clamp(0.16, calc(0.16 + (var(--t, 0) * 1.2 - var(--i, 0)) * 14), 1); }

/* Trayectoria y contacto: las líneas se dibujan y el contenido aparece */
.anim .plaza::before, .anim .medio::before { transform: scaleX(min(1, calc(var(--e, 0) * 2))); }
.anim .plaza dt, .anim .plaza dd {
  opacity: clamp(0, calc(var(--e, 0) * 2.4 - 0.5), 1);
  transform: translate3d(0, calc((1 - var(--e, 0)) * 22px), 0);
}
.anim .plaza dd { opacity: clamp(0, calc(var(--e, 0) * 2.4 - 0.8), 1); }
.anim .medio dt, .anim .medio dd {
  opacity: clamp(0, calc(var(--e, 0) * 2.4 - 0.5), 1);
  transform: translate3d(0, calc((1 - var(--e, 0)) * 18px), 0);
}

/* Galería: cada foto se descubre al entrar y la imagen se desplaza apenas dentro del recuadro */
.anim .tile { clip-path: inset(max(0%, calc((1 - var(--e, 0) * 1.5) * 100%)) 0 0 0); }
.anim .tile img { transform: translate3d(0, calc((var(--p, 0.5) - 0.5) * -9%), 0) scale(1.14); }

/* Set en vivo: el marco se abre y la imagen se aleja */
.anim .set__video { clip-path: inset(calc((1 - var(--e, 0)) * 12%) calc((1 - var(--e, 0)) * 14%)); }
.anim .set__video > img { transform: scale(calc(1.3 - var(--e, 0) * 0.3)); }
.anim .set__foto img { transform: translate3d(0, calc((var(--p, 0.5) - 0.5) * -10%), 0) scale(1.15); }

/* Para tu evento: la línea se dibuja y los textos entran escalonados */
.anim .evento__item::before { transform: scaleX(min(1, calc((var(--e, 0) - var(--d, 0)) * 2.4))); }
.anim .evento__item > * {
  opacity: clamp(0, calc((var(--e, 0) - var(--d, 0)) * 3 - 0.6), 1);
  transform: translate3d(0, calc((1 - var(--e, 0)) * 20px), 0);
}

/* Contacto y descarga */
.anim .contacto__texto p, .anim .contacto__texto .btn, .anim .descarga__texto, .anim .descarga__botones {
  opacity: clamp(0, calc(var(--e, 0) * 2.4 - 0.5), 1);
  transform: translate3d(0, calc((1 - var(--e, 0)) * 22px), 0);
}

/* Si la persona tiene activado "reducir movimiento", se apagan las animaciones */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
