/* =========================================================
   SMA AMANALCO - BIBLIOTECA DIGITAL ANTICORRUPCIÓN V1.0
========================================================= */

.bda {
    --bda-navy: #082a52;
    --bda-blue: #125d88;
    --bda-cyan: #1bb6c9;
    --bda-gold: #d5a43a;
    --bda-gold-soft: #f2ce74;
    --bda-ink: #17344e;
    --bda-muted: #627687;
    --bda-line: rgba(13, 72, 118, 0.12);
    --bda-soft: #f3f8fb;
    --bda-white: #ffffff;
    color: var(--bda-ink);
    background: #ffffff;
}

.bda * {
    box-sizing: border-box;
}

.bda button,
.bda input {
    font: inherit;
}

/* =========================================================
   HERO
========================================================= */

.bda-hero {
    position: relative;
    overflow: hidden;
    padding: 158px 0 76px;
    background:
        radial-gradient(circle at 11% 18%, rgba(31, 180, 203, 0.20), transparent 27%),
        radial-gradient(circle at 87% 18%, rgba(236, 196, 91, 0.18), transparent 24%),
        linear-gradient(118deg, #071f42 0%, #0c3f6b 52%, #176d80 100%);
}

.bda-hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}

.bda-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}

.bda-hero-orb-one {
    width: 280px;
    height: 280px;
    left: -100px;
    bottom: -100px;
    background: rgba(27, 182, 201, 0.12);
}

.bda-hero-orb-two {
    width: 340px;
    height: 340px;
    right: -110px;
    top: -110px;
    background: rgba(213, 164, 58, 0.12);
}

.bda-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.64);
    font-size: 0.82rem;
    font-weight: 600;
}

.bda-breadcrumb a {
    color: rgba(255,255,255,0.86);
}

.bda-breadcrumb a:hover {
    color: var(--bda-gold-soft);
}

.bda-kicker,
.bda-section-head > span,
.bda-search-heading > div > span,
.bda-evidence-card > div > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bda-gold-soft);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.bda-kicker::before,
.bda-section-head > span::before,
.bda-search-heading > div > span::before,
.bda-evidence-card > div > span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bda-gold-soft);
    box-shadow: 0 0 0 6px rgba(242, 206, 116, 0.10), 0 0 18px rgba(242, 206, 116, 0.42);
}

.bda-hero h1 {
    max-width: 760px;
    margin: 18px 0 22px;
    color: #ffffff;
    font-size: clamp(2.75rem, 5.4vw, 5.15rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.bda-hero-lead {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: clamp(1rem, 1.4vw, 1.14rem);
    line-height: 1.76;
}

.bda-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.bda-btn-glass {
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.24);
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(14px);
}

.bda-btn-glass:hover {
    color: var(--bda-navy);
    background: #ffffff;
    transform: translateY(-2px);
}

.bda-update-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: rgba(255,255,255,0.66);
    font-size: 0.84rem;
}

.bda-update-line strong {
    color: #ffffff;
}

.bda-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #80edf4;
    box-shadow: 0 0 0 6px rgba(128,237,244,0.10), 0 0 18px rgba(128,237,244,0.48);
}

/* Panel del hero */
.bda-hero-panel {
    position: relative;
    min-height: 430px;
    padding: 30px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 100% 0%, rgba(213,164,58,0.14), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(242,249,251,0.96));
    border: 1px solid rgba(255,255,255,0.68);
    box-shadow: 0 34px 88px rgba(0,12,32,0.32), inset 0 1px 0 rgba(255,255,255,0.92);
    overflow: hidden;
}

.bda-hero-panel::after {
    content: "";
    position: absolute;
    inset: 13px;
    border-radius: 26px;
    border: 1px solid rgba(10,74,117,0.08);
    pointer-events: none;
}

