@media (max-width: 425px) {
    h1 {
        font-size: 1.5rem;
    }
    .hidden {
        display: none;
    }
    #texto {
        font-size: 0.75rem;
    }
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
}

.content,
.section-login,
.section-menu,
footer {
    background-color: white !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
}

header {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    height: 72px;
    margin-bottom: 0;
    padding: 0 clamp(1rem, 4vw, 3.5rem);
    background: linear-gradient(105deg, #16366f 0%, #2563eb 100%) !important;
}

.site-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    color: #ffffff;
    text-decoration: none;
}

.site-header-brand:hover {
    color: #ffffff;
    text-decoration: none;
}

.site-header-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.site-header-symbol svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.site-header-brand:focus-visible {
    border-radius: 4px;
    outline: 3px solid #bfdbfe;
    outline-offset: 5px;
}

.site-header-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.35);
}

.site-header-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.site-header-label {
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #e0ecff;
    font-size: 0.75rem;
    font-weight: 600;
}

.login-page {
    flex: 1;
    padding: clamp(1rem, 3vw, 2.5rem);
    background: linear-gradient(135deg, #f3f7ff 0%, #f8fafc 100%);
}

.login-layout {
    max-width: 1480px;
    min-height: 620px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #e6ebf2;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(32, 54, 86, 0.12);
}

.section-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: transparent !important;
}

.section-login form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.login-card {
    box-sizing: border-box;
    width: 100%;
    padding: 2.5rem;
    border: 1px solid #e6ebf2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(32, 54, 86, 0.08);
    color: #334155;
    text-align: left;
}

.login-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: #eaf2ff;
    color: #2563eb;
}

.login-card-icon svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}

.login-eyebrow {
    margin: 0 0 0.4rem;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.login-title {
    margin: 0 0 1.5rem;
    color: #172b4d;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.login-description {
    margin: -0.75rem 0 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.login-field {
    margin-top: 1rem;
}

.login-field label {
    display: block;
    margin-bottom: 0.4rem;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
}

.login-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: #172b4d;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.login-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 1.35rem;
    border: 0;
    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: background-color 0.15s ease;
}

.login-submit:hover {
    background: #1d4ed8;
}

.login-submit:focus-visible,
.login-forgot-link a:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.login-error {
    margin-top: 0.75rem;
    color: #b91c1c;
    font-size: 0.875rem;
}

.login-error:empty {
    display: none;
}

.login-forgot-link {
    display: block;
    margin-top: 1rem;
    text-align: center;
}

.login-forgot-link a {
    color: #1d4ed8;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.login-forgot-link a:hover {
    text-decoration: underline;
}

.login-resources {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1.4rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8edf5;
}

.login-card .login-resource {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    margin: 0;
    padding: 0.5rem 0.4rem;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.login-card .login-resource:last-child {
    grid-column: 1 / -1;
}

.login-card .login-resource:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
}

.login-card .login-resource:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

.login-card .login-resource img {
    width: 25px;
    height: 24px;
    object-fit: contain;
}

.login-welcome {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    padding: clamp(2.5rem, 5vw, 5rem);
    overflow: hidden;
    background: linear-gradient(145deg, #173b79 0%, #2563eb 62%, #4787f5 100%);
    color: #ffffff;
    isolation: isolate;
    text-align: left;
}

.login-welcome::before,
.login-welcome::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.login-welcome::before {
    top: -190px;
    right: -170px;
    width: 520px;
    height: 520px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 50px rgba(255, 255, 255, 0.035), 0 0 0 100px rgba(255, 255, 255, 0.025);
}

.login-welcome::after {
    bottom: -240px;
    left: -180px;
    width: 460px;
    height: 460px;
}

.login-welcome-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.login-welcome-eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #e0ecff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#login-welcome-title {
    max-width: 700px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
    text-align: left;
}

#login-welcome-title.login-welcome-title--slogan {
    font-size: clamp(1.75rem, 2.7vw, 2.5rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.login-welcome-description {
    max-width: 580px;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    line-height: 1.65;
}

.login-welcome-brand {
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    margin: 1.5rem 0 0;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 24px rgba(13, 35, 75, 0.1);
    color: #334155;
}

.login-welcome-brand h2 {
    margin: 0 0 1rem;
    color: #172b4d;
    font-size: 1.1rem;
    font-weight: 700;
}

.login-welcome-brand h1 {
    max-width: 100%;
    margin: 0.75rem 0;
    color: #172b4d;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.4;
    text-align: center;
}

.login-welcome-brand p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.login-welcome-brand .content {
    background: transparent !important;
    color: #475569;
    text-align: left;
}

.login-welcome-brand .content p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.login-welcome-brand img {
    max-width: 100%;
    height: auto;
}

.login-welcome-brand .catalogo_titulo > div#contenidos > img {
    display: block;
    width: auto;
    max-width: min(100%, 300px);
    max-height: 100px;
    margin: 0.25rem auto 0.5rem;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .login-page {
        padding: 1rem 0.75rem;
    }

    .login-layout {
        min-height: 0;
        border-radius: 20px;
    }

    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }

    .section-login {
        padding: 1.5rem 1rem 2rem;
    }

    .login-welcome {
        padding: 2.5rem 1.25rem;
    }

    #login-welcome-title {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }

    #login-welcome-title.login-welcome-title--slogan {
        font-size: clamp(1.5rem, 6.6vw, 2rem);
    }

    .login-welcome-brand {
        margin-top: 1.25rem;
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    header {
        height: 64px;
        padding: 0 1rem;
    }

    .site-header-brand {
        gap: 0.65rem;
    }

    .site-header-symbol {
        width: 34px;
        height: 34px;
    }

    .site-header-title {
        font-size: 0.78rem;
    }

    .site-header-divider,
    .site-header-label {
        display: none;
    }
}

