/* Diseño de Bestfy adaptado a la portada de BestfyPlay. */

/* Las dos filas de slots comparten el mismo carrusel y sus controles nativos. */
#bestfy-prisma .bf-slider-track.bf-slots-track {
  --visible: 3;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
}
@media (max-width: 991px) {
  #bestfy-prisma .bf-slider-track.bf-slots-track { --visible: 2; }
}
@media (max-width: 767px) {
  #bestfy-prisma .bf-slider-track.bf-slots-track { --visible: 1; }
}
#bestfy-prisma .bf-single-featured-play > .bf-hero-play-icon {
  display: block;
  width: 100%;
  height: auto;
}
#bestfy-prisma.bf .bf7-ranking-panel,
#bestfy-prisma.bf .bf7-promos-panel{padding:20px;border:1px solid #dce5f0;border-radius:16px;background:#fff;box-shadow:0 1px 2px #0b244510;align-self:start}
#bestfy-prisma.bf .bf7-ranking-list{display:grid;gap:12px;margin-top:21px}
#bestfy-prisma.bf .bf7-rank-item{position:relative;padding:12px;border:1px solid #dce5f0;border-radius:12px;background:#fff;min-width:0;transition:border-color .18s,box-shadow .18s}
#bestfy-prisma.bf .bf7-rank-item:hover{border-color:#becde1;box-shadow:0 3px 12px #1439560a}
#bestfy-prisma.bf .bf7-rank-first{border:1px solid #fbbf24;background:linear-gradient(100deg,#fffbef,#fff 80%)}
#bestfy-prisma.bf .bf7-most-popular{position:absolute;top:-10px;right:12px;border-radius:12px;background:#f59e0b;color:#111827;padding:2px 8px;font-size:9px;font-weight:900;line-height:1.25;white-space:nowrap}
#bestfy-prisma.bf .bf7-rank-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
#bestfy-prisma.bf .bf7-rank-name{display:flex;align-items:center;gap:9px;min-width:0}
#bestfy-prisma.bf .bf7-rank-name h4{font:800 12px/1.3 Inter,system-ui,sans-serif;color:#0f172a;min-width:0;overflow-wrap:anywhere}
#bestfy-prisma.bf .bf7-rank-number{display:flex;justify-content:center;align-items:center;flex:0 0 24px;height:24px;background:#f1f5f9;border-radius:50%;font-size:11px;font-weight:800;color:#475569}
#bestfy-prisma.bf .bf7-rank-item[data-rank="1"] .bf7-rank-number{background:#fbbf24;color:#111827}
#bestfy-prisma.bf .bf7-rank-item[data-rank="2"] .bf7-rank-number{background:#e2e8f0;color:#334155}
#bestfy-prisma.bf .bf7-rank-item[data-rank="3"] .bf7-rank-number{background:#f0ddcb;color:#92400e}
#bestfy-prisma.bf .bf7-bonus-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;background:var(--bf7-cta);color:var(--bf7-cta-text);min-height:30px;padding:7px 10px;border-radius:8px;white-space:nowrap;font-size:10px;font-weight:800;line-height:1.2;transition:filter .2s,transform .2s}
#bestfy-prisma.bf .bf7-bonus-button:hover,
#bestfy-prisma.bf .bf7-promo-action:hover{filter:brightness(.94)}
#bestfy-prisma.bf .bf7-bonus-button:active{transform:translateY(1px)}
#bestfy-prisma.bf .bf7-rank-offer{margin-top:8px;padding-top:8px;border-top:1px solid #f1f5f9;color:#0f172a;font-size:11px;line-height:1.45;font-weight:650}
#bestfy-prisma.bf .bf7-rank-first .bf7-rank-offer{border-top-color:#fef0bf}
#bestfy-prisma.bf .bf7-rank-blue{color:#1d4ed8;font-weight:750}
#bestfy-prisma.bf .bf7-promos-heading{padding-bottom:14px;border-bottom:1px solid #eef2f7}
#bestfy-prisma.bf .bf7-promos-heading h3{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:900;line-height:1.4;color:#0f172a}
#bestfy-prisma.bf .bf7-promos-list{display:grid;gap:10px;margin-top:16px;max-height:none;overflow:visible}
#bestfy-prisma.bf .bf7-promo-item{display:flex;align-items:center;gap:7px;padding:10px 8px;background:#f8fafcb3;border:1px solid #edf2f8;border-radius:8px;min-width:0;transition:background .18s}
#bestfy-prisma.bf .bf7-promo-item:hover{background:#f1f5f9}
#bestfy-prisma.bf .bf7-promo-number{flex:0 0 20px;font-size:11px;font-weight:800;color:#8799b3;font-variant-numeric:tabular-nums}
#bestfy-prisma.bf .bf7-promo-info{flex:1 1 0;min-width:0}
#bestfy-prisma.bf .bf7-promo-info h4{font-size:11px;line-height:1.35;font-weight:850;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#bestfy-prisma.bf .bf7-promo-info p{font-size:9px;line-height:1.5;color:#62748f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
#bestfy-prisma.bf .bf7-promo-actions{display:flex;gap:5px;flex:0 0 auto;align-items:center}
#bestfy-prisma.bf .bf7-promo-action,
#bestfy-prisma.bf .bf7-review-action{display:flex;align-items:center;justify-content:center;font-size:9px;line-height:1.2;min-height:28px;padding:5px 6px;border-radius:4px;white-space:nowrap}
#bestfy-prisma.bf .bf7-promo-action{font-weight:750;background:var(--bf7-cta);color:var(--bf7-cta-text)}
#bestfy-prisma.bf .bf7-review-action{border:1px solid #dce5f0;background:#fff;color:#334155}
#bestfy-prisma.bf .bf7-review-action:hover{background:#eaf1fa}
#bestfy-prisma.bf .bf7-ranking-panel a:focus-visible,
#bestfy-prisma.bf .bf7-promos-panel a:focus-visible{outline:2px solid #0071bc;outline-offset:3px}
@media (max-width:1279px) and (min-width:1200px){
#bestfy-prisma.bf .bf7-ranking-panel,
#bestfy-prisma.bf .bf7-promos-panel{padding:14px}
#bestfy-prisma.bf .bf7-rank-item{padding:10px}
#bestfy-prisma.bf .bf7-rank-name{gap:6px}
#bestfy-prisma.bf .bf7-rank-name h4{font-size:11px}
#bestfy-prisma.bf .bf7-bonus-button{font-size:9px;padding:7px 8px}
#bestfy-prisma.bf .bf7-promo-item{gap:5px;padding:9px 6px}
#bestfy-prisma.bf .bf7-promo-number{flex-basis:17px}
#bestfy-prisma.bf .bf7-promo-actions{gap:4px}
#bestfy-prisma.bf .bf7-promo-action,
#bestfy-prisma.bf .bf7-review-action{font-size:8px;padding:5px}
}
@media (max-width:767px){
#bestfy-prisma.bf .bf7-promo-action,
#bestfy-prisma.bf .bf7-review-action{min-height:34px;font-size:10px;padding:7px}
#bestfy-prisma.bf .bf7-promo-info h4{font-size:12px}
#bestfy-prisma.bf .bf7-promo-info p{font-size:10px}
#bestfy-prisma.bf .bf7-bonus-button{min-height:34px}
}
@media (max-width:359px){
#bestfy-prisma.bf .bf7-ranking-panel,
#bestfy-prisma.bf .bf7-promos-panel{padding:13px}
#bestfy-prisma.bf .bf7-promo-item{gap:5px;padding:8px 6px}
#bestfy-prisma.bf .bf7-promo-actions{gap:4px}
#bestfy-prisma.bf .bf7-promo-action,
#bestfy-prisma.bf .bf7-review-action{font-size:9px;padding:6px}
#bestfy-prisma.bf .bf7-promo-number{flex-basis:18px}
}
#bestfy-prisma .bf7-icon{width:19px;height:19px;flex:0 0 auto;display:inline-block;vertical-align:middle}
@media (prefers-reduced-motion:reduce){
#bestfy-prisma.bf .bf7-rank-item,
#bestfy-prisma.bf .bf7-bonus-button,
#bestfy-prisma.bf .bf7-promo-item{transition:none!important}
}
#bestfy-prisma.bf .bf-source-ranking a.bf7-bonus-button,
#bestfy-prisma.bf .bf-source-ranking a.bf7-promo-action{color:var(--bf7-cta-text);background-color:var(--bf7-cta)}
#bestfy-prisma.bf .bf-source-ranking a.bf7-review-action{color:#334155}
body.bestfy-prisma-wp .main-container{min-width:0;flex:1 1 0;width:auto;padding:0!important;background:#fff!important}
body.bestfy-prisma-wp .bestfy-prisma-content{width:100%;min-width:0}
#bestfy-prisma{font-family:Lato,'Segoe UI',sans-serif;font-size:14px;line-height:1.5;--ink:#142639;--muted:#667483;--blue:#0071bc;--line:#e0e8ef;--paper:#fff;--wash:#f5f8fa}
#bestfy-prisma *,
#bestfy-prisma *:before,
#bestfy-prisma *:after{box-sizing:border-box}
#bestfy-prisma a{text-decoration:none;color:inherit}
#bestfy-prisma h1,
#bestfy-prisma h2,
#bestfy-prisma h3,
#bestfy-prisma h4{color:inherit}
#bestfy-prisma button{font-family:inherit;text-transform:none;letter-spacing:normal}
#bestfy-prisma .bf-layout{max-width:none;width:100%}
#bestfy-prisma .bf-card{position:relative}
#bestfy-prisma .bf-media{flex:none}
#bestfy-prisma .bf-image-link{display:block;position:absolute;inset:0}
#bestfy-prisma .bf-image-link .bf-photo{display:block;width:100%;height:100%;object-fit:cover}
#bestfy-prisma .bf-image-empty{display:block;width:100%;height:100%;background:linear-gradient(135deg,#e4edf4,#f7fafc)}
#bestfy-prisma .bf-hero-image-link{display:block;position:absolute;inset:0}
#bestfy-prisma .bf-hero-image-link img{width:100%;height:100%;object-fit:cover}
#bestfy-prisma .bf-hero-image:after{pointer-events:none}
#bestfy-prisma .bf-house-link{display:inline-flex;align-items:center;min-width:0}
#bestfy-prisma .bf-brand.bf-dynamic-brand{background:var(--brand-bg);color:var(--brand-fg);padding:3px 7px;border:0;box-shadow:none;max-width:120px}
#bestfy-prisma .bf-dynamic-brand img{object-fit:contain;max-width:100%;height:26px;width:auto;border:0;box-shadow:none}
#bestfy-prisma .bf-dynamic-brand .bf-brand-fallback{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#bestfy-prisma .bf-card-brand{z-index:3}
#bestfy-prisma .bf-hero-brand{z-index:3}
#bestfy-prisma .bf-hero h2{font-size:clamp(27px,3.25cqw,42px)}
#bestfy-prisma .bf-hero p{font-size:16px}
#bestfy-prisma .bf-terms{display:block;font-size:9px;line-height:1.4;margin-top:9px;color:#526b80}
#bestfy-prisma .bf-featured.image-first .bf-terms{color:#f1f6fa}
#bestfy-prisma .bf-featured.image-first .bf-brand-rail .bf-house-link{display:inline-flex;min-width:0;min-height:0}
#bestfy-prisma .bf-featured.image-first .bf-brand-rail .bf-dynamic-brand{padding:0;background:transparent}
#bestfy-prisma.bf .bf-featured-track{grid-template-columns:repeat(2,minmax(0,1fr))}
#bestfy-prisma .bf-featured.image-first .bf-media{aspect-ratio:16/9}
#bestfy-prisma .bf-demo-notice{font-size:11px;color:#6c7885;margin:0 0 15px;border-left:2px solid #b9cbd9;padding-left:9px;line-height:1.5}
#bestfy-prisma .bf7-promos-heading .bf-icon{width:18px;height:18px;color:#0071bc}
#bestfy-prisma .bf7-promos-heading h3{display:flex;align-items:center;gap:8px}
#bestfy-prisma .bf7-promo-info{flex:1;min-width:0}
#bestfy-prisma .bf7-promo-info h4{margin:0}
#bestfy-prisma .bf7-promo-info p{margin:0}
#bestfy-prisma .bf-ad-native{width:100%;max-width:100%;margin:32px 0;text-align:center;overflow-x:auto}
#bestfy-prisma .bf-ad-native img,
#bestfy-prisma .bf-ad-native iframe{max-width:100%;border-radius:8px}
#bestfy-prisma .bf-ad-native iframe{border:0}
#bestfy-prisma .bf-top-ranking-native{display:block;max-width:100%;min-width:0}
#bestfy-prisma #ranking-casas .bf-top-ranking-native > ul[id^="bestf-grid-"]:not(.bf8-native-track){display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;max-width:100%!important;height:auto!important;list-style:none!important;margin:0!important;padding:0!important;overflow:visible!important}
#bestfy-prisma #ranking-casas .bf-top-ranking-native > ul[id^="bestf-grid-"]:not(.bf8-native-track) > li{float:none!important;display:block!important;flex:0 0 auto!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
@media(max-width:767px){
#bestfy-prisma #ranking-casas .bf-top-ranking-native > ul[id^="bestf-grid-"]:not(.bf8-native-track){flex-direction:row!important;gap:12px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:13px 3px 5px!important;scroll-snap-type:x mandatory;scroll-padding-inline:3px;scrollbar-width:none}
#bestfy-prisma #ranking-casas .bf-top-ranking-native > ul[id^="bestf-grid-"]:not(.bf8-native-track) > li{flex:0 0 calc(100% - 24px)!important;width:calc(100% - 24px)!important;max-width:none!important;scroll-snap-align:start}
}
#bestfy-prisma .bf-top-ranking-native .arrow{display:none!important;}
#bestfy-prisma ul{height:100%;padding-top: 1rem;}
#bestfy-prisma .bf-top-ranking-native .AAranking{position:relative!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;background:#fff!important;border:1px solid #dbe5f0!important;border-radius:11px!important;padding:12px!important;margin:0 0 10px!important;color:#15263d!important;box-shadow:none!important;overflow:visible!important}
#bestfy-prisma .bf-top-ranking-native .AAranking>a{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;column-gap:9px!important;row-gap:8px!important;color:#15263d!important;width:100%!important;height:auto!important}
#bestfy-prisma .bf-top-ranking-native .AAranking>a>div:first-child{grid-column:1;grid-row:1;display:flex!important;align-items:center!important;gap:8px!important;height:auto!important;min-height:30px!important;margin:0!important;width:auto!important;justify-content: inherit;
  gap: 1rem !important;}
