body {
  background: url("../images/fondo.jpeg") no-repeat center center fixed;
  background-size: cover; /* hace que la imagen cubra toda la pantalla */
  font-family: 'Arial', sans-serif;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;       
  margin: 0;
  overflow: hidden;    
}

  .container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
  }

  /* PLAYER */
  .player {
    background: #494d51;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .player img {
    width: 140px; height: 140px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 0 25px rgba(233,30,99,0.6);
  }
  .player h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
  .player p { color: #aaa; font-size: 0.9rem; margin-bottom: 1rem; }

  .controls { display: flex; gap: 1.2rem; margin-bottom: 1rem; }
  .controls button {
    background: none;
    border: 2px solid white;
    border-radius: 50%;
    width: 52px; height: 52px;
    font-size: 1.3rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
  }
  .controls button:hover { background: var(--accent); border-color: var(--accent); }

  .progress {
    width: 100%; height: 8px; border-radius: 6px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
    margin-bottom: 1rem;
  }
  .progress span {
    display:block; height:100%;
    background: #af1e28;
    width: 40%;
  }

  /* SLIDER */
.slider {
  position: relative;
  overflow: hidden; 
  border-radius: 18px;
}

.slides {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.slides video {
  width: 100%;       
  flex-shrink: 0;    
  object-fit: cover; 
  border-radius: 18px;
  height: 400PX;
}
  .overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
  }

  .slider-btn {
    position:absolute; top:50%; transform:translateY(-50%);
    background: rgba(255,255,255,0.2);
    border:none; border-radius:50%;
    width:44px; height:44px;
    font-size:1.3rem; color:white;
    display:none;
  }
  .slider:hover .slider-btn { display:block; }
  .prev { left: 10px; }
  .next { right: 10px; }

  /* BOTONES APP */
  .buttons { display:flex; gap:1rem; margin-top:1rem; flex-wrap:wrap; }
  .buttons a {
    flex:1;
    padding:1rem;
    border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    gap:0.6rem;
    color:white; font-weight:600; text-decoration:none;
    transition: transform 0.2s;
    background-color: #494d51;
  }
  .buttons a:hover { transform: translateY(-3px); }
  .android { background: linear-gradient(90deg, #00c853, #64dd17); }
  .ios { background: linear-gradient(90deg, #000, #555); }
/* Redes sociales flotantes */
.social-sidebar {
  position: absolute;
  top: 50%;
  right: 25px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1000;
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.social-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.social-icon:hover {
  background: #fff;
  transform: scale(1.15);
}
.vol-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.vol-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

.volume-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.3);
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2196f3;
  cursor: pointer;
}
.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2196f3;
  cursor: pointer;
}
/* === BOTONES APP flotantes en móvil === */
.app-sidebar {
  position: fixed;
  top: 50%;
  left: 15px; 
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1000;
  display: none; 
}

.app-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.app-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.app-icon:hover {
  background: #fff;
  transform: scale(1.15);
}

/* Solo mostrar en pantallas pequeñas (móviles) */
@media (max-width: 900px) {
  .app-sidebar { display: flex; }
 
}
@media(max-width: 700px){
.social-sidebar {
    position: absolute;
    top: 42%;
    right: 28%;
    transform: translateY(-60%);
    display: flex;
    flex-direction: row;
    gap: 18px;
    z-index: 1000;
}
.slides video {
    object-fit: contain;  
    background: black;  
    height: unset;
  }


}
  /* RESPONSIVE */
@media(max-width: 900px){
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: 27% 45%; 
    height: 100vh;
    gap: 5rem;
  }

  .player {
    order: 1; 
    height: 100%;
    justify-content: center;
  }

  .slider {
    order: 2;
    height: 100%; 
  }

  .buttons {
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 0;
  }
  .buttons a {
	font-size: 12px;
}

  .app-sidebar { display: flex; }
  
}
@supports (-webkit-touch-callout: none) {
  #volume-controls,
  #volume-controls input[type="range"] {
    display: none !important;
  }
}

/* SOLO para pantallas grandes */
@media (min-width: 1400px) {
  .container {
    width: 90vw;    
    grid-template-columns: 450px 1fr;       
    max-width: 1800px;     
    gap: 3rem;
  }

  .player{
    justify-content: center;
  }

  .player img {
    width: clamp(140px, 12vw, 200px);
    height: clamp(140px, 12vw, 200px);
  }

  .player h3 {
    font-size: 2rem;
  }

  .player p {
    font-size: 1.2rem;
  }

  .controls button {
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
  }

  /* Videos del slider */
  .slides video {
    height: clamp(350px, 35vw,700px);
     object-fit: unset;
  }

  /* Botones de descarga */
  .buttons a {
    font-size: 1.1rem;
    padding: 1.2rem;
  }
}