.bds-container {
    width: 92%;
    max-width: 1380px;
    margin: 0 auto;
}

.bds-single,
.bds-home,
.bds-letter-page {
    background: #f7f8fa;
    color: #1f2937;
}

.bds-hero,
.bds-home-hero,
.bds-letter-page {
    padding: 40px 0 70px;
}

.bds-kicker {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #2563eb;
    font-weight: 800;
    margin-bottom: 22px;
}

.bds-hero h1,
.bds-home h1,
.bds-letter-page h1 {
    color: #004197 !important;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 800;
    margin: 0 0 28px;
}

.bds-home-intro {
    max-width: 850px;
    font-size: 22px;
    line-height: 1.8;
    color: #4b5563;
}

.bds-breadcrumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    font-size: 14px;
    color: #6b7280;
}

.bds-breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.bds-definition-box {
    margin-top: 34px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    padding: 28px;
}

.bds-definition-box span {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .12em;
    color: #1d4ed8;
    margin-bottom: 12px;
}

.bds-definition-box p {
    margin: 0;
    font-size: 21px;
    line-height: 1.7;
    color: #0f172a;
}

.bds-content-section {
    padding: 50px 0 90px;
}

.bds-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 50px;
}

.bds-content,
.bds-card,
.bds-faqs {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15,23,42,.05);
}

.bds-content {
    padding: 50px;
}

.bds-content h2,
.bds-content h3,
.bds-faqs h2 {
    color: #004197 !important;
}

.bds-content h2 {
    font-size: 34px;
    line-height: 1.2;
    margin-top: 56px;
}

.bds-content h3 {
    font-size: 26px;
    margin-top: 38px;
}

.bds-content p,
.bds-content li {
    font-size: 19px;
    line-height: 1.9;
    color: #374151;
}

.bds-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.bds-card {
    padding: 32px;
}

.bds-card h3 {
    font-size: 25px;
    margin-top: 0;
}

.bds-card p {
    color: #4b5563;
    line-height: 1.8;
}

.bds-card a {
    display: inline-flex;
    background: #2563eb;
    color: #fff !important;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

.bds-letter-grid {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    gap: 14px;
    margin-top: 42px;
}

.bds-letter-card {
    background: #fff;
    border-radius: 18px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #1d4ed8 !important;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(15,23,42,.04);
    transition: all .22s ease;
}

.bds-letter-card:hover {
    background: #004197;
    color: #fff !important;
    transform: translateY(-3px);
}

.bds-search-box {
    position: relative;
    max-width: 760px;
    margin: 34px 0;
}

.bds-search-box input {
    width: 100%;
    height: 68px;
    border: 1px solid #dbe3ef;
    border-radius: 22px;
    padding: 0 24px;
    font-size: 18px;
    background: #fff;
}

.bds-search-results {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(15,23,42,.14);
    display: none;
    overflow: hidden;
    z-index: 9999;
}

.bds-search-results.is-active {
    display: block;
}

.bds-search-result {
    display: block;
    padding: 18px 24px;
    text-decoration: none !important;
    border-bottom: 1px solid #eef2f7;
}

.bds-search-result strong {
    color: #004197;
    display: block;
}

.bds-search-result span {
    color: #4b5563;
    display: block;
    margin-top: 6px;
}

.bds-random-terms {
    margin-top: 70px;
}

.bds-random-terms h2 {
    color: #004197 !important;
    font-size: 32px;
    margin-bottom: 28px;
}

.bds-random-grid,
.bds-term-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bds-random-card,
.bds-term-card {
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(15,23,42,.05);
    transition: all .22s ease;
}

.bds-random-card:hover,
.bds-term-card:hover {
    transform: translateY(-4px);
}

.bds-random-card h3,
.bds-term-card h2 {
    color: #004197 !important;
    margin-top: 0;
}

.bds-random-card p,
.bds-term-card p {
    color: #4b5563;
    line-height: 1.7;
}

@media (max-width: 980px) {
    .bds-layout,
    .bds-random-grid,
    .bds-term-grid {
        grid-template-columns: 1fr;
    }

    .bds-letter-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bds-content {
        padding: 30px;
    }

    .bds-sidebar {
        position: relative;
        top: auto;
    }
}
/* =========================
   RELATED
========================= */

.bds-related {
    margin-top: 70px;
}

.bds-related h2 {
    color: #004197 !important;
    font-size: 32px;
    margin-bottom: 28px;
}

.bds-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.bds-related-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(15,23,42,.05);
    transition: all .22s ease;
}

.bds-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,65,151,.14);
}

.bds-related-card h3 {
    color: #004197 !important;
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 22px;
}

