/* SBF Recursos · v1.0.8. Estilos acotados al catálogo. */
.sbf-r-catalog {
    box-sizing: border-box;
    max-width: none !important;
    padding: 32px var(--sbf-margen-lateral, clamp(20px, 2.5vw, 32px)) 48px;
    color: var(--sbf-azul-oscuro, #07092f);
}
.sbf-r-catalog *, .sbf-r-editor-preview * { box-sizing: border-box; }
.sbf-r-catalog { scroll-margin-top: 48px; }
.sbf-r-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    max-width: var(--sbf-ancho-contenido, 1200px);
    margin: 0 auto 32px;
}
.sbf-r-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 210px;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #d9dee7;
    border-radius: 0;
    background: #fff;
    color: #07092f;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}
.sbf-r-tab + .sbf-r-tab { margin-left: -1px; }
.sbf-r-tab:first-child { border-radius: 8px 0 0 8px; }
.sbf-r-tab:last-child { border-radius: 0 8px 8px 0; }
.sbf-r-tab:hover { background: #f0f5ff; color: #0043d0; }
.sbf-r-tab[aria-current="page"] {
    position: relative;
    z-index: 1;
    border-color: var(--sbf-azul, #0043d0);
    background: var(--sbf-azul, #0043d0);
    color: #fff;
}
.sbf-r-tab:focus-visible,
.sbf-r-section-all:focus-visible {
    position: relative;
    z-index: 2;
    outline: 2px solid #0043d0;
    outline-offset: 4px;
}
.sbf-r-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    width: 100%;
    max-width: var(--sbf-ancho-contenido, 1200px);
    margin: 0 auto;
    align-items: start;
}
.sbf-r-overview > .sbf-r-section { min-width: 0; margin: 0; }
.sbf-r-overview > .sbf-r-section + .sbf-r-section { margin-top: 0; }
.sbf-r-overview .sbf-r-grid { grid-template-columns: 1fr; }
.sbf-r-section-header { margin-bottom: 24px; }
.sbf-r-section-header .sbf-r-section-title { margin-bottom: 10px; }
.sbf-r-section-all {
    display: inline-block;
    padding: 3px 0;
    color: #0043d0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sbf-r-section-all:hover { color: #0035a5; }
.sbf-r-empty {
    margin: 0;
    padding: 24px;
    border: 1px solid #e2e6ec;
    border-radius: 14px;
    background: #f7faff;
    color: #30344f;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.sbf-r-section {
    width: 100%;
    max-width: var(--sbf-ancho-contenido, 1200px);
    margin: 0 auto;
}
.sbf-r-section + .sbf-r-section { margin-top: 44px; }
.sbf-r-section-title {
    margin: 0 0 24px;
    color: var(--sbf-azul-oscuro, #07092f);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
}
.sbf-r-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sbf-separacion, 24px);
    align-items: stretch;
    margin: 0;
}
.sbf-r-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sbf-borde, #e2e6ec);
    border-radius: var(--sbf-radio-tarjeta, 14px);
    box-shadow: 0 4px 14px rgba(7, 9, 47, 0.05);
}
.sbf-r-visual {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.sbf-r-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sbf-r-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-height: 150px;
    padding: 28px;
    background: linear-gradient(135deg, #f7faff, #eaf1ff);
    color: #0043d0;
    font-weight: 600;
    text-align: center;
}
.sbf-r-placeholder svg { width: 56px; height: 56px; flex: 0 0 auto; }
.sbf-r-topic {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 9px;
    border-radius: 5px;
    background: var(--sbf-r-topic-background, #e8efff);
    color: var(--sbf-r-topic-color, #07092f);
    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.sbf-r-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 18px 18px 20px;
}
.sbf-r-title {
    margin: 0;
    color: #07092f;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.sbf-r-description {
    margin: 0;
    color: #30344f;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.sbf-r-format { margin: 0; color: #596176; font-size: 12px; line-height: 1.4; }
.sbf-r-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
    color: #0043d0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
}
.sbf-r-link:hover { color: #0035a5; text-decoration: underline; }
.sbf-r-link:focus-visible { outline: 2px solid #0043d0; outline-offset: 4px; border-radius: 2px; }
.sbf-r-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (min-width: 1100px) {
    .sbf-r-overview .sbf-r-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Share each row across both types without fixing card heights or clipping text. */
@supports (grid-template-rows: subgrid) {
    @media (min-width: 901px) {
        .sbf-r-overview[data-shared-rows="true"] {
            grid-template-rows: auto repeat(var(--sbf-r-overview-rows-one, 1), auto);
            align-items: stretch;
            row-gap: var(--sbf-separacion, 24px);
        }
        .sbf-r-overview[data-shared-rows="true"] > .sbf-r-section {
            display: grid;
            grid-row: 1 / -1;
            grid-template-rows: subgrid;
            row-gap: var(--sbf-separacion, 24px);
        }
        .sbf-r-overview[data-shared-rows="true"] > .sbf-r-section[data-section="services"] { grid-column: 1; }
        .sbf-r-overview[data-shared-rows="true"] > .sbf-r-section[data-section="materials"] { grid-column: 2; }
        .sbf-r-overview[data-shared-rows="true"] .sbf-r-section-header { grid-row: 1; margin-bottom: 0; }
        .sbf-r-overview[data-shared-rows="true"] .sbf-r-grid {
            grid-row: 2 / -1;
            grid-template-rows: subgrid;
            row-gap: var(--sbf-separacion, 24px);
        }
        .sbf-r-overview[data-shared-rows="true"] .sbf-r-empty { grid-row: 2; align-self: start; }
    }
    @media (min-width: 1100px) {
        .sbf-r-overview[data-shared-rows="true"] {
            grid-template-rows: auto repeat(var(--sbf-r-overview-rows-two, 1), auto);
        }
    }
}
@media (max-width: 900px) {
    .sbf-r-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sbf-r-overview { grid-template-columns: 1fr; gap: 36px; }
    .sbf-r-overview .sbf-r-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .sbf-r-grid { grid-template-columns: 1fr; gap: 20px; }
    .sbf-r-overview .sbf-r-grid { grid-template-columns: 1fr; }
    .sbf-r-tabs { margin-bottom: 28px; }
    .sbf-r-tab { flex: 1 1 0; padding: 12px 6px; font-size: 14px; }
    .sbf-r-section-header { margin-bottom: 20px; }
    .sbf-r-section-title { font-size: 23px; }
    .sbf-r-section + .sbf-r-section { margin-top: 36px; }
}
