:root {
    --primary: #00d4ff;
    --accent: #ef4444;
    --dark: #0f172a;
    --card: #1e293b;
    --text: #f8fafc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: var(--dark); color: var(--text); line-height: 1.6; padding-bottom: 90px; }

/* Header */
header { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background: rgba(15, 23, 42, 0.9); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(10px); }
.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: 2px; }
.logo span { color: var(--primary); }
nav ul { display: flex; list-style: none; gap: 20px; }
nav a { color: white; text-decoration: none; font-weight: 500; transition: 0.3s; }
nav a:hover { color: var(--primary); }

/* Carrusel */
.carousel-container { position: relative; height: 450px; overflow: hidden; background: #000; }
.carousel-slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: 0.8s ease-in-out; }
.carousel-slide.active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); }
.carousel-caption { position: absolute; bottom: 60px; left: 5%; animation: fadeInUp 0.5s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.car-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; padding: 15px; cursor: pointer; z-index: 10; border-radius: 50%; margin: 0 10px; }
#nextBtn { right: 0; }

/* Secciones */
.section-title { text-align: center; margin: 40px 0; font-size: 2rem; }
.table-container { padding: 0 5%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 10px; overflow: hidden; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #334155; }
th { background: var(--primary); color: var(--dark); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 50px 5%; }
.form-container input, .form-container textarea { width: 100%; padding: 12px; margin: 10px 0; background: var(--card); border: 1px solid #334155; color: white; border-radius: 5px; }
.btn-send { background: var(--primary); border: none; padding: 12px 25px; font-weight: bold; cursor: pointer; border-radius: 5px; width: 100%; }
.social-icons { display: flex; gap: 20px; margin-top: 20px; font-size: 2.5rem; }
.social-icons a { color: var(--text); transition: 0.3s; }
.social-icons a:hover { color: var(--primary); transform: translateY(-5px); }

/* REPRODUCTOR */
.player-bar { position: fixed; bottom: 0; width: 100%; height: 85px; background: #0b1120; border-top: 3px solid var(--primary); display: flex; justify-content: space-between; align-items: center; padding: 0 5%; z-index: 2000; }
.now-playing { display: flex; align-items: center; gap: 15px; min-width: 200px; }
.status-dot { width: 12px; height: 12px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 10px #22c55e; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

.spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,0.2); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none; }

.visualizer { display: flex; align-items: flex-end; gap: 3px; height: 25px; opacity: 0; }
.visualizer.active { opacity: 1; }
.visualizer span { width: 4px; background: var(--primary); animation: wave 1s infinite; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 25px; } }

.play-btn { width: 55px; height: 55px; border-radius: 50%; border: none; background: var(--primary); font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.play-btn.playing { background: var(--accent); color: white; }
.vol-box { display: flex; align-items: center; gap: 10px; }

/* Responsive */
@media (max-width: 768px) {
    header { flex-direction: column; padding: 10px; }
    .contact-grid { grid-template-columns: 1fr; }
    .carousel-container { height: 250px; }
    .player-bar { height: auto; padding: 10px; flex-wrap: wrap; justify-content: center; }
    .now-playing { width: 100%; justify-content: center; margin-bottom: 5px; }
    .visualizer { display: none; }
    .vol-box { display: none; }
}
.dual-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilo Play */
.control-btn.play {
    background: var(--primary);
    color: var(--dark);
}

/* Estilo Pausa */
.control-btn.pause {
    background: #334155;
    color: white;
    opacity: 0.5; /* Opaco cuando no se usa */
}

/* Efecto cuando están activos */
.control-btn.active-play {
    box-shadow: 0 0 15px var(--primary);
    transform: scale(1.1);
    opacity: 1;
}

.control-btn.active-pause {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    transform: scale(1.1);
    opacity: 1;
}

.control-btn:hover {
    transform: translateY(-2px);
}