#bestfy-prisma .bf-top-ranking-native .AAranking strong{display:grid!important;place-items:center;flex:none;width:24px!important;height:24px!important;border-radius:50%;background:#f1f5f9;font-size:11px!important;color:#536780!important;margin:0!important;position:relative;}
#bestfy-prisma .bf-top-ranking-native .AAranking img{max-width:80px!important;border-radius:8px;object-fit:contain;filter:none!important}
#bestfy-prisma .bf-top-ranking-native .AAranking.bf-ad-enhanced img{display:none!important}
#bestfy-prisma .bf-top-ranking-native .AAranking .bf-ad-house-name{font-family:Inter,Lato,sans-serif;font-size:12px!important;font-weight:800!important;line-height:1.2;color:#13243a!important;white-space:normal;word-break:normal;display:none;}
#bestfy-prisma .bf-top-ranking-native .AAranking>a>div:nth-child(2){grid-column:1/-1;grid-row:2;width:auto!important;margin:0!important;display:block;padding:9px 0 0!important;border-top:1px solid #edf1f7!important;background:transparent!important;color:#15263d!important;border-radius:0!important;line-height:1.35!important;text-align:center!important}
#bestfy-prisma .bf-top-ranking-native .AAranking>a>div:nth-child(2) span{font-size:13px!important;color:inherit!important;font-weight:650!important;line-height:1.35!important}
#bestfy-prisma .bf7-rank-offer .bf-terms{margin-top:0 !important;}
#bestfy-prisma .bf-top-ranking-native .AAranking > a > .bf7-rank-offer{display: flex !important;
  justify-content: space-between !important;
  align-items: center;}
