.auth-page { color: #18243b; }
.auth-page main { padding-block: 24px 40px; }
.auth-page h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.035em; }
.auth-page .form-label { font-weight: 600; font-size: .95rem; margin-bottom: .45rem; }
.auth-page .form-control { border-radius: 10px; border: 1px solid #bac4d2; font-size: 1rem; min-height: 48px; }
.auth-page .form-text { font-size: .85rem; color: #4c5970; }
.auth-page .btn-primary { border-radius: 10px; }
.auth-page .alert, .auth-notice { border-radius: 12px; overflow-wrap: anywhere; }
.auth-nombres { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.auth-page :is(input, select, button, a):focus-visible, .auth-notice :is(button, a):focus-visible {
    outline: 3px solid #2664df; outline-offset: 3px;
}
.auth-page .bg-cover { min-height: 100vh; }
.auth-notice { padding: 20px; border: 1px solid #bbcfea; background: #f1f6ff; margin-block: 18px; color: #203656; }
.auth-notice h2 { font-size: 1.15rem; margin-top: 0; }
.auth-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.auth-actions form { margin: 0; }
.auth-page .text-danger:not(:empty) { margin-top: 6px; }
.auth-page .input-group > .form-control { min-width: 0; }
.auth-uso__opciones { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; margin-top: 8px; }
.auth-uso__opcion {
    display: flex; flex-direction: column; gap: 4px; cursor: pointer;
    border: 1px solid #bac4d2; border-radius: 12px; padding: 14px 16px;
    transition: border-color .15s ease, box-shadow .15s ease; background: #fff;
}
.auth-uso__opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.auth-uso__opcion:hover { border-color: #2664df; }
.auth-uso__opcion.is-selected { border-color: #2664df; box-shadow: 0 0 0 3px rgba(38,100,223,.15); }
.auth-uso__opcion:has(input:focus-visible) { outline: 3px solid #2664df; outline-offset: 2px; }
.auth-uso__titulo { font-weight: 600; color: #18243b; }
.auth-uso__desc { font-size: .85rem; color: #4c5970; }
.vcombo { position: relative; }
.vcombo__control { position: relative; }
.vcombo__input { padding-right: 36px; }
.vcombo__toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #4c5970; font-size: .75rem; }
.vcombo__listbox {
    position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px;
    overflow-y: auto; background: #fff; border: 1px solid #bac4d2; border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14); margin: 0; padding: 6px; list-style: none;
}
.vcombo__option { padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: .95rem; color: #18243b; }
.vcombo__option.is-active, .vcombo__option:hover { background: #eef3ff; }
.vcombo__option.is-selected { font-weight: 600; color: #2664df; }
.vcombo__empty { padding: 8px 12px; color: #8a94a6; font-size: .9rem; }
@media (max-width: 767px) {
    .auth-page .bg-cover { display: none; }
    .auth-page main { padding-block: 16px 32px; }
    .auth-nombres { grid-template-columns: 1fr; }
    .auth-uso__opciones { grid-template-columns: 1fr; }
}

/* ---- Invitación pública (Etapa 3B) ---- */
.invite-pill {
    display: inline-block; padding: 4px 14px; border-radius: 999px;
    font-size: .8rem; font-weight: 600; background: #eef2ff; color: #2664df;
    margin-block: 10px 6px;
}
.invite-org { font-size: 1.4rem; font-weight: 700; color: #18243b; margin: 4px 0 0; }
.invite-masked-email { color: #4c5970; font-size: .9rem; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.invite-actions form { margin: 0; }

.auth-mountains {
    --auth-blue: #0066ed;
    --auth-ink: #17202d;
    --auth-muted: #556273;
    --auth-border: #cad3df;
    background: #fff;
    color: var(--auth-ink);
    height: auto !important;
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: 0;
}
.auth-mountains, .auth-mountains * { box-sizing: border-box; }
.auth-mountains > .container-fluid { height: auto !important; padding: 0; }
.auth-mountains > .container-fluid > .row {
    display: grid !important;
    grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
    height: auto !important;
    min-height: 100vh;
    margin: 0;
}
.auth-mountains > .container-fluid > .row > .px-vw-5 {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    padding: 40px 32px 48px max(32px, 7.5vw) !important;
}
.auth-mountains header {
    width: 100%;
    padding: 0 !important;
    margin: 0 0 66px !important;
}
.auth-mountains header img { width: 150px; height: auto; }
.auth-mountains main { width: 100%; max-width: 380px; padding: 0; margin: 0 !important; }
.auth-mountains main h1 { font-size: 32px; line-height: 1.2; letter-spacing: 0; margin: 0 0 30px; font-weight: 700; }
.auth-mountains main > .row { margin-inline: 0; }
.auth-mountains main > .row > .col-12 { width: 100%; padding-inline: 0; }
.auth-mountains .form-label { font-size: 14px; color: var(--auth-ink); }
.auth-mountains .form-control { min-height: 48px; border-radius: 8px; background-color: #fff; }
.auth-mountains .form-control:not(.is-invalid):not(.is-valid) { border-color: var(--auth-border); }
.auth-mountains .form-control:focus { box-shadow: 0 0 0 3px rgb(0 102 237 / 12%); }
.auth-mountains .form-control:disabled { background-color: #f1f4f8; }
.auth-mountains .form-text, .auth-mountains .small { font-size: 12px; line-height: 1.6; color: var(--auth-muted); }
.auth-mountains main a:not(.btn) { color: #065ecb; }
.auth-mountains main .link-fancy { border-color: currentColor; }
.auth-mountains main .btn { min-height: 46px; border-radius: 8px; padding: 11px 18px; font-size: 14px; white-space: normal; }
.auth-mountains main .btn-primary { background: var(--auth-blue); border-color: var(--auth-blue); color: #fff; }
.auth-mountains main .btn-primary:hover { background: #0056c8; border-color: #0056c8; }
.auth-mountains main .btn-primary:active { background: #0047a6; border-color: #0047a6; }
.auth-mountains main .btn-primary:disabled { opacity: .6; }
.auth-mountains main button[type="submit"] { width: 100%; }
.auth-mountains .input-group > .btn { width: 48px; padding: 10px; border-color: var(--auth-border); }
.auth-mountains .input-group > .btn img { width: 22px; height: 22px; object-fit: contain; }
.auth-mountains .alert, .auth-mountains .auth-notice, .auth-mountains .auth-uso__opcion { border-radius: 8px; }
.auth-mountains .auth-uso__opcion { padding: 12px; }
.auth-mountains .auth-uso__titulo { font-size: 14px; }
.auth-mountains .auth-uso__desc { font-size: 12px; }
.auth-mountains .text-danger { font-size: 13px; }
.auth-mountains .auth-landscape { position: relative; width: 100%; min-width: 0; padding: 0; }
.auth-landscape-inner { position: sticky; top: 0; min-height: 780px; height: 100vh; }
.auth-landscape-copy { position: relative; z-index: 1; padding-top: 160px; margin-left: 9%; width: 350px; max-width: calc(100% - 48px); }
.auth-landscape-copy h2 { font-size: 56px; line-height: 1.08; letter-spacing: 0; font-weight: 700; color: #111820; margin: 0 0 24px; }
.auth-landscape-copy h2 span { color: var(--auth-blue); }
.auth-landscape-copy p { font-size: 18px; line-height: 1.6; margin: 0; max-width: 350px; color: #4b5868; }
.auth-landscape-scene { position: absolute; width: calc(100% + 170px); aspect-ratio: 1320 / 900; right: 0; bottom: 0; }
.auth-landscape-scene picture, .auth-landscape-scene img { display: block; width: 100%; height: 100%; }
.auth-landscape-scene img { object-fit: cover; mask-image: linear-gradient(to bottom, transparent, #000 12%); }
.auth-landscape-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-landscape-route-mobile { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-landscape-node { position: absolute; width: 20px; height: 20px; border: 4px solid #fff; border-radius: 50%; background: var(--auth-blue); box-shadow: 0 0 0 2px var(--auth-blue); transform: translate(-50%, -50%); }
.auth-landscape-node-collect { left: 52.6%; top: 70.735%; }
.auth-landscape-node-understand { left: 70.1%; top: 55.147%; }
.auth-landscape-node-decide { left: 90%; top: 39.118%; }
.auth-landscape-stages { margin: 0; padding: 0; list-style: none; }
.auth-landscape-stages li {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 180px;
    min-height: 66px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e3eaf2;
    background: rgb(255 255 255 / 97%);
    box-shadow: 0 5px 20px rgb(37 72 110 / 9%);
    transform: translate(-50%, -100%);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: #283445;
}
.auth-landscape-stages .auth-landscape-collect { left: 52.6%; top: calc(70.735% - 22px); }
.auth-landscape-stages .auth-landscape-understand { left: 70.1%; top: calc(55.147% - 22px); }
.auth-landscape-stages .auth-landscape-decide { left: 90%; top: calc(39.118% - 22px); }
.auth-landscape-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 6px; color: var(--auth-blue); background: #eef5ff; }
.auth-landscape-icon svg { width: 24px; height: 24px; }
.auth-landscape-contours { position: absolute; top: 0; right: 0; width: 100%; height: 75%; pointer-events: none; z-index: -1; }
@media (min-width: 1800px) {
    .auth-mountains > .container-fluid > .row > .px-vw-5 { padding-left: max(132px, calc((100vw - 1500px) / 2)) !important; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .auth-mountains > .container-fluid > .row { grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); }
    .auth-mountains > .container-fluid > .row > .px-vw-5 { padding: 32px 28px 40px !important; }
    .auth-mountains header { margin-bottom: 54px !important; }
    .auth-mountains main h1 { font-size: 28px; }
    .auth-landscape-copy { margin-left: 24px; padding-top: 145px; width: 290px; }
    .auth-landscape-copy h2 { font-size: 44px; }
    .auth-landscape-copy p { font-size: 16px; }
    .auth-landscape-scene { width: 100%; height: 440px; aspect-ratio: auto; }
    .auth-landscape-node { width: 12px; height: 12px; border-width: 2px; box-shadow: 0 0 0 1px var(--auth-blue); }
    .auth-landscape-stages li { width: 126px; min-height: 62px; padding: 8px; gap: 6px; font-size: 11px; }
    .auth-landscape-icon { flex-basis: 24px; height: 28px; }
    .auth-landscape-icon svg { width: 20px; height: 20px; }
    .auth-landscape-stages .auth-landscape-decide { transform: translate(-75%, -100%); }
    .auth-landscape-stages .auth-landscape-collect { transform: translate(-70%, -60%); }
    .auth-landscape-stages .auth-landscape-understand { transform: translate(-85%, -100%); }
}
@media (max-width: 767px) {
    .auth-mountains > .container-fluid > .row { grid-template-columns: minmax(0, 1fr); }
    .auth-mountains > .container-fluid > .row > .px-vw-5 { padding: 28px 24px 32px !important; }
    .auth-mountains header, .auth-mountains main { max-width: 460px; margin-inline: auto !important; }
    .auth-mountains header { margin-bottom: 42px !important; }
    .auth-mountains main h1 { font-size: 28px; margin-bottom: 26px; }
    .auth-landscape-inner { position: relative; height: 530px; min-height: 0; overflow: hidden; }
    .auth-landscape-copy { padding-top: 32px; margin-left: 24px; width: 300px; }
    .auth-landscape-copy h2 { font-size: 32px; margin-bottom: 16px; }
    .auth-landscape-copy h2 br { display: none; }
    .auth-landscape-copy p { font-size: 14px; line-height: 1.6; }
    .auth-landscape-scene { width: 100%; height: 310px; aspect-ratio: auto; }
    .auth-landscape-scene img { object-position: right bottom; }
    .auth-landscape-route { display: none; }
    .auth-landscape-route-mobile { display: block; }
    .auth-landscape-node { display: none; }
    .auth-landscape-stages li { width: 124px; min-height: 58px; padding: 8px; gap: 6px; font-size: 11px; }
    .auth-landscape-icon { flex-basis: 24px; height: 28px; }
    .auth-landscape-icon svg { width: 20px; height: 20px; }
    .auth-landscape-stages .auth-landscape-collect { left: 23%; top: 76%; }
    .auth-landscape-stages .auth-landscape-understand { left: 51%; top: 48%; }
    .auth-landscape-stages .auth-landscape-decide { left: 79%; top: 20%; }
    .auth-landscape-stages li::after { content: ""; position: absolute; left: calc(50% - 5px); bottom: -17px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--auth-blue); box-shadow: 0 0 0 1px var(--auth-blue); }
}
