/* =====================================================================
   Breadcrumbs for Elementor — Beecode
   Variables controlables desde el panel (ver class-breadcrumbs-widget.php)
   ===================================================================== */
.bcfe-breadcrumbs {
    --bcfe-gap: 8px;
    --bcfe-sep-color: currentColor;
    --bcfe-sep-size: 1em;

    display: block;
    max-width: 100%;
}

/* ---- Lista ---------------------------------------------------------- */
.bcfe-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--bcfe-gap);
    justify-content: flex-start;
}

/* Una sola línea con scroll horizontal (móvil). */
.bcfe-breadcrumbs--nowrap .bcfe-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.bcfe-breadcrumbs--nowrap .bcfe-item {
    white-space: nowrap;
}

/* ---- Ítems ---------------------------------------------------------- */
.bcfe-item,
.bcfe-sep {
    margin: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
    min-width: 0;
}

.bcfe-item {
    max-width: 100%;
}

/* Enlace / texto del ítem */
.bcfe-link,
.bcfe-text {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}
.bcfe-link:hover {
    text-decoration: none;
    opacity: .85;
}

/* Truncado visual del texto (además del truncado por caracteres). */
.bcfe-link > [itemprop="name"],
.bcfe-text > [itemprop="name"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Separador ------------------------------------------------------ */
.bcfe-sep {
    color: var(--bcfe-sep-color);
    font-size: var(--bcfe-sep-size);
    user-select: none;
    flex: 0 0 auto;
    opacity: .7;
}
.bcfe-sep-icon,
.bcfe-sep-text {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.bcfe-sep svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* ---- Iconos --------------------------------------------------------- */
.bcfe-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.bcfe-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}
.bcfe-home-icon {
    font-size: inherit;
}

/* ---- Página actual -------------------------------------------------- */
.bcfe-current .bcfe-text {
    font-weight: 600;
}

/* ---- Modo nativo (WooCommerce / Yoast / Rank Math) ------------------ */
.bcfe-breadcrumbs.bcfe-native .bcfe-list {
    display: block;
}
.bcfe-breadcrumbs.bcfe-native a {
    text-decoration: none;
    color: inherit;
}
.bcfe-breadcrumbs.bcfe-native .bcfe-sep {
    display: inline-flex;
    margin: 0 var(--bcfe-gap);
}
