/* Variables para fácil mantenimiento */
:root {
    --rosa: #F8B1B5;
    --azul-mar: #00A8C6;
    --amarillo: #FFD700;
    --blanco: #ffffff;
    --fuente-titulos: 'Fredoka', cursive;
    --fuente-texto: 'Quicksand', sans-serif;
}

/* Reset de errores comunes */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--fuente-texto); background: #E0F7FA; overflow-x: hidden; line-height: 1.6; }

/* Burbujas en CSS puro (Sin lag) */
.ocean-container { position: fixed; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.bubble-css {
    position: absolute; bottom: -100px; background: rgba(255,255,255,0.4);
    border-radius: 50%; animation: rise 12s infinite linear;
}
.bubble-css:nth-child(1) { left: 10%; width: 40px; height: 40px; }
.bubble-css:nth-child(2) { left: 30%; width: 20px; height: 20px; animation-delay: 2s; }
.bubble-css:nth-child(3) { left: 70%; width: 50px; height: 50px; animation-delay: 4s; }
@keyframes rise {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-120vh); opacity: 0; }
}

/* Header Responsivo */
header { background: var(--rosa); padding: 2rem 1rem; text-align: center; border-bottom: 8px solid var(--amarillo); }
.logo-wrap img { border: 4px solid var(--blanco); border-radius: 50%; max-width: 150px; height: auto; }
h1 { font-family: var(--fuente-titulos); color: white; text-shadow: 2px 2px var(--azul-mar); font-size: 2.5rem; }

nav ul { list-style: none; display: flex; justify-content: center; gap: 10px; margin-top: 1rem; flex-wrap: wrap; }
nav a { color: white; text-decoration: none; font-weight: bold; padding: 8px 15px; background: rgba(0,0,0,0.1); border-radius: 20px; }
nav a:hover { background: var(--amarillo); color: var(--azul-mar); }

/* Contenedores y Tarjetas */
.container { max-width: 900px; margin: 2rem auto; padding: 0 1rem; }
.card { background: white; padding: 2rem; border-radius: 30px; margin-bottom: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-left: 10px solid var(--azul-mar); }
.border-yellow { border-left-color: var(--amarillo); }
.border-pink { border-left-color: var(--rosa); }

/* Tablas amigables para móvil */
.table-scroll { overflow-x: auto; margin-top: 1rem; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 400px; }
.admin-table th { background: var(--azul-mar); color: white; padding: 12px; text-align: left; }
.admin-table td { padding: 12px; border-bottom: 1px solid #eee; }

/* Letras de la canción */
.lyrics-box { background: #fff5f6; padding: 1.5rem; border-radius: 20px; text-align: center; font-style: italic; }

/* Reproductor Flotante */
.player-widget {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: white; padding: 10px 20px; border-radius: 50px;
    display: flex; align-items: center; gap: 15px; border: 3px solid var(--amarillo);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2); z-index: 100;
}
.ctrl-btn { border: none; background: var(--azul-mar); color: white; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; }
.ctrl-btn.secondary { background: var(--amarillo); color: #333; }

/* Estilos del Botón de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 85px; /* Ubicado arriba del reproductor de música */
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.whatsapp-icon {
    font-size: 1.5rem;
}

/* Ocultar el texto en pantallas muy pequeñas para no saturar */
@media (max-width: 480px) {
    .whatsapp-text {
        display: none;
    }
    .whatsapp-float {
        bottom: 100px;
        padding: 15px;
        border-radius: 50%;
    }
}