/* Autenticación: una superficie editorial compartida por acceso y alta. */
body:has(.auth-experience) .cabecera-publica,
body:has(.auth-experience) .navegacion-principal,
body:has(.auth-experience) .barra-superior,
body:has(.auth-experience) .navegacion-backdrop {
    display: none;
}

.shell:has(.auth-experience) {
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "contenido";
}

.shell .contenido:has(.auth-experience) {
    min-height: 100vh;
    padding: clamp(18px, 3vw, 38px);
    background:
        radial-gradient(circle at 12% 12%, rgb(217 107 69 / 13%), transparent 28%),
        radial-gradient(circle at 90% 86%, rgb(21 94 99 / 11%), transparent 31%),
        #eef1ee;
}

.shell .contenido:has(.auth-experience) > .flash {
    width: min(1180px, 100%);
    margin: 0 auto 14px;
}

.auth-experience {
    display: grid;
    width: min(1180px, 100%);
    max-width: 1180px;
    min-height: min(760px, calc(100vh - 76px));
    grid-template-columns: minmax(380px, .9fr) minmax(500px, 1.1fr);
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgb(22 33 38 / 9%);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 80px rgb(22 33 38 / 10%);
}

.auth-visual {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(34px, 5vw, 62px);
    overflow: hidden;
    isolation: isolate;
    color: #f7faf8;
    background: #123b37;
}

.auth-visual::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, rgb(6 30 28 / 18%), transparent 42%, rgb(7 28 26 / 28%));
    content: "";
}

