@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Shadows+Into+Light&display=swap');

ul,ol, li, a{
  text-decoration: none;
  list-style: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
button {
  all: unset;
  cursor: pointer;
  font-size: 16px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}
button:focus {
  background-color: var(--color-primario);
  border-radius: 50%;
  border: 5px solid var(--color-primario);
}
button:focus i, 
button:active i { color: var(--color-repro) !important; }
button i{ color: var(--color-secundario); }

a{ text-decoration: none; color: #fff; }

#tarjeta-plugin input[type="range"] {
  -webkit-appearance: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}
main { display: block; width: 100%; }

.contenedor-tarjeta {
  background-color: var(--color-primario);
  color: var(--color-secundario);
  display: flex;
  flex-direction: column;
}

/* Contenedor que permite scroll */
.tarjeta-contenedor {
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.contenedor-tarjeta p,h1,h2,h3{ text-align: center; }

.titulo-h1{ color: var(--color-secundario); }

.video-fondo {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  z-index: -100; /* fondo real */
}

/* Secciones */
.seccion {
  font-weight: 400;
  font-style: normal;
  width: 100%;
  height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  font-size: 1rem; gap: 20px;
  scroll-snap-align: start;
}
.hidden-lista { display: flex !important; opacity: 0 !important; visibility: hidden !important; max-height: 0 !important; }

.contenedor-tarjeta .seccion .titulo-h1{ font-size: 1.5rem; }
.contenedor-tarjeta .seccion h2{ font-size: 1rem; color: var(--color-secundario); }

.tit-art-img{ display: flex; flex-direction: column; gap: 20px; justify-content: center; align-items: center; }
.tit-art-img .titulo{ text-align: center; }
.tit-art-img img{
  width: 250px; border-radius: 50%; border: 4px solid var(--color-secundario);
}

.botones-control{
  position: relative; display: flex; gap: 15px;
  justify-content: center; align-items: center;
}

#progress-container {
  display: flex; justify-content: space-between;
  width:100%; background: var(--color-tercer);
  height: 10px; gap: 5px; cursor: pointer; overflow: hidden;
}
.barra-tiempo {
  display: flex; flex-direction: column; width: 300px;
  justify-content: center; align-items: center; gap: 5px;
}
#time-display {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  box-sizing: border-box;
}
#time-display span { font-family: sans-serif; font-size: 0.9rem; font-weight: 600; }
#progress-bar { width: 0%; height: 100%; background: var(--color-repro); transition: width 0.1s linear; }

#volume-container{ display: flex; justify-content: center; align-items: center; gap: 5px; }
.volumen { position: relative; display: inline-block; }
#volume-icon { cursor: pointer; }
#volume-icon i{ color: var(--color-secundario); }

.volume-box {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 150px; background-color: var(--color-opacidad);
  border-radius: 8px; padding: 10px; display: flex; justify-content: center; align-items: center;
  box-shadow: 0 4px 6px var(--color-opacidad); display: none;
}
.volume-box.active { display: flex; }

#volume-slider {
  transform: rotate(-90deg); transform-origin: center;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--color-repro), var(--color-primario));
  border-radius: 5px; outline: none; transition: background 0.3s ease-in-out;
}
#volume-slider:hover { background: linear-gradient(to right, var(--color-repro), var(--color-primario)); }
#volume-slider::-webkit-slider-thumb{
  -webkit-appearance: none; width: 15px; height: 15px; background: var(--color-primario); border-radius: 50%;
  cursor: pointer; transition: background 0.3s ease-in-out, transform 0.2s ease;
}
#volume-slider::-webkit-slider-thumb:hover { background: var(--color-repro); transform: scale(1.2); }

input[type=range]{
  -webkit-appearance: none; width: auto !important; margin: 5.7px 0; padding: 0; border: none;
}

#playlist {
  border-radius: 20px 20px 0 0; margin: 0; overflow: hidden;
  max-height: 320PX; max-width: 375px; display: flex; align-items: flex-start; flex-direction: column; gap: 10px;
  position: absolute; bottom: 50px; left: 0; right: 0; background-color: var(--color-opacidad);
  padding: 30px 20px 30px 20px; overflow-y: scroll; scrollbar-width: none; justify-content: flex-start;
  opacity: 1; visibility: visible; transition: opacity 0.3s, visibility 0.3s, max-height 0.3s;
}

#metadata{ display: flex; flex-direction: column; justify-content: center; align-items: center; }
.titulo{ color:var(--color-secundario) !important; font-size: 1.5rem; }
.artista{ color:var(--color-secundario) !important; font-size: 1rem; }

