/* Estructura compartida por los listados, con el fondo y las tarjetas de BestfyPlay. */
body.bestfyplay-listings .main-container { background: #242a3e !important; }
#bestfy-prisma.bf.bf-content-page {
  --bf-page-sidebar-width: 300px;
  --bf-page-column-gap: 40px;
  --bf-page-row-gap: 32px;
  --bf-page-breadcrumb-gap: 16px;
  --bf-page-section-gap: 32px;
  --ink: #f5f7ff;
  --muted: #c1c9db;
  --blue: #61e85f;
  --line: #46536f;
  --paper: #242a3e;
  --wash: #303a54;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.5 Lato, "Segoe UI", sans-serif;
  container: bf-content-page / inline-size;
}
#bestfy-prisma.bf.bf-content-page--wide-sidebar { --bf-page-sidebar-width: 400px; }
#bestfy-prisma .bf-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--bf-page-column-gap);
  row-gap: var(--bf-page-row-gap);
  align-items: start;
  /* Conservar el espacio derecho y vertical, sin relleno izquierdo. */
  padding: 25px clamp(16px, 3cqw, 24px) 48px 0;
}
#bestfy-prisma .bf-content-main {
  display: flow-root;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  container: bf-content-main / inline-size;
}
#bestfy-prisma .bf-content-main > .bf-content-section { margin: 0 0 var(--bf-page-section-gap); }
#bestfy-prisma .bf-content-main > .bf-content-section:last-of-type { margin-bottom: 0; }
#bestfy-prisma .bf-content-main > .bf-content-section > .bf-section-head { min-height: 0; align-items: flex-start; margin-top: 0; }
#bestfy-prisma .bf-content-main > .bf-content-section > .bf-section-head > :is(h2, .bf-section-title) {
  margin: 0;
  color: var(--ink);
  font-family: Cabin, Lato, sans-serif;
  font-weight: 600;
}
#bestfy-prisma .bf-content-sidebar { width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 0; justify-self: center; color: var(--ink); }
#bestfy-prisma .bf-content-sidebar :is(h3, h4, p) { margin: 0; }
#bestfy-prisma .bf-content-sidebar .bf-source-ranking { font-family: Inter, system-ui, sans-serif; }
#bestfy-prisma .bf-content-sidebar .bf-source-ranking :is(h3, h4, p) { font-family: inherit; }
#bestfy-prisma .bf-content-sidebar button { text-transform: none; letter-spacing: normal; }
#bestfy-prisma .bf-content-sidebar .bf-icon { color: var(--blue); }
#bestfy-prisma .bf-content-sidebar > .publi-promo-ranking { margin-bottom: 8px; }
#bestfy-prisma .bf-related-breadcrumb { margin: 0 0 var(--bf-page-breadcrumb-gap); color: var(--muted); font: 400 16px/1.5 Roboto, Arial, sans-serif; }
#bestfy-prisma .bf-related-breadcrumb > .breadcrumb { gap: 12px; flex-wrap: wrap; min-width: 0; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0; }
#bestfy-prisma .bf-related-breadcrumb > .breadcrumb > div:first-child { min-width: 0; overflow-wrap: anywhere; }
#bestfy-prisma .bf-related-breadcrumb > .breadcrumb > div:first-child :is(a, span) { font: inherit; color: inherit; }
#bestfy-prisma .bf-related-breadcrumb > .breadcrumb > div:first-child a { color: var(--blue); }
#bestfy-prisma .bf-related-breadcrumb a:hover { text-decoration: underline; }

#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 :is(img, iframe) { max-width: 100%; }
#bestfy-prisma .bf-related-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
#bestfy-prisma .bf-related-cards :is(.bf-card, .bf-podcast-card) { min-width: 0; height: 100%; }
/* El carrusel reutiliza las tarjetas, logotipos y flechas de la portada. */
#bestfy-prisma .bf-content-carousel .bf-slider-track { --visible: 1; }
#bestfy-prisma .bf-content-carousel .bf-section-head > :is(h1, h2) { min-width: 0; }
#bestfy-prisma .bf-related-section > .bf-section-head { flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
#bestfy-prisma .bf-date-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; margin: 0 0 20px; color: var(--muted); 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 var(--line); border-radius: 8px; background: var(--wash); color: var(--ink); color-scheme: dark; font: inherit; }
#bestfy-prisma .bf-date-filter input[type="date"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Las columnas dependen del espacio real disponible, también junto al lateral. */
/* Reservar el lateral también en escritorios con el menú izquierdo de BestfyPlay. */
@container bf-content-page (min-width: 1000px) {
  #bestfy-prisma .bf-content-layout { grid-template-columns: minmax(0, 1fr) var(--bf-page-sidebar-width); }
  #bestfy-prisma .bf-content-layout--single { grid-template-columns: minmax(0, 1fr); }
  #bestfy-prisma .bf-content-sidebar { max-width: var(--bf-page-sidebar-width); justify-self: end; }
}
@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; }
}
#bestfy-prisma .bf-related-section--vertical > .bf-related-cards { grid-template-columns: minmax(0, 1fr); }

