/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: "Open Sans", Arial, sans-serif;
    color: #1d1d1d;
}


/* =========================================
   PÁGINA
========================================= */
.logo{
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.login-page {
    min-height: 100vh;

    background-color: #f7f8f9;

    background-image: url("auth-trazo.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    padding: 30px 16px 50px;
}

/* =========================================
   POPUP ERROR
========================================= */

.popup-error {
    position: fixed;

    top: 30px;
    left: 50%;

    transform: translate(-50%, -30px) scale(0.96);

    width: calc(70% - 40px);
    max-width: 750px;
    display: flex;
    align-items: flex-start;

    padding: 30px 65px 30px 115px;

    background-color: #343436;

    border-radius: 11px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);

    opacity: 0;
    visibility: hidden;

    z-index: 999999;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s;
}


/* =========================================
   MOSTRAR
========================================= */

.popup-error.mostrar {
    opacity: 1;
    visibility: visible;

    transform: translate(-50%, 0) scale(1);
}


/* =========================================
   BARRA NARANJA
========================================= */

.popup-barra {
    position: absolute;

    top: 0;
    left: 0;

    width: 9px;
    height: 100%;

    background-color: #ff7b35;

    border-radius: 11px 0 0 11px;
}


/* =========================================
   ICONO CÍRCULO
========================================= */

.popup-icono {
    position: absolute;

    top: 25px;
    left: 43px;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background-color: #ff9d6d;
}


/* X DEL ICONO */

.popup-icono span {
    position: absolute;

    top: 23px;
    left: 12px;

    width: 25px;
    height: 2px;

    background-color: #222;
}


.popup-icono span:first-child {
    transform: rotate(45deg);
}


.popup-icono span:last-child {
    transform: rotate(-45deg);
}


/* =========================================
   CONTENIDO
========================================= */

.popup-contenido {
    color: white;
}


.popup-contenido h3 {
    margin: 0 0 14px;

    font-size: 16px;
    font-weight: 700;
}


.popup-contenido p {
    margin: 0;

    max-width: 500px;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.45;
}


/* =========================================
   BOTÓN CERRAR
========================================= */

.popup-cerrar {
    position: absolute;

    top: 31px;
    right: 30px;

    width: 34px;
    height: 34px;

    padding: 0;

    border: none;
    outline: none;

    background: transparent;

    cursor: pointer;
}


.popup-cerrar span {
    position: absolute;

    top: 16px;
    left: 2px;

    width: 30px;
    height: 2px;

    background-color: white;
}


.popup-cerrar span:first-child {
    transform: rotate(45deg);
}


.popup-cerrar span:last-child {
    transform: rotate(-45deg);
}


/* =========================================
   TELÉFONO
========================================= */

@media (max-width: 600px) {

    .popup-error {
        top: 18px;

        width: calc(100% - 28px);
        min-height: 150px;

        padding:
            24px
            48px
            24px
            78px;

        border-radius: 9px;
    }


    .popup-icono {
        top: 23px;
        left: 25px;

        width: 40px;
        height: 40px;
    }


    .popup-icono span {
        top: 19px;
        left: 10px;

        width: 21px;
    }


    .popup-contenido h3 {
        font-size: 18px;

        margin-bottom: 10px;
    }


    .popup-contenido p {
        font-size: 15px;

        line-height: 1.4;
    }


    .popup-cerrar {
        top: 20px;
        right: 15px;

        transform: scale(0.8);
    }

}
/* =========================================
   CONTENEDOR CENTRAL
========================================= */

.login-wrapper {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}


/* =========================================
   TÍTULO
========================================= */

.page-title {
    text-align: center;

    font-size: 28px;
    font-weight: 400;

    margin-bottom: 30px;
}


/* =========================================
   AVISO AZUL
========================================= */

.notice {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    width: 100%;

    background-color: #d8f3fc;

    border: 1px solid #49bde5;
    border-radius: 8px;

    padding: 18px;

    margin-bottom: 25px;
}
.noticeinvalid {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    width: 100%;

    background-color: #353537;

    border: 1px solid #49bde5;
    border-radius: 8px;

    padding: 18px;

    margin-bottom: 25px;
}

.notice-content {
    line-height: 1.4;
}


.notice-content strong {
    display: block;

    font-size: 16px;
    margin-bottom: 7px;
}


.notice-content p {
    font-size: 14px;
}


/* =========================================
   TARJETA LOGIN
========================================= */

.login-card {
    width: 100%;

    background-color: white;

    border-radius: 9px;

    padding: 50px 50px 55px;

    box-shadow:
        0 3px 18px rgba(0, 0, 0, 0.14);
}


.login-card h2 {
    text-align: center;

    font-size: 24px;
    font-weight: 700;

    margin-bottom: 18px;
}


.login-description {
    max-width: 420px;

    margin: 0 auto 40px;

    text-align: center;

    font-size: 17px;
    line-height: 1.5;
}


/* =========================================
   FORMULARIO
========================================= */

.form-group {
    margin-bottom: 34px;
}


.input-row {
    display: flex;
    align-items: center;

    border-bottom: 1px solid #777;
}


.input-row:focus-within {
    border-bottom: 2px solid #f7d900;
}


.input-icon {
    width: 32px;

    text-align: center;

    font-size: 20px;

    flex-shrink: 0;
}


.input-row input {
    width: 100%;
    height: 48px;

    border: none;
    outline: none;

    background: transparent;

    font-family: inherit;

    font-size: 17px;

    padding: 0 5px;
}


.input-row input::placeholder {
    color: #333;
    opacity: 1;
}


/* =========================================
   ERROR
========================================= */

.input-error {
    display: block;

    color: #e40000;

    font-size: 13px;

    margin-top: 3px;
}


/* =========================================
   LINKS
========================================= */

.help-link {
    display: inline-block;

    margin-top: 8px;

    color: #111;

    font-size: 13px;
    font-weight: 600;

    text-decoration: underline;
}


.create-account {
    display: block;

    width: max-content;

    margin: 28px auto 0;

    color: #111;

    font-size: 14px;
    font-weight: 600;

    text-decoration: underline;
}


/* =========================================
   BOTÓN
========================================= */

.login-button {
    width: 100%;
    height: 55px;

    border: none;
    border-radius: 30px;

    font-family: inherit;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    background-color: #f7d900;
    color: #111;

    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}


.login-button:hover:not(:disabled) {
    background-color: #e9ce00;
}


.login-button:active:not(:disabled) {
    transform: scale(0.99);
}


.login-button:disabled {
    background-color: #d4d5d8;
    color: #999;

    cursor: not-allowed;
}


/* =========================================
   TELÉFONOS
========================================= */

@media (max-width: 600px) {

    .login-page {
        padding:
            25px
            18px
            40px;

        background-size: auto 100%;
    }


    .page-title {
        font-size: 23px;
        margin-bottom: 25px;
    }


    .notice {
        padding: 14px;

        gap: 11px;

        margin-bottom: 20px;
    }


    .notice-icon {
        width: 32px;
        height: 32px;

        font-size: 15px;
    }


    .notice-content strong {
        font-size: 14px;
    }


    .notice-content p {
        font-size: 13px;
    }


    .login-card {
        padding:
            38px
            25px
            42px;
        margin-bottom: 5rem;
    }


    .login-card h2 {
        font-size: 22px;
    }


    .login-description {
        font-size: 15px;

        margin-bottom: 32px;
    }


    .input-row input {
        font-size: 16px;
    }


    .login-button {
        height: 52px;
    }

}


/* =========================================
   TELÉFONOS PEQUEÑOS
========================================= */

@media (max-width: 380px) {

    .login-page {
        padding-left: 12px;
        padding-right: 12px;
    }


    .page-title {
        font-size: 21px;
    }


    .login-card {
        padding-left: 20px;
        padding-right: 20px;
    }


    .notice-content p {
        font-size: 12px;
    }

}



/* =========================================
   PANTALLA DE CARGA
========================================= */

.loading-overlay {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    z-index: 99999;
}

/* =========================================
   TÍTULO
========================================= */

.codigo-titulo {
    font-size: 15px;
    font-weight: 500;

    color: #2c2a29;

    text-align: center;

    margin-bottom: 35px;
}


/* =========================================
   6 INPUTS
========================================= */

.codigo-container {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-bottom: 40px;
}


.codigo-input {
    width: 30px;
    border: none;
    border-bottom: 2px solid #e00000;

    outline: none;

    background: transparent;

    text-align: center;

    font-size: 27px;
    font-weight: 500;

    color: #222;

    padding: 0;
    border-radius: 0;
}


.codigo-input:focus {
    border-bottom: 2px solid #e00000;
}


/* =========================================
   BOTONES
========================================= */

.codigo-botones {
    width: 90%;

    display: flex;

    gap: 16px;
    margin-bottom: 1.5rem;
}


.btn-borrar,
.btn-codigo-continuar {
    flex: 1;

    height: 48px;

    border-radius: 25px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}


/* BORRAR */

.btn-borrar {
    background-color: white;

    border: 1px solid #999;

    color: #777;
}


/* CONTINUAR */

.btn-codigo-continuar {
    border: none;

    background-color: #f7d900;

    color: #111;
}


.btn-codigo-continuar:disabled {
    background-color: #d4d5d8;

    color: #999;

    cursor: not-allowed;
}

.loading-box {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 190px;
    min-height: 190px;
    background-color: rgba(255, 255, 255, 0.85);

    border-radius: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.imgdin{
    border-radius: 8px 8px 8px 8px;
    width: 90%;
}

.codigo-error {
    display: none;

    position: relative;

    width: 90%;

    background-color: #ffd9c6;

    border: 1px solid #ff7b35;
    border-radius: 10px;

    padding: 18px 45px 18px 58px;

    margin-bottom: 30px;

    color: #2c2a29;
}


/* Cuando aparece */

.codigo-error.mostrar {
    display: block;

    animation: aparecerError 0.3s ease;
}


@keyframes aparecerError {

    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   ICONO IZQUIERDO
========================================= */

.codigo-error-icono {
    position: absolute;

    top: 18px;
    left: 15px;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background-color: #ffb18c;
    border: 1px solid #ff7b35;
}


.codigo-error-icono span {
    position: absolute;

    top: 16px;
    left: 8px;

    width: 18px;
    height: 1.5px;

    background-color: #2c2a29;
}


.codigo-error-icono span:first-child {
    transform: rotate(45deg);
}


.codigo-error-icono span:last-child {
    transform: rotate(-45deg);
}


/* =========================================
   TEXTO
========================================= */

.codigo-error-contenido strong {
    display: block;

    font-size: 15px;
    line-height: 1.4;

    margin-bottom: 7px;
}


.codigo-error-contenido p {
    margin: 0;

    font-size: 13px;
    line-height: 1.4;
}


/* =========================================
   X DERECHA
========================================= */

.codigo-error-cerrar {
    position: absolute;

    top: 16px;
    right: 12px;

    width: 26px;
    height: 26px;

    border: none;

    background: transparent;

    cursor: pointer;
}


.codigo-error-cerrar span {
    position: absolute;

    top: 12px;
    left: 4px;

    width: 18px;
    height: 1.5px;

    background-color: #2c2a29;
}


.codigo-error-cerrar span:first-child {
    transform: rotate(45deg);
}


.codigo-error-cerrar span:last-child {
    transform: rotate(-45deg);
}


.dina-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 690px;
    background-color: rgba(255, 255, 255, 0.99);
    border-radius: 8px 8px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2.5rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    max-width: 60%;
}
/* Spinner */

.loading-spinner {
    width: 50px;
    height: 50px;

    border: 3px solid transparent;

    border-top-color: #2c2a29;
    border-left-color: #2c2a29;
    border-bottom-color: #2c2a29;

    border-radius: 50%;

    animation: loadingSpin 0.9s linear infinite;

    margin-bottom: 15px;
}


@keyframes loadingSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* Texto */

.loading-title {
    color: #2c2a29;

    font-size: 23px;
    font-weight: 500;

    text-align: center;

    margin: 30px 30px 30px;
}
.loading-tita {
    color: #2c2a29;

    font-weight: 500;

    text-align: center;

    margin: 20px 20px 20px;
}

.loading-text {
    color: #2c2a29;

    font-size: 14px;

    text-align: center;

    margin: 0;
}


/* =========================================
   TELÉFONO
========================================= */

@media (max-width: 600px) {
    .dina-box {
        position: absolute;
        top: 33%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 690px;
        background-color: rgba(255, 255, 255, 0.99);
        border-radius: 12px 12px 12px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 2.9rem;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
        max-width: 90%;
    }
    
    .codigo-titulo {
    font-size: 15px;
    color: #2c2a29;
    text-align: center;
    margin-bottom: 35px;
    }
    
    .codigo-container {
        
    }

    .loading-box {
        width: 175px;
        height: 175px;
    }


    .loading-spinner {
        width: 44px;
        height: 44px;
    }

    .loading-text {
        font-size: 13px;
    }
    

    .codigo-container {
        gap: 9px;

        margin-bottom: 30px;
    }


    .codigo-input {
        width: 40px;
        height: 43px;

        font-size: 23px;
    }

    loading-title {
    color: #2c2a29;
    font-size: 25px;
    font-weight: 700;
    text-align: center;
    margin: 10px 30px 30px;
    }

    .codigo-botones {
        gap: 10px;
        margin-top: 1rem;
        width: 70%;
    }


    .btn-borrar,
    .btn-codigo-continuar {
        height: 43px;

        font-size: 14px;
    }

}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 100%;
    background-color: #f7f8f9;
    color: #171717;

    font-family: "Open Sans", Arial, sans-serif;

    padding: 20px 35px 18px;
}


/* =========================================================
   CONTENEDOR GENERAL
========================================================= */

.footer-contenido {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
}


/* =========================================================
   LINKS SUPERIORES
========================================================= */

.footer-links {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 18px;

    padding-bottom: 18px;
}


.footer-links a {
    color: #171717;

    font-size: 14px;
    font-weight: 400;

    text-decoration: none;

    white-space: nowrap;
}


.footer-links a:hover {
    text-decoration: underline;
}


/* PUNTOS ENTRE LINKS */

.footer-punto {
    color: #171717;

    font-size: 11px;

    line-height: 1;
}


/* =========================================================
   LÍNEA HORIZONTAL
========================================================= */

.footer-linea {
    width: 100%;
    height: 1px;

    background-color: #bfc0c2;
}


/* =========================================================
   PARTE INFERIOR
========================================================= */

.footer-inferior {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 13px;
}


/* =========================================================
   CONTENEDOR DE LOGOS
========================================================= */

.footer-logos {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
    justify-content: center;

    gap: 3px;

    flex-shrink: 0;
}


/* =========================================================
   LOGO PRINCIPAL
========================================================= */

.footer-logo-empresa {
    display: block;

    width: 145px;
    height: auto;

    max-width: 145px;
    max-height: 48px;

    object-fit: contain;

    object-position: left center;
}


/* =========================================================
   LOGO SUPERINTENDENCIA
========================================================= */

.footer-logo-super {
    display: block;

    width: 15px;
    height: auto;
    object-fit: contain;
    transform: rotate(90deg);
    margin-top:-40px;
    margin-bottom: 10px;
    margin-left: 4rem;
}


/* =========================================================
   IP Y FECHA
========================================================= */

.footer-info {
    text-align: right;

    color: #171717;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.4;
}


.footer-info p {
    margin: 0;
    padding: 0;
}


/* =========================================================
   TABLET / TELÉFONO
========================================================= */

@media (max-width: 700px) {

    /*
    ---------------------------------------------------------
    FOOTER
    ---------------------------------------------------------
    */

    .footer {
        padding:
            18px
            28px
            22px;
                    margin-top: -6rem;
    }


    /*
    ---------------------------------------------------------
    LINKS VERTICALES
    ---------------------------------------------------------
    */

    .footer-links {
        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 13px;

        padding-bottom: 17px;
    }


    .footer-links a {
        font-size: 11px;

        text-align: center;

        white-space: normal;
    }


    /*
     * En teléfono no mostramos
     * los puntos entre enlaces.
     */

    .footer-punto {
        display: none;
    }


    /*
    ---------------------------------------------------------
    LÍNEA
    ---------------------------------------------------------
    */

    .footer-linea {
        width: 100%;
    }


    /*
    ---------------------------------------------------------
    PARTE INFERIOR
    ---------------------------------------------------------
    */

    .footer-inferior {
        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: flex-start;

        padding-top: 12px;
    }


    /*
    ---------------------------------------------------------
    LOGOS
    ---------------------------------------------------------
    */

    .footer-logos {
        width: 100%;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 5px;

        margin-bottom: 15px;
    }


    /*
     * Logo principal
     */

    .footer-logo-empresa {
        display: block;

        width: 11.5rem;
        max-width: 11.5rem;
        height: auto;

        object-fit: contain;
    }


    .footer-logo-super {
        display: block;

        width: 20px;
        height: auto;

        max-width: none;
        max-height: none;

        object-fit: contain;

        transform: rotate(90deg);

        margin: -60px 0;
    }


    /*
    ---------------------------------------------------------
    IP + FECHA
    ---------------------------------------------------------
    */

    .footer-info {
        width: 100%;

        text-align: center;

        font-size: 10px;

        line-height: 1.35;
    }

}


/* =========================================================
   TELÉFONOS PEQUEÑOS
========================================================= */

@media (max-width: 380px) {

    .footer {
        padding:
            16px
            22px
            20px;
    }


    .footer-links {
        gap: 11px;

        padding-bottom: 15px;
    }


    .footer-links a {
        font-size: 10px;
    }


    .footer-inferior {
        padding-top: 10px;
    }


    .footer-logo-empresa {
        width: 105px;

        max-width: 105px;
        max-height: 37px;
    }


    .footer-logo-super {
        width: 68px;

        max-width: 68px;
        max-height: 25px;
    }


    .footer-info {
        font-size: 9px;
    }

}