:root {
    --primary-color: #a7d30c;
    --primary-dark: #a7d30c;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}


/* Estilos del banner de cookies */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary-color);
    padding: 10px;
    z-index: 9999;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 80vh;
    overflow-y: auto;
    width: 500px;
    border-radius: 1rem;
}

.cookie-banner.show {
    bottom: 0;
    animation: slideUp 0.5s ease forwards;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    animation: rotate 30s linear infinite;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    font-size: 15px;
    text-align: justify;
}

.cookie-text h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.cookie-text p {
    margin: 0 0 10px;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 14px;
}

.accept-all {
    background-color: var(--primary-color);
    color: white;
}

.accept-all:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.customize,
.reject-all {
    background-color: var(--light-bg);
    color: var(--text-color);
}

.customize:hover,
.reject-all:hover {
    background-color: #e6e6e6;
    transform: translateY(-2px);
}

/* Panel de configuración avanzada */
.preferences-panel {
    display: none;
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
}

.preferences-panel.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.cookie-category {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-title {
    font-weight: 600;
    margin: 0;
}

.category-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.category-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.category-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.save-preferences {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 14px;
    margin-top: 10px;
    width: 100%;
}

.save-preferences:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

@keyframes slideUp {
    from {
        bottom: -100%;
    }

    to {
        bottom: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Estilos responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px;
        width: 380px !important;
        height: auto;
        margin: 9px 0px 3px 4px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }
}