#bestfy-prisma .bf-top-ranking-native .AAranking button{grid-column:2;grid-row:1;background:var(--ad-brand,#0071bc)!important;color:#fff !important;border:0!important;border-radius:6px!important;padding:8px 9px!important;font-size:9px!important;font-weight:800!important;line-height:1.2!important;white-space:nowrap!important;width:auto!important;height:auto!important;margin:0!important;min-height:35px!important;box-shadow:none!important}
#bestfy-prisma .bf-top-ranking-native .AAranking[data-bf-rank="1"]{border-color:#f4b529!important;background:linear-gradient(100deg,#fffbef,#fff 70%)!important}
#bestfy-prisma .bf-top-ranking-native .AAranking[data-bf-rank="1"] strong{background:#ffc229;color:#192330!important}
#bestfy-prisma .bf-top-ranking-native .AAranking[data-bf-rank="2"] strong{background:#e2e8f0}
#bestfy-prisma .bf-top-ranking-native .AAranking[data-bf-rank="3"] strong{background:#f3dfcc;color:#9a501a!important}
#bestfy-prisma .bf-top-ranking-native .bestf-highlight-wrapper{max-width:100%!important;width:100%!important}
#bestfy-prisma .bf-stories-native{margin:0 0 25px;min-width:0;max-width:100%}
#bestfy-prisma .bf-stories-native .wpstory-shortcode-wrapper{margin-bottom:0}
@media(max-width:767px){
#bestfy-prisma{padding-top:78px;padding-bottom:90px}
#bestfy-prisma.bf .bf-featured-track{grid-template-columns:none}
#bestfy-prisma .bf-hero h2{font-size:29px}
#bestfy-prisma .bf-hero-image-link{position:absolute}
}
#bestfy-prisma .bf-top-ranking-native .AAranking[data-bf-rank="1"]::before{content:"#1 M\00c1 S POPULAR";position:absolute;right:12px;top:-9px;background:#f6b21f;color:#152033;font:800 8px/1.4 Inter,Lato,sans-serif;letter-spacing:.2px;border-radius:8px;padding:2px 8px;z-index:1}
#bestfy-prisma .bf-top-ranking-native{padding-top:7px}
#bestfy-prisma.bf-final .bf-right{min-width:0}
@media(max-width:1372px){
#bestfy-prisma.bf-final .bf-layout{grid-template-columns:minmax(0,1fr)}
}
@media(min-width:1024px) and (max-width:1372px){
#bestfy-prisma.bf-final .bf-right{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
#bestfy-prisma.bf-final #ranking-casas{grid-column:1;grid-row:1;margin:0}
#bestfy-prisma.bf-final #ranking-promociones{grid-column:2;grid-row:1 / span 2;margin:0}
#bestfy-prisma.bf-final .bf-responsible{grid-column:1/-1}
}
@media(min-width:768px) and (max-width:1023px){
#bestfy-prisma.bf-final .bf-right{display:block}
}
#bestfy-prisma.bf .bf8-rail-nav{display:none}
@media(max-width:767px){
#bestfy-prisma.bf-final .bf7-ranking-panel,
#bestfy-prisma.bf-final .bf7-promos-panel{padding:20px 16px 12px}
#bestfy-prisma.bf-final .bf7-ranking-list,
#bestfy-prisma.bf-final .bf7-promos-list{display:flex;gap:12px;position:relative;
    overflow-x:auto;overflow-y:hidden;max-height:none;
    margin:10px -3px 0;padding:13px 3px 5px;
    scroll-snap-type:x mandatory;scroll-padding-inline:3px;scroll-behavior:smooth;
    scrollbar-width:none;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;}
