/* ===== BANNER CONSENTIMIENTO RGPD ===== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 40px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: none;
    animation: slideUp 0.4s ease-out;
}

.cookie-consent-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.cookie-consent-text h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
}

.cookie-consent-text a {
    color: #4db8ff;
    text-decoration: none;
    border-bottom: 1px solid #4db8ff;
    transition: all 0.2s ease;
}

.cookie-consent-text a:hover {
    color: #99d9ff;
    border-color: #99d9ff;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-consent-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-consent-button-accept {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #fff;
}

.cookie-consent-button-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.cookie-consent-button-reject {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent-button-reject:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-consent-button-settings {
    background: rgba(255, 255, 255, 0.05);
    color: #4db8ff;
    border: 1px solid rgba(77, 184, 255, 0.3);
}

.cookie-consent-button-settings:hover {
    background: rgba(77, 184, 255, 0.1);
    border-color: rgba(77, 184, 255, 0.6);
}

/* Modal de configuración detallada */
.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.cookie-consent-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-consent-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    color: #333;
}

.cookie-consent-modal-content h2 {
    margin-top: 0;
    color: #1a1a2e;
    font-size: 22px;
    margin-bottom: 20px;
}

.cookie-consent-modal-content h3 {
    color: #1a1a2e;
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-consent-modal-content p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 15px 0;
}

.cookie-consent-modal-content a {
    color: #0099cc;
    text-decoration: none;
    border-bottom: 1px solid #0099cc;
}

.cookie-consent-modal-content a:hover {
    color: #00d4ff;
    border-color: #00d4ff;
}

.cookie-consent-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.cookie-consent-toggle:last-child {
    border-bottom: none;
}

.cookie-consent-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.cookie-consent-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cookie-consent-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

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

input:checked + .cookie-consent-toggle-slider {
    background-color: #00d4ff;
}

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

.cookie-consent-modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    justify-content: flex-end;
}

.cookie-consent-modal-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-consent-modal-button-save {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #fff;
}

.cookie-consent-modal-button-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.cookie-consent-modal-button-reject {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.cookie-consent-modal-button-reject:hover {
    background: #efefef;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-container {
        grid-template-columns: 1fr;
    }

    .cookie-consent-buttons {
        width: 100%;
    }

    .cookie-consent-button {
        flex: 1;
        padding: 10px 16px;
        font-size: 12px;
    }

    .cookie-consent-banner {
        padding: 16px 12px;
    }

    .cookie-consent-text h3 {
        font-size: 15px;
    }

    .cookie-consent-text p {
        font-size: 13px;
    }

    .cookie-consent-modal-content {
        padding: 20px;
        margin: 20px;
    }

    .cookie-consent-modal-buttons {
        flex-direction: column-reverse;
    }

    .cookie-consent-modal-button {
        width: 100%;
    }
}
