:root {
    --um-blue: #005FAB;
    --um-blue-deep: #003F78;
    --um-blue-soft: #EAF4FC;
    --um-cyan: #22BAE0;
    --um-cyan-alt: #20B9DF;
    --um-yellow: #FFD500;
    --um-yellow-alt: #FFD405;
    --um-ink: #243241;
    --um-muted: #667789;
    --um-border: #CEDAE6;
    --um-surface: #FFFFFF;
    --um-page: #F4F8FB;
    --um-shadow: 0 18px 44px rgba(0, 63, 120, .14);
}

[hidden] {
    display: none !important;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

html {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
    color: inherit;
    font-family: Helvetica, Arial, sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    letter-spacing: 0;
}

body.um {
    background: var(--um-page);
    color: var(--um-ink);
    font-size: 14px;
    overflow-x: hidden;
}

body.um :is(a, button, select, input):focus-visible {
    outline: 3px solid var(--um-blue);
    outline-offset: 3px;
}

.um_brand_panel a:focus-visible {
    outline-color: var(--um-yellow);
}

.um_skip_link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 6px;
    background: var(--um-yellow);
    color: var(--um-blue-deep);
    font-weight: 700;
    transform: translateY(-200%);
}

.um_skip_link:focus {
    transform: none;
}

body.um button {
    transition: background-color .2s ease-out, border-color .2s ease-out, color .2s ease-out, box-shadow .2s ease-out, transform .2s ease-out;
}

body.um button:hover {
    filter: brightness(.96);
}

body.um button i {
    color: inherit;
    margin-right: 8px;
}

.um_shell {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: clamp(360px, 30vw, 430px) minmax(0, 1fr);
    background: var(--um-page);
    overflow-x: hidden;
}

.um_brand_toggle {
    display: none;
}

.um_brand_panel {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(20px, 3svh, 32px) 32px;
    overflow: hidden;
    color: #fff;
    background: var(--um-blue);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    user-select: none;
    -webkit-user-drag: none;
}

.um_brand_panel:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url(/img/brand/pleca-blue.png);
    background-repeat: no-repeat;
    background-position: -520px 68px;
    background-size: 1120px auto;
    opacity: .36;
}

.um_brand_panel:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    z-index: 0;
    background: var(--um-ink);
}

.um_brand_panel > * {
    position: relative;
    z-index: 1;
}

.um_brand_top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 16px;
}

.um_logo {
    display: block;
    width: auto;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.um_logo_white {
    width: 250px;
    max-width: 100%;
}

.um_logo_blue {
    width: 270px;
    max-width: 100%;
    margin-bottom: clamp(12px, 2svh, 24px);
}

.um_badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-left: 4px solid var(--um-yellow);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    text-transform: uppercase;
}

.um_brand_message {
    max-width: 345px;
    margin: clamp(20px, 4svh, 44px) 0 clamp(12px, 2svh, 22px);
}

.um_brand_message small,
.um_form_header small {
    display: block;
    color: #007A91;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.um_brand_message small {
    color: #9BE7F7;
}

.um_brand_message h1,
.um_form_header h2,
.um_result h3 {
    font-family: "Bebas Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0;
}

.um_brand_message h1 {
    margin: 10px 0 16px;
    color: #fff;
    font-size: 54px;
    font-weight: 400;
    line-height: .98;
}

.um_brand_message p {
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 16px;
    line-height: 24px;
}

.um_brand_art {
    position: relative;
    min-height: clamp(150px, 25svh, 230px);
    flex-grow: 1;
    margin: clamp(12px, 2svh, 22px) 0;
}

.um_pleca {
    position: absolute;
    left: -92px;
    top: 10px;
    width: 380px;
    height: auto;
    opacity: .82;
}

.um_mascot {
    position: absolute;
    right: -20px;
    bottom: 0;
    width: 255px;
    max-width: none;
    height: 100%;
    max-height: 320px;
    object-fit: contain;
    object-position: right bottom;
}