#bestfy-prisma.bf-final .bf7-ranking-list::-webkit-scrollbar,
#bestfy-prisma.bf-final .bf7-promos-list::-webkit-scrollbar{display:none}
#bestfy-prisma.bf-final .bf7-rank-item,
#bestfy-prisma.bf-final .bf7-promo-item{flex:0 0 calc(100% - 24px);min-width:0;
    scroll-snap-align:start;scroll-snap-stop:always;box-sizing:border-box;}
#bestfy-prisma.bf-final .bf7-rank-item{padding:15px 13px;min-height:133px}
#bestfy-prisma.bf-final .bf7-rank-name{gap:7px}
#bestfy-prisma.bf-final .bf7-rank-name h4{font-size:13px}
#bestfy-prisma.bf-final .bf7-rank-number{flex-basis:26px;height:26px;font-size:11px}
#bestfy-prisma.bf-final .bf7-bonus-button{min-height:40px;padding:8px;font-size:10px}
#bestfy-prisma.bf-final .bf7-most-popular{top:-9px;font-size:9px;padding:3px 8px}
#bestfy-prisma.bf-final .bf7-promo-item{display:grid;grid-template-columns:25px minmax(0,1fr);align-items:start;
    align-content:start;gap:8px 9px;padding:15px 14px;min-height:168px;border-radius:12px;}
#bestfy-prisma.bf-final .bf7-promo-number{display:grid;place-items:center;width:25px;height:25px;
    border-radius:7px;background:#e8eff6;font-size:11px;line-height:1;color:#55708a;}
