/* Status badges */
.md-typeset .badge {
    display: inline-block;
    padding: 0.15em 0.55em;
    border-radius: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.5;
    vertical-align: middle;
    white-space: nowrap;
}

/* Grid card link hover */
.md-typeset .grid.cards > :is(ul, ol) > li > a:hover {
    border-color: var(--md-accent-fg-color);
}

/* Better search results highlight */
.md-search-result__article {
    padding: 0.5em 0;
}

/* Footer social icons spacing */
.md-social__link {
    margin: 0 0.2rem;
}

/* ─────────────────────────────────────────────── */
/*  Footer page navigation (Anterior / Siguiente)  */
/* ─────────────────────────────────────────────── */

/* Container: flex row, section centered between arrows */
.md-footer__inner {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1.2rem 0.8rem;
    border-top: 2px solid var(--md-default-fg-color--lightest);
    background: var(--md-footer-bg-color, var(--md-default-bg-color));
}

/* Prev and next take equal space so section stays centered */
.md-footer__link--prev {
    flex: 1;
    justify-content: flex-start;
    order: 1;
}

.md-footer__link--next {
    flex: 1;
    justify-content: flex-end;
    order: 3;
}

/* Each nav link */
.md-footer__link {
    display: flex !important;
    align-items: center;
    padding: 0.5rem 0.8rem;
    transition: background 0.15s;
    border-radius: 0.4rem;
    text-decoration: none;
    min-width: 0;
}
.md-footer__link:hover {
    background: var(--md-accent-fg-color--transparent, rgba(0,135,90,0.06));
}

/* Make the direction label bigger and bolder */
.md-footer__direction {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

/* Page title in footer link */
.md-footer__title {
    font-size: 0.82rem;
}

/* Make the arrow icon larger */
.md-footer__button.md-icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

/* Center section badge */
.md-footer__section {
    flex: 0 0 auto;
    order: 2;
    text-align: center;
    padding: 0.4rem 1.2rem;
    border-left: 1px solid var(--md-default-fg-color--lightest);
    border-right: 1px solid var(--md-default-fg-color--lightest);
}

.md-footer__section-name {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--md-default-fg-color--light);
    margin-bottom: 0.15rem;
}

.md-footer__page-title {
    display: block;
    font-size: 0.8rem;
    color: var(--md-default-fg-color);
    font-weight: 600;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile: stack vertically */
@media (max-width: 600px) {
    .md-footer__inner {
        flex-direction: column !important;
        gap: 0.5rem;
    }
    .md-footer__link--prev,
    .md-footer__link--next {
        flex: 0 0 auto;
        justify-content: center;
    }
    .md-footer__section {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--md-default-fg-color--lightest);
        border-bottom: 1px solid var(--md-default-fg-color--lightest);
        padding: 0.4rem 0;
    }
    .md-footer__page-title {
        max-width: 100%;
    }
}

