.welcome-split {
min-height: 100vh;
}

.welcome-pane {
min-height: 100vh;
}

.welcome-images {
width: 60%;
padding: 2rem;
}

.welcome-form {
width: 40%;
padding: 2rem;
z-index: 1;
}

.login-wrapper {
width: 100%;
max-width: 400px;
}

.device-hero {
width: 100%;
max-width: 960px;
padding: 2rem;
}

.device-hero__tablet {
width: 100%;
height: auto;
display: block;
}

/* Por defecto ocultamos versión móvil */
#movil_welcome {
display: none !important;
}

/* Tablets y pantallas medianas */
@media (max-width: 991.98px) {
.welcome-split {
flex-direction: column !important;
min-height: 100vh;
}

.welcome-pane {
min-height: auto;
}

.welcome-images,
.welcome-form {
width: 100% !important;
padding: 1.5rem;
}

.welcome-images {
min-height: 40vh;
}

.welcome-form {
min-height: 60vh;
}

.device-hero {
max-width: 620px;
padding: 1rem;
}
}

/* Móvil */
@media (max-width: 575.98px) {
html,
body {
font-size: 16px !important;
min-height: 100%;
}

.desktop-welcome {
display: none !important;
}

#movil_welcome {
display: flex !important;
min-height: 100vh;
padding: 1rem;
align-items: center;
justify-content: center;
}

#movil_welcome .content {
width: 100%;
}

#movil_welcome .content__boxed {
min-height: 100vh;
padding: 1rem;
}

#movil_welcome .content__wrap {
width: 100%;
max-width: 420px;
}

#movil_welcome .card {
width: 100%;
border-radius: 1rem;
}

#movil_welcome .card-body {
padding: 1.5rem;
}

h1 {
font-size: 1.75rem;
}

.form-control,
.btn {
min-height: 42px;
}
}

/* Móviles muy pequeños */
@media (max-width: 375px) {
#movil_welcome {
padding: 0.5rem;
}

#movil_welcome .card-body {
padding: 1rem;
}

h1 {
font-size: 1.5rem;
}
}
@media (max-width: 991.98px) {
.mobile-login-logo {
width: 70%;
max-width: 260px;
display: block;
margin: 0 auto 1rem auto;
}
.device-hero{
display:flex;
justify-content: center;
}
.device-hero__tablet{
width:70%;
}
}
.mobile-login-logo {
width: 90px;
max-width: 35%;
height: auto;
display: block;
margin: 0 auto 1rem auto;
}