.um_brand_footer {
    color: rgba(255, 255, 255, .84);
    font-size: 12px;
}

.um_brand_footer a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.um_brand_footer a:hover {
    color: var(--um-yellow);
}

.um_main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(12px, 2svh, 24px) 40px;
}

.um_main_content {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: clamp(8px, 1.5svh, 20px) 0;
    scroll-margin-top: 80px;
}

.um_main_content:focus {
    outline: none;
}

.um-access-navigation {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    width: 100%;
}

.um-access-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--um-border);
    border-radius: 8px;
    background: var(--um-surface);
    color: var(--um-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.um-access-navigation a:hover {
    border-color: var(--um-blue);
    background: var(--um-blue-soft);
}

.um-access-navigation svg {
    width: 17px;
    height: 17px;
    flex: none;
}

.um_main:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--um-yellow) 0 25%, var(--um-cyan) 25% 68%, var(--um-blue) 68% 100%);
}

.um-footer_social {
    position: relative;
    flex: 0 0 auto;
    align-self: flex-end;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(0, 95, 171, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 10px 28px rgba(0, 63, 120, .08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.um-footer_social a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 95, 171, .12);
    border-radius: 50%;
    background: rgba(244, 248, 251, .82);
    color: var(--um-blue);
    text-decoration: none;
    transition: background-color .2s ease-out, border-color .2s ease-out, box-shadow .2s ease-out, color .2s ease-out, transform .2s ease-out;
}

.um-footer_social a:hover {
    border-color: rgba(34, 186, 224, .42);
    background: #fff;
    color: var(--um-blue-deep);
    box-shadow: 0 8px 18px rgba(0, 95, 171, .14);
    transform: translateY(-2px);
}

.um-footer_social i {
    color: inherit;
    font-size: 17px;
    line-height: 1;
}

.um_form_surface,
.um_results {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    padding: clamp(20px, 2.8svh, 32px) 32px;
    border: 1px solid rgba(0, 95, 171, .12);
    border-radius: 8px;
    background: var(--um-surface);
    box-shadow: var(--um-shadow);
}

.um_form_header {
    padding-bottom: clamp(12px, 2svh, 20px);
    border-bottom: 1px solid var(--um-border);
}

.um_form_header h2 {
    margin: 6px 0 0;
    color: var(--um-blue);
    font-size: 40px;
    font-weight: 400;
    line-height: 42px;
}

.um_form {
    margin: 0;
}

.um_form fieldset {
    margin: clamp(12px, 2svh, 24px) 0;
    padding: 0;
    border: 0;
}

.um_field + .um_field {
    margin-top: clamp(12px, 2svh, 18px);
}

.um_field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 7px;
    color: var(--um-ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 18px;
    text-transform: uppercase;
}

.um_field label i {
    width: 18px;
    color: var(--um-cyan-alt);
    text-align: center;
}

.um_field .form-control,
.um_field .form-select {
    height: 44px;
    border: 1px solid var(--um-border);
    border-radius: 8px;
    background-color: #fff;
    box-shadow: none !important;
    color: var(--um-ink);
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease-out, box-shadow .2s ease-out;
}

.um_field .form-control::placeholder {
    color: #61758A;
}

.um_field .form-control:focus,
.um_field .form-select:focus {
    border-color: var(--um-blue);
    box-shadow: 0 0 0 3px rgba(34, 186, 224, .18) !important;
}

.um_primary_action,
.um_result_actions > button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--um-blue) !important;
    color: #fff !important;
    font-weight: 800;
    line-height: 20px;
}

.um_primary_action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.um_primary_action:hover,
.um_result_actions > button:hover {
    background: var(--um-blue-deep) !important;
    box-shadow: 0 10px 22px rgba(0, 95, 171, .2);
}

.um_primary_action.disabled,
.um_primary_action:disabled {
    opacity: .48;
    pointer-events: none;
}

.um_link_action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: clamp(8px, 1.5svh, 18px);
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    color: var(--um-blue) !important;
    font-weight: 800;
    text-decoration: none;
}

