/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
  font-family: 'Montserrat', sans-serif;
  color: #111;

  background:
    linear-gradient(rgba(244,208,0,0.85), rgba(0,0,0,0.85)),
    url('img/fondo-fortaleza.jpg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* EFECTO RESPIRACIÓN */
@keyframes fondoRespira {
    0% {
        background-size: 100%;
        filter: brightness(1);
    }
    100% {
        background-size: 110%;
        filter: brightness(1.05);
    }
}

/* CABECERA */
.header {
    padding: 16px 20px 10px;
    text-align: center;
    animation: fadeDown 0.6s ease;
}

.header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 50px;
    letter-spacing: 2px;
}

.header p {
    font-size: 14px;
    font-weight: 600;
}

/*CONTENIDO*/
.main {
    padding: 14px;
    padding-bottom: 100px; /* 🔥 espacio para que no tape contenido */
}

/* BOTONES BASE */
.btn {
    display: block;
    margin: 18px 0;
    padding: 22px;
    text-align: center;
    text-decoration: none;
    color: white;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;

    border-radius: 10px;
    box-shadow: 6px 6px 0 #111;

    opacity: 0;
}

/* BOTÓN 1 */
.btn:nth-child(1) {
    animation: pop1 0.6s ease forwards;
    animation-delay: 0.1s;
}

/* BOTÓN 2 */
.btn:nth-child(2) {
    animation: pop2 0.6s ease forwards;
    animation-delay: 0.2s;
}

/* BOTÓN 3 */
.btn:nth-child(3) {
    animation: pop3 0.6s ease forwards;
    animation-delay: 0.3s;
}

/* BOTÓN 4 */
.btn:nth-child(4) {
    animation: pop4 0.6s ease forwards;
    animation-delay: 0.4s;
}

/* EFECTO PERCUSIÓN (rebote + vibración leve) */

@keyframes pop1 {
    0%   { opacity:0; transform: translateY(40px) rotate(-2deg) scale(0.9); }
    60%  { transform: translateY(-5px) rotate(-2deg) scale(1.03); }
    75%  { transform: translateY(2px) rotate(-2deg); }
    85%  { transform: translateY(-1px) rotate(-2deg); }
    100% { opacity:1; transform: translateY(0) rotate(-2deg); }
}

@keyframes pop2 {
    0%   { opacity:0; transform: translateY(40px) rotate(2deg) scale(0.9); }
    60%  { transform: translateY(-5px) rotate(2deg) scale(1.03); }
    75%  { transform: translateY(2px) rotate(2deg); }
    85%  { transform: translateY(-1px) rotate(2deg); }
    100% { opacity:1; transform: translateY(0) rotate(2deg); }
}

@keyframes pop3 {
    0%   { opacity:0; transform: translateY(40px) rotate(-1.5deg) scale(0.9); }
    60%  { transform: translateY(-5px) rotate(-1.5deg) scale(1.03); }
    75%  { transform: translateY(2px) rotate(-1.5deg); }
    85%  { transform: translateY(-1px) rotate(-1.5deg); }
    100% { opacity:1; transform: translateY(0) rotate(-1.5deg); }
}

@keyframes pop4 {
    0%   { opacity:0; transform: translateY(40px) rotate(1.5deg) scale(0.9); }
    60%  { transform: translateY(-5px) rotate(1.5deg) scale(1.03); }
    75%  { transform: translateY(2px) rotate(1.5deg); }
    85%  { transform: translateY(-1px) rotate(1.5deg); }
    100% { opacity:1; transform: translateY(0) rotate(1.5deg); }
}

/* HOVER */
.btn:hover {
    transform: scale(1.05) rotate(0deg);
}

/* CLICK */
.btn:active {
    transform:translate(3px,3px) rotate(0deg);
  box-shadow:2px 2px 0 #000;
}

