/* Estructura, títulos y breadcrumb compartidos en home-components.css. */
#bestfy-prisma .bf-related-hero{display:block;width:100%;height:auto;border-radius:14px;margin-bottom:24px}
#bestfy-prisma .bf-related-banner{text-align:center;margin:0 auto 24px}
#bestfy-prisma .bf-related-banner img,#bestfy-prisma .bf-related-banner iframe{max-width:100%}
#bestfy-prisma .bf-related-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
#bestfy-prisma .bf-related-cards .bf-card{min-width:0;height:100%}
/* Carrusel de la home adaptado al ancho del contenido. */
#bestfy-prisma .bf-content-carousel .bf-slider-track{--visible:1}
#bestfy-prisma .bf-content-carousel .bf-section-head>h2{min-width:0}
/* Filtro de fecha compartido entre los listados. */
#bestfy-prisma .bf-related-section>.bf-section-head{flex-wrap:wrap}
#bestfy-prisma .bf-date-filter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%;margin:0;font:400 14px/1.5 Lato,sans-serif}
#bestfy-prisma .bf-date-filter input[type="date"]{min-width:0;min-height:44px;max-width:100%;margin:0;padding:8px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:var(--ink);font:inherit}

.bf-related-sidebar{display:flex;flex-direction:column;gap:12px}
.bf-related-sidebar-block{min-width:0;max-width:100%}
/* Quitar los márgenes de Bootstrap. La barra lateral controla la separación. */
.bf-related-sidebar > .bf-related-sidebar-block > .sidebar-widget{margin-top:0!important;margin-bottom:0!important}
.bf-related-sidebar img,.bf-related-sidebar iframe{max-width:100%}
.bf-related-ad{text-align:center;margin-bottom:24px}
.bf-related-ad>span{display:block;color:#00000080;font:12px/1.4 Roboto,sans-serif;letter-spacing:.5px}
/* Añadir columnas cuando haya espacio para tarjetas de 270px, hasta un máximo de tres. */
@container bf-content-main (min-width:560px){
  #bestfy-prisma .bf-related-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  #bestfy-prisma .bf-content-carousel .bf-slider-track{--visible:2}
}
@container bf-content-main (min-width:850px){
  #bestfy-prisma .bf-related-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
  #bestfy-prisma .bf-content-carousel .bf-slider-track{--visible:3}
}
@container bf-content-main (max-width:559px){
  #bestfy-prisma .bf-related-cards{gap:16px}
}

#bestfy-prisma .bf-related-load { text-align:center; margin-top:20px; }
#bestfy-prisma .bf-related-more,#bestfy-prisma .bf-view-all { padding:11px 24px; border:1px solid var(--blue); border-radius:8px; color:#fff; background:var(--blue); font-weight:700; min-height:44px; }
#bestfy-prisma .bf-view-all { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
#bestfy-prisma .bf-related-more:hover,#bestfy-prisma .bf-view-all:hover { background:#005894; }
#bestfy-prisma .bf-related-more:disabled { opacity:.65; cursor:wait; }
#bestfy-prisma .bf-related-more[hidden] { display:none; }
.bf-related-sidebar .bf-related-ad { margin-bottom:0; }
.bf-related-sidebar .bf-related-ad img { width:auto; max-width:100%; }
