.senwa-bf-interior { --bf-bar-height: 38px; }
.senwa-bf-bar-space { height: var(--bf-bar-height); }
.senwa-bf-bar {
    position: fixed;
    left: 0; right: 0;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 10000;
    height: var(--bf-bar-height);
    background: #b71216;
    color: white;
    font: 600 14px/1.15 Arial, sans-serif;
    text-align: center;
}
body.senwa-bf-interior .senwa-bf-bar a, body.senwa-bf-interior .senwa-bf-bar a:hover {
    height: 100%; display: flex; gap: 18px; align-items: center; justify-content: center;
    color: #fff !important; text-decoration: none !important;
}
.senwa-bf-bar a strong { color: inherit; font-weight: 850; font-style: italic; text-transform: uppercase; }
.senwa-bf-bar a > span { text-decoration: underline; text-underline-offset: 3px; }
.senwa-bf-interior #header-outer,
.senwa-bf-interior header.elementor-location-header #main-menu { translate: 0 var(--bf-bar-height); }
.senwa-bf-interior .elementor-location-header .elementor-sticky--active:not(.elementor-sticky__spacer) {
    top: calc(var(--bf-bar-height) + var(--wp-admin--admin-bar--height, 0px)) !important;
}
.senwa-bf-hero, .senwa-bf-catalog { font-family: inherit; box-sizing: border-box; }
.senwa-bf-hero {
    --bf-header: 105px;
    width: 100%; background: #111114;
    height: calc(100vh - var(--bf-header) - var(--wp-admin--admin-bar--height, 0px));
    height: calc(100dvh - var(--bf-header) - var(--wp-admin--admin-bar--height, 0px));
}
.senwa-bf-floating-nav .senwa-bf-hero { --bf-header: 0px; }
.wp-child-theme-senwa-electronics .senwa-bf-hero { margin-bottom: clamp(24px, 4vw, 60px); }
.wp-child-theme-hello-theme-child-master .senwa-bf-hero {
    background-color: #fff;
}
.senwa-bf-floating-nav .senwa-bf-hero, .senwa-bf-floating-nav .senwa-bf-catalog { padding-top: 146px; }
.senwa-bf-hero > a, .senwa-bf-hero > a:hover { display: grid; height: 100%; grid-template-rows: minmax(0, 1fr) auto; color: #fff; text-decoration: none !important; }
.senwa-bf-art { display: block; position: relative; overflow: hidden; container-type: size; }
body .senwa-bf-hero img.senwa-bf-poster {
    position: relative; z-index: 1; display: block;
    width: 100% !important; height: 100% !important; max-width: 100% !important;
    object-fit: contain; object-position: center; margin: 0;
}
/* Extend the outside pixels of the approved art behind the undistorted poster. */
.senwa-bf-art::before, .senwa-bf-art::after {
    position: absolute; inset: 0; pointer-events: none;
    border-image-source: var(--bf-art);
}
.senwa-bf-art::before {
    content: "";
    border-image-slice: 1 fill;
    border-image-width: max(0px, calc(50cqh - 100cqw / 6)) max(0px, calc(50cqw - 150cqh));
}
/* Stack the original title and product in portrait. A zero-width side border
   discards the other part of the source without redrawing either subject. */
@container (max-aspect-ratio: 7/10) {
    .senwa-bf-stacked img.senwa-bf-poster { opacity: 0; }
    .senwa-bf-stacked::before, .senwa-bf-stacked::after { content: ""; }
    .senwa-bf-stacked::before {
        bottom: auto; height: calc((1 - var(--bf-cut)) * 100%);
        border-image-slice: 1 calc((1 - var(--bf-cut)) * 100%) 1 0 fill;
        border-image-width: max(0px, calc((1 - var(--bf-cut)) * 50cqh - 100cqw / (6 * var(--bf-cut)))) 0;
    }
    .senwa-bf-stacked::after {
        top: auto; height: calc(var(--bf-cut) * 100%);
        border-image-slice: 1 0 1 calc(var(--bf-cut) * 100%) fill;
        border-image-width: max(0px, calc(var(--bf-cut) * 50cqh - 100cqw / (6 * (1 - var(--bf-cut))))) 0;
    }
}
.senwa-bf-hero-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px clamp(20px,5vw,84px); color: white; background: #111114;
}
.senwa-bf-collection { font-size: clamp(16px,2vw,28px); line-height: 1.15; font-weight: 650; letter-spacing: -.025em; }
.senwa-bf-button {
    display: inline-flex; align-items: center; gap: 14px; white-space: nowrap;
    padding: 12px 19px; background: #ffdb27; color: #111; border-radius: 999px;
    font: 700 15px/1.2 Arial,sans-serif;
}
.senwa-bf-hero a:focus-visible, .senwa-bf-bar a:focus-visible { outline: 3px solid #4087e5; outline-offset: -4px; }
.senwa-bf-catalog { background: #fff; color: #18181b; width: 100%; }
.senwa-bf-catalog-inner { width: min(1220px, 90%); margin: auto; padding: clamp(30px,5vw,76px) 0; }
.senwa-bf-catalog .senwa-bf-heading {
    margin: 0 0 28px; padding: 0; border: 0; text-align: center;
    font-family: inherit; font-size: clamp(38px,5vw,72px); font-weight: 750; letter-spacing: -.06em; line-height: 1.02;
    color: #18181b; scroll-margin-top: 190px;
}
.senwa-bf-products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px 24px; }
.senwa-bf-products.senwa-bf-pair { grid-template-columns: repeat(2,minmax(0,1fr)); }
.senwa-bf-card { min-width: 0; position: relative; }
.senwa-bf-badge {
    display: inline-flex; flex: none; align-items: center; gap: 6px; width: max-content; max-width: 100%;
    padding: 4px 10px 4px 5px; box-sizing: border-box; border-radius: 999px;
    background: #ffdb27; color: #151515; font: 700 12px/1.2 Arial, sans-serif;
    letter-spacing: 0; text-transform: none; white-space: nowrap; vertical-align: middle;
}
.senwa-bf-badge > span {
    display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
    color: #ffdb27; background: #151515; font: 12px/1 Arial, sans-serif;
}
.senwa-bf-card .senwa-bf-badge, .work-item > .senwa-bf-badge {
    position: absolute; z-index: 3; top: 9px; left: 9px; pointer-events: none;
}
.senwa-bf-card:has(.senwa-bf-badge) .senwa-bf-visual img {
    top: 32px; height: calc(82% - 22px);
}
.movistar-btn:has(> .senwa-bf-badge), .mv-movistar-wrap:has(> .senwa-bf-badge) {
    flex-direction: column; align-items: flex-start; row-gap: 8px;
}
.mv-movistar-wrap[style*="justify-content:center"]:has(> .senwa-bf-badge) { align-items: center; }
.elementor-widget-heading > .senwa-bf-badge { margin-bottom: 8px; }
.senwa-bf-card .senwa-bf-visual {
    position: relative; height: clamp(175px,18vw,245px); background: #f5f5f4; border-radius: 4px;
}
.senwa-bf-card .senwa-bf-visual img {
    position: absolute; inset: 0; display: block; margin: auto; padding: 0;
    width: 82%; height: 82%; object-fit: contain; object-position: center;
}
.senwa-bf-card .senwa-bf-kind { color: #515156; font-size: 14px; line-height: 1.4; margin: 14px 0 3px; padding: 0; }
body .senwa-bf-catalog .senwa-bf-card h2 { margin: 0 0 10px; font-family: inherit; font-size: clamp(21px,2.2vw,32px) !important; line-height: 1.15 !important; font-weight: 700; color: #18181b; letter-spacing: -.035em; }
.senwa-bf-card a.senwa-bf-offer {
    display: inline-flex; align-items: center; gap: 10px; box-sizing: border-box; max-width: 100%; min-height: 44px;
    padding: 6px 6px 6px 16px; border-radius: 999px; background: #111; color: #fff;
    font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
}
.senwa-bf-card a.senwa-bf-offer:hover, .senwa-bf-card a.senwa-bf-offer:focus { color: #fff; text-decoration: none; }
.senwa-bf-offer::before {
    content: ""; flex: none; width: 26px; height: 19px;
    background: url("assets/movistar.svg") center / contain no-repeat;
}
.senwa-bf-offer > span[aria-hidden] {
    position: relative; display: block; flex: none; margin-inline-start: auto;
    width: 32px; height: 32px; border-radius: 50%; background: #fff; font-size: 0;
    line-height: 0;
}
.senwa-bf-offer > span[aria-hidden]::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border: solid #111;
    border-width: 2px 2px 0 0; transform: translateX(-1px) rotate(45deg);
}
.senwa-bf-card a:focus-visible { outline: 2px solid #174faa; outline-offset: 3px; }
@media (min-width: 768px) and (max-width: 1023px) {
    .senwa-bf-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
    .senwa-bf-floating-nav .senwa-bf-hero, .senwa-bf-floating-nav .senwa-bf-catalog { padding-top: 112px; }
    .senwa-bf-hero { --bf-header: 84px; }
    .senwa-bf-hero-foot { padding: 14px 16px; }
    .senwa-bf-button { font-size: 14px; padding: 10px 13px; gap: 6px; }
    .senwa-bf-products, .senwa-bf-products.senwa-bf-pair { grid-template-columns: 1fr; gap: 0; }
    .senwa-bf-card {
        display: grid; grid-template-columns: minmax(78px, 30%) minmax(0, 1fr);
        grid-template-areas: "photo kind" "photo model" "offer offer"; gap: 0 16px;
        border-bottom: 1px solid #dededc; padding: 16px 0;
    }
    .senwa-bf-card .senwa-bf-visual { grid-area: photo; height: clamp(92px, 26vw, 155px); }
    .senwa-bf-card .senwa-bf-visual + div { display: contents; }
    .senwa-bf-card:has(.senwa-bf-badge) {
        grid-template-areas: "photo badge" "photo kind" "photo model" "offer offer";
    }
    .senwa-bf-card .senwa-bf-badge {
        position: static; grid-area: badge; align-self: end; margin: 0 0 5px;
    }
    .senwa-bf-card:has(.senwa-bf-badge) .senwa-bf-visual img { top: 0; height: 82%; }
    .senwa-bf-card .senwa-bf-kind { grid-area: kind; align-self: end; margin-top: 0; }
    body .senwa-bf-catalog .senwa-bf-card h2 { grid-area: model; align-self: start; margin-bottom: 0; }
    .senwa-bf-card .senwa-bf-offer { grid-area: offer; justify-self: start; margin-top: 12px; }
    .senwa-bf-catalog .senwa-bf-heading { margin-bottom: 12px; }
}