.bda-panel-heading {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.bda-panel-heading span {
    color: var(--bda-muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.bda-panel-heading strong {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #075e72;
    background: rgba(27,182,201,0.10);
    border: 1px solid rgba(27,182,201,0.18);
    font-size: 0.76rem;
}

.bda-panel-emblem {
    position: relative;
    z-index: 2;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    margin: 14px auto 22px;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(145deg, #0b4e7c, #1a8095);
    box-shadow: 0 22px 46px rgba(7,66,102,0.20), inset 0 1px 0 rgba(255,255,255,0.15);
}

.bda-panel-emblem svg {
    width: 64px;
    height: 64px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bda-hero-panel > p {
    position: relative;
    z-index: 2;
    max-width: 390px;
    margin: 0 auto 24px;
    color: var(--bda-muted);
    text-align: center;
    line-height: 1.65;
}

.bda-stat-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}

.bda-stat-grid div {
    padding: 15px 10px;
    border-radius: 18px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(15,82,125,0.09);
    box-shadow: 0 12px 26px rgba(11,43,70,0.06);
}

.bda-stat-grid strong {
    display: block;
    color: var(--bda-blue);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.bda-stat-grid span {
    display: block;
    margin-top: 6px;
    color: var(--bda-muted);
    font-size: 0.70rem;
    font-weight: 700;
    line-height: 1.25;
}

/* =========================================================
   BUSCADOR
========================================================= */

.bda-search-section {
    position: relative;
    z-index: 5;
    margin-top: -34px;
    padding-bottom: 68px;
}

.bda-search-card {
    padding: 28px;
    border-radius: 30px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(13,72,118,0.10);
    box-shadow: 0 28px 76px rgba(7,35,62,0.14);
}

.bda-search-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.bda-search-heading > div > span,
.bda-section-head > span {
    color: var(--bda-blue);
}

.bda-search-heading > div > span::before,
.bda-section-head > span::before {
    background: var(--bda-cyan);
    box-shadow: 0 0 0 6px rgba(27,182,201,0.09), 0 0 18px rgba(27,182,201,0.30);
}

.bda-search-heading h2 {
    margin: 8px 0 0;
    color: var(--bda-navy);
    font-size: clamp(1.55rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.bda-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
}

.bda-secondary-button,
.bda-clear-button,
.bda-copy-button,
.bda-btn-light,
.bda-empty button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 13px;
    color: var(--bda-blue);
    background: #ffffff;
    border: 1px solid rgba(13,72,118,0.14);
    font-size: 0.80rem;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.22s ease;
}

.bda-secondary-button:hover,
.bda-clear-button:hover,
.bda-copy-button:hover,
.bda-empty button:hover {
    color: #ffffff;
    background: var(--bda-blue);
    border-color: var(--bda-blue);
    transform: translateY(-2px);
}

.bda-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bda-search-box {
    flex: 1;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-radius: 17px;
    background: var(--bda-soft);
    border: 1px solid rgba(13,72,118,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.90);
}

.bda-search-box:focus-within {
    background: #ffffff;
    border-color: rgba(27,182,201,0.46);
    box-shadow: 0 0 0 4px rgba(27,182,201,0.08);
}

.bda-search-box svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: var(--bda-blue);
    stroke-width: 2;
    stroke-linecap: round;
}

.bda-search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--bda-ink);
    background: transparent;
    font-size: 0.96rem;
}

.bda-search-box input::placeholder {
    color: #8092a1;
}

.bda-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.bda-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 13px;
    border-radius: 999px;
    color: #436079;
    background: #ffffff;
    border: 1px solid rgba(13,72,118,0.12);
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.22s ease;
}

.bda-filter span {
    min-width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--bda-blue);
    background: rgba(18,93,136,0.08);
    font-size: 0.70rem;
}

.bda-filter:hover,
.bda-filter.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #0c4a78, #1a8495);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(11,73,111,0.18);
}

.bda-filter:hover span,
.bda-filter.is-active span {
    color: #ffffff;
    background: rgba(255,255,255,0.14);
}

.bda-result-summary {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 18px;
    color: var(--bda-muted);
    font-size: 0.84rem;
}

.bda-result-summary strong {
    color: var(--bda-blue);
    font-size: 1.08rem;
}

/* =========================================================
   CABECERAS DE SECCIÓN
========================================================= */

.bda-section-head {
    max-width: 820px;
    margin: 0 auto 38px;
    text-align: center;
}

.bda-section-head-left {
    max-width: 850px;
    margin-left: 0;
    text-align: left;
}

.bda-section-head > span {
    justify-content: center;
}

.bda-section-head-left > span {
    justify-content: flex-start;
}

