html.blc-gate-open,
html.blc-gate-open body {
    overflow: hidden;
}

html.blc-gate-open .blc-catalog-stage,
html.blc-gate-open .blc-v2-app {
    pointer-events: none;
    user-select: none;
}

.blc-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    overflow: auto;
    pointer-events: auto;
    animation: blc-gate-in 0.28s ease;
}

.blc-gate * { box-sizing: border-box; }

.blc-gate__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.blc-gate__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 18px;
    padding: 32px 26px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    text-align: center;
    font-family: inherit;
    animation: blc-gate-card-in 0.32s ease;
}

.blc-gate__logo {
    margin: 0 auto 18px;
    max-width: 140px;
}

.blc-gate__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.blc-gate__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.blc-gate__subtitle {
    margin: 0 0 22px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.blc-gate__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    width: 100%;
}

.blc-gate__label {
    display: block;
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blc-gate__input,
.blc-gate #blc-gate-codigo.blc-gate__input {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    align-self: stretch;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.blc-gate__input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
    background: #fff;
}

.blc-gate__button {
    width: 100%;
    padding: 13px 18px;
    border: none;
    border-radius: 10px;
    background: #4f46e5;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.blc-gate__button:hover { background: #4338ca; }
.blc-gate__button:disabled { opacity: 0.65; cursor: default; }

.blc-gate__error {
    margin: 2px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.4;
}

.blc-gate__skip {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 0;
    border: none;
    background: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.blc-gate__skip:hover { color: #334155; }
.blc-gate__skip:disabled { opacity: 0.65; cursor: default; }

@keyframes blc-gate-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes blc-gate-card-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .blc-gate { padding: 16px; }
    .blc-gate__card { padding: 26px 20px; border-radius: 14px; }
    .blc-gate__title { font-size: 20px; }
}
