/* ACCESO-UX-01 · Puerta de ingreso operativa unificada */
.op-access-gateway {
    width: min(1080px, calc(100vw - 32px));
    display: grid;
    gap: 22px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(20, 33, 61, .08);
    border-radius: 30px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 90px rgba(6, 37, 91, .18);
}

.op-access-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.op-access-client-logo {
    width: min(280px, 42vw);
    max-height: 82px;
    object-fit: contain;
    object-position: left center;
}

.op-access-admin-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 12px 18px;
    border: 1px solid rgba(20, 33, 61, .12);
    border-radius: 16px;
    background: #172033;
    color: #fff;
    font-weight: 760;
    letter-spacing: .01em;
    box-shadow: 0 12px 26px rgba(23, 32, 51, .16);
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.op-access-admin-button:hover,
.op-access-admin-button:focus-visible {
    transform: translateY(-1px);
    background: #101827;
    box-shadow: 0 16px 34px rgba(23, 32, 51, .22);
    outline: none;
}

.op-access-admin-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.op-access-heading h1 {
    margin: 0;
    color: var(--op-text, #14213d);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -.035em;
    font-weight: 790;
}

.op-access-branch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.op-access-branch-card,
.op-access-empty-card {
    min-width: 0;
    min-height: 104px;
    border: 1px solid rgba(20, 33, 61, .10);
    border-radius: 20px;
    background: #fff;
    color: var(--op-text, #14213d);
    box-shadow: 0 12px 30px rgba(6, 37, 91, .055);
}

.op-access-branch-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 17px 18px;
    text-align: left;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}

.op-access-branch-card.is-operational:hover,
.op-access-branch-card.is-operational:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(18, 128, 92, .32);
    box-shadow: 0 18px 40px rgba(18, 128, 92, .12);
    outline: none;
}

.op-access-branch-card.is-inactive {
    cursor: not-allowed;
    opacity: .72;
    background: rgba(246, 247, 251, .92);
    box-shadow: none;
}

.op-access-store-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #596780;
    background: rgba(6, 37, 91, .055);
}

.op-access-store-icon svg,
.op-access-open-button-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.op-access-branch-copy {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.op-access-branch-name {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: 1rem;
    line-height: 1.15;
    font-weight: 820;
    letter-spacing: -.01em;
}

.op-access-branch-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--op-muted, #667085);
    font-size: .84rem;
    line-height: 1;
    font-weight: 600;
}

.op-access-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--op-danger, #b42318);
    box-shadow: 0 0 0 4px rgba(180, 35, 24, .10);
    flex: 0 0 auto;
}

.op-access-branch-card.is-operational .op-access-status-dot {
    background: var(--op-success, #12805c);
    box-shadow: 0 0 0 4px rgba(18, 128, 92, .11);
}

.op-access-empty-card {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    padding: 22px;
    color: var(--op-muted, #667085);
}

.op-access-open-button,
.op-access-submit-button {
    width: 100%;
    min-height: 60px;
    border: 0;
    border-radius: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    background: var(--op-accent, #f72c08);
    color: #fff;
    font-weight: 800;
    letter-spacing: .015em;
    box-shadow: 0 14px 30px rgba(180, 35, 24, .18);
    transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.op-access-open-button:hover,
.op-access-open-button:focus-visible,
.op-access-submit-button:hover,
.op-access-submit-button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(.95);
    box-shadow: 0 18px 36px rgba(180, 35, 24, .23);
    outline: none;
}

.op-access-open-button-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
}

.op-access-product-brand {
    justify-self: center;
    margin-top: 0;
}

.op-access-code-modal {
    width: min(460px, calc(100vw - 28px));
    max-height: calc(100dvh - 36px);
    padding: clamp(24px, 4vw, 32px);
    overflow: auto;
}

.op-access-modal-head {
    display: grid;
    justify-items: center;
    text-align: center;
    margin-bottom: 18px;
}

.op-access-modal-head h2 {
    margin: 0;
    padding: 0 34px;
    color: var(--op-text, #14213d);
    font-size: clamp(1.35rem, 5vw, 1.8rem);
    line-height: 1.1;
    font-weight: 800;
}

.op-access-code-form {
    gap: 14px;
}

.op-access-code-field {
    display: grid;
    gap: 8px;
    color: var(--op-muted, #667085);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: left;
}

.op-access-code-field input {
    width: 100%;
    min-height: 58px;
    border: 1px solid rgba(20, 33, 61, .20);
    border-radius: 16px;
    padding: 11px 15px;
    background: #fff;
    color: var(--op-text, #14213d);
    font-size: 1.12rem;
    font-weight: 680;
    letter-spacing: .08em;
    outline: none;
    caret-color: auto;
}

.op-access-code-field input::placeholder {
    color: #a2abc0;
    font-weight: 520;
    letter-spacing: 0;
}

.op-access-code-field input:focus {
    border-color: var(--op-primary, #06255b);
    box-shadow: 0 0 0 4px rgba(6, 37, 91, .09);
}

.op-access-code-hint {
    margin: -2px 0 2px;
    color: var(--op-muted, #667085);
    font-size: .82rem;
    line-height: 1.45;
}

.op-access-submit-button {
    min-height: 54px;
    margin-top: 2px;
}

@media (max-width: 860px) {
    .op-access-gateway {
        width: min(760px, calc(100vw - 26px));
        padding: 26px;
        border-radius: 26px;
    }

    .op-access-branch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .op-public-shell {
        align-items: start;
        padding: 14px 12px 54px;
    }

    .op-access-gateway {
        width: 100%;
        gap: 18px;
        padding: 20px 16px;
        border-radius: 22px;
    }

    .op-access-header {
        gap: 10px;
    }

    .op-access-client-logo {
        width: min(170px, 44vw);
        max-height: 58px;
    }

    .op-access-admin-button {
        min-height: 44px;
        gap: 7px;
        padding: 9px 11px;
        border-radius: 13px;
        font-size: .74rem;
    }

    .op-access-admin-button svg {
        width: 18px;
        height: 18px;
    }

    .op-access-heading h1 {
        font-size: clamp(1.65rem, 8vw, 2.15rem);
    }

    .op-access-branch-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .op-access-branch-card,
    .op-access-empty-card {
        min-height: 82px;
        border-radius: 17px;
    }

    .op-access-branch-card {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
        padding: 13px 14px;
    }

    .op-access-store-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .op-access-store-icon svg {
        width: 24px;
        height: 24px;
    }

    .op-access-open-button {
        min-height: 54px;
        border-radius: 15px;
    }

    .op-access-product-brand {
        width: min(170px, 56%);
    }

    .op-access-code-modal {
        width: min(100%, 430px);
        padding: 24px 18px;
        border-radius: 22px;
    }
}

@media (max-width: 390px) {
    .op-access-admin-button span {
        max-width: 112px;
        line-height: 1.15;
        text-align: center;
    }

    .op-access-client-logo {
        width: min(145px, 41vw);
    }
}
