:root {
    --cc-bg: rgba(17, 24, 39, .88);
    /* fondo banner (glass) */
    --cc-panel: #0b1220;
    /* panel modal */
    --cc-text: #e5e7eb;
    /* texto base */
    --cc-muted: #9ca3af;
    /* texto secundario */
    --cc-primary: #22c55e;
    /* color CTA */
    --cc-primary-contrast: #0b1220;
    /* texto sobre CTA */
    --cc-outline: #334155;
    /* borde botones */
    --cc-link: #93c5fd;
    /* enlaces */
    --cc-radius: 14px;
    --cc-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --cc-maxw: 980px;
}

@media (prefers-color-scheme: light) {
    :root {
        --cc-bg: rgba(255, 255, 255, .92);
        --cc-panel: #ffffff;
        --cc-text: #111827;
        --cc-muted: #6b7280;
        --cc-outline: #e5e7eb;
        --cc-link: #2563eb;
        --cc-primary-contrast: #ffffff;
    }
}

/* Banner */
#cc-banner {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 999998;
    backdrop-filter: saturate(140%) blur(8px);
    background: var(--cc-bg);
    color: var(--cc-text);
    box-shadow: var(--cc-shadow);
}

#cc-banner.cc-hidden {
    display: none;
}

#cc-banner .cc-inner {
    margin: 0 auto;
    max-width: var(--cc-maxw);
    padding: 16px clamp(16px, 3vw, 24px);
    display: grid;
    gap: 12px;
    align-items: center;
}

@media (min-width: 720px) {
    #cc-banner .cc-inner {
        grid-template-columns: 1fr auto;
    }
}

.cc-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.cc-link {
    color: var(--cc-link);
    text-underline-offset: 2px;
}

.cc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cc-btn {
    border-radius: 9999px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .08s ease;
    white-space: nowrap;
}

.cc-btn:active {
    transform: translateY(1px);
}

.cc-primary {
    background: var(--cc-primary);
    color: var(--cc-primary-contrast);
}

.cc-outline {
    background: transparent;
    color: var(--cc-text);
    border-color: var(--cc-outline);
}

/* Modal */
.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .55);
    padding: 20px;
}

.cc-modal.cc-hidden {
    display: none;
}

.cc-modal__panel {
    width: min(880px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: var(--cc-panel);
    color: var(--cc-text);
    border-radius: var(--cc-radius);
    box-shadow: var(--cc-shadow);
    padding: clamp(16px, 2.4vw, 26px);
}

.cc-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cc-modal__header h2 {
    margin: 0;
    font-size: clamp(20px, 3vw, 28px);
}

.cc-close {
    border: 1px solid var(--cc-outline);
    background: transparent;
    color: var(--cc-text);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 22px;
    cursor: pointer;
}

.cc-modal__lead {
    color: var(--cc-muted);
    margin: 8px 0 16px;
}

.cc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.cc-item {
    border: 1px solid var(--cc-outline);
    border-radius: 12px;
    padding: 14px;
    background: transparent;
}

.cc-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cc-item__head h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.cc-item__desc {
    margin: 0;
    color: var(--cc-muted);
    font-size: .95rem;
}

/* Switch */
.cc-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cc-switch input[type="checkbox"] {
    appearance: none;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #475569;
    position: relative;
    outline: none;
    cursor: pointer;
    border: 1px solid var(--cc-outline);
}

.cc-switch input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    transition: transform .18s ease;
}

.cc-switch input[type="checkbox"]:checked {
    background: var(--cc-primary);
    border-color: var(--cc-primary);
}

.cc-switch input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}

.cc-switch input[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.cc-modal__footer {
    background-color: white !important;
    margin-top: 14px;
}

.cc-footer-actions {
    background-color: white;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}