/* =====================================================================
   MODO ARTÍSTICO (se activa cuando el artista tiene foto de portada «hero»)
   + carrusel de reels, galería, cinta y contratación
   ===================================================================== */
.artistico .ruido { opacity: .13; }
.artistico::before { opacity: .28; }
.artistico #app { gap: 30px; }
.artistico .barra { position: absolute; top: 22px; left: 16px; right: 16px; z-index: 6; color: rgba(255,255,255,.75); }
.artistico .barra .boton-icono { background: rgba(0,0,0,.35); backdrop-filter: blur(10px); }
/* Viñeta de cine */
.artistico .vineta {
  position: fixed; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}

/* ---------- Portada a sangre ---------- */
.hero {
  position: relative; margin: -28px calc(50% - 50vw) 0; width: 100vw;
  height: min(94svh, 900px); min-height: 560px; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-foto {
  position: absolute; inset: -6% 0 0; z-index: -3; will-change: transform;
  background: var(--img) var(--enfoque, center 22%) / cover no-repeat;
  filter: grayscale(1) contrast(1.25) brightness(.85);
  transform: scale(1.08); transform-origin: var(--enfoque, center);
  -webkit-mask: linear-gradient(#000 55%, transparent 98%); mask: linear-gradient(#000 55%, transparent 98%);
}
.hero-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--a), var(--b) 60%, #000); mix-blend-mode: multiply; opacity: .85; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 45%; z-index: -1;
  background: linear-gradient(transparent, var(--bg) 92%);
}

/* Focos de escenario que barren la foto */
.focos { position: absolute; inset: 0; z-index: -2; pointer-events: none; mix-blend-mode: screen; }
.focos i {
  position: absolute; top: -12%; width: 46vw; max-width: 420px; height: 125%;
  background: linear-gradient(to bottom, rgba(255,255,255,.95), color-mix(in srgb, var(--a) 80%, white) 12%, color-mix(in srgb, var(--a) 40%, transparent) 45%, transparent 85%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  filter: blur(14px); opacity: .32; transform-origin: 50% 0;
  animation: barrido 9s ease-in-out infinite alternate;
}
.focos i:nth-child(1) { left: -8%; animation-duration: 8s; }
.focos i:nth-child(2) { left: 22%; animation-duration: 11s; animation-delay: -4s; opacity: .22; }
.focos i:nth-child(3) { right: 18%; animation-duration: 10s; animation-delay: -2s; animation-direction: alternate-reverse; }
.focos i:nth-child(4) { right: -10%; animation-duration: 7s; animation-delay: -6s; opacity: .26; }
@keyframes barrido { from { transform: rotate(-24deg); } to { transform: rotate(22deg); } }

/* Destellos: fuentes de luz arriba */
.destellos i {
  position: absolute; top: -40px; width: 140px; height: 140px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, #fff 0 6%, color-mix(in srgb, var(--a) 70%, white) 14%, transparent 62%);
  mix-blend-mode: screen; animation: parpadeo 3.2s ease-in-out infinite;
}
.destellos i:nth-child(1) { left: 6%; }
.destellos i:nth-child(2) { left: 46%; animation-delay: -1.1s; width: 100px; height: 100px; }
.destellos i:nth-child(3) { right: 6%; animation-delay: -2.2s; }
@keyframes parpadeo { 0%, 100% { opacity: .9; transform: scale(1); } 45% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }

.hero-texto {
  width: 100%; max-width: 640px; padding: 0 16px 74px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: entrada 1.2s cubic-bezier(.2,.7,.2,1) both .2s;
}
@keyframes entrada { from { opacity: 0; transform: translateY(40px); filter: blur(10px); } }
.nombre.gigante {
  /* El tamaño se adapta a la palabra más larga del nombre para que nunca se salga */
  font-size: clamp(40px, min(27vw, calc(118vw / var(--letras, 4))), 190px); letter-spacing: -.05em; line-height: .86;
  background: linear-gradient(180deg, #fff 40%, color-mix(in srgb, var(--a) 70%, white));
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--a) 55%, transparent));
}
.hero .usuario { padding: 5px 12px; border-radius: 99px; background: rgba(0,0,0,.4); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); color: #fff; }
.hero .lema { color: rgba(255,255,255,.82); font-size: 17px; }
.hero .ecualizador { height: 26px; }
.hero .red { background: rgba(0,0,0,.35); backdrop-filter: blur(10px); }
.desliza {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.desliza span { width: 1px; height: 28px; background: linear-gradient(transparent, var(--a)); animation: gota 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes gota { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Carrusel 3D de reels ---------- */
.escena-reels {
  position: relative; height: 380px; perspective: 1100px; touch-action: pan-y;
  margin: 0 calc(50% - 50vw); width: 100vw; overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.escena-reels:active { cursor: grabbing; }
.anillo { position: absolute; left: 50%; top: 40px; width: 0; height: 0; transform-style: preserve-3d; }
.anillo.suave { transition: transform .9s cubic-bezier(.2,.75,.2,1); }
.reel {
  position: absolute; left: -86px; top: 0; width: 172px; aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; background: #111; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid rgba(255,255,255,.14);
  transition: filter .5s, opacity .5s, box-shadow .5s;
  filter: brightness(.45) saturate(.6); opacity: .85;
}
.reel.frente { filter: none; opacity: 1; box-shadow: 0 0 0 1px var(--a), 0 20px 60px -10px var(--a); }
.reel { container-type: size; cursor: pointer; }
.reel img, .reel video, .reel-yt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.reel video, .reel-yt { opacity: 0; transition: opacity .6s; }
.reel.reproduciendo video, .reel.reproduciendo .reel-yt { opacity: 1; }
.reel-yt { overflow: hidden; background: #000; }
/* El vídeo de YouTube (horizontal) se recorta al centro para llenar la tarjeta vertical */
.reel-yt iframe { position: absolute; top: 0; left: 50%; height: 100cqh; width: 177.78cqh; transform: translateX(-50%) scale(1.02); border: 0; pointer-events: none; }
.reel-sonido {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
  opacity: 0; transition: .3s;
}
.reel-sonido svg { width: 17px; height: 17px; }
.reel-sonido .i-sonido { display: none; }
.reel.frente .reel-sonido { opacity: 1; animation: llamar 2s ease-in-out infinite; }
.reel.con-sonido .reel-sonido { background: var(--a); color: var(--on); animation: none; }
.reel.con-sonido .i-mudo { display: none; }
.reel.con-sonido .i-sonido { display: block; }
@keyframes llamar { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--a) 30%, transparent); } }
.reel.frente .reel-titulo { right: 52px; }
.reel-capa { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.85)); }
.reel-red { position: absolute; z-index: 2; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.reel-red .ico { width: 14px; height: 14px; }
.reel-play {
  position: absolute; inset: 0; margin: auto; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3); opacity: 0; transform: scale(.7); transition: .4s;
}
.reel-play svg { width: 18px; height: 18px; margin-left: 3px; }
.reel.frente .reel-play { opacity: 1; transform: none; background: var(--a); color: var(--on); border: 0; }
.reel-titulo { position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: left; font-size: 13px; font-weight: 600; line-height: 1.25; }
.reels-controles { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: -6px; }
.reels-cuenta { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--muted); min-width: 70px; text-align: center; }

