/* Estilos para el banner de cookies */
.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(33, 33, 33, 0.95);
    color: #fff;
    padding: 20px;
    z-index: 9999;
    display: none; /* Inicialmente oculto, se muestra via JavaScript */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookies-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookies-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookies-text a {
    color: var(--color-acento);
    text-decoration: none;
}

.cookies-text a:hover {
    text-decoration: underline;
}

.cookies-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background-color: var(--color-primario);
    color: white;
}

.cookie-btn.accept:hover {
    background-color: var(--color-acento);
}

.cookie-btn.settings {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn.settings:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Modal de configuración de cookies */
.cookies-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.cookies-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookies-modal h2 {
    color: var(--color-secundario);
    margin-bottom: 20px;
}

.cookie-option {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--color-primario);
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-option p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.cookies-modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 768px) {
    .cookies-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookies-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        max-width: 200px;
    }
}