.um_link_action:hover {
    color: var(--um-blue-deep) !important;
}

.um_link_action.disabled {
    opacity: .48;
    pointer-events: none;
}

.um_results {
    text-align: center;
}

.um_result {
    text-align: center;
}

.um_status_icon {
    display: block;
    margin: 0 auto 16px;
    font-size: 72px;
}

.um_valid .um_status_icon,
.um_valid h3 {
    color: #1D9A63;
}

.um_invalid .um_status_icon,
.um_invalid h3 {
    color: #D64242;
}

.um_result h3 {
    margin: 0 0 8px;
    font-size: 42px;
    font-weight: 400;
    line-height: 44px;
}

.um_result p {
    margin: 0;
    color: var(--um-muted);
    font-size: 16px;
    line-height: 24px;
}

.um_field_hint {
    margin: clamp(10px, 1.8svh, 18px) 0;
    color: var(--um-muted);
    font-size: 13px;
    line-height: 20px;
}

.um_notice,
.um_error .um_status_icon,
.um_error h3 {
    color: #916000;
}

.um_notice {
    padding: 12px;
    border-left: 3px solid var(--um-yellow);
    border-radius: 4px;
    background: #fff8da;
}

.um_welcome {
    padding-top: 24px;
}

.um_welcome h3 {
    color: var(--um-blue);
    font-size: 22px;
}

.um_welcome p {
    color: var(--um-muted);
    line-height: 24px;
}

.um_primary_action i {
    margin-right: 8px;
}