/* ---------- Cinta de texto ---------- */
.cinta {
  margin: 8px calc(50% - 50vw); width: 100vw; overflow: hidden; transform: rotate(-3deg);
  background: var(--a); color: var(--on); padding: 12px 0; box-shadow: 0 0 60px -10px var(--a);
}
.cinta div { display: flex; gap: 22px; width: max-content; animation: cinta 26s linear infinite; }
.cinta span { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; white-space: nowrap; }
.cinta b { font-size: 16px; align-self: center; opacity: .7; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Galería de fotos ---------- */
.galeria {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -16px; padding: 4px 16px 8px;
}
.galeria::-webkit-scrollbar { display: none; }
.foto {
  position: relative; flex: 0 0 72%; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  scroll-snap-align: center; border: 1px solid var(--line);
}
.foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); transition: filter .6s, transform .8s; }
.foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--a), var(--b)); mix-blend-mode: multiply; opacity: .55; transition: opacity .6s; }
.foto:hover img { filter: none; transform: scale(1.05); }
.foto:hover::after { opacity: 0; }
.foto .num { position: absolute; z-index: 1; top: 12px; left: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: #fff; text-shadow: 0 1px 8px #000; }
.foto .pie-foto { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; text-align: left; font-size: 13px; font-weight: 600; text-shadow: 0 1px 10px #000; }

/* ---------- Contratación ---------- */
.contratar { padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.contratar::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--a) 45%, transparent), transparent 65%); pointer-events: none;
}
.contratar-texto { position: relative; }
.contratar-texto b { display: block; font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.2; margin-bottom: 4px; }
.contratar-texto small { color: var(--muted); }
.contratar-botones { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.contratar-botones .boton { flex: 1 1 200px; padding: 14px 18px; font-size: 15px; }
.contratar-botones .ico { width: 17px; height: 17px; }

/* ---------- Ventana: fotos y reels verticales ---------- */
dialog.es-foto { background: transparent; border: 0; width: min(900px, calc(100% - 32px)); }
dialog.es-foto .marco { aspect-ratio: auto; }
dialog .foto-grande { width: 100%; max-height: 86vh; object-fit: contain; border-radius: 14px; }
dialog.es-reel { width: min(400px, calc(100% - 32px)); }
dialog.es-reel .marco { aspect-ratio: 9 / 16; max-height: 86vh; }
dialog.es-reel video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 700px) {
  .reel { left: -105px; width: 210px; }
  .escena-reels { height: 460px; }
  .foto { flex-basis: 42%; }
}
/* ---------- Nebulosa y luces de fondo ---------- */
#nebulosa { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.con-nebulosa::before, .con-nebulosa::after { display: none; }
.con-nebulosa #fondo { opacity: .55; }
.luces { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.luces i {
  position: absolute; top: -25vh; width: 55vw; height: 150vh; transform-origin: 50% 0;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--a) 55%, white), color-mix(in srgb, var(--a) 30%, transparent) 40%, transparent 80%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); filter: blur(30px); opacity: .13;
  animation: barrido 16s ease-in-out infinite alternate;
}
.luces i:nth-child(1) { left: -15vw; }
.luces i:nth-child(2) { right: -15vw; animation-duration: 21s; animation-direction: alternate-reverse; }
/* Destello diagonal que cruza la pantalla de vez en cuando */
.luces i:nth-child(3) {
  top: -50vh; left: 0; width: 18vw; height: 200vh; clip-path: none; filter: blur(40px); opacity: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--a) 60%, white), transparent);
  animation: cruce 11s ease-in-out infinite;
}
@keyframes cruce {
  0%, 62% { opacity: 0; transform: translateX(-40vw) rotate(25deg); }
  70% { opacity: .22; }
  85%, 100% { opacity: 0; transform: translateX(130vw) rotate(25deg); }
}