/* COLORES */
.practica { background: #E53935; }
.clases { background: #2E7D32; }
.eventos { background: #1E88E5; }
.tienda { background: #111; }


html, body {
  margin: 0;
  padding: 0;
  height: auto;       /* 🔥 NO 100% */
  overflow-x: hidden; /* solo horizontal */
}

/* MENÚ */

.nav{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;

    background: #000;
    display: flex;
    justify-content: space-around;
    align-items: center;

    border-top:2px solid #FFD600;

    z-index:9999;
}

.nav-item {
    color: white;
    text-align: center;
    font-size: 11px;
    font-weight:600;
	line-height:1.2;
}

.nav-item span {
    display: block;
    font-size: 10px;
}

.nav-item.active {
    color: #F4D000;
}

.nav-item::first-line{
    font-size:20px;
}

/* ANIMACIONES */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#saludo{
  margin-top:14px;
  margin-left:10px;

  font-family:'Bebas Neue', sans-serif;
  font-size:16px;
  letter-spacing:1px;

  display:inline-block;
  padding:6px 12px;

  background:#000;
  color:#FFD600;

  transform:rotate(1deg);
  box-shadow:4px 4px 0 #000;
}

/* BOTONES PRÁCTICA */

.btn.red{background:#E53935;}
.btn.green{background:#2e7d32;}
.btn.blue{background:#1e88e5;}
.btn.yellow{background:#f2c200;color:#000;}
.btn.dark{background:#111;}

.main .btn{
    transform:rotate(-1deg);
    box-shadow:6px 6px 0 #000;
}

.select-lab{
  width:100%;
  padding:10px;
  border-radius:10px;
  margin-bottom:15px;
  font-size:16px;
}

/* LAB */
#labWrapper{
  display:flex;
  align-items:flex-start;
  margin-top:15px;
}

#labInstruments{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-right:10px;
  min-width:90px;
}

.lab-inst{
	
  display:flex;
  height:32px;
  align-items:center;
  gap:8px;
  cursor:pointer;
  color:#fff;
  font-size:11px;
  font-weight:600;
}

.lab-inst.muted{
  opacity:0.3;
}

#labContainer{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.lab-row{
  display:grid;
  height:32px;
  gap:4px;
  align-items:center;
}

/* base */
.lab-cell{
 width:100%;
  padding-top:100%;
  border-radius:4px;
  position:relative;
  background:#1a1a1a;
}

.lab-cell.hit{ 
background:#FFD600; 
position:relative;
  background:#1a1a1a;
  }
  
.lab-cell.ghost{
  background:#888;
}

/* línea */
.step{
  border-left:2px solid rgba(255,214,0,0.5);
}

.lab-cell.pulse{
  outline:2px solid white;
}

.lab-controls{
  display:flex;
  gap:10px;
  margin-top:20px;
}

#labPlay{
  background:#E53935;
  color:white;
}

#labStop{
  background:#FFD600;
  color:black;
}

/* contador */
.lab-counter{
  color:#fff;
  font-weight:800;
  font-size:11px;
  text-shadow:0 1px 2px rgba(0,0,0,0.5);
}

.bpm-control{
  background:#111;
  color:#FFD600;
  padding:8px 10px;
  border-radius:10px;
  margin-bottom:10px;
  font-weight:600;
}

.beat-bg{
  background: rgba(255,255,255,0.05);
}


/* fondo por tiempo (sutil) */
.lab-cell.beat-bg{
  background:#232323;
}

/* golpes */
.lab-cell.hit{
  background:#FFD600;
}

/* RITMOS */

.ritmo-card{
  background:#111;
  color:white;
  padding:16px;
  border-radius:14px;
  margin-bottom:14px;
  box-shadow:5px 5px 0 #000;
}

.ritmo-card h3{
  font-family:'Bebas Neue';
  font-size:26px;
  margin-bottom:10px;
}

.ritmo-buttons{
  display:flex;
  gap:10px;
}

.btn.small{
  font-size:18px;
  padding:10px;
}



/* botón oscuro para contraste */
.btn.dark{
  background:#111;
  color:white;
}

/* video embebido */
.video-container{
  margin-top:10px;
}

.video-container iframe{
  width:100%;
  height:180px;
  border-radius:10px;
}

.class-card{
  display:flex;
  gap:10px;
  padding:10px;
  margin-bottom:10px;
  border-radius:10px;
  background:#111;
  border-left:4px solid #FFD600;
}

.class-time{
  font-weight:bold;
  color:#FFD600;
  min-width:60px;
}

.class-title{
  font-weight:600;
  color:white;
}

.class-loc{
  font-size:12px;
  opacity:0.7;
  color:white;
}
/* TARJETAS VIVAS */
.event-card{
  padding:18px;
  border-radius:16px;
  margin-bottom:16px;
  color:#000;
  font-weight:600;
}

/* colores alternos tipo Manu Chao */
.event-card:nth-child(4n+1){
  background:#FFD600;
}
.event-card:nth-child(4n+2){
  background:#FF3B3B;
  color:#fff;
}
.event-card:nth-child(4n+3){
  background:#00C853;
  color:#000;
}
.event-card:nth-child(4n+4){
  background:#00B0FF;
  color:#000;
}

/* contenido */
.event-title{
  font-family:'Bebas Neue';
  font-size:26px;
  margin-bottom:6px;
}

.event-date{
  font-weight:bold;
  font-size:15px;
}

.event-time{
  font-size:14px;
}

.event-loc{
  font-size:13px;
  margin-top:4px;
}

/* CTA */
.event-cta{
  margin-top:10px;
  font-size:14px;
  font-weight:bold;
}
/*.btn-back{
  position:fixed;
  top:12px;
  left:10px;
  z-index:999;

  background:#FFD600;
  color:#000;

  font-family:'Bebas Neue';
  font-size:20px;

  padding:6px 12px;

  transform:rotate(-12deg);
  box-shadow:4px 4px 0 #000;

  border-radius:4px;

  text-decoration:none;
  cursor:pointer;
}*/

.btn-back{
  position:fixed;
  top:10px;
  left:10px;
  z-index:999;

  background:#FFD600;
  color:#000;

  font-family:'Bebas Neue', sans-serif;
  font-size:18px;
  letter-spacing:1px;

  padding:8px 12px;
  border-radius:4px;

  transform:rotate(-8deg);
  box-shadow:4px 4px 0 #000;

  text-decoration:none;
}

/* efecto hover */
.btn-back:hover{
  transform:rotate(-6deg) scale(1.05);
}

/* click */
.btn-back:active{
   transform:translate(2px,2px) rotate(-12deg);
  box-shadow:2px 2px 0 #000;
}

.page-header{
  margin-top:50px;
  padding:10px 14px;

  font-family:'Bebas Neue';
  font-size:28px;

  display:inline-block;

  transform:rotate(-2deg);
  box-shadow:4px 4px 0 #000;
}

.eventos{ background:#1E88E5; color:#fff; }
.practica{ background:#E53935; color:#fff; }
.clases{ background:#2E7D32; color:#fff; }
.tienda{ background:#111; color:#FFD600; }
.practicarahora{ background:#E53935; color:#fff; }
.laboratorio{ background:#FFD600; color:#fff; }
.ejercicios{ background:#2E7D32; color:#fff; }
.ritmos{ background:#1E88E5; color:#fff; }

.box{
  padding:16px;
  border-radius:12px;
  box-shadow:5px 5px 0 #000;
  margin-top:12px;
}

.btn-main{
  display:block;
  margin-top:20px;
  padding:16px;

  text-align:center;
  font-family:'Bebas Neue';
  font-size:20px;

  border-radius:10px;
  box-shadow:5px 5px 0 #000;

  transform:rotate(-1deg);
  text-decoration:none;
}

.title-main{
  font-family:'Bebas Neue';
  font-size:48px;
  letter-spacing:2px;

  display:inline-block;
  padding:6px 12px;

  background:#FFD600;
  color:#000;

  transform:rotate(-2deg);
  box-shadow:6px 6px 0 #000;

  margin-bottom:6px;
}

.title-sub{
  font-size:10px;
  font-weight:700;
  letter-spacing:2px;
  opacity:0.8;
  margin-left:2px;
  margin-top:5px;
}
.title-user{
  margin-top:6px;

  font-family:'Bebas Neue';
  font-size:44px;

  display:inline-block;
  padding:8px 14px;
letter-spacing:2px; /* 🔥 clave visual */

  background:#000;
  color:#FFD600;

  transform:rotate(1deg);
  box-shadow:4px 4px 0 #000;
}

.filters{
  display:flex;
  gap:8px;
  overflow:auto;
  margin:10px 0;
}

.filters button{
  background:#111;
  color:#fff;
  border:none;
  padding:8px 12px;
  border-radius:20px;
  font-weight:700;
  font-size:12px;
}

.filters button.active{
  background:#FFD600;
  color:#000;
}

.shop-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:#111;
  border-radius:12px;
  padding:10px;
  text-align:center;
}

.shop-item img{
  width:80px;
  height:80px;
  object-fit:cover;
  border-radius:10px;
  margin-bottom:6px;
}

.shop-item .info{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.title{
  font-size:13px;
  color:#fff;
  font-weight:700;
}

.price{
  color:#FFD600;
  font-weight:bold;
  margin:4px 0;
}

.bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:4px;
}


.btn.buy{
  background:#FFD600;
  color:#000;
  font-weight:800;
  padding:6px 12px;
  border-radius:6px;
  text-decoration:none;
  font-size:12px;
}

#listaProductos{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
/* ===== BOX COLORES (MÚSICA / GENERAL) ===== */

.box{
  padding:16px;
  border-radius:12px;
  margin-bottom:16px;
  box-shadow:4px 4px 0 #000;
  transform:rotate(-0.5deg);
}

/* 🎧 COLOR 1 */
.color1{
  background:#FFD600;
  color:#000;
}

/* 🔥 COLOR 2 */
.color2{
  background:#E53935;
  color:#fff;
}

/* 🌿 COLOR 3 */
.color3{
  background:#43A047;
  color:#fff;
}

/* ⚡ COLOR 4 (por si lo usas más adelante) */
.color4{
  background:#000;
  color:#FFD600;
}
.box h3{
  font-family:'Bebas Neue';
  letter-spacing:1px;
}

.box p{
  font-family:'Montserrat';
  font-size:14px;
}

/* BOTÓN + */
.info-btn{
  position:absolute;
  top:18px;
  right:18px;

  background:#FFD600;
  color:#000;

  font-weight:bold;
  font-size:22px;

  padding:6px 12px;

  transform:rotate(10deg);
  box-shadow:3px 3px 0 #000;

  cursor:pointer;
  z-index:1000;
}

/* OVERLAY */
#overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.5);

  display:none;
  z-index:998;
}

#overlay.active{
  display:block;
}

/* PANEL */
.info-panel{
  position:fixed;
  top:0;
  right:-100%;
  width:80%;
  height:100%;

  background:#000;
  color:#FFD600;

  padding:20px;
  transition:0.3s;

  z-index:999;
}

.info-panel.active{
  right:0;
}

/* OPCIONES */
.info-box{
  background:#FFD600;
  color:#000;

  padding:15px;
  margin-bottom:12px;

  transform:rotate(-2deg);

  font-family:'Bebas Neue';
  font-size:22px;

  cursor:pointer;
}
.pagos-btn{
  background:#FFD600;
  color:#000;

  font-family:'Bebas Neue';
  font-size:16px;

  padding:6px 10px;

  transform:rotate(8deg);
  box-shadow:3px 3px 0 #000;

  cursor:pointer;
}

.header-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px;
  margin-top:10px;
}

/* ===== MODAL GLOBAL ===== */

#overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.5);
  display:none;
  z-index:998;
}

#overlay.active{
  display:block;
}

.modal-global{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  display:none;
  
  align-items:flex-start; /* 👈 cambio clave */
  justify-content:center;
  padding-top:140px; /* 👈 ajusta aquí altura */

  z-index:999;
}

.modal-global.active{
  display:flex;
}

.modal-box{
  position:relative;
  background:#FFD600;
  color:#000;
  padding:20px;
  border-radius:12px;
  width:85%;
  max-width:400px;

  box-shadow:6px 6px 0 #000;
  transform:rotate(-1deg);
}

.modal-box h2{
  font-family:'Bebas Neue';
  margin-bottom:12px;
}

.modal-box p{
  margin-bottom:8px;
  font-weight:600;
}

.cerrar{
  position:absolute;
  top:8px;
  right:12px;
  font-size:18px;
  cursor:pointer;
}

.modal-box{
  max-height:80vh;
  overflow-y:auto;
  padding-bottom:40px;
}

.modal-global{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  display:none;

  align-items:flex-start;
  justify-content:center;
  padding-top:40px;

  z-index:999;
}

.modal-global.active{
  display:flex;
}
.modal-box .btn{
  opacity:1 !important;
  animation:none !important;
}

.exp-video video{
  width:100%;
  border-radius:10px;
  margin-bottom:15px;
}

.galeria{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.exp{
  position:relative;
}

.exp img{
  width:100%;
  border-radius:10px;
  box-shadow:4px 4px 0 #000;
}

.exp p{
  position:absolute;
  bottom:8px;
  left:10px;
  background:#000;
  color:#FFD600;
  padding:4px 8px;
  font-size:14px;
  font-weight:bold;
  border-radius:4px;
}

/* primera imagen más potente */
.exp:first-child img{
  height:220px;
  object-fit:cover;
}

/*#splashApp{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:linear-gradient(180deg,#000 0%, #111 100%);
  color:#FFD600;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  flex-direction:column;
}

#splashApp h1{
  font-family:'Bebas Neue';
  font-size:64px;
  letter-spacing:3px;
}

#splashApp p{
  margin-top:10px;
  font-weight:600;
  opacity:0.8;
}*/

#splashApp{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

#logoSplash{
  width:140px;
  opacity:0;
  transform:scale(0.9);
  animation:logoEntrada 1.2s ease-out forwards;
}

@keyframes logoEntrada{
  0%{
    opacity:0;
    transform:scale(0.9);
  }
  100%{
    opacity:1;
    transform:scale(1);
  }
}

:root {
  --vh: 1vh;
}

.class-day-title{
  color:#ffffff;
  font-weight:700;
}

.class-day.today{
  background: rgba(255,214,0,0.15);
  padding:10px;
  border-radius:10px;
  box-shadow:0 0 0 2px #FF4400;
}

.class-day.today .class-day-title{
  color:#FF4400;
}