/* Consentimiento de cookies — verde AcuStock */
.cc-root {
    --cc-accent: #7BAE2E;
    --cc-accent-hover: #6B9B1E;
    --cc-accent-on: #8CC63F;
    --accent: #7BAE2E;
    --accent-dark: #6B9B1E;
    --accent-light: #8CC63F;
}
.cc-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10050;
    display: none;
    align-items: center;
    gap: 18px;
    padding: 16px 18px 16px 20px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.14);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.cc-banner.is-open { display: flex; }
.cc-banner-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cc-accent);
    font-size: 28px;
    line-height: 1;
}
.cc-banner-icon i { font-size: inherit; line-height: 1; }
.cc-banner-text {
    flex: 1 1 auto;
    font-size: 13.5px;
    line-height: 1.5;
    color: #4b5563;
}
.cc-root a,
.cc-banner-text a,
.cc-banner-text a:hover,
.cc-banner-text a:focus {
    color: #1f2937;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cc-root :focus-visible {
    outline: 2px solid var(--cc-accent);
    outline-offset: 2px;
}
.cc-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.cc-btn {
    appearance: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #1f2937;
    white-space: nowrap;
}
.cc-btn:hover { background: #f9fafb; }
.cc-btn-primary {
    background: var(--cc-accent);
    border-color: var(--cc-accent);
    color: #fff;
    font-weight: 700;
}
.cc-btn-primary:hover,
.cc-root .cc-btn-primary:hover {
    background: var(--cc-accent-hover);
    border-color: var(--cc-accent-hover);
    color: #fff;
}

.cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 15, 26, 0.55);
    backdrop-filter: blur(4px);
}
.cc-overlay.is-open { display: flex; }
.cc-modal {
    width: min(520px, 100%);
    background: #fff;
    color: #111827;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    max-height: min(90vh, 720px);
    overflow: auto;
}
.cc-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 0;
}
.cc-modal-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}
.cc-modal-close {
    appearance: none;
    border: 1px solid #e5e7eb;
    background: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}
.cc-modal-close:hover,
.cc-modal-close:focus,
.cc-modal-close:focus-visible {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
    outline: none;
}
.cc-modal-intro {
    margin: 10px 24px 8px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #6b7280;
}
.cc-cat {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    border-top: 1px solid #f3f4f6;
}
.cc-cat:first-of-type { border-top: 0; }
.cc-cat h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.cc-cat p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
}
.cc-switch {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 26px;
    margin-top: 2px;
}
.cc-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.cc-switch span {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 99px;
    cursor: pointer;
    transition: background .15s;
}
.cc-switch span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .15s;
}
.cc-switch input:checked + span { background: var(--cc-accent-on); }
.cc-switch input:checked + span::after { transform: translateX(18px); }
.cc-switch input:disabled + span { cursor: not-allowed; opacity: .9; }
.cc-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px 22px;
    border-top: 1px solid #f3f4f6;
}

body.cc-has-banner .wa-float { bottom: 118px; }

@media (max-width: 820px) {
    .cc-banner {
        flex-wrap: wrap;
        align-items: flex-start;
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 14px;
        gap: 12px;
    }
    .cc-banner-actions {
        width: 100%;
        justify-content: stretch;
        flex-wrap: wrap;
    }
    .cc-banner-actions .cc-btn { flex: 1 1 auto; text-align: center; }
    .cc-modal-actions { flex-direction: column-reverse; }
    .cc-modal-actions .cc-btn { width: 100%; text-align: center; }
    body.cc-has-banner .wa-float { bottom: 200px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-switch span, .cc-switch span::after { transition: none; }
}
