/* Paletas del 63º Congreso. data-theme en <html>: ammr | caribe | ola */

:root,
[data-theme="ammr"] {
    --c-primary-container: 9 26 61;
    --c-primary-mid: 12 31 69;
    --c-primary-deep: 5 18 46;
    --c-primary-card: 12 34 73;
    --c-primary-open: 20 48 95;
    --c-secondary-container: 231 173 71;
    --c-secondary: 126 87 0;
    --c-on-primary-container: 117 131 172;
    --c-on-secondary-container: 9 26 61;
    --c-on-primary-fixed: 9 26 61;
    --c-on-secondary-fixed: 40 25 0;
    --c-on-secondary-fixed-variant: 96 65 0;
    --c-secondary-fixed: 255 222 173;
    --c-secondary-fixed-dim: 248 188 85;
    --c-surface-tint: 79 93 133;
    --c-inverse-primary: 183 197 242;
    --c-primary-fixed: 218 226 255;
    --c-primary-fixed-dim: 183 197 242;
    --c-on-primary-fixed-variant: 55 70 107;
    --c-accent: 116 176 106;
    --c-outline-soft: 197 198 207;
    --c-gris: 204 204 204;
    --c-gris-claro: 242 242 242;
}

[data-theme="caribe"] {
    --c-primary-container: 1 17 53;
    --c-primary-mid: 6 32 80;
    --c-primary-deep: 0 10 28;
    --c-primary-card: 8 28 70;
    --c-primary-open: 14 42 96;
    --c-secondary-container: 120 193 201;
    --c-secondary: 36 96 72;
    --c-on-primary-container: 142 184 196;
    --c-on-secondary-container: 1 17 53;
    --c-on-primary-fixed: 1 17 53;
    --c-on-secondary-fixed: 1 17 53;
    --c-on-secondary-fixed-variant: 30 90 96;
    --c-secondary-fixed: 184 228 232;
    --c-secondary-fixed-dim: 120 193 201;
    --c-surface-tint: 70 88 159;
    --c-inverse-primary: 168 184 230;
    --c-primary-fixed: 210 220 245;
    --c-primary-fixed-dim: 168 184 230;
    --c-on-primary-fixed-variant: 70 88 159;
    --c-accent: 116 176 106;
    --c-outline-soft: 204 204 204;
}

[data-theme="ola"] {
    --c-primary-container: 70 88 159;
    --c-primary-mid: 55 72 140;
    --c-primary-deep: 40 54 110;
    --c-primary-card: 58 75 145;
    --c-primary-open: 82 100 175;
    --c-secondary-container: 116 176 106;
    --c-secondary: 32 96 104;
    --c-on-primary-container: 196 206 232;
    --c-on-secondary-container: 1 17 53;
    --c-on-primary-fixed: 1 17 53;
    --c-on-secondary-fixed: 1 17 53;
    --c-on-secondary-fixed-variant: 40 90 50;
    --c-secondary-fixed: 196 226 188;
    --c-secondary-fixed-dim: 120 193 201;
    --c-surface-tint: 70 88 159;
    --c-inverse-primary: 196 206 232;
    --c-primary-fixed: 220 226 245;
    --c-primary-fixed-dim: 168 180 220;
    --c-on-primary-fixed-variant: 40 54 110;
    --c-accent: 120 193 201;
    --c-outline-soft: 204 204 204;
}

.bg-gris-claro {
    background-color: color-mix(in srgb, #cccccc 18%, #ffffff);
}

[data-theme="caribe"] .bg-secondary-container.text-white,
[data-theme="ola"] .bg-secondary-container.text-white {
    color: rgb(var(--c-on-secondary-container));
}

[data-theme="caribe"] #cifras h2,
[data-theme="caribe"] #cifras p,
[data-theme="ola"] #cifras h2,
[data-theme="ola"] #cifras p {
    color: rgb(var(--c-on-secondary-container));
}

[data-theme="caribe"] #cifras li,
[data-theme="ola"] #cifras li {
    color: rgb(var(--c-on-secondary-container));
}

[data-theme="caribe"] #cifras .bg-primary-container,
[data-theme="ola"] #cifras .bg-primary-container {
    color: #fff;
}

.theme-switcher {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    font-family: Inter, system-ui, sans-serif;
    width: min(240px, calc(100vw - 32px));
}

.theme-switcher__panel {
    background: rgb(var(--c-primary-container));
    color: #fff;
    border: 1px solid rgb(var(--c-secondary-container));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.theme-switcher button {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.theme-switcher__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    padding: 12px 14px;
    background: transparent;
    border: 0;
    color: inherit;
    text-align: left;
}

.theme-switcher__kicker {
    display: block;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgb(var(--c-secondary-container));
    margin-bottom: 4px;
}

.theme-switcher__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.theme-switcher__icon {
    font-size: 20px;
    line-height: 1;
}

.theme-switcher__list {
    display: none;
    padding: 0 10px 10px;
}

.theme-switcher.is-open .theme-switcher__list {
    display: grid;
    gap: 6px;
}

.theme-switcher__option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 8px;
    background: transparent;
    color: #fff;
    text-align: left;
    border: 1px solid transparent;
}

.theme-switcher__option.is-active {
    border-color: rgb(var(--c-secondary-container));
    background: rgb(255 255 255 / 0.06);
}

.theme-switcher__swatches {
    display: flex;
    flex: none;
}

.theme-switcher__swatch {
    width: 14px;
    height: 14px;
    border: 1px solid rgb(255 255 255 / 0.35);
}

.theme-switcher__swatch + .theme-switcher__swatch {
    margin-left: -4px;
}

.theme-switcher__name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.theme-switcher__hint {
    display: block;
    font-size: 10px;
    color: rgb(var(--c-on-primary-container));
    line-height: 1.3;
    margin-top: 1px;
}