.faq a,
.manual a {
    font-size: 0.75em;
    font-weight: bold;
    color: black;
}

.faq img,
.manual img {
    width: 35px;
    height: 33px;
    vertical-align: middle;
}


/* TÃ­tulo */

div#catalogo_titulo {
    text-align: center;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
}

.detalle {
    background-image: url(img/catalogo_detalle.png);
    background-repeat: no-repeat;
    background-position: 20px 5px;
    letter-spacing: 2px;
    font-size: 24px;
    font-weight: bold;
}

.catalogo_subtitulo {
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: normal;
    color: #000000;
}


/* Footer */

footer {
    width: 100%;
    height: 15rem;
    font-size: 75%;
    display: inline-block;
    text-align: center;
    background: cyan;
    margin-top: 2rem;
}

footer>div {
    margin: 2rem 0;
}

.modal-dialog {
    max-width: 800px;
    margin: auto;
}

.modal-content {
    max-height: 800px;
}

.modal-body {
    overflow-y: auto;
}

.contenido_txt3,
.enlace2 a:link {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
}

.contenido_txt3 {
    font-size: 0.9em;
    color: #595959;
}

.enlace2 a:link {
    font-size: 0.8em;
    color: #900000;
    text-decoration: none;
}


/* Forgot password */

.forgot-password-page {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2.5rem 1rem;
    background: linear-gradient(180deg, #f3f7ff 0%, #f8fafc 100%);
}

.forgot-password-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 560px;
    padding: 2.75rem;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(32, 54, 86, 0.1);
    color: #334155;
    text-align: left;
}

.forgot-password-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 16px;
    background: #eaf2ff;
    color: #2563eb;
}

.forgot-password-icon svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}

.forgot-password-eyebrow {
    margin: 0 0 0.5rem;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.forgot-password-card h1 {
    margin: 0;
    color: #172b4d;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.forgot-password-intro {
    max-width: 410px;
    margin: 1rem auto 1.75rem;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.65;
    text-align: center;
}

.forgot-password-contact {
    padding: 1.25rem;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f5f9ff;
    text-align: center;
}

.forgot-password-contact p {
    margin: 0 0 0.4rem;
    color: #64748b;
    font-size: 0.875rem;
}

.forgot-password-contact a {
    color: #1d4ed8;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.forgot-password-contact a:hover {
    text-decoration: underline;
}

.forgot-password-contact a:focus-visible,
.forgot-password-back:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.forgot-password-details {
    margin-top: 1.75rem;
}

.forgot-password-details h2 {
    margin: 0 0 0.75rem;
    color: #172b4d;
    font-size: 1rem;
    font-weight: 700;
}

.forgot-password-details ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.forgot-password-details li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.5rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.forgot-password-details li::before {
    position: absolute;
    top: 0.95rem;
    left: 0.25rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b82f6;
    content: "";
}

.forgot-password-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.forgot-password-back:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .forgot-password-page {
        padding: 1.5rem 1rem;
    }

    .forgot-password-card {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .forgot-password-card h1 {
        font-size: 1.5rem;
    }
}