/* =========================================================================
   MIGAS DE PAN GLOBALES (inc/breadcrumbs.php)
   Ancho y márgenes laterales calcados de .pgh__inner para que la ruta quede
   alineada con el logo del header. Todo cuelga de .pbc para que el CSS global
   de Elementor no lo pise.
   ========================================================================= */

.pbc {
    --pbc-ink: #171717;
    --pbc-muted: #6b6b6b;
    --pbc-yellow: #ffd200;
    width: 100%;
    background: #f7f7f7;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.pbc__inner {
    box-sizing: border-box;
    max-width: 1750px;
    margin: 0 auto;
    padding: 12px 40px;
}

.pbc .pbc__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.5;
}

.pbc .pbc__item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    color: var(--pbc-muted);
}

.pbc .pbc__item + .pbc__item::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 12px 0 10px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: .6;
}

.pbc .pbc__link {
    color: var(--pbc-muted);
    text-decoration: none;
    background-image: linear-gradient(var(--pbc-yellow), var(--pbc-yellow));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: color .2s ease, background-size .2s ease;
}

.pbc .pbc__link:hover,
.pbc .pbc__link:focus-visible {
    color: var(--pbc-ink);
    background-size: 100% 2px;
}

.pbc .pbc__current {
    color: var(--pbc-ink);
    font-weight: 600;
}

/* Widget de migas de la plantilla Elementor del single post. Con el header
   propio queda tapado (margin-top -270px) y la ruta ya la pinta la barra.
   Ocupa 0px de alto en el flujo, así que ocultarlo no mueve el hero. */
body.single-post .migas {
    display: none;
}

@media (max-width: 1024px) {
    .pbc__inner {
        padding: 10px 24px;
    }
}

/* En móvil, un título de ficha largo se recorta a una línea en vez de ocupar
   tres antes del hero. Los niveles siguen envolviendo: con nowrap, la ruta de
   una ficha de máster (cinco niveles) desbordaba a 375px. */
@media (max-width: 600px) {
    .pbc .pbc__list {
        font-size: 12px;
        row-gap: 2px;
    }

    .pbc .pbc__item:last-child {
        max-width: 100%;
        min-width: 0;
    }

    .pbc .pbc__current {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