.bda-section-head h2 {
    margin: 10px 0 14px;
    color: var(--bda-navy);
    font-size: clamp(2rem, 4vw, 3.55rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.052em;
}

.bda-section-head p {
    margin: 0;
    color: var(--bda-muted);
    line-height: 1.72;
}

/* =========================================================
   DESTACADOS
========================================================= */

.bda-featured {
    padding: 68px 0 82px;
    background:
        radial-gradient(circle at 10% 12%, rgba(213,164,58,0.09), transparent 26%),
        linear-gradient(180deg, #f5f9fc 0%, #ffffff 100%);
}

.bda-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
}

.bda-feature-card {
    position: relative;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(13,72,118,0.10);
    box-shadow: 0 18px 48px rgba(7,38,66,0.08);
    overflow: hidden;
    transition: all 0.25s ease;
}

.bda-feature-card:hover {
    transform: translateY(-7px);
    border-color: rgba(27,182,201,0.20);
    box-shadow: 0 28px 70px rgba(7,38,66,0.13);
}

.bda-feature-topline {
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--bda-gold-soft), var(--bda-cyan), var(--bda-blue));
}

.bda-type-pill {
    align-self: flex-start;
    display: inline-flex;
    padding: 7px 10px;
    margin-top: 5px;
    border-radius: 999px;
    color: var(--bda-blue);
    background: rgba(18,93,136,0.07);
    border: 1px solid rgba(18,93,136,0.10);
    font-size: 0.70rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bda-feature-card h3 {
    margin: 18px 0 12px;
    color: var(--bda-navy);
    font-size: 1.12rem;
    font-weight: 750;
    line-height: 1.3;
}

.bda-feature-card p {
    margin: 0;
    color: var(--bda-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.bda-feature-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 20px;
}

.bda-feature-meta span {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 9px;
    color: #557083;
    background: #f2f6f8;
    font-size: 0.68rem;
    font-weight: 700;
}

.bda-feature-link,
.bda-primary-link,
.bda-outline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 10px 15px;
    border-radius: 13px;
    font-size: 0.79rem;
    font-weight: 780;
    transition: all 0.22s ease;
}

.bda-feature-link {
    margin-top: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #0d4d7b, #188295);
    box-shadow: 0 12px 24px rgba(10,73,110,0.18);
}

.bda-feature-link:hover,
.bda-primary-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(10,73,110,0.24);
}

/* =========================================================
   CATÁLOGO DOCUMENTAL
========================================================= */

.bda-catalog {
    padding: 82px 0;
    background: #ffffff;
}

.bda-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 22px;
}

.bda-doc-card {
    display: grid;
    grid-template-columns: 205px minmax(0,1fr);
    min-height: 450px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(13,72,118,0.10);
    box-shadow: 0 22px 58px rgba(7,38,66,0.09);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bda-doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 74px rgba(7,38,66,0.14);
}

.bda-doc-card[hidden] {
    display: none !important;
}

.bda-cover {
    position: relative;
    min-height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 30%),
        linear-gradient(155deg, #0b355f, #176b7f);
    overflow: hidden;
}

.bda-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.bda-cover img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 16px 24px rgba(0,0,0,0.24));
}