#bestfy-prisma.bf-final .bf7-promo-info h4{font-size:14px;line-height:1.6;white-space:normal;overflow:visible}
#bestfy-prisma.bf-final .bf7-promo-info p{font-size:12px;line-height:1.5;margin-top:5px;white-space:normal;overflow:visible;text-overflow:clip}
#bestfy-prisma.bf-final .bf7-promo-actions{grid-column:1/-1;gap:8px;margin-top:6px;align-self:end;width:100%}
#bestfy-prisma.bf-final .bf7-promo-action,
#bestfy-prisma.bf-final .bf7-review-action{min-height:40px;font-size:11px;border-radius:6px;flex:1;padding:8px}
#bestfy-prisma.bf .bf8-rail-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px}
#bestfy-prisma.bf .bf8-rail-hint{font-size:10px;line-height:1.4;color:#6c8195}
#bestfy-prisma.bf .bf8-rail-buttons{display:flex;align-items:center;gap:2px}
#bestfy-prisma.bf .bf8-rail-count{min-width:42px;text-align:center;font-size:10px;line-height:1.4;color:#526e83;font-variant-numeric:tabular-nums}
#bestfy-prisma.bf .bf-source-ranking .bf8-rail-arrow{display:grid;place-items:center;width: 38px;
    height: 38px;
    min-height: 38px;padding:0;
    border:1px solid #dce7ef;border-radius:50%;background:#fff;color:#0071bc;}
#bestfy-prisma.bf .bf-source-ranking .bf8-rail-arrow:disabled{opacity:.35;cursor:not-allowed}
#bestfy-prisma.bf .bf8-rail-arrow .bf-icon{width:17px;height:17px}
#bestfy-prisma.bf .bf8-rail-arrow:not(:disabled):hover{background:#edf6fc}
#bestfy-prisma.bf .bf7-ranking-list:focus-visible,
#bestfy-prisma.bf .bf7-promos-list:focus-visible{outline:3px solid #0071bc;outline-offset:3px;border-radius:9px}
}
@media(max-width:359px){
#bestfy-prisma.bf-final .bf7-ranking-panel,
#bestfy-prisma.bf-final .bf7-promos-panel{padding:17px 13px 10px}
#bestfy-prisma.bf-final .bf7-rank-item,
#bestfy-prisma.bf-final .bf7-promo-item{flex-basis:calc(100% - 14px)}
#bestfy-prisma.bf-final .bf7-rank-top{flex-wrap:wrap;row-gap:9px}
#bestfy-prisma.bf-final .bf7-rank-name{flex:1}
#bestfy-prisma.bf .bf8-rail-hint{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
#bestfy-prisma.bf-final .bf7-ranking-list,
#bestfy-prisma.bf-final .bf7-promos-list{scroll-behavior:auto}
}
#bestfy-prisma .bf8-rail-nav[hidden]{display:none!important}
#bestfy-prisma .bf-top-ranking-native .AAranking img.bf8-native-logo{display:inline-block!important;object-fit:contain}
#bestfy-prisma .bf-top-ranking-native .AAranking img.bf8-native-logo[hidden]{display:none!important}
#bestfy-prisma .bf-top-ranking-native .AAranking>a>div:first-child{min-width:0}
#bestfy-prisma .bf-top-ranking-native .AAranking>a>div:first-child strong{flex:0 0 24px}
#bestfy-prisma .bf8-native-track{display:flex!important;flex-direction:column!important;align-items:stretch!important;max-width:100%!important;min-width:0;width:100%!important;gap:0!important}
#bestfy-prisma .bf8-native-slide{min-width:0;max-width:100%;float:none!important;width:100%!important}
#bestfy-prisma .bf8-native-track[hidden],
#bestfy-prisma .bf8-native-slide[hidden]{display:none!important}
#bestfy-prisma .bf-bonus-footer{margin-top:16px;padding-top:14px;border-top:1px solid #e6edf3}
#bestfy-prisma.bf .bf-source-ranking .bf-bonus-more{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;
  border:1px solid #d2e5f1;border-radius:8px;background:#edf6fc;color:#0067a5;
  font:800 12px/1.4 Lato,sans-serif;text-decoration:none;}
#bestfy-prisma.bf .bf-source-ranking .bf-bonus-more:hover{background:#0071bc;border-color:#0071bc;color:#fff}
#bestfy-prisma .bf-bonus-more .bf-icon{width:16px;height:16px}
#bestfy-prisma .bf-featured.image-first .bf-brand-rail .bf-house-link{display:inline-flex;min-width:0}
#bestfy-prisma .bf-featured.image-first .bf-brand-rail .bf-dynamic-brand{padding:0;background:transparent}
@media(max-width:767px){
#bestfy-prisma.bf-final .bf8-native-track{flex-direction:row!important;align-items:stretch!important;gap:12px!important;
    position:relative;overflow-x:auto;overflow-y:hidden;margin:10px 0 0!important;
    padding:13px 3px 5px!important;scroll-snap-type:x mandatory;scroll-padding-inline:3px;
    scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;}
#bestfy-prisma .bf8-native-track::-webkit-scrollbar{display:none}
#bestfy-prisma.bf-final .bf8-native-track>.bf8-native-slide{flex:0 0 calc(100% - 24px)!important;width:calc(100% - 24px)!important;
    max-width:none!important;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;
    margin:0!important;float:none!important;box-sizing:border-box;}
