:root {
    --bpc-forest: #1b4d3e;
    --bpc-forest-deep: #143a2f;
    --bpc-forest-soft: #2a5f4d;
    --bpc-gold: #c9a24a;
    --bpc-gold-soft: #d4b36a;
    --bpc-cream: #f4f3ee;
    --bpc-card: #f7f6f1;
    --bpc-ink: #1a2a22;
    --bpc-muted: #5d6b63;
    --bpc-line: #d7ddd6;
    --bpc-white: #ffffff;
}

.bpc-shell {
    --bpc-hero-image: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--bpc-ink);
    background: #0f1a15;
    font-family: "Source Sans 3", system-ui, sans-serif;
    position: relative;
}

.bpc-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(12, 24, 18, 0.42) 0%, rgba(12, 24, 18, 0.28) 40%, rgba(12, 24, 18, 0.55) 100%),
        var(--bpc-hero-image) center center / cover no-repeat;
}

.bpc-shell > * {
    position: relative;
    z-index: 1;
}

.bpc-shell main {
    flex: 1;
}

/* Overlay header over hero image */
.bpc-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
}

.bpc-topbar__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bpc-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--bpc-white);
}

.bpc-brand img {
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.bpc-brand__text {
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 1.05rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.bpc-menu-btn {
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    background: transparent;
    color: var(--bpc-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0.5rem;
}

.bpc-menu-btn:hover,
.bpc-menu-btn:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.bpc-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 40, 32, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.bpc-drawer__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem 1.25rem;
    display: grid;
    gap: 0.35rem;
}

.bpc-drawer a,
.bpc-drawer button.linkish {
    display: block;
    width: 100%;
    text-align: left;
    color: #f4f8f4;
    text-decoration: none;
    padding: 0.75rem 0.85rem;
    border-radius: 0.55rem;
    font-size: 0.98rem;
    font-weight: 500;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.bpc-drawer a:hover,
.bpc-drawer button.linkish:hover,
.bpc-drawer a.is-active {
    background: rgba(255, 255, 255, 0.08);
}

.bpc-drawer__meta {
    padding: 0.85rem 0.85rem 0.35rem;
    color: rgba(244, 248, 244, 0.7);
    font-size: 0.88rem;
}

/* Hero (texto sobre el fondo full-page) */
.bpc-hero {
    position: relative;
    min-height: clamp(420px, 72vh, 760px);
    display: flex;
    align-items: flex-end;
    color: var(--bpc-white);
    background: transparent;
}

.bpc-hero--compact {
    min-height: clamp(360px, 58vh, 620px);
}

.bpc-hero__media {
    display: none;
}

.bpc-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 6.5rem 1.25rem 3.25rem;
}

.bpc-kicker {
    display: grid;
    gap: 0.15rem;
    margin-bottom: 0.85rem;
}

.bpc-kicker__gold {
    color: var(--bpc-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bpc-kicker__white {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bpc-hero h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    line-height: 1.12;
    font-weight: 700;
    max-width: 18ch;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.bpc-hero__brand {
    display: grid;
    gap: 0.35rem;
    margin: 0 0 1rem;
    max-width: none;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.bpc-hero__brand-gold {
    color: var(--bpc-gold);
    font-size: clamp(1.55rem, 4vw, 2.55rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.bpc-hero__brand-white {
    color: #fff;
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.08;
}

.bpc-hero__lead {
    margin: 1rem 0 0;
    max-width: 44rem;
    font-size: clamp(0.98rem, 2vw, 1.12rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.bpc-hero__sub {
    margin: 0.65rem 0 0;
    color: rgba(230, 236, 228, 0.82);
    font-size: 1rem;
}

.bpc-hero__list {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.bpc-hero__list li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.98rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
}

.bpc-hero__list li::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: var(--bpc-gold);
    flex: 0 0 auto;
}

.bpc-hero__list-label {
    margin: 1.15rem 0 0;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* Content sheets / cards */
.bpc-sheet {
    position: relative;
    z-index: 2;
    margin-top: -1.25rem;
    background: transparent;
    padding: 0.25rem 1rem 1.75rem;
}

.bpc-sheet__inner,
.bpc-stack {
    max-width: 720px;
    margin: 0 auto;
}

.bpc-stack {
    display: grid;
    gap: 0.85rem;
    padding: 0 1rem 1.75rem;
    margin-top: -1.25rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.bpc-section-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    font-weight: 700;
    color: var(--bpc-white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.bpc-section-title::before {
    content: "";
    display: block;
    width: 2.4rem;
    height: 0.22rem;
    border-radius: 999px;
    background: var(--bpc-gold);
    margin-bottom: 0.85rem;
}

.bpc-section-lead {
    margin: 0 0 1.4rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.98rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.bpc-card {
    background: var(--bpc-card);
    border-radius: 1.1rem;
    padding: 0.95rem 1rem 1.05rem;
    box-shadow: 0 10px 26px rgba(10, 20, 14, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.bpc-card::before {
    content: "";
    display: block;
    width: 2rem;
    height: 0.18rem;
    border-radius: 999px;
    background: var(--bpc-gold);
    margin: 0 auto 0.7rem;
}

.bpc-card h2,
.bpc-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--bpc-ink);
    text-align: center;
}

.bpc-card p {
    margin: 0 0 0.65rem;
    color: #33433a;
    font-size: 0.92rem;
    line-height: 1.45;
}

.bpc-card p:last-child {
    margin-bottom: 0;
}

.bpc-module {
    text-align: left;
}

.bpc-module::before {
    margin-left: 0;
}

.bpc-module__icon {
    width: 2.65rem;
    height: 2.65rem;
    margin-bottom: 0.55rem;
    color: var(--bpc-forest);
    object-fit: contain;
    display: block;
}

.bpc-module h3 {
    text-align: left;
    margin-bottom: 0.4rem;
}

.bpc-module p {
    margin-bottom: 1rem;
    color: var(--bpc-muted);
}

.bpc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    border: 0;
    border-radius: 0.65rem;
    padding: 0.78rem 1rem;
    background: var(--bpc-forest);
    color: var(--bpc-white);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.bpc-btn:hover,
.bpc-btn:focus-visible {
    background: var(--bpc-forest-deep);
    outline: none;
}

.bpc-btn:disabled,
.bpc-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.bpc-btn__arrow {
    font-size: 1.05rem;
    line-height: 1;
}

.bpc-field {
    margin-bottom: 1rem;
}

.bpc-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bpc-forest);
}

.bpc-field select,
.bpc-field input[type="date"],
.bpc-field input[type="text"],
.bpc-field input[type="email"],
.bpc-field input[type="password"] {
    width: 100%;
    min-width: 0;
    appearance: none;
    background: var(--bpc-white);
    border: 1px solid var(--bpc-line);
    border-radius: 0.7rem;
    padding: 0.85rem 0.95rem;
    color: var(--bpc-ink);
    font: inherit;
    font-size: 1rem;
}

.bpc-field select {
    background-image:
        linear-gradient(45deg, transparent 50%, var(--bpc-forest) 50%),
        linear-gradient(135deg, var(--bpc-forest) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.4rem;
}

.bpc-field input[type="date"] {
    padding-right: 0.85rem;
}

.bpc-error {
    margin: 0.35rem 0 0;
    color: #8c3028;
    font-size: 0.9rem;
}

.bpc-hint {
    margin-top: 0.75rem;
    color: var(--bpc-muted);
    font-size: 0.92rem;
}

/* Calculador BPC */
.bpc-stack--calc {
    max-width: 860px;
}

.bpc-card--calc,
.bpc-card--info {
    background: #fef9f0;
    border-radius: 1.25rem;
    padding: 1.15rem 1.15rem 1.2rem;
}

.bpc-card--calc::before,
.bpc-card--info::before {
    display: none;
}

.bpc-card--calc h2,
.bpc-card--info h2 {
    text-align: left;
    color: #00401a;
    font-family: Literata, Georgia, serif;
}

.bpc-btn--calc {
    margin-top: 0.35rem;
    background: #00401a;
    border-radius: 0.85rem;
    padding: 0.9rem 1.1rem;
}

.bpc-btn--calc:hover,
.bpc-btn--calc:focus-visible {
    background: #003316;
}

.bpc-out__header {
    margin-bottom: 1.1rem;
}

.bpc-out__header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: Literata, Georgia, serif;
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 700;
    color: #00401a;
    text-align: left;
}

.bpc-out__header h2::before {
    content: "";
    width: 0.28rem;
    height: 1.35em;
    border-radius: 999px;
    background: var(--bpc-gold);
    flex: 0 0 auto;
}

.bpc-out__done {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.55rem 0 0;
    color: #166534;
    font-size: 0.92rem;
    font-weight: 600;
}

.bpc-out__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: #166534;
    color: #fff;
    font-size: 0.7rem;
    line-height: 1;
}

.bpc-out__grid {
    display: grid;
    gap: 1.1rem;
    align-items: center;
}

.bpc-out__score-value {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.bpc-out__score-main {
    font-size: clamp(2.6rem, 7vw, 3.6rem);
    font-weight: 800;
    color: #c27a12;
}

.bpc-out--bajo .bpc-out__score-main {
    color: #2f7a3e;
}

.bpc-out--alto .bpc-out__score-main {
    color: #c2410c;
}

.bpc-out__score-den {
    font-size: 1.35rem;
    font-weight: 700;
    color: #00401a;
}

.bpc-out__score-label {
    margin: 0.45rem 0 0;
    color: var(--bpc-muted);
    font-size: 0.92rem;
}

.bpc-out__level {
    display: grid;
    gap: 0.75rem;
    justify-items: start;
}

.bpc-out__dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.1rem;
    align-items: center;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #e7e0d2;
}

.bpc-out__dot {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #5d6b63;
    font-size: 0.88rem;
    font-weight: 600;
}

.bpc-out__dot::before {
    content: "";
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.45;
    box-shadow: 0 0 0 0 transparent;
}

.bpc-out__dot--bajo::before { background: #4ade80; }
.bpc-out__dot--intermedio::before { background: #f59e0b; }
.bpc-out__dot--alto::before { background: #ef4444; }

.bpc-out__dot.is-active {
    color: #1a2a22;
}

.bpc-out__dot.is-active::before {
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.28);
}

.bpc-out--bajo .bpc-out__dot.is-active::before {
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.3);
}

.bpc-out--alto .bpc-out__dot.is-active::before {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.28);
}

.bpc-out__badge {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    padding: 0.55rem 0.95rem;
    background: #d97706;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.bpc-out--bajo .bpc-out__badge {
    background: #dcfce7;
    color: #166534;
}

.bpc-out--alto .bpc-out__badge {
    background: #c2410c;
    color: #fff;
}

.bpc-out__scale {
    margin-top: 1.35rem;
}

.bpc-out__track {
    position: relative;
    height: 0.85rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #4ade80 0%, #facc15 45%, #f97316 72%, #ef4444 100%);
}

.bpc-out__thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: #fff;
    border: 3px solid #5b4630;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bpc-out__thumb.at-end {
    transform: translate(-100%, -50%);
}

.bpc-out__tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.45rem);
    transform: translateX(-50%);
    background: #5b4630;
    color: #fff;
    border-radius: 0.4rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bpc-out__ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 0.45rem;
    color: #6b7280;
    font-size: 0.78rem;
}

.bpc-out__banner {
    margin: 1.1rem 0 0;
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: #ffedd5;
    color: #9a3412;
    font-size: 0.92rem;
    font-weight: 600;
}

.bpc-out--bajo .bpc-out__banner {
    background: #ecfdf3;
    color: #166534;
}

.bpc-out--alto .bpc-out__banner {
    background: #ffedd5;
    color: #9a3412;
}

.bpc-out__context {
    margin: 0.85rem 0 0;
    text-align: center;
    font-size: 0.84rem;
    color: var(--bpc-muted);
}

@media (min-width: 768px) {
    .bpc-out__grid {
        grid-template-columns: 1fr 1.1fr;
        gap: 1.5rem;
        padding-bottom: 0.35rem;
        border-bottom: 0;
    }

    .bpc-out__level {
        justify-items: stretch;
        padding-left: 1.25rem;
        border-left: 1px solid #e5e0d6;
    }

    .bpc-card--calc,
    .bpc-card--info {
        padding: 1.35rem 1.4rem 1.4rem;
    }
}

.bpc-footer {
    position: relative;
    z-index: 2;
    background: var(--bpc-forest);
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    padding: 1.1rem 1.25rem 1.25rem;
    font-size: 0.78rem;
    line-height: 1.5;
}

.bpc-footer__partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem 0.75rem;
}

.bpc-footer__sep {
    opacity: 0.55;
}

.bpc-footer__ciag {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    border-radius: 0.4rem;
    overflow: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.bpc-footer__ciag img {
    display: block;
    height: 2.1rem;
    width: auto;
}

.bpc-footer__ciag:hover,
.bpc-footer__ciag:focus-visible {
    opacity: 0.88;
    transform: translateY(-1px);
    outline: none;
}

.bpc-footer__copy {
    margin-top: 0.55rem;
    opacity: 0.92;
}

.bpc-admin-wrap {
    max-width: 1100px;
    margin: -2.5rem auto 0;
    padding: 0 1.25rem 2.5rem;
    position: relative;
    z-index: 2;
}

.bpc-admin-panel {
    background: rgba(247, 246, 241, 0.96);
    border-radius: 1.2rem;
    padding: 1.35rem;
    box-shadow: 0 14px 34px rgba(10, 20, 14, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

@media (min-width: 768px) {
    .bpc-topbar__inner,
    .bpc-hero__content,
    .bpc-sheet,
    .bpc-stack {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .bpc-sheet {
        padding-top: 0.5rem;
        padding-bottom: 2.25rem;
    }

    .bpc-stack {
        max-width: 780px;
        gap: 1rem;
        margin-top: -1.5rem;
    }

    .bpc-card {
        padding: 1.1rem 1.15rem 1.15rem;
    }

    .bpc-form-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .bpc-modules {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .bpc-desktop-nav {
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .bpc-desktop-nav a {
        color: rgba(255, 255, 255, 0.92);
        text-decoration: none;
        font-size: 0.92rem;
        font-weight: 600;
        padding: 0.55rem 0.8rem;
        border-radius: 0.5rem;
    }

    .bpc-desktop-nav a:hover,
    .bpc-desktop-nav a.is-active {
        background: rgba(255, 255, 255, 0.12);
    }

    .bpc-menu-btn {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .bpc-desktop-nav {
        display: none;
    }

    .bpc-scale__bar {
        height: 3.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bpc-btn {
        transition: none;
    }
}