.boton-seccion{
  font-weight: 700; text-decoration: none; color: var(--color-primario);
  padding: 5px 10px; border: 3px solid var(--color-secundario); text-align: center; border-radius: 20px; background-color: var(--color-repro);
}

/* Galería */
.galeria {
  position: relative; width: 350px; padding: 20px; background: var(--color-opacidad);
  border-radius: 10px; box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
  display: flex; flex-direction: column; align-items: center;
}
.foto-grande {
  width: 300px; height: 200px; object-fit: cover; border: 4px solid white;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3); transform: rotate(-3deg);
}
.contenedor-pequenas {
  position: relative; width: 100%; margin-top: 10px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.foto-pequena {
  width: 80px; height: 80px; object-fit: cover; border: 3px solid white;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); transition: transform 0.3s ease-in-out;
}
.foto-pequena:nth-child(1) { transform: rotate(-10deg); }
.foto-pequena:nth-child(2) { transform: rotate(5deg); }
.foto-pequena:nth-child(3) { transform: rotate(-5deg); }
.foto-pequena:hover { transform: scale(1.2) rotate(0deg); z-index: 10; }

.carta{
  border-radius: 20px; background-color: var(--color-opacidad);
  width: 300px; height: 400px; overflow: hidden; overflow-y: scroll;
  box-shadow: -1px 4px 17px -6px rgba(18,18,18,0.83);
}
.carta p{ padding: 20px; font-size: 1.2rem; }

.nombre{ position: absolute; z-index: 3000; }
.nombre img { width: 300px; }

.boton{
  border: 3px solid var(--color-repro); padding: 50px; border-radius: 50%;
  color: var(--color-secundario);
}

/* ANIMACIONES */
@keyframes tracking-in-expand-fwd-top {
  0% { letter-spacing: -0.5em; transform: translateZ(-700px) translateY(-500px); opacity: 0; }
  40% { opacity: 0.6; }
  100% { transform: translateZ(0) translateY(0); opacity: 1; }
}
.jello-horizontal { animation: jello-horizontal 0.9s both; }
@keyframes jello-horizontal {
  0% { transform: scale3d(1, 1, 1); }
  30% { transform: scale3d(1.25, 0.75, 1); }
  40% { transform: scale3d(0.75, 1.25, 1); }
  50% { transform: scale3d(1.15, 0.85, 1); }
  65% { transform: scale3d(0.95, 1.05, 1); }
  75% { transform: scale3d(1.05, 0.95, 1); }
  100% { transform: scale3d(1, 1, 1); }
}