#bestfy-prisma.bf-final .bf-top-ranking-native .AAranking{min-height:133px!important;margin-bottom:0!important}
#bestfy-prisma.bf-final .bf8-native-slide .AAranking{width:100%!important;height:100%!important}
#bestfy-prisma.bf-final .bf-top-ranking-native .AAranking button{min-height:40px!important;font-size:10px!important}
#bestfy-prisma .bf8-native-track:focus-visible{outline:3px solid #0071bc;outline-offset:3px;border-radius:8px}
#bestfy-prisma .bf-bonus-footer{margin-top:10px;padding-top:12px}
}
@media(max-width:359px){
#bestfy-prisma.bf-final .bf8-native-track>.bf8-native-slide{flex-basis:calc(100% - 14px)!important;width:calc(100% - 14px)!important}
#bestfy-prisma .bf-top-ranking-native .AAranking>a{column-gap:6px!important}
#bestfy-prisma .bf-top-ranking-native .AAranking img.bf8-native-logo{max-width:70px!important}
}
@media(prefers-reduced-motion:reduce){
#bestfy-prisma .bf8-native-track{scroll-behavior:auto!important}
}
#bestfy-prisma [hidden]{display:none!important}
#bestfy-prisma .bf-ad-label{display:block;width:100%;text-align:center;line-height:1.4;letter-spacing:.5px;padding:0;font-family:Roboto,sans-serif;font-weight:normal;color:#00000080;font-size:12px!important}
#bestfy-prisma .bf-single-featured{position:relative;isolation:isolate;overflow:hidden;border-radius:8px;margin-bottom:24px;background:#102536}
#bestfy-prisma .bf-single-featured-image{display:block}
#bestfy-prisma .bf-single-featured-image .bf-photo{display:block;width:100%;height:auto;filter:brightness(.8)}
#bestfy-prisma .bf-single-featured-image .bf-image-empty{display:block;min-height:260px}
#bestfy-prisma .bf-single-featured-overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;padding:24px;pointer-events:none;background:linear-gradient(transparent 45%,#06172b99)}
#bestfy-prisma .bf-single-featured-overlay h2{margin:0;color:#fff;font-size:clamp(.9rem,2vw,1.5rem);line-height:1.3;overflow-wrap:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#bestfy-prisma .bf-single-featured-overlay h2 a{color:inherit;pointer-events:auto}
#bestfy-prisma .bf-single-featured.has-video .bf-single-featured-overlay{padding-right:110px}
#bestfy-prisma .bf-single-featured-play{position:absolute;bottom:10px;right:10px;width:clamp(60px,10vw,80px);z-index:2}
#bestfy-prisma .bf-single-featured-play img{display:block;width:100%;height:auto}
#bestfy-prisma .bf-featured-corner-brand{position:absolute;top:10px;right:10px;z-index:3;width:clamp(30px,5vw,40px)}
#bestfy-prisma .bf-featured-corner-brand .bf-house-link{display:block;min-width:0;min-height:0}
#bestfy-prisma .bf-featured-corner-brand .bf-brand{display:block;background:transparent;border:0;padding:0;min-width:0;width:100%;height:auto;box-shadow:none}
#bestfy-prisma .bf-featured-corner-brand .bf-brand img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;border-radius:4px}
#bestfy-prisma .bf-featured-corner-brand .bf-brand-fallback{font-size:9px;white-space:normal}
#bestfy-prisma .bf-featured.image-first .bf-card-copy{bottom:0}
@media(max-width:767px){
#bestfy-prisma .bf-single-featured-overlay{padding:13px}
#bestfy-prisma .bf-single-featured.has-video .bf-single-featured-overlay{padding-right:65px}
#bestfy-prisma .bf-single-featured-play{width:50px;bottom:5px;right:5px}
#bestfy-prisma .bf-featured-corner-brand{width:25px;top:5px;right:5px}
}
#bestfy-prisma .bf-promo-footer{display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;}
#bestfy-prisma .bf-promo-footer .bf-read,
#bestfy-prisma .bf-promo-footer .bf-terms{margin: 0;
    padding: 0;}
#bestfy-prisma .bf-promo-footer .bf-read{min-height: 26px;
    white-space: nowrap;}
#bestfy-prisma .bf-promo-footer .bf-terms{flex-shrink: 0;
    white-space: nowrap;}
#bestfy-prisma [data-bf-mobile-slot]:empty{display:none}
@media(max-width:767px){
#bestfy-prisma [data-bf-mobile-slot]{margin:20px 0;min-width:0}
}

/* Mantener cada rótulo encima de su ranking cuando el lateral pasa a dos columnas. */
@media (min-width: 1024px) and (max-width: 1372px) {
  #bestfy-prisma.bf-final .bf-right { row-gap: 8px; }
  #bestfy-prisma.bf-final .publi-ranking-casas { grid-column: 1; grid-row: 1; }
  #bestfy-prisma.bf-final .publi-promo-ranking { grid-column: 2; grid-row: 1; }
  #bestfy-prisma.bf-final #ranking-casas { grid-column: 1; grid-row: 2; }
  #bestfy-prisma.bf-final #ranking-promociones { grid-column: 2; grid-row: 2; }
}
#bestfy-prisma.bf-final .bf-right:not(:has(> *)) { display: none; }
/* Aprovechar el ancho completo cuando la edición no tiene ningún ranking. */
#bestfy-prisma.bf-final .bf-layout.bf-layout--full { grid-template-columns: minmax(0, 1fr); }