.bda-cover > span {
    position: absolute;
    z-index: 3;
    left: 15px;
    top: 15px;
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 0.68rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.bda-access-badge {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-self: flex-start;
    margin-top: 15px;
    padding: 7px 10px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
}

.bda-access-badge.is-local {
    background: rgba(27,182,201,0.22);
    border: 1px solid rgba(128,237,244,0.28);
}

.bda-access-badge.is-external {
    background: rgba(213,164,58,0.22);
    border: 1px solid rgba(242,206,116,0.28);
}

.bda-doc-content {
    padding: 25px;
}

.bda-doc-eyebrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.bda-doc-eyebrow span {
    color: var(--bda-blue);
    font-size: 0.70rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bda-doc-eyebrow strong {
    color: #8191a0;
    font-size: 0.68rem;
    font-weight: 750;
}

.bda-doc-content h3 {
    margin: 0 0 12px;
    color: var(--bda-navy);
    font-size: 1.18rem;
    font-weight: 760;
    line-height: 1.28;
}

.bda-doc-content > p {
    margin: 0 0 20px;
    color: var(--bda-muted);
    font-size: 0.86rem;
    line-height: 1.62;
}

.bda-metadata {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
    margin: 0;
}

.bda-metadata div {
    min-height: 66px;
    padding: 10px 11px;
    border-radius: 13px;
    background: #f4f8fa;
    border: 1px solid rgba(13,72,118,0.06);
}

.bda-metadata dt {
    margin-bottom: 4px;
    color: #8998a5;
    font-size: 0.64rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bda-metadata dd {
    margin: 0;
    color: #38556b;
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.35;
}

.bda-doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.bda-primary-link {
    color: #ffffff;
    background: linear-gradient(135deg, #0d4d7b, #188295);
}

.bda-outline-link {
    color: var(--bda-blue);
    background: #ffffff;
    border: 1px solid rgba(13,72,118,0.16);
}

.bda-outline-link:hover {
    color: var(--bda-navy);
    background: #f3f8fa;
    transform: translateY(-2px);
}

.bda-copy-button {
    min-height: 43px;
}

.bda-copy-button.is-copied {
    color: #ffffff;
    background: #1a8c79;
    border-color: #1a8c79;
}

.bda-unavailable {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 12px;
    color: #8a5a15;
    background: #fff6df;
    border: 1px solid #f3deb0;
    font-size: 0.76rem;
    font-weight: 750;
}

.bda-empty {
    margin-top: 24px;
    padding: 42px 24px;
    border-radius: 26px;
    text-align: center;
    background: #f5f9fb;
    border: 1px dashed rgba(13,72,118,0.18);
}

.bda-empty strong {
    display: block;
    color: var(--bda-navy);
    font-size: 1.25rem;
}

.bda-empty p {
    color: var(--bda-muted);
}

/* =========================================================
   EVIDENCIA CTA
========================================================= */

.bda-evidence-cta {
    padding: 26px 0 82px;
    background: #ffffff;
}

.bda-evidence-card {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 30px;
    align-items: center;
    padding: 38px;
    border-radius: 32px;
    color: #ffffff;
    background:
        radial-gradient(circle at 100% 0%, rgba(213,164,58,0.18), transparent 28%),
        linear-gradient(125deg, #072b54, #105d83 60%, #1d8090);
    box-shadow: 0 30px 76px rgba(7,38,66,0.20);
}

.bda-evidence-card h2 {
    max-width: 820px;
    margin: 10px 0 12px;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.bda-evidence-card p {
    max-width: 800px;
    margin: 0;
    color: rgba(255,255,255,0.72);
    line-height: 1.68;
}

.bda-evidence-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 215px;
}

.bda-btn-light {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}

.bda-btn-light:hover {
    color: var(--bda-navy);
    background: #ffffff;
    transform: translateY(-2px);
}

.bda-source-note {
    padding: 18px 0 34px;
    background: #f5f8fa;
}

.bda-source-note p {
    margin: 0;
    color: #647786;
    font-size: 0.82rem;
    line-height: 1.6;
}

/* =========================================================
   FICHA DE EVIDENCIA
========================================================= */

.bda-evidence-page {
    min-height: 100vh;
    padding-top: 108px;
    color: #243a4d;
    background: #eef3f6;
}

.bda-evidence-toolbar {
    padding: 18px 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(13,72,118,0.10);
}

.bda-evidence-toolbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.bda-evidence-toolbar .container > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bda-back-link {
    color: var(--bda-blue);
    font-weight: 750;
}

.bda-evidence-document {
    padding: 36px 0 70px;
}

.bda-evidence-sheet {
    max-width: 1120px;
    margin: 0 auto;
    padding: 44px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(13,72,118,0.08);
    box-shadow: 0 24px 70px rgba(7,38,66,0.12);
}

.bda-evidence-header {
    display: grid;
    grid-template-columns: 240px minmax(0,1fr);
    gap: 32px;
    align-items: center;
    padding-bottom: 28px;
    border-bottom: 2px solid #d7e3ea;
}

.bda-evidence-header img {
    width: 100%;
    max-width: 230px;
}

.bda-evidence-header span {
    color: var(--bda-blue);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bda-evidence-header h1 {
    margin: 8px 0 9px;
    color: var(--bda-navy);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.bda-evidence-header p {
    margin: 0;
    color: var(--bda-muted);
}

.bda-evidence-folio {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
    margin: 28px 0;
}

.bda-evidence-folio div,
.bda-evidence-grid div {
    padding: 14px;
    border-radius: 14px;
    background: #f4f8fa;
    border: 1px solid rgba(13,72,118,0.07);
}

.bda-evidence-folio span,
.bda-evidence-grid span {
    display: block;
    margin-bottom: 5px;
    color: #81919e;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bda-evidence-folio strong,
.bda-evidence-grid strong {
    display: block;
    color: #294b65;
    font-size: 0.82rem;
    line-height: 1.4;
}

.bda-evidence-section {
    margin-top: 30px;
}

.bda-evidence-section h2 {
    margin: 0 0 16px;
    color: var(--bda-navy);
    font-size: 1.35rem;
    font-weight: 750;
}

.bda-evidence-section > p,
.bda-evidence-description {
    color: var(--bda-muted);
    line-height: 1.7;
}

.bda-evidence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}

.bda-status-ok {
    color: #137862 !important;
}

.bda-evidence-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.bda-evidence-metrics div {
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(145deg, #0b4a78, #1a7c91);
}

.bda-evidence-metrics strong {
    display: block;
    font-size: 1.65rem;
}

.bda-evidence-metrics span {
    font-size: 0.72rem;
    font-weight: 700;
}

.bda-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(13,72,118,0.10);
}

.bda-evidence-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.bda-evidence-table th {
    padding: 12px;
    color: #ffffff;
    text-align: left;
    background: #0b4a78;
}

.bda-evidence-table td {
    padding: 12px;
    vertical-align: top;
    border-bottom: 1px solid #e5edf1;
}

.bda-evidence-table tbody tr:last-child td {
    border-bottom: 0;
}

.bda-evidence-table td strong,
.bda-evidence-table td small {
    display: block;
}

.bda-evidence-table td small {
    margin-top: 4px;
    color: #758895;
}

.bda-evidence-list {
    margin: 0;
    padding-left: 20px;
    color: var(--bda-muted);
    line-height: 1.8;
}

.bda-evidence-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px;
    margin-top: 38px;
    padding-top: 24px;
    border-top: 2px solid #d7e3ea;
}

.bda-evidence-footer span,
.bda-evidence-footer strong {
    display: block;
}

.bda-evidence-footer span {
    color: #82919d;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bda-evidence-footer strong {
    margin-top: 6px;
    color: #294b65;
    font-size: 0.84rem;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {
    .bda-featured-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .bda-doc-card {
        grid-template-columns: 180px minmax(0,1fr);
    }
}

@media (max-width: 991.98px) {
    .bda-hero {
        padding-top: 142px;
    }

    .bda-hero-panel {
        max-width: 720px;
        margin: 0 auto;
    }

    .bda-search-heading,
    .bda-evidence-card {
        grid-template-columns: 1fr;
    }

    .bda-search-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .bda-search-actions {
        justify-content: flex-start;
    }

    .bda-doc-grid {
        grid-template-columns: 1fr;
    }

    .bda-evidence-actions {
        flex-direction: row;
        min-width: 0;
    }

    .bda-evidence-header {
        grid-template-columns: 190px minmax(0,1fr);
    }
}

@media (max-width: 767.98px) {
    .bda-hero {
        padding: 118px 0 60px;
    }

    .bda-hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.65rem);
    }

    .bda-hero-actions,
    .bda-search-row,
    .bda-evidence-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bda-hero-actions .btn,
    .bda-evidence-actions .btn,
    .bda-btn-light {
        width: 100%;
    }

    .bda-hero-panel,
    .bda-search-card,
    .bda-evidence-card,
    .bda-evidence-sheet {
        padding: 22px;
        border-radius: 24px;
    }

    .bda-stat-grid {
        grid-template-columns: 1fr;
    }

    .bda-stat-grid div {
        min-height: 0;
    }

    .bda-search-section {
        margin-top: -20px;
    }

    .bda-filter-group {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bda-filter {
        justify-content: space-between;
        width: 100%;
    }

    .bda-featured-grid {
        grid-template-columns: 1fr;
    }

    .bda-feature-card {
        min-height: 0;
    }

    .bda-doc-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .bda-cover {
        min-height: 330px;
    }

    .bda-cover img {
        max-height: 240px;
    }

    .bda-metadata,
    .bda-evidence-grid,
    .bda-evidence-folio,
    .bda-evidence-metrics,
    .bda-evidence-footer {
        grid-template-columns: 1fr;
    }

    .bda-evidence-toolbar .container,
    .bda-evidence-header {
        align-items: flex-start;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .bda-evidence-header img {
        max-width: 210px;
    }

    .bda-evidence-page {
        padding-top: 88px;
    }
}

@media print {
    .site-header,
    .footer-sma,
    #backToTop,
    .no-print {
        display: none !important;
    }

    body {
        background: #ffffff !important;
    }

    .bda-evidence-page {
        padding: 0;
        background: #ffffff;
    }

    .bda-evidence-document {
        padding: 0;
    }

    .bda-evidence-sheet {
        max-width: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .bda-evidence-table {
        font-size: 9pt;
    }

    .bda-evidence-section,
    .bda-evidence-metrics,
    .bda-evidence-grid,
    .bda-evidence-table tr {
        break-inside: avoid;
    }
}

/* =========================================================
   BIBLIOTECA DIGITAL ANTICORRUPCIÓN V1.1
   Ajustes de ritmo vertical, nota institucional premium y
   compactación de la ficha de evidencia.
========================================================= */

/* Menor separación entre Consulta inteligente y Consulta prioritaria */
.bda-search-section {
    padding-bottom: 40px;
}

.bda-featured {
    padding-top: 44px;
    padding-bottom: 48px;
}

/* Menor separación entre Consulta prioritaria y Repositorio institucional */
.bda-catalog {
    padding-top: 52px;
}

/* CTA de evidencia más compacto tras retirar el párrafo descriptivo */
.bda-evidence-card {
    gap: 24px;
    padding: 30px 34px;
}

.bda-evidence-card h2 {
    margin-bottom: 0;
}

/* Nota institucional premium */
.bda-source-note {
    padding: 22px 0 38px;
    background:
        linear-gradient(180deg, #f7fafc 0%, #eef5f8 100%);
}

.bda-source-note-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 24px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 206, 116, 0.20), transparent 30%),
        linear-gradient(125deg, #072b54 0%, #105d83 58%, #1b7d8d 100%);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        0 22px 54px rgba(7, 38, 66, 0.17),
        inset 0 1px 0 rgba(255,255,255,0.10);
}

.bda-source-note-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.32;
    pointer-events: none;
}

.bda-source-note-card > * {
    position: relative;
    z-index: 2;
}

.bda-source-note-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    border-radius: 17px;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.07));
    border: 1px solid rgba(255,255,255,0.17);
    box-shadow:
        0 14px 28px rgba(0, 17, 39, 0.20),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.bda-source-note-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bda-source-note-content > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--bda-gold-soft);
    font-size: 0.70rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.bda-source-note-content > span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bda-gold-soft);
    box-shadow: 0 0 0 5px rgba(242, 206, 116, 0.10);
}

.bda-source-note-content p {
    margin: 0;
    max-width: 970px;
    color: rgba(255,255,255,0.78);
    font-size: 0.84rem;
    line-height: 1.58;
}

.bda-source-note-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #fff5d8;
    background: rgba(213,164,58,0.14);
    border: 1px solid rgba(242,206,116,0.22);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .bda-search-section {
        padding-bottom: 34px;
    }

    .bda-featured {
        padding-top: 38px;
        padding-bottom: 44px;
    }

    .bda-catalog {
        padding-top: 46px;
    }

    .bda-source-note-card {
        grid-template-columns: auto minmax(0,1fr);
    }

    .bda-source-note-badge {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 575.98px) {
    .bda-search-section {
        padding-bottom: 28px;
    }

    .bda-featured {
        padding-top: 32px;
        padding-bottom: 38px;
    }

    .bda-catalog {
        padding-top: 40px;
    }

    .bda-evidence-card {
        padding: 26px 22px;
    }

    .bda-source-note-card {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 20px;
        border-radius: 21px;
    }

    .bda-source-note-icon {
        width: 48px;
        height: 48px;
    }

    .bda-source-note-badge {
        grid-column: auto;
        justify-self: start;
    }
}

/* =========================================================
   BIBLIOTECA DIGITAL ANTICORRUPCIÓN V1.2
   Taxonomía de seis categorías, filtros cruzados y tarjeta
   unificada de evidencia y alcance institucional.
========================================================= */

/* Categorías previstas sin documentos publicados */
.bda-filter.is-empty,
.bda-filter:disabled {
    color: #8696a3;
    background: #f2f5f7;
    border-color: rgba(13,72,118,0.07);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.72;
}

.bda-filter.is-empty span,
.bda-filter:disabled span {
    color: #8797a4;
    background: rgba(90,110,125,0.08);
}

/* Filtros cruzados */
.bda-cross-filters {
    display: grid;
    grid-template-columns: 0.75fr 1.65fr 0.85fr 0.90fr auto;
    gap: 11px;
    align-items: end;
    margin-top: 18px;
    padding: 16px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(244,249,252,0.96), rgba(238,246,249,0.92));
    border: 1px solid rgba(13,72,118,0.08);
}