.bds-related-card p {
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 980px) {
    .bds-related-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================
   TOC
========================= */

.bds-toc {
    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(15,23,42,.05);
}

.bds-toc strong {
    display: block;
    color: #004197;
    font-size: 20px;
    margin-bottom: 18px;
}

.bds-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bds-toc li {
    margin: 10px 0;
}

.bds-toc a {
    color: #374151;
    text-decoration: none !important;
    font-weight: 600;
}

.bds-toc a:hover {
    color: #004197;
}

.bds-toc-level-3 {
    padding-left: 18px;
    font-size: 15px;
}

.bds-content h2,
.bds-content h3 {
    scroll-margin-top: 120px;
}
/* =========================
   CATEGORIES - BADGES
========================= */

.bds-categories {
    margin-top: 70px;
}

.bds-categories h2 {
    color: #004197 !important;
    font-size: 30px;
    margin-bottom: 24px;
}

.bds-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.bds-category-card {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
    border: 2px solid #bfdbfe;
    border-radius: 999px;
    padding: 14px 20px;
    text-decoration: none !important;
    color: #004197 !important;
    box-shadow:
        0 10px 26px rgba(0,65,151,.06),
        inset 0 1px 0 rgba(255,255,255,.9);
    transition: all .22s ease;
}

.bds-category-card h3 {
    margin: 0;
    color: #004197 !important;
    font-size: 17px;
    font-weight: 800;
}

.bds-category-card p {
    display: none;
}

.bds-category-card span {
    background: #eff6ff;
    color: #004197;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 800;
}

.bds-category-card:hover {
    background: linear-gradient(135deg,#004197 0%,#0057c8 100%);
    border-color: #004197;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 16px 40px rgba(0,65,151,.24);
}

.bds-category-card:hover h3,
.bds-category-card:hover span {
    color: #ffffff !important;
}

.bds-category-card:hover span {
    background: rgba(255,255,255,.18);
}
.bds-category-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 980px) {
    .bds-category-results {
        grid-template-columns: 1fr;
    }
}
/* =========================
   RELATED PRODUCTS
========================= */

.bds-products {
    margin: 42px 0 56px;
}

.bds-products-grid {
    display: grid;
    gap: 24px;
}

.bds-product-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg,#004197 0%,#0057c8 100%);
    border-radius: 30px;
    padding: 42px;
    color: #ffffff;
    box-shadow:
        0 24px 60px rgba(0,65,151,.22);
}

.bds-product-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}

.bds-product-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.bds-product-card h2 {
    color: #ffffff !important;
    font-size: clamp(34px,4vw,48px);
    line-height: 1.08;
    margin: 0 0 18px;
}

.bds-product-card p {
    max-width: 780px;
    color: rgba(255,255,255,.88);
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.bds-product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    border-radius: 16px;
    background: #ffffff;
    color: #004197 !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 16px;
    transition: all .22s ease;
}

.bds-product-button:hover {
    transform: translateY(-2px);
    background: #eff6ff;
}

@media (max-width: 980px) {

    .bds-product-card {
        padding: 30px;
        border-radius: 24px;
    }

    .bds-product-card h2 {
        font-size: 34px;
    }

    .bds-product-card p {
        font-size: 18px;
    }

}
/* PRODUCTO RELACIONADO EN SIDEBAR */

.bds-sidebar-products {
    margin-bottom: 28px;
}

.bds-sidebar-product {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(15,23,42,.05);
}

.bds-sidebar-product-badge {
    display: inline-flex;
    background: #eff6ff;
    color: #004197;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 18px;
}

.bds-sidebar-product h3 {
    color: #004197 !important;
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 14px;
}

.bds-sidebar-product p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 20px;
}

.bds-sidebar-product-button {
    display: inline-flex;
    background: #2563eb;
    color: #ffffff !important;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

.bds-sidebar-product-button:hover {
    background: #004197;
}
/* SIDEBAR PRODUCTOS */

.bds-sidebar-products {
    margin-bottom: 24px;
}

.bds-sidebar-product {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(15,23,42,.05);
}

.bds-sidebar-product-badge {
    display: inline-flex;
    background: #eff6ff;
    color: #004197;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 18px;
}

.bds-sidebar-product h3 {
    color: #004197 !important;
    font-size: 26px;
    line-height: 1.2;
    margin: 0 0 14px;
}

.bds-sidebar-product p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 20px;
}

.bds-sidebar-product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #ffffff !important;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

.bds-sidebar-product-button:hover {
    background: #004197;
}
/* MÁS ESPACIO ENTRE TÉRMINOS Y PRODUCTO */

.bds-products {
    margin-top: 70px;
}

/* TÍTULOS MÁS POTENTES EN TARJETAS */

.bds-term-card h2 {
    font-size: clamp(30px, 2.2vw, 42px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

/* GRID MÁS AIREADO */

.bds-term-grid {
    gap: 34px;
}

/* TÍTULOS TARJETAS CATEGORÍA */

.bds-term-card h3,
.bds-random-card h3 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
}
/* FAQS MEJORADAS */

.bds-faqs {
    margin-top: 54px;
    background: #ffffff;
    border-radius: 26px;
    padding: 38px;
    box-shadow: 0 14px 40px rgba(15,23,42,.06);
}

.bds-faqs h2 {
    color: #004197 !important;
    font-size: 34px;
    margin: 0 0 24px;
}

.bds-faqs details {
    border: 1px solid #e5edf8;
    border-radius: 18px;
    padding: 0;
    margin-bottom: 14px;
    background: #f8fbff;
    overflow: hidden;
}

.bds-faqs summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 800;
    color: #004197;
}

.bds-faqs summary::-webkit-details-marker {
    display: none;
}

.bds-faqs summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 12px;
    border-radius: 50%;
    background: #e0efff;
    color: #004197;
    font-weight: 900;
}

.bds-faqs details[open] summary::before {
    content: "−";
    background: #004197;
    color: #ffffff;
}

.bds-faqs details p {
    padding: 0 24px 22px 62px;
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.8;
}
/* ALINEAR TEXTO Y BADGE DE CATEGORÍAS */

.bds-category-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bds-category-card h3 {
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
	top: 2px;
	font-weight: 600;
}

.bds-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    position: relative;
    top: 1px;
}