body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), 
                url('js/Logo2021.png') no-repeat center center fixed;
    background-size: cover; /* Asegura que la imagen cubra todo el fondo */
    padding: 50px;
}
h1 {
    background: linear-gradient(45deg, #ff6b6b, #f8e473);
    color: white;
    padding: 20px 0;
    font-size: 2.5em;
    text-shadow: 2px 2px #555;
}
input, button {
    font-size: 20px;
    padding: 10px;
    margin: 10px;
}
.moneda {
    width: 110px;
    height: 110px;
    margin: 20px auto;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fffbe6 40%, #ffe066 60%, #ffd700 80%, #bfa100 100%),
                linear-gradient(135deg, #fffbe6 0%, #ffd700 60%, #bfa100 100%);
    box-shadow:
        0 4px 16px rgba(0,0,0,0.3),
        0 0 0 4px #ffe066 inset,
        0 0 0 8px #fffbe6 inset,
        2px 2px 8px #ffd700 inset,
        -2px -2px 8px #fffbe6 inset;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #bfa100;
    text-shadow: 1px 1px 2px #fffbe6, 0 0 8px #ffd700;
    border: 2px solid #ffd700;
    position: relative;
    transition: box-shadow 0.3s;
}
.moneda::after {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #bfa100;
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #fffbe6;
    pointer-events: none;
}
.moneda::before {
    content: "$";
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    color: #bfa100;
    font-weight: bold;
    text-shadow: 1px 1px 2px #fffbe6;
    pointer-events: none;
}
@keyframes girarMoneda {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(1800deg); }
    100% { transform: rotateY(3600deg); }
}
.resultado-turno {
    font-size: 22px;
    font-weight: bold;
    margin-top: 20px;
    color: #333;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 300px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.login-box {
    background: white;
    padding: 2rem 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease-in-out;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #444;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-group input {
    width: 90%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

.input-group input:focus {
    border-color: #6e8efb;
    outline: none;
}

.btn-login {
    width: 50%;
    padding: 0.8rem;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 1rem;
}

/* Estilos para el dashboard */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.btn-rank {
    padding: 0.5rem 1rem;
    background-color: #3c45e7;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-rank:hover {
    background-color: #2f37bd;
}


.btn-logout {
    padding: 0.5rem 1rem;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #c0392b;
}

.options-container {
    display: flex;
    margin-top: 40px;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.option-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.option-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.option-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.option-card h2, .option-card p {
    padding: 0 1rem;
}

.option-card h2 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #444;
}

.option-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-option {
    display: block;
    text-align: center;
    padding: 0.8rem;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-option:hover {
    background: linear-gradient(to right, #5a7df4, #9666d8);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.alerta-error {
    background: #ffdddd;
    color: #d32f2f;
    border: 1px solid #d32f2f;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-weight: bold;
    text-align: center;
}
