.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(200%); /* Estado inicial para la animación */
    z-index: 1050;
    width: 95%;
    max-width: 550px;
    background: rgba(42, 45, 48, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    padding: 30px; /* Más espaciado interno */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
}
.cookie-consent-banner.show {
    display: block;
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    text-align: center; /* Centra todo el contenido */
}

.cookie-content h5 {
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.cookie-content p {
    margin: 0 auto 20px auto;
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 400px;
}
.cookie-options {
    margin-top: 20px;
    text-align: left; /* Alinea el texto de las opciones a la izquierda */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
.cookie-options.show {
    max-height: 300px;
    overflow-y: auto;
}
.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category label { font-weight: 500; }
.form-switch .form-check-input {
    background-color: #555;
    border-color: #777;
}
.form-switch .form-check-input:checked {
    background-color: var(--lr-green);
    border-color: var(--lr-green);
}

.cookie-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}
.btn-cookie {
    border: none;
    border-radius: 50px;
    padding: 12px 20px; /* Un poco más de padding */
    font-weight: 600; /* Letra más marcada */
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-customize, .btn-reject {
    background-color: #495057;
    color: #fff;
}
.btn-accept {
    background: var(--lr-green);
    color: #fff;
}
.btn-cookie:hover {
    transform: translateY(-3px); /* Efecto de elevación */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn-cookie:active {
    transform: translateY(0px) scale(0.98); /* Efecto de presión */
}

.cookie-legal-links {
    margin-top: 25px;
    text-align: center;
    font-size: 0.85rem;
}
.cookie-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    margin: 0 10px;
}

@media (max-width: 768px) {
    .cookie-buttons {
        grid-template-columns: 1fr;
    }
}