.auth-visual__curvas,
.auth-visual__curvas span {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.auth-visual__curvas span {
    inset: auto;
    display: block;
    border-radius: 50%;
}

.auth-visual__curvas span:nth-child(1) {
    top: -7%;
    left: -42%;
    width: 138%;
    height: 48%;
    background: #1b4b45;
    transform: rotate(-10deg);
}

.auth-visual__curvas span:nth-child(2) {
    top: 27%;
    right: -62%;
    width: 150%;
    height: 45%;
    background: #244f47;
    opacity: .72;
    transform: rotate(-17deg);
}

.auth-visual__curvas span:nth-child(3) {
    right: -30%;
    bottom: -28%;
    width: 126%;
    height: 54%;
    background: #0b302d;
    opacity: .78;
    transform: rotate(14deg);
}

.auth-visual__marca {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.auth-visual__marca .marca-app__simbolo {
    border: 1px solid rgb(255 255 255 / 24%);
    background: rgb(255 255 255 / 10%);
}

.auth-visual__mensaje {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: auto 0;
    padding: 70px 0 50px;
}

.auth-visual__mensaje > p {
    margin: 0 0 14px;
    color: #a9c8be;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .095em;
    text-transform: uppercase;
}

.auth-visual__mensaje h2 {
    max-width: 480px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.auth-visual__mensaje > span {
    display: block;
    max-width: 460px;
    margin-top: 22px;
    color: #c7d8d2;
    font-size: 15px;
    line-height: 1.65;
}

.auth-visual__tarjeta {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 17px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 12px;
    background: rgb(255 255 255 / 8%);
    backdrop-filter: blur(10px);
}

.auth-visual__tarjeta-icono {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #d96b45;
    color: #fff;
}

.auth-visual__tarjeta-icono .icono {
    width: 17px;
    height: 17px;
}

.auth-visual__tarjeta small,
.auth-visual__tarjeta strong {
    display: block;
}

.auth-visual__tarjeta small {
    margin-bottom: 3px;
    color: #9fbdb4;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.auth-visual__tarjeta strong {
    color: #f7faf8;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.4;
}

.auth-access {
    display: grid;
    min-width: 0;
    place-items: center;
    padding: clamp(42px, 6vw, 82px);
    background: #fff;
}

.auth-access__contenido {
    width: min(430px, 100%);
}

.auth-access--register .auth-access__contenido {
    width: min(560px, 100%);
}

.auth-access__cabecera {
    margin-bottom: 30px;
    padding: 0;
    border: 0;
    background: transparent;
}

.auth-access__cabecera > span {
    color: var(--blue-signal);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.auth-access__cabecera h1 {
    margin: 9px 0 10px;
    font-family: var(--font-ui);
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.auth-access__cabecera p {
    margin: 0;
    color: var(--ink-500);
    font-size: 14px;
    line-height: 1.55;
}

.auth-access__form,
.auth-fields {
    display: grid;
    gap: 18px;
}

.auth-access__form label,
.auth-fields label {
    display: grid;
    gap: 7px;
    color: var(--ink-800);
    font-size: 13px;
    font-weight: 600;
}

.auth-access__form input:not([type="radio"]),
.auth-fields input:not([type="radio"]) {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d9dfdc;
    border-radius: 7px;
    outline: 0;
    background: #f9faf9;
    color: var(--ink-950);
    font-size: 14px;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.auth-access__form input:not([type="radio"]):focus,
.auth-fields input:not([type="radio"]):focus {
    border-color: var(--blue-signal);
    background: #fff;
    box-shadow: 0 0 0 3px rgb(21 94 99 / 10%);
}

.auth-field-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.auth-field-heading a,
.auth-access__alternate a,
.auth-access__secondary-form button {
    color: var(--blue-signal);
    font-weight: 600;
}

.auth-field-heading a {
    font-size: 12px;
    text-decoration: none;
}

.auth-field-heading a:hover,
.auth-access__alternate a:hover,
.auth-access__secondary-form button:hover {
    text-decoration: underline;
}

.auth-access__submit {
    display: flex;
    min-height: 49px;
    justify-content: space-between;
    margin-top: 2px;
    padding-inline: 17px;
}

.auth-access__secondary-form {
    margin-top: 15px;
    text-align: center;
}

.auth-access__secondary-form button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.auth-access__alternate {
    margin: 28px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line-200);
    color: var(--ink-500);
    font-size: 13px;
    text-align: center;
}

.auth-access__alternate a {
    text-decoration: none;
}

.auth-access__trust {
    margin: 16px 0 0;
    color: var(--ink-400);
    font-size: 11px;
    text-align: center;
}

.auth-access__hint {
    margin: 14px 0 0;
    color: var(--ink-400);
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.auth-status-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-signal-soft);
    color: var(--blue-signal);
}

.auth-status-icon .icono {
    width: 20px;
    height: 20px;
}

.auth-access__notice {
    padding: 18px;
    border: 1px solid var(--line-200);
    border-radius: 8px;
    background: var(--paper-050);
}

.auth-access__notice strong {
    color: var(--ink-950);
    font-size: 14px;
}

.auth-access__notice p {
    margin: 6px 0 0;
    color: var(--ink-500);
    font-size: 13px;
    line-height: 1.45;
}

.auth-honeypot {
    position: absolute;
    left: -9999px;
}

.auth-account-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.auth-account-types legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: var(--ink-800);
    font-size: 13px;
    font-weight: 600;
}

.auth-account-type {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    min-height: 86px;
    align-items: start;
    padding: 15px;
    border: 1px solid var(--line-200);
    border-radius: 8px;
    cursor: pointer;
}

.auth-account-type:has(input:checked) {
    border-color: var(--blue-signal);
    background: #f1f7f6;
    box-shadow: inset 0 0 0 1px var(--blue-signal);
}

.auth-account-type input {
    position: absolute;
    opacity: 0;
}

.auth-account-type__mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 7px;
    background: var(--blue-signal-soft);
    color: var(--blue-signal);
}

.auth-account-type__mark .icono {
    width: 17px;
    height: 17px;
}

.auth-account-type strong,
.auth-account-type small {
    display: block;
}

.auth-account-type strong {
    margin: 0 0 4px;
    color: var(--ink-950);
    font-size: 13px;
}

.auth-account-type small,
.auth-fields small {
    color: var(--ink-400);
    font-size: 11px;
    font-weight: 450;
    line-height: 1.35;
}

.auth-fields--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Paso autenticado posterior al alta. */
.auth-onboarding {
    width: min(760px, calc(100% - 32px));
    margin: 40px auto 72px;
}

.auth-onboarding--details {
    width: min(880px, calc(100% - 32px));
}

.auth-onboarding__hero {
    max-width: 680px;
    margin-bottom: 30px;
}

.auth-onboarding__eyebrow {
    color: var(--blue-signal);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.auth-onboarding__hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1;
}

.auth-onboarding__hero p {
    margin: 0;
    color: var(--ink-600);
    font-size: 16px;
    line-height: 1.55;
}

.auth-onboarding--details .auth-onboarding__form {
    display: grid;
    gap: 28px;
    padding: 30px;
    border: 1px solid var(--line-200);
    border-radius: 12px;
    background: #fff;
}

.auth-form-section {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line-200);
}

.auth-form-section > div:first-child > span {
    color: var(--blue-signal);
    font-size: 11px;
    font-weight: 650;
}

.auth-form-section h2 {
    margin: 6px 0 4px;
    font-size: 21px;
}

.auth-form-section > div > small {
    color: var(--ink-400);
    line-height: 1.45;
}

.auth-form-more {
    padding-top: 4px;
}

.auth-form-more summary {
    margin-bottom: 22px;
    color: var(--blue-signal);
    font-weight: 650;
    cursor: pointer;
}

.auth-onboarding--details .auth-onboarding__submit {
    min-height: 50px;
    justify-self: end;
}

@media (max-width: 920px) {
    .auth-experience {
        grid-template-columns: minmax(300px, .8fr) minmax(440px, 1.2fr);
    }

    .auth-visual,
    .auth-access {
        padding: 38px;
    }

    .auth-visual__mensaje h2 {
        font-size: 40px;
    }

    .auth-visual__tarjeta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .shell .contenido:has(.auth-experience) {
        padding: 0;
        background: #fff;
    }

    .auth-experience {
        min-height: 100vh;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 270px minmax(calc(100vh - 270px), auto);
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-visual {
        height: 270px;
        min-height: 270px;
        padding: 26px 24px;
    }

    .auth-visual__mensaje {
        margin: 0;
        padding: 44px 0 8px;
    }

    .auth-visual__mensaje h2 {
        max-width: 520px;
        font-size: 36px;
    }

    .auth-visual__mensaje > span,
    .auth-visual__tarjeta {
        display: none;
    }

    .auth-access {
        padding: 40px 24px 48px;
    }

    .auth-access__cabecera {
        margin-bottom: 26px;
    }

    .auth-onboarding {
        width: 100%;
        margin: 24px 0 48px;
    }

    .auth-onboarding__hero {
        padding: 0 20px;
    }

    .auth-onboarding--details .auth-onboarding__form {
        padding: 22px 20px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .auth-form-section {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 520px) {
    .auth-experience {
        grid-template-rows: 240px minmax(calc(100vh - 240px), auto);
    }

    .auth-visual {
        height: 240px;
        min-height: 240px;
    }

    .auth-visual__mensaje {
        padding-top: 28px;
    }

    .auth-visual__mensaje > p {
        margin-bottom: 8px;
    }

    .auth-visual__mensaje h2 {
        font-size: 31px;
    }

    .auth-access {
        place-items: start center;
        padding-top: 34px;
    }

    .auth-account-types,
    .auth-fields--two {
        grid-template-columns: 1fr;
    }

    .auth-account-type {
        min-height: 72px;
    }

    .auth-onboarding--details .auth-onboarding__submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-access__form input {
        transition: none;
    }
}