@media (max-width: 375px) {
.mobile-login-logo {
width: 72px;
}
}
/* TABLET ONLY: desde 576px hasta 991.98px */
@media (min-width: 576px) and (max-width: 991.98px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .desktop-welcome {
        height: 100dvh !important;
        min-height: 0 !important;
        overflow: hidden;
    }

    .welcome-split {
        height: 100dvh !important;
        min-height: 0 !important;
        overflow: hidden;
    }

    .welcome-pane {
        min-height: 0 !important;
        overflow: hidden;
    }

    .welcome-images {
        min-height: 34dvh !important;
        height: 34dvh !important;
        padding: 0.75rem 1rem !important;
    }

    .welcome-form {
        min-height: 66dvh !important;
        height: 66dvh !important;
        padding: 0.75rem 1rem !important;
    }

    .device-hero {
        max-width: 520px !important;
        padding: 0.5rem !important;
    }

    .device-hero__tablet {
        width: 62% !important;
        max-height: 30dvh;
        object-fit: contain;
        margin: 0 auto;
    }

    .login-wrapper {
        max-width: 380px;
        height: 100% !important;
        justify-content: center !important;
    }

    .welcome-form .c-sup {
        display: none !important;
    }

    .welcome-form h1 {
        font-size: 1.45rem;
        margin-bottom: 0.25rem;
    }

    .welcome-form form {
        margin-top: 0.75rem !important;
    }

    .welcome-form .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    .welcome-form .mt-3 {
        margin-top: 0.5rem !important;
    }

    .welcome-form .pt-3 {
        padding-top: 0.5rem !important;
    }

    .welcome-form .form-control,
    .welcome-form .btn {
        min-height: 34px;
    }

    .welcome-form .input-group .btn {
        min-height: auto;
    }
}
/* TABLET ONLY - SIN SCROLL EN VERTICAL NI HORIZONTAL */
@media (min-width: 576px) and (max-width: 991.98px) {
    html,
    body {
        width: 100%;
        height: 100%;
        overflow: hidden !important;
    }

    .desktop-welcome {
        height: 100dvh !important;
        max-height: 100dvh !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .welcome-split {
        height: 100dvh !important;
        max-height: 100dvh !important;
        min-height: 0 !important;
        overflow: hidden !important;
        flex-direction: column !important;
    }

    .welcome-pane {
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .welcome-images {
        height: 32dvh !important;
        min-height: 0 !important;
        max-height: 32dvh !important;
        padding: 0.5rem 1rem !important;
        flex: 0 0 32dvh !important;
    }

    .welcome-form {
        height: 68dvh !important;
        min-height: 0 !important;
        max-height: 68dvh !important;
        padding: 0.5rem 1rem !important;
        flex: 0 0 68dvh !important;
    }

    .device-hero {
        height: 100%;
        max-height: 100%;
        padding: 0.25rem !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .device-hero__tablet {
        width: auto !important;
        max-width: 70% !important;
        max-height: 100% !important;
        object-fit: contain;
    }

    .login-wrapper {
        height: 100% !important;
        max-height: 100% !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .welcome-form .c-sup {
        display: none !important;
    }

    .welcome-form h1 {
        font-size: 1.4rem;
        line-height: 1.1;
        margin-bottom: 0.25rem;
    }

    .welcome-form form {
        margin-top: 0.65rem !important;
    }

    .welcome-form .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    .welcome-form .mt-3 {
        margin-top: 0.5rem !important;
    }

    .welcome-form .pt-3 {
        padding-top: 0.5rem !important;
    }

    .welcome-form .form-control,
    .welcome-form .btn {
        min-height: 34px;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
}
/* TABLET HORIZONTAL - iPad Air landscape y similares */
@media (min-width: 576px) and (max-width: 991.98px) and (orientation: landscape) {
    html,
    body {
        overflow: hidden !important;
    }

    .desktop-welcome,
    .welcome-split {
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
    }

    .welcome-images {
        height: 26dvh !important;
        max-height: 26dvh !important;
        flex: 0 0 26dvh !important;
        padding: 0.25rem 1rem !important;
    }

    .welcome-form {
        height: 74dvh !important;
        max-height: 74dvh !important;
        flex: 0 0 74dvh !important;
        padding: 0.25rem 1rem !important;
    }

    .device-hero {
        padding: 0 !important;
    }

    .device-hero__tablet {
        max-height: 24dvh !important;
        max-width: 55% !important;
    }

    .login-wrapper {
        max-width: 360px !important;
    }

    .welcome-form h1 {
        font-size: 1.2rem !important;
        margin-bottom: 0.15rem !important;
    }

    .welcome-form form {
        margin-top: 0.45rem !important;
    }

    .welcome-form .mb-3 {
        margin-bottom: 0.35rem !important;
    }

    .welcome-form .mt-3 {
        margin-top: 0.35rem !important;
    }

    .welcome-form .pt-3 {
        padding-top: 0.35rem !important;
    }

    .welcome-form .form-control,
    .welcome-form .btn {
        min-height: 30px !important;
        font-size: 0.875rem;
    }

    .welcome-form label,
    .welcome-form a,
    .welcome-form span,
    .welcome-form div {
        font-size: 0.875rem;
    }
}
/* FIX DEFINITIVO: iPad Air / tablet horizontal sin scroll */
@media (min-width: 992px) and (max-width: 1199.98px) and (max-height: 900px) and (orientation: landscape) {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html,
    body {
        width: 100%;
        height: 100%;
        margin: 0;
        overflow: hidden !important;
    }

    .desktop-welcome,
    .welcome-split {
        width: 100%;
        height: 100dvh !important;
        min-height: 0 !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: row !important;
    }

    .welcome-pane {
        height: 100dvh !important;
        min-height: 0 !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
    }

    .welcome-images {
        width: 58% !important;
        height: 100dvh !important;
        padding: 0.75rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .welcome-form {
        width: 42% !important;
        height: 100dvh !important;
        padding: 0.75rem 1.25rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .device-hero {
        width: 100%;
        height: 100%;
        max-width: 620px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .device-hero__tablet {
        width: 82% !important;
        max-width: 82% !important;
        max-height: 82dvh !important;
        object-fit: contain !important;
    }

    .login-wrapper {
        width: 100%;
        max-width: 360px !important;
        height: auto !important;
        max-height: calc(100dvh - 1.5rem) !important;
        overflow: hidden !important;
        justify-content: center !important;
    }

    .welcome-form .c-sup {
        display: none !important;
    }

    .welcome-form h1 {
        font-size: 1.35rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.25rem !important;
    }

    .welcome-form form {
        margin-top: 0.65rem !important;
    }

    .welcome-form .mb-3 {
        margin-bottom: 0.45rem !important;
    }

    .welcome-form .mt-3 {
        margin-top: 0.45rem !important;
    }

    .welcome-form .pt-3 {
        padding-top: 0.45rem !important;
    }

    .welcome-form .border-top {
        border-top-width: 1px !important;
    }

    .welcome-form .form-control,
    .welcome-form .btn {
        min-height: 32px !important;
        height: 32px !important;
        padding-top: 0.2rem !important;
        padding-bottom: 0.2rem !important;
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
    }

    .welcome-form .input-group .btn {
        min-height: 32px !important;
        height: 32px !important;
    }

    .welcome-form label,
    .welcome-form a,
    .welcome-form span,
    .welcome-form div {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
    }
}