.um_documents {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.um_document {
    padding: 18px;
    border: 1px solid var(--um-border);
    border-radius: 8px;
    background: var(--um-page);
    text-align: left;
    overflow-wrap: anywhere;
}

.um_document > strong {
    display: block;
    margin-bottom: 10px;
    color: var(--um-blue);
}

.um_document p {
    font-size: 14px;
    line-height: 22px;
}

.um_document .um_document_name {
    color: var(--um-ink);
    font-weight: 700;
}

.um_document dl {
    margin: 16px 0;
}

.um_document dt {
    color: var(--um-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.um_document dd {
    margin: 0 0 8px;
    font-size: 14px;
}

.um_document .um_file_notice {
    font-size: 13px;
}

.um_results {
    margin-block: auto;
}

.um_result_actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.um_result_actions > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 160px;
    margin: 0;
    padding: 10px 14px;
}

.fa-clock-four:before,
.fa-clock:before {
    color: var(--um-blue);
}

@media (max-width: 1199.98px) and (min-width: 768px) {
    .um_shell {
        grid-template-columns: clamp(248px, 32vw, 340px) minmax(0, 1fr);
    }

    .um_brand_panel {
        padding: 28px 22px;
    }

    .um_brand_panel:before {
        background-position: -640px 64px;
        background-size: 1080px auto;
        opacity: .3;
    }

    .um_logo_white {
        width: 220px;
    }

    .um_badge {
        min-height: 26px;
        font-size: 11px;
        line-height: 15px;
    }

    .um_brand_message {
        max-width: 295px;
        margin: 34px 0 18px;
    }

    .um_brand_message h1 {
        font-size: 42px;
        line-height: 44px;
    }

    .um_brand_message p {
        font-size: 15px;
        line-height: 22px;
    }

    .um_brand_art {
        min-height: 190px;
        margin: 16px 0;
    }

    .um_pleca {
        left: -78px;
        width: 320px;
    }

    .um_mascot {
        right: -8px;
        width: 210px;
        max-height: 263px;
    }

    .um_brand_footer {
        font-size: 11px;
    }

    .um_main {
        padding: 24px 28px;
    }

    .um_form_surface,
    .um_results {
        max-width: 390px;
        padding: 28px;
    }

    .um_logo_blue {
        width: 250px;
        margin-bottom: 20px;
    }

    .um_form_header {
        padding-bottom: 18px;
    }

    .um_form_header h2 {
        font-size: 36px;
        line-height: 38px;
    }

    .um_form fieldset {
        margin: 20px 0;
    }

    .um_field + .um_field {
        margin-top: 14px;
    }

    .um_field .form-control {
        height: 44px;
    }

    .um_primary_action,
    .um_result_actions > button {
        min-height: 44px;
    }

    .um-footer_social {
        padding: 7px;
    }
}

@media (max-width: 860px) and (min-width: 768px) {
    .um_shell {
        grid-template-columns: 252px minmax(0, 1fr);
    }

    .um_brand_panel {
        padding: 26px 20px;
    }

    .um_logo_white {
        width: 210px;
    }

    .um_brand_message {
        max-width: 235px;
    }

    .um_brand_message h1 {
        font-size: 38px;
        line-height: 40px;
    }

    .um_form_surface,
    .um_results {
        max-width: 370px;
        padding: 26px 24px;
    }

    .um_logo_blue {
        width: 235px;
    }

}

/* El formulario completo cabe en laptops sin reducir el área de los controles. */
@media (max-height: 820px) and (min-width: 768px) {
    .um_main {
        padding-block: 12px;
    }

    .um_form_surface,
    .um_results {
        max-width: 390px;
        padding: 16px 28px;
    }

    .um_logo_blue {
        width: 200px;
        margin-bottom: 8px;
    }

    .um_form_header {
        padding-bottom: 12px;
    }

    .um_form_header h2 {
        font-size: 32px;
        line-height: 34px;
    }

    .um_form fieldset {
        margin: 12px 0;
    }

    .um_field + .um_field {
        margin-top: 12px;
    }

    .um_field .form-control {
        height: 44px;
    }

    .um_field_hint {
        margin: 12px 0;
    }

    .um_link_action {
        margin-top: 8px;
    }

    .um-footer_social {
        padding: 4px;
    }
}

@media (max-width: 767.98px) {
    html {
        overflow: auto;
    }

    .um_shell {
        position: static;
        display: block;
        min-height: 100vh;
        min-height: 100svh;
    }

    .um_brand_toggle {
        position: sticky;
        top: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 60px;
        padding: 8px 12px;
        border: 0;
        border-bottom: 1px solid rgba(0, 63, 120, .52);
        background: var(--um-blue);
        box-shadow: 0 10px 24px rgba(0, 63, 120, .18);
        color: #fff;
        text-align: left;
    }

    .um_brand_toggle:hover,
    .um_brand_toggle:focus,
    .um_brand_toggle:active {
        filter: none;
        background: var(--um-blue);
        outline: none;
    }

    .um_brand_toggle:focus-visible {
        box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .72), 0 10px 24px rgba(0, 63, 120, .18);
    }

    .um_brand_toggle_identity {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 0;
        transition: opacity .2s ease-out, transform .2s ease-out, width .2s ease-out;
    }

    .um_brand_toggle_identity img {
        display: block;
        width: 142px;
        max-width: 46vw;
        height: auto;
        user-select: none;
        -webkit-user-drag: none;
    }

    .um_brand_toggle_identity small {
        display: block;
        margin-top: 1px;
        color: var(--um-cyan);
        font-size: 9px;
        font-weight: 800;
        line-height: 10px;
        text-align: center;
        text-transform: uppercase;
    }

    body.um:not(.um_mobile_brand_collapsed) .um_brand_toggle_identity {
        opacity: 0;
        visibility: hidden;
        transform: none;
    }

    .um_brand_toggle_action {
        display: inline-flex;
        align-items: center;
        flex: none;
        gap: 7px;
        margin-left: auto;
        padding: 6px 8px;
        border: 1px solid rgba(255, 255, 255, .24);
        border-left: 4px solid var(--um-yellow);
        border-radius: 8px;
        color: #fff;
        font-size: 12px;
        font-weight: 800;
        line-height: 14px;
        text-transform: uppercase;
    }

    .um_brand_toggle_action i {
        margin: 0;
        color: inherit;
        font-size: 12px;
        transition: transform .28s ease-out;
    }

    body.um:not(.um_mobile_brand_collapsed) .um_brand_toggle_action i {
        transform: rotate(180deg);
    }

    .um_brand_panel {
        min-height: auto;
        max-height: 420px;
        padding: 24px 20px 22px;
        transition: max-height .34s ease, padding .34s ease, opacity .24s ease;
    }

    body.um_mobile_brand_collapsed .um_brand_panel {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
        pointer-events: none;
    }

    .um_brand_panel:before {
        background-position: -560px 40px;
        background-size: 980px auto;
    }

    .um_brand_panel:after {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        height: 6px;
        background: linear-gradient(90deg, var(--um-yellow) 0 30%, var(--um-cyan) 30% 70%, var(--um-blue-deep) 70% 100%);
    }

    body.um_mobile_brand_collapsed .um_brand_panel:before,
    body.um_mobile_brand_collapsed .um_brand_panel:after {
        opacity: 0;
    }

    .um_brand_top {
        align-items: flex-start;
    }

    .um_logo_white {
        width: 235px;
    }

    .um_brand_message {
        width: 100%;
        max-width: 520px;
        margin: 34px 0 18px;
    }

    .um_brand_message h1 {
        font-size: 36px;
        line-height: 38px;
    }

    .um_brand_message p {
        max-width: 330px;
    }

    .um_brand_art {
        display: none;
    }

    .um_main {
        min-height: auto;
        align-items: stretch;
        flex-direction: column;
        padding: 12px 16px 16px;
        overflow: visible;
    }

    .um_main_content {
        padding: 12px 0 16px;
    }

    .um-access-navigation {
        max-width: 480px;
        margin-inline: auto;
    }

    .um_field .form-control,
    .um_field .form-select {
        font-size: 16px;
    }

    .um_main:before {
        display: none;
    }

    .um-footer_social {
        position: relative;
        right: auto;
        bottom: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: max-content;
        max-width: 100%;
        margin: 0 auto;
        border-radius: 18px;
    }

    .um_form_surface,
    .um_results {
        max-width: 480px;
        padding: 20px 18px;
        margin: 0 auto;
    }

    .um_logo_blue {
        width: 210px;
        margin-bottom: 12px;
    }

    .um_form_header {
        padding-bottom: 12px;
    }

    .um_form fieldset {
        margin: 14px 0;
    }

    .um_field_hint {
        margin: 12px 0;
    }

    .um_link_action {
        margin-top: 8px;
    }
}

@media (max-width: 430px) {
    .um_brand_top {
        flex-direction: column;
    }

    .um_badge {
        max-width: 100%;
    }

    .um_logo_white {
        width: 230px;
    }

    .um_brand_message h1 {
        font-size: 34px;
        line-height: 36px;
    }

    .um_form_header h2,
    .um_result h3 {
        font-size: 36px;
        line-height: 38px;
    }

    .um_result_actions {
        flex-direction: column;
    }

    .um_result_actions > button {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .um_brand_toggle {
        padding-right: 10px;
        padding-left: 10px;
    }

    .um_brand_toggle_identity img {
        width: 132px;
    }

    .um_brand_toggle_action {
        gap: 5px;
        padding-right: 7px;
        padding-left: 7px;
        font-size: 11px;
    }

    .um_brand_panel {
        padding: 22px 16px 20px;
    }

    body.um_mobile_brand_collapsed .um_brand_panel {
        padding-top: 0;
        padding-bottom: 0;
    }

    .um_logo_white {
        width: 218px;
    }

    .um_brand_message h1,
    .um_form_header h2,
    .um_result h3 {
        font-size: 32px;
        line-height: 34px;
    }

    .um_main {
        padding-right: 12px;
        padding-left: 12px;
    }

    .um_form_surface,
    .um_results {
        padding: 20px 16px;
    }

    .um-footer_social {
        gap: 0;
        padding: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .um *, .um *::before, .um *::after {
        animation: none !important;
        transition: none !important;
    }
}
