/* Cookie consent banner - Destructoras de Papel */
.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 20, .45);
    z-index: 9998;
    display: none;
}
.cookie-consent-overlay.active { display: block; }

.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #e4e4e7;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .12);
    padding: 20px 24px;
    transform: translateY(110%);
    transition: transform .35s ease;
    font-family: 'Poppins', sans-serif;
}
.cookie-consent-banner.active { transform: translateY(0); }

.cookie-consent-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1 1 380px;
    font-size: 14px;
    line-height: 1.5;
    color: #33333a;
}
.cookie-consent-text strong { display: block; margin-bottom: 4px; font-size: 15px; color: #1a1a1f; }
.cookie-consent-text a { color: #c9a227; text-decoration: underline; }

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

.cookie-btn {
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s ease;
    font-family: inherit;
}
.cookie-btn:hover { opacity: .85; }

.cookie-btn-accept { background: #1a1a1f; color: #fff; }
.cookie-btn-reject { background: #f0f0f2; color: #1a1a1f; }
.cookie-btn-settings { background: transparent; color: #1a1a1f; text-decoration: underline; padding: 10px 8px; }

.cookie-settings-panel {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.96);
    width: min(520px, 92vw);
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    z-index: 10000;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    display: none;
    font-family: 'Poppins', sans-serif;
}
.cookie-settings-panel.active { display: block; }

.cookie-settings-panel h3 { margin: 0 0 16px; font-size: 20px; color: #1a1a1f; }

.cookie-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}
.cookie-settings-row:last-of-type { border-bottom: none; }
.cookie-settings-row-text strong { display: block; font-size: 14px; color: #1a1a1f; margin-bottom: 3px; }
.cookie-settings-row-text p { margin: 0; font-size: 13px; color: #666; line-height: 1.4; }

.cookie-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch-slider {
    position: absolute;
    inset: 0;
    background: #d4d4d8;
    border-radius: 24px;
    cursor: pointer;
    transition: background .2s;
}
.cookie-switch-slider::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.cookie-switch input:checked + .cookie-switch-slider { background: #1a1a1f; }
.cookie-switch input:checked + .cookie-switch-slider::before { transform: translateX(18px); }
.cookie-switch input:disabled + .cookie-switch-slider { opacity: .5; cursor: not-allowed; }

.cookie-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.cookie-settings-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
}

@media (max-width: 640px) {
    .cookie-consent-inner { flex-direction: column; align-items: stretch; }
    .cookie-consent-actions { justify-content: stretch; }
    .cookie-consent-actions .cookie-btn { flex: 1; }
}