.bda-cross-filters label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.bda-cross-filters label > span {
    color: #627888;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bda-cross-filters select {
    width: 100%;
    min-height: 44px;
    padding: 9px 38px 9px 12px;
    border-radius: 13px;
    color: #294b65;
    background-color: #ffffff;
    border: 1px solid rgba(13,72,118,0.12);
    outline: 0;
    font-size: 0.77rem;
    font-weight: 700;
    cursor: pointer;
}

.bda-cross-filters select:focus {
    border-color: rgba(27,182,201,0.48);
    box-shadow: 0 0 0 4px rgba(27,182,201,0.08);
}

.bda-reset-cross-filters {
    min-height: 44px;
    padding: 9px 15px;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #0d4d7b, #188295);
    border: 0;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease;
    white-space: nowrap;
}

.bda-reset-cross-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(10,73,110,0.18);
}

.bda-taxonomy-note {
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 14px;
    color: #607584;
    background: #fbfcfd;
    border: 1px dashed rgba(13,72,118,0.12);
    font-size: 0.76rem;
    line-height: 1.5;
}

.bda-taxonomy-note strong {
    color: var(--bda-blue);
}

/* Clasificación visible en cada registro */
.bda-taxonomy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: -2px 0 12px;
}

.bda-taxonomy-row span {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 5px 8px;
    border-radius: 8px;
    color: #567083;
    background: #f1f6f8;
    border: 1px solid rgba(13,72,118,0.07);
    font-size: 0.63rem;
    font-weight: 760;
}

