/* Estado de acceso independiente de Blazor, visible antes de abrir el circuito. */
#davivienda-app-content {
    display: contents;
}

#davivienda-app-content[hidden],
#davivienda-tab-guard[hidden],
#davivienda-tab-guard [hidden] {
    display: none !important;
}

.tab-guard {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    overflow-y: auto;
    padding: 24px;
    background: #f5f6f8;
    color: #1f2937;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.tab-guard__card {
    width: min(100%, 580px);
    padding: clamp(28px, 6vw, 48px);
    border: 1px solid #e3e5e9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(31, 41, 55, 0.08);
}

.tab-guard__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: #fff0f1;
    color: #c8102e;
}

.tab-guard__icon svg {
    width: 36px;
    height: 36px;
}

.tab-guard .tab-guard__eyebrow {
    margin: 0 0 10px;
    color: #a60d26;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tab-guard__intro {
    font-size: 17px !important;
    line-height: 1.6 !important;
}

.tab-guard__capacity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    padding: 16px;
    border: 1px solid #f0d4d8;
    border-radius: 12px;
    background: linear-gradient(110deg, #fff6f7, #fff 75%);
}

.tab-guard__capacity-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: #fff;
    color: #b20d27;
    box-shadow: 0 2px 9px rgba(139, 0, 0, 0.08);
}

.tab-guard__capacity-icon svg {
    width: 26px;
    height: 26px;
}

.tab-guard .tab-guard__capacity-copy {
    display: grid;
    gap: 4px;
}

.tab-guard .tab-guard__capacity-copy strong {
    color: #262b33;
    font-size: 15px;
}

.tab-guard .tab-guard__capacity-copy span {
    color: #5b6470;
    font-size: 13px;
    line-height: 1.45;
}

.tab-guard__capacity-badge {
    padding: 6px 9px;
    border: 1px solid #f0d4d8;
    border-radius: 999px;
    background: #fff;
    color: #a60d26;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.tab-guard__next-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0;
}

.tab-guard__step-number {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    background: #f2f4f7;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.tab-guard .tab-guard__next-step p {
    margin: 1px 0 0;
    font-size: 15px;
}

.tab-guard h1 {
    margin: 0 0 16px;
    color: #111827;
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 700;
    line-height: 1.2;
}

.tab-guard h1:focus {
    outline: none;
}

.tab-guard p,
.tab-guard noscript {
    display: block;
    margin: 0 0 16px;
    color: #374151;
    font-size: 16px;
    line-height: 1.55;
}

.tab-guard .tab-guard__note {
    margin: 20px 0 24px;
    padding-left: 12px;
    border-left: 3px solid #e1e4e8;
    color: #4b5563;
    font-size: 14px;
}

.tab-guard__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid #b20d27;
    border-radius: 8px;
    background: #c8102e;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.tab-guard__button svg {
    width: 19px;
    height: 19px;
}

.tab-guard__button:hover {
    background: #a90d27;
}

.tab-guard__button:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .tab-guard {
        padding: 16px;
    }

    .tab-guard__button {
        width: 100%;
    }

    .tab-guard__capacity {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tab-guard__capacity-badge {
        grid-column: 2;
        justify-self: start;
    }
}
