/**
 * Electric Wave Technologies - Cookie Consent Styles
 * Estilos específicos para el banner de consentimiento de cookies conforme a RGPD
 */

/* Banner de consentimiento de cookies */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2);
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.cookie-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    margin: 0;
}

.btn-tertiary {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-tertiary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Modal de configuración de cookies */
.cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-settings.active {
    opacity: 1;
}

.cookie-settings-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 5px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
}

.cookie-settings-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h3 {
    font-size: 22px;
    margin: 0;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.cookie-close:hover {
    color: var(--primary-color);
}

.cookie-settings-body {
    padding: 20px;
}

.cookie-option {
    margin-bottom: 25px;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-option-header h4 {
    font-size: 18px;
    margin: 0;
}

.cookie-option p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.cookie-settings-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

/* Switch toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-settings-content {
        width: 95%;
    }
}