/* Conservar el fondo de BestfyPlay y el contraste de las secciones de portada. */
body.bestfyplay-home .main-container {
  background: #242a3e !important;
}
body.bestfyplay-home #bestfy-prisma.bf {
  --paper: #242a3e;
  background: #242a3e;
}
#bestfy-prisma.bf-final .bf-section-head :is(h2, .bf-section-title),
#bestfy-prisma.bf-final .bf-section-overline,
#bestfy-prisma.bf-final .bf-carousel-count,
#bestfy-prisma.bf-final .bf-stories-native {
  color: #f5f7ff;
}
#bestfy-prisma.bf-final .bf-stories-native :is([class*="title"], [class*="name"]) {
  color: #f5f7ff !important;
}
#bestfy-prisma.bf-final :is(.publi-ranking-casas, .publi-promo-ranking, .bf-ad-label) {
  color: #c1c9db !important;
}
#bestfy-prisma.bf-final .bf-page-dots i { background: #68758f; }
#bestfy-prisma.bf-final .bf-page-dots i.active { background: #61e85f; }

/* Limitar únicamente el texto, manteniendo visibles los enlaces y botones. */
#bestfy-prisma.bf-final .bf-card h3,
#bestfy-prisma.bf-final .bf-single-featured-overlay h2,
#bestfy-prisma.bf-final .bf-hero h2,
#bestfy-prisma.bf-final .bf-more-card :is(h3, p),
#bestfy-prisma.bf-final .bf7-promo-info :is(h4, p),
#bestfy-prisma.bf-final .bf7-rank-name h4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  height: auto;
  min-height: 0;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

/* El nombre y la oferta de Top Bonos ocupan una línea cada uno. */
#bestfy-prisma.bf-final .bf7-promo-info :is(h4, p) {
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

/* Sobrescribir la presentación de Advanced Ads sin alterar el grupo ni sus enlaces. */
#bestfy-prisma.bf-final .bf-top-ranking-native ul[id^="bestf-grid-"],
#bestfy-prisma.bf-final .bf-top-ranking-native ul[id^="bestf-grid-"] > li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
#bestfy-prisma.bf-final :is(.bf7-ranking-panel, .bf7-promos-panel) {
  background: #2b334b !important;
  border-color: #414d69 !important;
  box-shadow: 0 2px 12px #0c10261a;
  color: #f5f7ff;
}
#bestfy-prisma.bf-final .bf7-promos-heading {
  border-color: #414d69;
}
#bestfy-prisma.bf-final .bf7-promos-heading h3 {
  color: #f5f7ff;
}
#bestfy-prisma.bf-final .bf7-promos-heading .bf-icon {
  color: #61e85f;
}
#bestfy-prisma.bf-final #ranking-casas .AAranking {
  background: #303a54 !important;
  border-color: #46536f !important;
  color: #f5f7ff !important;
}
#bestfy-prisma.bf-final #ranking-casas .AAranking:hover {
  background: #35425d !important;
  border-color: #6b7b9e !important;
}
#bestfy-prisma.bf-final #ranking-casas .AAranking > a {
  color: #f5f7ff !important;
}
#bestfy-prisma.bf-final #ranking-casas .AAranking strong {
  background: #45516d !important;
  color: #f5f7ff !important;
}
#bestfy-prisma.bf-final #ranking-casas .AAranking[data-bf-rank="1"] {
  background: linear-gradient(110deg, #344a40, #303a54 75%) !important;
  border-color: #61e85f !important;
}
#bestfy-prisma.bf-final #ranking-casas .AAranking[data-bf-rank="1"] strong {
  background: #61e85f !important;
  color: #13261b !important;
}
#bestfy-prisma.bf-final #ranking-casas .AAranking > a > .bf7-rank-offer {
  border-color: #46536f !important;
  color: #e1e7f4 !important;
  min-width: 0;
  gap: 8px;
}
#bestfy-prisma.bf-final #ranking-casas .AAranking .bf7-rank-offer > span:not(.bf-terms) {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1 1 auto;
}
#bestfy-prisma.bf-final #ranking-casas .AAranking .bf7-rank-offer > .bf-terms { flex: 0 0 auto; }
#bestfy-prisma.bf-final #ranking-casas .AAranking button {
  background: var(--ad-brand, #61e85f) !important;
  color: var(--ad-fg, #13261b) !important;
}
#bestfy-prisma.bf-final .bf7-promo-item {
  background: #303a54;
  border-color: #46536f;
}
#bestfy-prisma.bf-final .bf7-promo-item:hover { background: #35425d; }
#bestfy-prisma.bf-final .bf7-promo-info h4 { color: #f5f7ff; }
#bestfy-prisma.bf-final .bf7-promo-info p { color: #d3dced; }
#bestfy-prisma.bf-final .bf7-promo-number { color: #b7c5df; }
#bestfy-prisma.bf-final :is(.bf7-ranking-panel, .bf7-promos-panel) .bf-terms {
  color: #c1c9db;
}
#bestfy-prisma.bf-final .bf-source-ranking a.bf7-review-action {
  background: #414e6a;
  border-color: #63718d;
  color: #f5f7ff;
}
#bestfy-prisma.bf-final .bf-source-ranking a.bf7-review-action:hover { background: #50607f; }
#bestfy-prisma.bf-final .bf-bonus-footer { border-color: #46536f; }
#bestfy-prisma.bf-final .bf-source-ranking a.bf-bonus-more {
  background: #303a54;
  border-color: #46536f;
  color: #61e85f;
}
#bestfy-prisma.bf-final .bf-source-ranking a.bf-bonus-more:hover {
  background: #35425d;
  border-color: #61e85f;
  color: #61e85f;
}
#bestfy-prisma.bf-final :is(.bf8-rail-count, .bf8-rail-hint) { color: #d3dced; }
/* Unificar las flechas de secciones, destacados y rankings. */
#bestfy-prisma.bf-final .bf-carousel-controls button,
#bestfy-prisma.bf-final button.bf-featured-arrow,
#bestfy-prisma.bf-final .bf-source-ranking button.bf8-rail-arrow {
  background: #303a54;
  border-color: #46536f;
  color: #61e85f;
}
#bestfy-prisma.bf-final .bf-carousel-controls button:not(:disabled):hover,
#bestfy-prisma.bf-final button.bf-featured-arrow:not(:disabled):hover,
#bestfy-prisma.bf-final .bf-source-ranking button.bf8-rail-arrow:not(:disabled):hover {
  background: #35425d;
  border-color: #61e85f;
  color: #61e85f;
}
#bestfy-prisma.bf-final .bf-carousel-controls button:disabled,
#bestfy-prisma.bf-final button.bf-featured-arrow:disabled,
#bestfy-prisma.bf-final .bf-source-ranking button.bf8-rail-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}
#bestfy-prisma.bf-final .bf-carousel-controls button:focus-visible,
#bestfy-prisma.bf-final button.bf-featured-arrow:focus-visible,
#bestfy-prisma.bf-final .bf-source-ranking button.bf8-rail-arrow:focus-visible {
  outline-color: #61e85f;
}

