/* Paleta institucional original. Los temas solo cambian estos colores. */
:root {
    --focus:#96702e;
    --link-accent:#8b652c;
    --hero-top:#254763;
    --eyebrow:#88642e;
    --subtitle-on-dark:#e0e7ee;
    --rule-accent:#ceb47c65;
    --quote-on-dark:#e3e9ed;
    --control-border:#d8dddf;
    --soft-border:#e7d7b7;
    --soft-surface:#f8f3e9;
    --empty-ink:#465b6d;
    --hover-surface:#f1f3f5;
    --selected-ink:#765322;
    --selected-surface:#f5eedf;
    --selected-border:#e9d9b9;
    --heading-accent:#967039;
    --card-border:#deded7;
    --card-accent:#c8a361;
    --portrait-label-surface:#faf6eced;
    --medal-surface:#efe0be;
    --medal-border:#d5bb86;
    --course-ink:#30495f;
    --secondary-surface:#f5f1e8;
    --secondary-ink:#4b5b65;
    --inspiration-ink:#4d6072;
    --rule-muted:#efeee9;
    --dot-active:#a7803f;
    --value-surface:#f7f2e8;
    --value-accent:#946d32;
    --closing-ink:#e8edf0;
    --theme-band:none;
}

body[data-theme="santa_cruz"] {
    --navy:#154734;
    --gold:#287349;
    --gold-light:#e2efd8;
    --ink:#203c30;
    --muted:#53695c;
    --paper:#f8faf7;
    --line:#dce5dc;
    --hero-top:#245b43;
    --focus:#287349;
    --link-accent:#246340;
    --eyebrow:#286140;
    --subtitle-on-dark:#e1ede4;
    --quote-on-dark:#e6efe7;
    --rule-accent:#dcebd28c;
    --control-border:#c4d7ca;
    --soft-border:#ccdec9;
    --soft-surface:#f0f6ec;
    --empty-ink:#365642;
    --hover-surface:#edf4ed;
    --selected-ink:#225638;
    --selected-surface:#e9f3e5;
    --selected-border:#b9d1b5;
    --heading-accent:#357247;
    --card-border:#d7e0d6;
    --card-accent:#4b8159;
    --portrait-label-surface:#f0f6eded;
    --medal-surface:#dbeccf;
    --medal-border:#9ebe96;
    --course-ink:#31583f;
    --secondary-surface:#edf4e9;
    --secondary-ink:#3e5e46;
    --inspiration-ink:#496652;
    --rule-muted:#e6eee1;
    --dot-active:#357247;
    --value-surface:#eaf3e5;
    --value-accent:#2f6b42;
    --closing-ink:#e9f2e9;
    --theme-band:linear-gradient(to bottom,#287349 0 33.333%,#fff 33.333% 66.666%,#287349 66.666% 100%);
}

body[data-theme="bolivia"] {
    --navy:#1d4437;
    --gold:#a4373f;
    --gold-light:#f3d77a;
    --ink:#293e35;
    --muted:#5b6861;
    --paper:#fcfaf5;
    --line:#e5e2d6;
    --hero-top:#285c49;
    --focus:#9f303b;
    --link-accent:#9f303b;
    --eyebrow:#96303b;
    --subtitle-on-dark:#e8eee4;
    --quote-on-dark:#edf0e7;
    --rule-accent:#f3d77a80;
    --control-border:#cdd6c7;
    --soft-border:#e8d496;
    --soft-surface:#fcf5e0;
    --empty-ink:#4d5947;
    --hover-surface:#f1f3e9;
    --selected-ink:#872e35;
    --selected-surface:#fcf1de;
    --selected-border:#e0c47e;
    --heading-accent:#9f303b;
    --card-border:#e3dfcf;
    --card-accent:#b18a32;
    --portrait-label-surface:#fff8e6ed;
    --medal-surface:#f5dc91;
    --medal-border:#c3a251;
    --course-ink:#345741;
    --secondary-surface:#edf3e7;
    --secondary-ink:#35583c;
    --inspiration-ink:#56604d;
    --rule-muted:#e9e5d6;
    --dot-active:#9f303b;
    --value-surface:#faf1d9;
    --value-accent:#9f303b;
    --closing-ink:#eef1e6;
    --theme-band:linear-gradient(to bottom,#b8343e 0 33.333%,#edc647 33.333% 66.666%,#287349 66.666% 100%);
}

/* Bandas decorativas interiores: no alteran las medidas del diseño aprobado. */
body:not([data-theme="institucional"]) .hero {
    background-image:var(--theme-band),radial-gradient(ellipse at 50% 0%,var(--hero-top) 0%,var(--navy) 65%);
    background-size:100% 9px,100% 100%;
    background-position:top center,center;
    background-repeat:no-repeat;
}
body:not([data-theme="institucional"]) footer {
    background-image:var(--theme-band);
    background-size:100% 6px;
    background-position:top center;
    background-repeat:no-repeat;
}
.theme-label {
    display:table;
    margin:-5px auto 20px;
    padding:6px 14px;
    max-width:100%;
    border:1px solid var(--gold-light);
    border-radius:30px;
    font-size:11px;
    line-height:1.5;
    letter-spacing:.7px;
    color:var(--gold-light);
}
/* Hojas delineadas, sin imágenes: un guiño discreto al paisaje cruceño. */
body[data-theme="santa_cruz"] .hero:before,
body[data-theme="santa_cruz"] .hero:after {
    border-radius:70% 5% 70% 5%;
    transform:rotate(-25deg);
}
