/* Paleta del Manual de marca (Manual de marca.pdf):
   primario #18224C, cian #00D0FF, verde #579601, violeta #5F4EDA; tipografía Poppins. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --md-primary-fg-color: #18224C;
    --md-primary-fg-color--light: #354170;
    --md-primary-fg-color--dark: #0F1734;
    --md-accent-fg-color: #00D0FF;
    --md-accent-fg-color--transparent: rgb(0 208 255 / 0.12);
    --md-typeset-a-color: #18224C;
    --md-text-font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --md-typeset-color: #26324B;
}

[data-md-color-scheme='slate'] {
    --md-typeset-a-color: #00D0FF;
    --md-typeset-color: #dbe3f2;
}

/* ── Títulos: azul de marca, con un filete cian bajo el h1 ─────────────────────────────── */
.md-typeset h1 {
    color: #18224C;
    border-bottom: 0.18rem solid rgb(0 208 255 / 0.45);
    padding-bottom: 0.2rem;
}

.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5 {
    color: #18224C;
}

[data-md-color-scheme='slate'] .md-typeset h1 {
    color: #cbd6f4;
    border-bottom-color: rgb(0 208 255 / 0.35);
}

[data-md-color-scheme='slate'] .md-typeset h2,
[data-md-color-scheme='slate'] .md-typeset h3,
[data-md-color-scheme='slate'] .md-typeset h4,
[data-md-color-scheme='slate'] .md-typeset h5 {
    color: #cbd6f4;
}

/* ── Avisos: nota en azul de marca, info/tip en cian, éxito en verde, aviso en violeta ── */
.md-typeset .admonition.note,
.md-typeset details.note {
    border-color: #18224C;
}

.md-typeset .admonition.note > .admonition-title,
.md-typeset details.note > summary {
    background-color: rgb(24 34 76 / 0.08);
    color: #18224C;
}

.md-typeset .admonition.note > .admonition-title::before,
.md-typeset details.note > summary::before {
    background-color: #18224C;
}

.md-typeset .admonition.info,
.md-typeset details.info,
.md-typeset .admonition.tip,
.md-typeset details.tip {
    border-color: #00B6E5;
}

.md-typeset .admonition.info > .admonition-title,
.md-typeset details.info > summary,
.md-typeset .admonition.tip > .admonition-title,
.md-typeset details.tip > summary {
    background-color: rgb(0 208 255 / 0.12);
    color: #0a6f86;
}

[data-md-color-scheme='slate'] .md-typeset .admonition.info > .admonition-title,
[data-md-color-scheme='slate'] .md-typeset details.info > summary,
[data-md-color-scheme='slate'] .md-typeset .admonition.tip > .admonition-title,
[data-md-color-scheme='slate'] .md-typeset details.tip > summary {
    color: #7be4ff;
}

.md-typeset .admonition.info > .admonition-title::before,
.md-typeset details.info > summary::before,
.md-typeset .admonition.tip > .admonition-title::before,
.md-typeset details.tip > summary::before {
    background-color: #00D0FF;
}

.md-typeset .admonition.success,
.md-typeset details.success {
    border-color: #579601;
}

.md-typeset .admonition.success > .admonition-title,
.md-typeset details.success > summary {
    background-color: rgb(87 150 1 / 0.10);
    color: #446f05;
}

[data-md-color-scheme='slate'] .md-typeset .admonition.success > .admonition-title,
[data-md-color-scheme='slate'] .md-typeset details.success > summary {
    color: #a4d858;
}

.md-typeset .admonition.success > .admonition-title::before,
.md-typeset details.success > summary::before {
    background-color: #579601;
}

.md-typeset .admonition.warning,
.md-typeset details.warning {
    border-color: #5F4EDA;
}

.md-typeset .admonition.warning > .admonition-title,
.md-typeset details.warning > summary {
    background-color: rgb(95 78 218 / 0.10);
    color: #4435a8;
}

[data-md-color-scheme='slate'] .md-typeset .admonition.warning > .admonition-title,
[data-md-color-scheme='slate'] .md-typeset details.warning > summary {
    color: #b8aff5;
}

.md-typeset .admonition.warning > .admonition-title::before,
.md-typeset details.warning > summary::before {
    background-color: #5F4EDA;
}

/* ── Tablas: cabecera azul de marca ───────────────────────────────────────────────────── */
.md-typeset table:not([class]) th {
    background-color: #18224C;
    color: #ffffff;
}

.md-typeset table:not([class]) th a {
    color: #7be4ff;
}

[data-md-color-scheme='slate'] .md-typeset table:not([class]) th {
    background-color: #27345f;
}

/* ── Tarjetas de la portada y detalles sueltos ─────────────────────────────────────────── */
.md-typeset .grid.cards > :is(ul, ol) > li {
    border-color: rgb(24 34 76 / 0.30);
}

.md-typeset .grid.cards > :is(ul, ol) > li:hover {
    border-color: #00D0FF;
}

.md-typeset .grid.cards .twemoji {
    color: #18224C;
}

[data-md-color-scheme='slate'] .md-typeset .grid.cards .twemoji {
    color: #00D0FF;
}

::selection {
    background-color: rgb(0 208 255 / 0.35);
}
