/* Estilos para el banner de cookies */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background-color: rgba(2, 22, 45, 0.95);
    color: #fff;
    padding: 20px 25px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none; /* Inicialmente oculto, se muestra con JavaScript */
    box-sizing: border-box;
    border-radius: 8px;
    border-left: 4px solid #36e0f7;
}

#cookie-banner h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #36e0f7;
}

#cookie-banner p {
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

#cookie-banner a {
    color: #36e0f7;
    text-decoration: underline;
}

#cookie-banner a:hover {
    color: #fff;
}

#cookie-banner .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

#cookie-banner button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

#accept-cookies {
    background: linear-gradient(to right, #02162d 0%, #36e0f7 100%);
    color: white;
}

#reject-cookies {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

#accept-cookies:hover {
    background: linear-gradient(to right, #36e0f7 0%, #36e0f7 100%);
}

#reject-cookies:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Estilos para el popup de preferencias */
#preferences-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    width: 90%;
    max-width: 500px;
    color: #333;
}

#preferences-popup h3 {
    color: #02162d;
    margin-bottom: 20px;
    border-bottom: 2px solid #36e0f7;
    padding-bottom: 10px;
}

.cookie-preference {
    margin-bottom: 20px;
}

.cookie-preference label {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 5px;
}

.cookie-preference input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.cookie-preference p {
    margin-left: 28px;
    font-size: 0.9rem;
    color: #666;
}

.preferences-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.preferences-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

#save-preferences {
    background: linear-gradient(to right, #02162d 0%, #36e0f7 100%);
    color: white;
}

#close-preferences {
    background-color: #eee;
    color: #333;
}

#save-preferences:hover {
    background: linear-gradient(to right, #36e0f7 0%, #36e0f7 100%);
}

#close-preferences:hover {
    background-color: #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    #cookie-banner {
        width: 85%;
        bottom: 15px;
        padding: 15px;
    }

    #cookie-banner h2 {
        font-size: 1.1rem;
    }

    #cookie-banner p {
        font-size: 0.8rem;
    }

    #cookie-banner .button-group {
        flex-direction: column;
    }

    #cookie-banner button {
        width: 100%;
    }

    #preferences-popup {
        width: 90%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #cookie-banner {
        width: 90%;
        bottom: 10px;
        padding: 12px;
    }
}