/* Mostrar el nombre disponible cuando el archivo del logotipo no responde. */
#bestfy-prisma .bf-featured-corner-brand:has(.bf-brand-has-fallback) {
  width: auto;
  max-width: 120px;
}
#bestfy-prisma .bf-featured-corner-brand .bf-brand-has-fallback {
  padding: 5px 7px;
  color: var(--brand-fg, #fff);
}
#bestfy-prisma .bf-ad-logo-fallback {
  color: #f5f7ff;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  #bestfy-prisma.bf-final .bf-top-ranking-native ul.bf8-native-track {
    padding: 13px 3px 5px !important;
  }
}
#bestfy-prisma.bf-final .bf-top-ranking-native ul.bf8-native-track {
  padding-top: 1rem !important;
}
/* Integrar las tarjetas y «Ver más» con el fondo oscuro de BestfyPlay. */
#bestfy-prisma.bf-final :is(.bf-card, .bf-more-card) {
  background: #303a54;
  border-color: #46536f;
  color: #c1c9db;
}
#bestfy-prisma.bf-final :is(.bf-card, .bf-more-card):hover {
  background: #35425d;
}
#bestfy-prisma.bf-final :is(.bf-card, .bf-more-card) h3 {
  color: #f5f7ff;
}
#bestfy-prisma.bf-final .bf-card .bf-read,
#bestfy-prisma.bf-final .bf-card .bf-read .bf-icon,
#bestfy-prisma.bf-final .bf-more-card > a {
  color: #61e85f;
}
#bestfy-prisma.bf-final .bf-card .bf-terms,
#bestfy-prisma.bf-final .bf-more-card p {
  color: #c1c9db;
}
#bestfy-prisma.bf-final .bf-more-icon {
  background: #242a3e;
  border-color: #46536f;
  color: #61e85f;
}

/* WP Story conserva los vídeos; la portada adapta el carrusel y sus colores. */
#bestfy-prisma.bf-final .bf-shorts {
  padding: 26px;
  background: #303a54;
  border: 1px solid #46536f;
  border-radius: 14px;
  color: #c1c9db;
}
#bestfy-prisma .bf-shorts .bf-section-head { margin-bottom: 20px; }
#bestfy-prisma .bf-shorts-native { min-width: 0; max-width: 100%; }
#bestfy-prisma .bf-shorts-native .wpstory-shortcode { padding: 3px; }
#bestfy-prisma .bf-shorts-native .wpstory-shortcode-wrapper { margin-bottom: 0; }
#bestfy-prisma.bf-final .bf-shorts-native .wpstory-feed-item-fb {
  width: clamp(130px, 14vw, 180px) !important;
  flex-shrink: 0;
  height: auto !important;
  aspect-ratio: 9 / 16;
  max-height: 320px;
  border: 1px solid #46536f;
  border-radius: 11px !important;
  overflow: hidden;
  background: #303a54;
  color: #f5f7ff;
}
#bestfy-prisma.bf-final .bf-shorts-native .wpstory-feed-item-fb:hover {
  background: #35425d;
  border-color: #61e85f;
}
#bestfy-prisma .bf-shorts-native .wpstory-fb-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#bestfy-prisma.bf-final .bf-shorts-native .wpstory-fb-title {
  font: 700 13px/1.3 Cabin, Lato, sans-serif !important;
  left: 10px !important;
  right: 10px !important;
  bottom: 12px !important;
  color: #f5f7ff !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
#bestfy-prisma .bf-shorts-native .wpstory-slider-nav {
  visibility: hidden !important;
  pointer-events: none !important;
}
#bestfy-prisma .bf-native-shorts-controls[hidden] { display: none !important; }
#bestfy-prisma .bf-shorts-native :focus-visible {
  outline: 3px solid #61e85f;
  outline-offset: 3px;
}
@media (max-width: 900px) {
  #bestfy-prisma.bf-final .bf-shorts { padding: 19px; }
}
@media (max-width: 767px) {
  #bestfy-prisma.bf-final .bf-shorts { padding: 20px 15px; margin-left: -3px; margin-right: -3px; }
}