/* Tarjeta única de evidencia y alcance */
.bda-evidence-cta {
    padding: 24px 0 54px;
    background: #ffffff;
}

.bda-evidence-card-unified {
    display: block;
    padding: 0;
    overflow: hidden;
}

.bda-evidence-card-main {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 32px 34px 25px;
}

.bda-evidence-card-main > div:first-child > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bda-gold-soft);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.bda-evidence-card-main > div:first-child > span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bda-gold-soft);
    box-shadow: 0 0 0 6px rgba(242,206,116,0.10);
}

.bda-evidence-card-main h2 {
    margin: 10px 0 0;
}

.bda-evidence-scope {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 0 14px 14px;
    padding: 18px 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(242,206,116,0.13), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.055));
    border: 1px solid rgba(255,255,255,0.13);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.bda-evidence-scope .bda-source-note-content > span {
    margin-bottom: 4px;
}

.bda-evidence-scope .bda-source-note-content p {
    max-width: 920px;
    font-size: 0.79rem;
    line-height: 1.52;
}

.bda-evidence-scope .bda-source-note-badge {
    align-self: center;
}

@media (max-width: 1199.98px) {
    .bda-cross-filters {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .bda-reset-cross-filters {
        justify-self: start;
    }
}

@media (max-width: 991.98px) {
    .bda-evidence-card-main {
        grid-template-columns: 1fr;
    }

    .bda-evidence-actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }

    .bda-evidence-scope {
        grid-template-columns: auto minmax(0,1fr);
    }

    .bda-evidence-scope .bda-source-note-badge {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 767.98px) {
    .bda-cross-filters {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .bda-reset-cross-filters {
        width: 100%;
    }

    .bda-evidence-card-main {
        padding: 27px 22px 20px;
    }

    .bda-evidence-scope {
        grid-template-columns: 1fr;
        gap: 11px;
        margin: 0 10px 10px;
        padding: 17px;
    }

    .bda-evidence-scope .bda-source-note-badge {
        grid-column: auto;
    }
}

/* Recurso digital interno incorporado desde la Cápsula de Integridad */
.bda-access-badge.is-internal {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(13, 118, 157, .94), rgba(32, 184, 202, .92));
    border-color: rgba(255, 255, 255, .22);
}
