:root {
    --purple: #546970;
    --text-dark: #191919;
    --text-light: #666;
    --border-light: #e5e5e5;
}

/* Banner principal con liquid glass effect */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: calc(100% - 40px);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 24px;
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.cookie-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.1) 100%);
    border-radius: inherit;
    z-index: -1;
}

.cookie-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    animation: liquidShine 6s linear infinite;
    pointer-events: none;
}

@keyframes liquidShine {
    0% {
        transform: rotate(0deg) translate(-50%, -50%);
    }

    100% {
        transform: rotate(360deg) translate(-50%, -50%);
    }
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
}

.cookie-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cookie-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-text {
    flex: 1;
}

.cookie-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.cookie-description {
    font-size: 14px;
    color: white;
    line-height: 1.4;
    margin: 0 0 16px 0;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-accept {
    background: linear-gradient(135deg, #546970 0%, #4a5a5f 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-accept::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.6s ease;
}

.btn-accept:hover::before {
    left: 100%;
}

.btn-accept:hover {
    background: linear-gradient(135deg, #4a5a5f 0%, #3d4a4f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(84, 105, 112, 0.4);
}

.btn-settings {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-settings:hover {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Modal de configuración con liquid glass */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 480px;
    width: calc(100% - 40px);
    max-height: 80vh;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 5px;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.cookie-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    z-index: 1;
}

.cookie-modal-header {
    padding: 24px 24px 0;
    position: relative;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
}

.cookie-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 30px 0 0;
    line-height: 1.3;
}

.cookie-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.cookie-modal-close:hover {
    background: #f5f5f5;
}

.cookie-modal-body {
    padding: 20px 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-category {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fafafa;
    border-bottom: 1px solid var(--border-light);
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.cookie-category-desc {
    font-size: 13px;
    color: black;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: linear-gradient(135deg, #ddd 0%, #ccc 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-toggle.active {
    background: linear-gradient(135deg, var(--purple) 0%, #4a5a5f 100%);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 12px rgba(84, 105, 112, 0.3);
}

.cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 100%);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cookie-toggle.active .cookie-toggle-slider {
    transform: translateX(20px);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.9) 100%);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cookie-category-details {
    padding: 16px;
    font-size: 13px;
    color: white;
    line-height: 1.4;
}

.cookie-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-save {
    background: var(--purple);
    color: white;
    padding: 10px 20px;
}

.btn-cancel {
    background: transparent;
    color: white;
    border: 1px solid var(--border-light);
    padding: 10px 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        max-width: none;
        padding: 20px;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 12px;
    }

    .cookie-actions {
        justify-content: space-between;
    }

    .btn-cookie {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }

    .cookie-modal {
        max-width: none;
        width: calc(100% - 20px);
        margin: 10px;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .btn-save,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}

/* Animación de entrada */
@keyframes slideUp {
    from {
        transform: translate(-50%, 20px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.cookie-banner.show {
    animation: slideUp 0.4s ease-out;
}