/* Cargar más y Ver todos comparten el mismo diseño y el contraste del tema oscuro. */
#bestfy-prisma .bf-related-load { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; padding-inline: clamp(0px, 4cqw, 48px); }
#bestfy-prisma .bf-related-load::before, #bestfy-prisma .bf-related-load::after { content: ""; flex: 1 1 0; min-width: 0; height: 1px; background: var(--line); }
#bestfy-prisma .bf-related-load :is(.bf-related-more, .bf-view-all) { display: inline-flex; align-items: center; justify-content: center; gap: 18px; flex: 0 0 auto; min-width: 205px; max-width: 100%; min-height: 48px; padding: 7px 12px 7px 24px; border: 1px solid var(--line); border-radius: 999px; background: var(--wash); color: var(--blue); font: 600 16px/1.25 Cabin, Lato, sans-serif; letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; box-shadow: none; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s; }
#bestfy-prisma .bf-related-load :is(.bf-related-more, .bf-view-all)::after { content: ""; display: block; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background-color: #242a3e; background-position: center; background-repeat: no-repeat; background-size: 18px 18px; transition: background-color .18s; }
#bestfy-prisma .bf-related-more::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2361e85f' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
#bestfy-prisma .bf-view-all::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2361e85f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E"); }
#bestfy-prisma .bf-related-load :is(.bf-related-more, .bf-view-all):hover { border-color: var(--blue); background: #35425d; color: var(--blue); }
#bestfy-prisma .bf-related-load :is(.bf-related-more, .bf-view-all):hover::after { background-color: #303a54; }
#bestfy-prisma .bf-related-load :is(.bf-related-more, .bf-view-all):focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
#bestfy-prisma .bf-related-load .bf-related-more:disabled { opacity: .65; cursor: wait; }
#bestfy-prisma .bf-related-load[hidden], #bestfy-prisma .bf-related-more[hidden] { display: none; }

#bestfy-prisma .bf-related-sidebar { display: flex; flex-direction: column; gap: 20px; }
#bestfy-prisma .bf-related-sidebar-block { min-width: 0; max-width: 100%; }
#bestfy-prisma .bf-related-sidebar > .bf-related-sidebar-block > .sidebar-widget { margin-block: 0 !important; }
#bestfy-prisma .bf-related-sidebar :is(img, iframe) { max-width: 100%; }
#bestfy-prisma .bf-related-ad { text-align: center; margin-bottom: 24px; }
#bestfy-prisma .bf-related-ad > span { display: block; color: var(--muted); font: 12px/1.4 Roboto, sans-serif; letter-spacing: .5px; }
#bestfy-prisma .bf-related-sidebar .bf-related-ad { margin-bottom: 0; }
#bestfy-prisma .bf-related-sidebar .bf-related-ad img { width: auto; max-width: 100%; }

@container bf-content-page (max-width: 599px) {
  #bestfy-prisma .bf-content-layout { padding-block: 20px 36px; }
}
@container bf-content-main (max-width: 559px) {
  #bestfy-prisma .bf-related-load { gap: 12px; padding-inline: 0; margin-top: 24px; }
  #bestfy-prisma .bf-related-load :is(.bf-related-more, .bf-view-all) { min-width: 190px; gap: 14px; padding-left: 20px; }
}
@media (max-width: 1000px) {
  /* Mantener el espacio también cuando IA utiliza la plantilla general de listados. */
  #bestfy-prisma .bf-content-layout {
    margin-top: 4rem;
    padding-inline: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #bestfy-prisma .bf-related-load :is(.bf-related-more, .bf-view-all),
  #bestfy-prisma .bf-related-load :is(.bf-related-more, .bf-view-all)::after { transition: none; }
}
