/* Diseño editorial de Bestfy, adaptado al fondo oscuro de BestfyPlay. */
.bf-ia-detail-page {
    --ia-text: #fff;
    --ia-muted: #fff;
    --ia-accent: #61e85f;
    --ia-border: #46536f;
    --ia-surface: #303a54;
    --ia-soft: #242a3e;
}
/* Evitar texto oscuro heredado del tema o de los colores guardados en el editor. */
#bestfy-prisma .bf-ia-article,
#bestfy-prisma .bf-ia-article * {
    color: var(--ia-text) !important;
}
/* Los enlaces y sus iconos conservan el verde de BestfyPlay. */
#bestfy-prisma .bf-ia-article a,
#bestfy-prisma .bf-ia-article a * {
    color: var(--ia-accent) !important;
}
#bestfy-prisma .bf-ia-article {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
    color: var(--ia-muted);
    font-family: Manrope, Arial, sans-serif;
}
#bestfy-prisma .bf-ia-article .article-title {
    margin: 0;
    color: var(--ia-text);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 34px;
    line-height: 42px;
    font-weight: 800;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}
#bestfy-prisma .bf-ia-article .navigation-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 0 !important;
    font: 600 13px/1.5 Manrope, Arial, sans-serif;
}
#bestfy-prisma .bf-ia-article .navigation-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ia-accent);
    font: inherit;
    text-decoration: none;
}
#bestfy-prisma .bf-ia-article .navigation-buttons a:hover { text-decoration: underline; }
#bestfy-prisma .bf-ia-article a:focus-visible {
    outline: 2px solid var(--ia-accent);
    outline-offset: 4px;
    border-radius: 4px;
}
#bestfy-prisma .bf-ia-article .navigation-buttons .bf-icon { width: 20px; height: 20px; flex-shrink: 0; color: currentColor; }
#bestfy-prisma .bf-ia-article .nav-next { margin-left: auto; text-align: right; }
#bestfy-prisma .bf-ia-article .media-card {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--ia-border);
    border-radius: 16px;
    background: var(--ia-soft);
    box-shadow: 0 1px 2px #0002;
}
#bestfy-prisma .bf-ia-article .media-card img { display: block; width: 100%; height: auto; }
#bestfy-prisma .bf-ia-content {
    position: relative;
    min-width: 0;
    padding: 16px 20px 20px 22px;
    border: 1px solid var(--ia-border);
    border-left: 4px solid var(--ia-accent);
    border-radius: 16px;
    background: var(--ia-surface);
    color: var(--ia-muted);
    box-shadow: 0 1px 2px #0002;
    font-size: 15px;
    line-height: 1.72;
    overflow-wrap: anywhere;
    word-spacing: normal;
}
#bestfy-prisma .bf-ia-content :is(p, li, td, th, span, a, strong, b, em, i) { font-family: inherit; }
#bestfy-prisma .bf-ia-content p { margin: 0 0 14px; font-size: inherit; line-height: inherit; }
#bestfy-prisma .bf-ia-content :is(h1, h2, h3, h4, h5, h6) {
    color: var(--ia-text);
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: normal;
}
#bestfy-prisma .bf-ia-content :is(h1, h2) { margin: 20px 0 10px; font-size: 20px; line-height: 28px; }
#bestfy-prisma .bf-ia-content h3 { margin: 18px 0 8px; font-size: 17px; line-height: 25px; }
#bestfy-prisma .bf-ia-content :is(h4, h5, h6) { margin: 16px 0 6px; font-size: 15px; line-height: 23px; }
#bestfy-prisma .bf-ia-content > :first-child { margin-top: 0; }
#bestfy-prisma .bf-ia-content > :last-child { margin-bottom: 0; }
#bestfy-prisma .bf-ia-content :is(strong, b) { color: var(--ia-text); font-weight: 750; }
#bestfy-prisma .bf-ia-content a { color: var(--ia-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
#bestfy-prisma .bf-ia-content :is(ul, ol) { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; padding: 0; list-style: none; }
#bestfy-prisma .bf-ia-content li { position: relative; padding-left: 24px; font-size: inherit; line-height: inherit; }
#bestfy-prisma .bf-ia-content ul > li::before {
    content: "check_circle";
    position: absolute;
    left: 0;
    top: 2px;
    width: 1em;
    height: 1em;
    overflow: hidden;
    color: var(--ia-accent);
    font-family: "Material Symbols Outlined";
    font-size: 17px;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}
#bestfy-prisma .bf-ia-content ol { list-style: decimal; padding-left: 28px; }
#bestfy-prisma .bf-ia-content ol > li { padding-left: 6px; }
#bestfy-prisma .bf-ia-content ol > li::marker { color: var(--ia-accent); font-weight: 800; }
#bestfy-prisma .bf-ia-content blockquote {
    margin: 16px 0;
    padding: 14px 16px;
    background: var(--ia-soft);
    border-left: 3px solid var(--ia-accent);
    border-radius: 0 12px 12px 0;
    color: var(--ia-text);
    font-weight: 600;
}
#bestfy-prisma .bf-ia-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 14px 0; font-size: 13px; line-height: 20px; }
#bestfy-prisma .bf-ia-content :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--ia-border); text-align: left; }
#bestfy-prisma .bf-ia-content th { color: var(--ia-text); background: var(--ia-soft); font-weight: 800; }
#bestfy-prisma .bf-ia-content :is(img, iframe, video) { max-width: 100%; }
#bestfy-prisma .bf-ia-content img { height: auto; }
#bestfy-prisma .bf-ia-content figure { max-width: 100%; margin: 14px 0; }
#bestfy-prisma .bf-ia-content .page-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
#bestfy-prisma .bf-ia-content .post-password-form input[type="password"] {
    max-width: 100%;
    border: 1px solid var(--ia-border);
    border-radius: 8px;
    background: var(--ia-soft);
    color: var(--ia-text);
}
#bestfy-prisma .bf-ia-content .post-password-form input[type="submit"] {
    border: 1px solid var(--ia-accent);
    border-radius: 8px;
    background: var(--ia-surface);
    color: var(--ia-text);
    font-weight: 700;
}
@container bf-content-main (max-width: 767px) {
    #bestfy-prisma .bf-ia-article { gap: 20px; }
    #bestfy-prisma .bf-ia-article .article-title { font-size: 28px; line-height: 36px; }
    #bestfy-prisma .bf-ia-content { padding: 14px 15px 17px 18px; font-size: 14px; line-height: 1.7; }
}
@container bf-content-main (max-width: 639px) {
    #bestfy-prisma .bf-ia-article .article-title { font-size: 26px; line-height: 34px; }
}
