/* cookie-consent.css — LUFLO AI CMP Cookie Consent Banner (Plataforma Theme) */

.luflo-cookie-banner {
    position: fixed;
    bottom: 34px;
    left: 34px;
    right: auto;
    max-width: 580px;
    margin: 0;
    z-index: 99999;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 22px 26px;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16), 0 6px 22px rgba(79, 70, 229, 0.10);
    color: #0F172A;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    transform: translateY(160%);
    opacity: 0;
    transition: transform 1.5s cubic-bezier(0.34, 1.25, 0.64, 1), opacity 0.4s ease;
}

.luflo-cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.luflo-cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.luflo-cookie-icon {
    font-size: 22px;
    line-height: 1;
}

.luflo-cookie-title {
    font-size: 17px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    letter-spacing: -0.01em;
}

.luflo-cookie-text {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin: 0 0 18px 0;
}

.luflo-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.luflo-cookie-btn {
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.luflo-cookie-btn-accept {
    background: #4F46E5;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.luflo-cookie-btn-accept:hover {
    background: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.luflo-cookie-btn-reject {
    background: #F8FAFC;
    color: #475569;
    border: 1px solid #CBD5E1;
}

.luflo-cookie-btn-reject:hover {
    background: #F1F5F9;
    color: #0F172A;
    border-color: #94A3B8;
}

.luflo-cookie-btn-config {
    background: transparent;
    color: #64748B;
    padding: 10px 12px;
    margin-left: auto;
    text-decoration: underline;
}

.luflo-cookie-btn-config:hover {
    color: #0F172A;
}

/* Modal de Configuración Detallada */
.luflo-cookie-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.60);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.luflo-cookie-modal-overlay.is-open {
    display: flex;
}

.luflo-cookie-modal {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    padding: 26px;
    color: #0F172A;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.luflo-cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.luflo-cookie-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}

.luflo-cookie-modal-close {
    background: none;
    border: none;
    color: #64748B;
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
}

.luflo-cookie-modal-close:hover {
    color: #0F172A;
}

.luflo-cookie-cat {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.luflo-cookie-cat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.luflo-cookie-cat-name {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.luflo-cookie-cat-desc {
    font-size: 13px;
    color: #64748B;
    margin: 0;
    line-height: 1.4;
}

.luflo-cookie-badge-always {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    padding: 3px 8px;
    border-radius: 6px;
}

/* Custom Switch Toggle */
.luflo-cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.luflo-cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #CBD5E1;
    transition: .3s;
    border-radius: 24px;
}

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

input:checked + .luflo-cookie-slider {
    background-color: #4F46E5;
}

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

.luflo-cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 640px) {
    .luflo-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px;
    }
    .luflo-cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
