/* ==========================================
   Cookie Consent Styles
   ========================================== */

/* Banner de Consentimiento */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 20px;
    z-index: 9998;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#cookie-consent-banner.cookie-banner-hidden {
    animation: slideDown 0.4s ease-out forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #E7CF5F;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #d0d0d0;
    max-width: 500px;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-banner-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-reject {
    background-color: transparent;
    color: #d0d0d0;
    border: 1px solid #666;
}

.btn-reject:hover {
    background-color: rgba(100, 100, 100, 0.3);
    border-color: #999;
}

.btn-manage {
    background-color: #666;
    color: white;
}

.btn-manage:hover {
    background-color: #777;
}

.btn-accept {
    background-color: #E7CF5F;
    color: #1a1a1a;
}

.btn-accept:hover {
    background-color: #f0dde0;
    box-shadow: 0 2px 8px rgba(231, 207, 95, 0.3);
}

/* Modal de Configuración */
#cookie-settings-modal {
    z-index: 9999;
}

.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.cookie-modal-content h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #1a1a1a;
}

.cookie-modal-subtitle {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
}

/* Lista de Configuración */
.cookie-settings-list {
    margin: 25px 0;
}

.cookie-setting-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-setting-item:last-child {
    border-bottom: none;
}

.setting-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.setting-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #E7CF5F;
}

.setting-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.setting-header label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-header label strong {
    color: #1a1a1a;
    font-size: 14px;
}

.setting-required {
    font-size: 12px;
    color: #E7CF5F;
    background-color: #f5f1e8;
    padding: 2px 8px;
    border-radius: 3px;
}

.setting-description {
    margin: 0;
    margin-left: 30px;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

/* Botones del Modal */
.cookie-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-close-modal,
.btn-save-settings {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-modal {
    background-color: #f0f0f0;
    color: #1a1a1a;
}

.btn-close-modal:hover {
    background-color: #e0e0e0;
}

.btn-save-settings {
    background-color: #E7CF5F;
    color: #1a1a1a;
}

.btn-save-settings:hover {
    background-color: #f0dde0;
    box-shadow: 0 2px 8px rgba(231, 207, 95, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-banner-buttons button {
        width: 100%;
    }

    .cookie-modal-content {
        max-width: 90vw;
        max-height: 90vh;
        padding: 20px;
    }

    .cookie-modal-buttons {
        flex-direction: column;
    }

    .btn-close-modal,
    .btn-save-settings {
        width: 100%;
    }
}