/* rebote + spin */
@keyframes bounce-then-spin {
  0% { transform: translateY(-500px) rotate(0deg); opacity: 0; }
  38% { transform: translateY(0) rotate(0deg); opacity: 1; }
  55% { transform: translateY(-65px) rotate(0deg); }
  72% { transform: translateY(0) rotate(0deg); }
  81% { transform: translateY(-28px) rotate(0deg); }
  90% { transform: translateY(0) rotate(0deg); }
  95% { transform: translateY(-8px) rotate(0deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.spinning {
  animation: bounce-then-spin 1.1s ease-out, spin 6s linear infinite;
  animation-delay: 0s, 1.1s;
}

/* Pulsación */
.imagen-pulsante { transition: transform 0.3s ease-in-out; animation: pulsar 1.5s infinite; }
@keyframes glitch {
  0% { transform: translate(0); opacity: 0; }
  20% { transform: translate(-3px, 3px); opacity: 1; }
  40% { transform: translate(3px, -3px); }
  60% { transform: translate(-3px, 3px); }
  80% { transform: translate(3px, -3px); }
  100% { transform: translate(0); }
}
.glitch-container { display: flex; flex-direction: column; gap: 10px; position: absolute; z-index: -10; }
.glitch-text {
  font-size: 4rem; font-weight: bold; text-transform: uppercase;
  position: relative; opacity: 0; animation: glitch 1.5s infinite alternate;
  color: transparent; -webkit-text-stroke: 1px rgb(33, 136, 255);
  font-family: Arial, Helvetica, sans-serif; font-style: italic;
}
.glitch-text:nth-child(1){ animation-delay: .5s; }
.glitch-text:nth-child(2){ animation-delay: 1s; }
.glitch-text:nth-child(3){ animation-delay: 1.5s; }
.glitch-text:nth-child(4){ animation-delay: 2s; }
.glitch-text:nth-child(5){ animation-delay: 2.5s; }
.glitch-text:nth-child(6){ animation-delay: 3s; }
.glitch-text:nth-child(7){ animation-delay: 3.5s; }
.glitch-text:nth-child(8){ animation-delay: 4s; }

@keyframes pulsar { 0%{ transform: scale(1);} 50%{ transform: scale(1.1);} 100%{ transform: scale(1);} }

.foto_dj_nombre{
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 100%; height: 100vh;
}
.foto-dj{
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
  top: 0; width: 100vw; height: auto;
}
.nompre_pos{ width: 100vw; position: absolute; bottom: 0; }
.nompre_pos img{ text-align: center; width: 300px; }

@media only screen and (min-width: 350px) {
  .tarjeta-contenedor { background-image: url('fondo betolin dj.webp'); }
  .glitch-text { font-size: 3.5rem; }
}
@media only screen and (min-width: 768px) {
  .foto-dj{ width: 300px; height: auto; }
  .nompre_pos{ text-align: center; width: 700px; overflow: hidden; }
}

.nombre_sobre_mi { width: 300px; }

.menu { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.glow-button{
  font-size: 0.7rem; font-weight: bold; color: #fff; background:#000; border: 5px solid rgba(0, 195, 255, 0.5);
  padding: 10px 25px; border-radius: 5px; position: relative; text-transform: uppercase; cursor: pointer; transition: .3s;
  box-shadow: 0 0 5px rgba(0, 255, 204, 0.3); animation: colorCycle 4s infinite alternate;
}
@keyframes colorCycle {
  0% { border-color: rgba(255,140,0,.8); box-shadow: 0 0 10px rgba(255,140,0,.6); color: #ff8c00; }
  33%{ border-color: rgba(255,69,0,.8);  box-shadow: 0 0 15px rgba(255,69,0,.6);  color: #ff4500; }
  66%{ border-color: rgba(255,0,0,.8);   box-shadow: 0 0 15px rgba(255,0,0,.6);   color: #910000; }
  100%{border-color: rgba(255,165,0,.8); box-shadow: 0 0 15px rgba(255,165,0,.6); color: #ffa500;}
}
.glow-button::before{
  content:""; position:absolute; top:0; left:0; width:100%; height:100%;
  background: rgba(0,255,204,.2); filter: blur(10px); border-radius:15px; z-index:-1; opacity:0; transition:opacity .3s;
}
.glow-button:hover{ text-shadow: 0 0 10px currentColor; }
.glow-button:hover::before{ opacity:1; }
.glow-button:active{ transform: scale(.95); box-shadow: 0 0 20px rgba(0,255,204,.8); }

.controller::before {
  content:''; position:absolute; top:45%; left:50%; width:75%; height:41%;
  background:url('jog-sb3.png') no-repeat center; background-size:contain; transform-origin:center; transform:translate(-50%,-50%);
}
.controller.playing::before { animation: spin 3s linear infinite; }

.button { position: absolute; width: 12vw; height: 12vw; max-width: 60px; max-height: 60px; background: rgba(255,0,0,.7); border-radius: 50%; cursor: pointer; }
.cue { left: 4%; top: 67%; } .play { left: 4%; top: 76%; } .sync { left: 4%; top: 58%; } .hotcue { left: 50%; top: 78%; }

.conten-servicios{ display: flex; flex-direction: column; gap: 30px; }
.conten-bio{ display: flex; flex-direction: column; gap: 30px; margin: 30px; }
.bio-conten{ position: relative; }
.t-bio, .t-servicios{
  font-size: 1rem !important; color: var(--color-secundario); position: absolute; background-color: #f99208;
  padding: .5rem; top: -16px; border-radius: 5px; left: -30px;
}
.biografia{
  width: 400px; max-width: 300px; background-color: var(--color-transparente);
  padding: 20px; border-radius: 20px; color: var(--color-blanco);
  line-height: 1.5; font-size: .8rem; z-index: 16; border: solid 1px var(--color-repro);
}
.foto-dj-bio{ position: absolute; width: 500px; transform: translateX(33%); z-index: -1; top: 35%; }

.bio{
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  width: 100vw; height: 100vh; justify-content: stretch; align-items: center; gap: 20px;
}
.secction-bio .sb-servicios{ color: var(--color-blanco) !important; text-align: center; list-style: none; padding-top: 20px; }
.sb-servicios li{ color: var(--color-blanco) !important; font-size: 1rem; line-height: 2; }

.titulo-cancion{ position: relative; background-color: #00ff00; }

.btn-contactos { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding: 20px 0; }
.repro-box { background-color: var(--color-transparente); padding: 20px; border-radius: 20px; }

.controller{
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; width: 100%; max-width: 600px; border-radius: 10px;
}
.pad-column{ display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pad-title{
  background: #000; color: #ff2c2c; font-weight: bold; padding: 5px; border: 2px solid #ff2c2c; border-radius: 5px;
  text-transform: uppercase; font-size: 6px; text-align: center; width: 85%;
}
.pad-mode{ background: #ddd; font-size: 10px; padding: 2px; font-weight: bold; width: 85%; text-align: center; }
.pad{
  width: 85%; aspect-ratio: 1 / 1; background: #191919; border-radius: 3px; position: relative;
  animation: pulse-border 2s cubic-bezier(0.4, 0, 1, 1) infinite; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.pad::before{
  content:""; position: absolute; top:-3px; left:-3px; right:-3px; bottom:-3px; border-radius: 5px;
  background: linear-gradient(45deg, red, #ff008c, red); background-size: 300% 300%; animation: border-animate 3s linear infinite; z-index: -1;
}
.pad-label{ color: #fff; font-size: 14px; }
@keyframes border-animate { 0%{background-position:0% 50%;} 50%{background-position:100% 50%;} 100%{background-position:0% 50%;} }
@media (max-width: 480px){ .controller{ grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 10px; } }

.btn-irarriba{ background-color: blue; }
.menu-repro{ display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-evenly; }

/* ===== DJ Poster (definición base) ===== */
.djposter{
  --dur-up: 18s;
  --dur-down: 20s;
  --stroke-white: #ffffff;
  --stroke-orange: #ff6a00;
  --stroke-w: 2px;
  --space: 22px;

  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: stretch;
  padding-right: clamp(10px, 2vw, 24px);
}
.djposter__name{ grid-column: 1; display:flex; align-items:center; justify-content:center; padding-left: clamp(10px, 2vw, 24px); }
.djposter__name span{
  writing-mode: vertical-rl; text-orientation: mixed; font-weight: 900; letter-spacing: .06em;
  font-size: clamp(36px, 5.5vw, 64px); color: #fff; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
.djposter__rails{ grid-column: 2 / span 2; display: grid; grid-auto-flow: column; gap: clamp(8px, 1.2vw, 16px); }
.djposter__rail{ position: relative; overflow: hidden; display: flex; justify-content: flex-end; }
.djposter__scroller{ display: flex; flex-direction: column; will-change: transform; transform: translateZ(0); }
.djposter__group{ display: flex; flex-direction: column; }
.djposter__item{
  writing-mode: vertical-rl; text-orientation: mixed; font-family: Anton, Impact, sans-serif;
  font-size: clamp(90px, 18vw, 220px); line-height: .88; letter-spacing: .02em;
  color: transparent; -webkit-text-fill-color: transparent; margin-bottom: var(--space);
}
.djposter__item:last-child{ margin-bottom: 0; }
.djposter__item::before{ content: var(--palabra); }
.djposter__item--white{ -webkit-text-stroke: var(--stroke-w) var(--stroke-white); }
.djposter__item--orange{ -webkit-text-stroke: var(--stroke-w) var(--stroke-orange); }
.djposter__group[aria-hidden="true"]{ margin-top: var(--space); }
@keyframes djScrollUp{ from{transform: translateY(0);} to{transform: translateY(-50%);} }
@keyframes djScrollDown{ from{transform: translateY(-50%);} to{transform: translateY(0);} }
.djposter__rail--up   .djposter__scroller{ animation: djScrollUp   var(--dur-up)   linear infinite; }
.djposter__rail--down .djposter__scroller{ animation: djScrollDown var(--dur-down) linear infinite; }
@media (hover: hover){ .djposter:hover .djposter__scroller{ animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce){ .djposter__scroller{ animation: none !important; } }

/* ============================================================
   OVERRIDE: Mostrar djposter SOLO en #portada y en z-index correcto
   ============================================================ */
#portada{ position: relative; z-index: 0; overflow: hidden;}            /* contenido normal */
#portada .djposter{
  position: absolute; inset: 0; pointer-events: none;
  z-index: -10;                                        /* delante del video (-100), detrás contenido (0) */
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: stretch; padding-right: clamp(10px, 2vw, 24px);
}
/* Limitar todos sus subnodos al ámbito de portada (evita fugas globales) */
#portada .djposter__name span{}
#portada .djposter__rails{}
#portada .djposter__rail{}
#portada .djposter__scroller{}
#portada .djposter__group{}
#portada .djposter__item{}
#portada .djposter__item--white{}
#portada .djposter__item--orange{}
@media (hover: hover){ #portada .djposter:hover .djposter__scroller{ animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce){ #portada .djposter__scroller{ animation: none !important; } }
