body { 
    font-family: Arial, sans-serif; 
    background: url('../imagenes/fondo-acceso-dioce.webp') no-repeat center center fixed; 
    background-size: cover; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    margin: 0; 
}
.login-box { 
    background: #3a2f2f9e; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    width: 100%; 
    max-width: 320px; 
    text-align: center; 
}
.login-box img.logo-login { width: 120px; height: auto; margin-bottom: 10px; }
.login-box h2 { margin-top: 0; margin-bottom: 5px; color: white; font-size: 22px; }
.login-box p.subtitulo { margin-top: 0; margin-bottom: 20px; color: white; font-size: 15px; }
.login-box input { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 16px; }
.login-box button { width: 100%; background: #d00000; color: white; border: none; padding: 12px; border-radius: 4px; cursor: pointer; font-size: 16px; font-weight: bold; }
.error { color: #dc3545; margin-bottom: 10px; font-weight: bold; }

/* Colores Personalizados para Eventos */
.dia-evento { font-weight: bold; }
.evento-naranja { background-color: #edd1ad !important; color: #d35400 !important; border: 1px solid #ff9800 !important; }
.evento-rojo { background-color: #ffb3ba !important; color: #721c24 !important; border: 1px solid #f5c6cb !important; }
.evento-amarillo { background-color: #ffffa8 !important; color: #856404 !important; border: 1px solid #ffeeba !important; }
.evento-lila { background-color: #d2baff !important; color: #5a32a3 !important; border: 1px solid #cbbdf2 !important; }
.evento-rosa { background-color: #ff91b6 !important; color: #c2185b !important; border: 1px solid #f8bbd0 !important; }

/* Colores para Entrenamientos */
.evento-gris { background-color: #e2e3e5 !important; color: #383d41 !important; border: 1px solid #ced4da !important; }
.evento-vino { background-color: #f3cfd6 !important; color: #581825 !important; border: 1px solid #722030 !important; }

/* Splash Screen Login */
#splash-login {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary, #001a36);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.splash-img-latido {
    width: 130px;
    height: 130px;
    object-fit: contain;
    animation: efectoLatido 1.4s infinite ease-in-out;
}

@keyframes efectoLatido {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    }
    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 0 18px rgba(204, 0, 0, 0.85));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    }
}

.splash-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: giroSplash 0.8s linear infinite;
}

@keyframes giroSplash {
    to { transform: rotate(360deg); }
}

#splash-login.desvanecer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}