/* assets/css/cookie-consent.css */
#cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    color: var(--text-main);
    z-index: 9999;
    padding: 30px 5%;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    border-top: 2px solid var(--accent);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

#cookie-consent-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: white;
}

.cookie-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(247, 247, 250, 0.8);
    margin: 0;
}

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

.cookie-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: 'Unbounded', sans-serif;
}

.cookie-btn-primary {
    background: var(--accent);
    color: white;
}

.cookie-btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 128, 46, 0.4);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-btn-link {
    background: transparent;
    color: rgba(247, 247, 250, 0.6);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-btn-link:hover {
    color: white;
}

/* Modal de Configuración */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s;
}

.cookie-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.cookie-modal {
    background: var(--bg-primary);
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(253, 128, 46, 0.2);
}

.cookie-modal h2 {
    margin-top: 0;
    color: white;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-option-info h4 {
    margin: 0 0 5px 0;
    color: var(--accent);
}

.cookie-option-info p {
    font-size: 0.85rem;
    margin: 0;
    color: rgba(247, 247, 250, 0.7);
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.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: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

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

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

input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .cookie-btn {
        flex: 1;
        padding: 10px 5px;
        font-size: 0.8rem;
    }
}