/* ---------- Fotos a sangre entre secciones ---------- */
.artistico .seccion, .artistico .cifras { position: relative; z-index: 1; }
.interludio {
  position: relative; z-index: 0; pointer-events: none; overflow: hidden;
  margin: -24vh calc(50% - 50vw); width: 100vw; height: 95vh;
}
.interludio-foto {
  position: absolute; inset: -12% 0; will-change: transform; transform: scale(1.15);
  background: var(--img) center / cover no-repeat;
  filter: grayscale(1) contrast(1.25) brightness(.8);
  -webkit-mask: linear-gradient(transparent, #000 32%, #000 68%, transparent);
          mask: linear-gradient(transparent, #000 32%, #000 68%, transparent);
  opacity: .8;
}
.interludio-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--a), var(--b) 60%, #000); mix-blend-mode: multiply; opacity: .8; }
.interludio-texto {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  font-family: var(--display); font-weight: 800; font-size: clamp(80px, 24vw, 280px); line-height: 1; letter-spacing: -.04em;
  white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.4);
  animation: deriva 30s linear infinite alternate;
}
@keyframes deriva { from { transform: translate(5%, -50%); } to { transform: translate(-45%, -50%); } }

@media (prefers-reduced-motion: reduce) {
  .hero-texto { animation: none; }
}

/* =====================================================================
   ORDENADOR: maqueta a dos columnas, portada editorial y todo más grande
   ===================================================================== */
@media (min-width: 1000px) {
  .artistico #app {
    max-width: 1200px; padding: 28px 48px 60px;
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; row-gap: 48px; align-items: start;
  }
  .artistico #app > * { grid-column: 1 / -1; }
  .artistico #s-lanz, .artistico #s-bio { grid-column: 1; }
  .artistico #s-enlaces, .artistico #contacto { grid-column: 2; }
  .artistico .barra { left: 48px; right: 48px; top: 30px; font-size: 12px; }

  /* Portada: foto apaisada a toda pantalla y texto a la izquierda */
  .hero { height: 100vh; max-height: 1000px; justify-content: flex-start; }
  .hero-foto {
    inset: -6% 0 0 34%; background-image: var(--img-pc); background-position: var(--enfoque, center 20%);
    -webkit-mask: linear-gradient(90deg, transparent, #000 35%), linear-gradient(#000 60%, transparent 98%);
    -webkit-mask-composite: source-in;
            mask: linear-gradient(90deg, transparent, #000 35%), linear-gradient(#000 60%, transparent 98%);
            mask-composite: intersect;
  }
  .hero-texto { max-width: 1200px; margin: 0 auto; padding: 0 48px 110px; text-align: left; align-items: flex-start; gap: 16px; }
  .nombre.gigante { font-size: clamp(70px, min(17vw, calc(80vw / var(--letras, 4))), 270px); }
  .hero .lema { font-size: 20px; max-width: 520px; }
  .hero .etiquetas, .hero .redes { justify-content: flex-start; }
  .hero .red { width: 50px; height: 50px; }
  .focos i { width: 30vw; }
  .destellos i { width: 200px; height: 200px; }

  .cifras { max-width: 900px; justify-self: center; width: 100%; }
  .cifra { padding: 24px 8px; }
  .cifra b { font-size: 38px; }

  .titulo-seccion { font-size: 12px; }
  .escena-reels { height: 600px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .reel { left: -135px; width: 270px; }

  .lanzamiento { grid-template-columns: 210px 1fr; padding: 18px; }
  .info-lanz h2 { font-size: 30px; }

  .cinta span { font-size: 34px; }
  .cinta { padding: 16px 0; }

  .videos { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .video:first-child { grid-column: span 2; grid-row: span 2; }
  .video:first-child .pie b { font-size: 18px; }

  .galeria { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 18px; }
  .foto:first-child { grid-row: span 2; aspect-ratio: auto; }

  #s-prensa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  #s-prensa > .titulo-seccion, #s-prensa > .dossier { grid-column: 1 / -1; }

  .interludio { height: 110vh; margin-block: -30vh; }
  .contratar-texto b { font-size: 24px; }
  .bio { font-size: 17px; }
}
