.container-popup {
    display: none;
    /* Inicialmente oculto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Fondo semi-transparente */
    z-index: 1050;
    /* Asegura que esté por encima de otros contenidos */
    align-items: center;
    justify-content: center;
}

.upload-doc {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 25%;
    height: auto;
    text-align: center;
    margin-top: 12%;
    animation: fadeIn 0.5s ease-out;
    /* Efecto de aparición */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.container-logo-close {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 80%;
}

.logo-close-adduser {
    width: 25px;
    height: 25px;
    background-image: url('../media/circle-xmark-solid.svg');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    cursor: pointer;
}

.h2-text {
    font-family: "MiFuente", sans-serif;
    color: #1c557d;
    margin: 5px;
}

.container-message {
    font-family: "MiFuente", sans-serif;
    color: #bd3035;
    margin: 10px;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 5px;
}

.from-ruta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 10px;
    width: 95%;
}

.button-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 25px;
    margin-top: 10px;
    background: #1c557d;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    width: 80%;
    cursor: pointer;
    font-family: "MiFuente", sans-serif;
}

.button-sub2 {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 10px 25px;
    margin-top: 10px;
    background: #1c557d;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    width: 80%;
    cursor: pointer;
    font-family: "MiFuente", sans-serif;
}

.button-submit:hover {
    background: green;
}

.alert-danger {
    color: #bd3035;
}

.form-control {
    width: 90%;
    text-align: center;
    font-family: "MiFuente", sans-serif;
}

#error {
    color: #bd3035;
    font-family: "MiFuente", sans-serif;
}

#cod-ver,
#cod-ver1 {
    display: none;
}

.container-cod {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 20px;
}

#cod-1 {
    text-align: center;
    color: #bd3035;
}

#cod-2 {
    text-align: center;
    color: #bd3035;
}

#cod-3 {
    text-align: center;
    color: #bd3035;
}

#cod-4 {
    text-align: center;
    color: #bd3035;
}

.h4-text1 {
    display: block;
    font-family: "MiFuente", sans-serif;
    color: #1c557d;
    margin: 5px;
}

#span-link {
    color: #bd3035;
    text-decoration: underline;
    cursor: pointer;
}

@media (min-width: 1080px) {
    .container-popup {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        background: rgba(0, 0, 0, 0.2);
        z-index: 1050;
    }

    .upload-doc {
        width: 25%;
        height: auto;        
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;        
        border-radius: 25px;        
        margin: 14% auto;
        background: hsla(210, 94%, 93%, 0.5);
        /* azul semitransparente */
        backdrop-filter: blur(10px);
        /* desenfoque del fondo */
        -webkit-backdrop-filter: blur(10px);
        /* soporte en Safari */        
        border: 1px solid rgba(255, 255, 255, 0.3);
        /* borde tenue blanco */
        padding: 30px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .form-cod {
        width: 20%;
        height: 20%;
    }


}

@media (min-width: 600px) and (max-width: 1079px) {
    .container-popup {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        height: 100vh;
        background: rgba(0, 0, 0, 0.2);
        z-index: 1050;
    }

    .upload-doc {
        margin: 20% auto;
        width: 65%;
        min-height: 15%;        
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        border-radius: 25px;
        background: hsla(210, 94%, 93%, 0.5);
        /* azul semitransparente */
        backdrop-filter: blur(10px);
        /* desenfoque del fondo */
        -webkit-backdrop-filter: blur(10px);
        /* soporte en Safari */        
        border: 1px solid rgba(255, 255, 255, 0.3);
        /* borde tenue blanco */
        padding: 30px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    #cod-ver,
    #cod-ver1 {
        display: none;
    }

    .container-cod {
        display: none;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap: 20px;
        width: 90%;
    }

    #cod-1 {
        text-align: center;
        color: #bd3035;
        width: 15%;
    }

    #cod-2 {
        text-align: center;
        color: #bd3035;
        width: 15%;
    }

    #cod-3 {
        text-align: center;
        color: #bd3035;
        width: 15%;
    }

    #cod-4 {
        text-align: center;
        color: #bd3035;
        width: 15%;
    }

    .h4-text1 {
        display: block;
        font-family: "MiFuente", sans-serif;
        color: #1c557d;
        margin: 5px;
        font-size: 24px;
    }

    #span-link {
        color: #bd3035;
        text-decoration: underline;
        cursor: pointer;
    }

    .h2-text {
        font-family: "MiFuente", sans-serif;
        color: #1c557d;
        margin: 5px;
        font-size: 26px;
    }

    .button-submit {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 25px;
        margin-top: 10px;
        background: #1c557d;
        color: white;
        border: none;
        border-radius: 5px;
        font-size: 24px;
        text-align: center;
        width: 80%;
        cursor: pointer;
        font-family: "MiFuente", sans-serif;
    }

    .logo-close-adduser {
        width: 30px;
        height: 30px;
        background-image: url('../media/circle-xmark-solid.svg');
        background-size: contain;
        background-repeat: no-repeat;
        vertical-align: middle;
        cursor: pointer;
    }
    .button-sub2 {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 10px 25px;
    margin-top: 10px;
    background: #1c557d;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 22px;
    text-align: center;
    width: 80%;
    cursor: pointer;
    font-family: "MiFuente", sans-serif;
}
#error {
    color: #bd3035;
    font-family: "MiFuente", sans-serif;
    font-size: 22px;
}
}

@media (min-width: 600px) and (max-width: 1079px) and (orientation: landscape) {
    .container-popup {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        height: 100vh;
        background: rgba(0, 0, 0, 0.2);
        z-index: 1050;
    }

    .upload-doc {
        margin: 8% auto;
        width: 55%;
        min-height: 15%;        
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        border-radius: 25px;
        background: hsla(210, 94%, 93%, 0.5);
        /* azul semitransparente */
        backdrop-filter: blur(10px);
        /* desenfoque del fondo */
        -webkit-backdrop-filter: blur(10px);
        /* soporte en Safari */        
        border: 1px solid rgba(255, 255, 255, 0.3);
        /* borde tenue blanco */
        padding: 30px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    #cod-ver,
    #cod-ver1 {
        display: none;
    }

    .container-cod {
        display: none;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap: 20px;
        width: 90%;
    }

    #cod-1 {
        text-align: center;
        color: #bd3035;
        width: 15%;
    }

    #cod-2 {
        text-align: center;
        color: #bd3035;
        width: 15%;
    }

    #cod-3 {
        text-align: center;
        color: #bd3035;
        width: 15%;
    }

    #cod-4 {
        text-align: center;
        color: #bd3035;
        width: 15%;
    }

    .h4-text1 {
        display: block;
        font-family: "MiFuente", sans-serif;
        color: #1c557d;
        margin: 5px;
        font-size: 16px;
    }

    #span-link {
        color: #bd3035;
        text-decoration: underline;
        cursor: pointer;
    }

    .h2-text {
        font-family: "MiFuente", sans-serif;
        color: #1c557d;
        margin: 5px;
        font-size: 16px;
    }

    .button-submit {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 25px;
        margin-top: 10px;
        background: #1c557d;
        color: white;
        border: none;
        border-radius: 5px;
        font-size: 20px;
        text-align: center;
        width: 80%;
        cursor: pointer;
        font-family: "MiFuente", sans-serif;
    }

    .logo-close-adduser {
        width: 30px;
        height: 30px;
        background-image: url('../media/circle-xmark-solid.svg');
        background-size: contain;
        background-repeat: no-repeat;
        vertical-align: middle;
        cursor: pointer;
    }
    #error {
    color: #bd3035;
    font-family: "MiFuente", sans-serif;
    font-size: 16px;
}


}

@media (max-width: 599px) {
    .container-popup {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        height: 100vh;
        background: rgba(0, 0, 0, 0.2);
        z-index: 1050;
    }

    .upload-doc {
        margin: 20% auto;
        width: 65%;
        min-height: 15%;        
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        border-radius: 25px;
        background: hsla(210, 94%, 93%, 0.5);
        /* azul semitransparente */
        backdrop-filter: blur(10px);
        /* desenfoque del fondo */
        -webkit-backdrop-filter: blur(10px);
        /* soporte en Safari */        
        border: 1px solid rgba(255, 255, 255, 0.3);
        /* borde tenue blanco */
        padding: 30px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    #cod-ver,
    #cod-ver1 {
        display: none;
    }

    .container-cod {
        display: none;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap: 20px;
        width: 90%;
    }

    #cod-1 {
        text-align: center;
        color: #bd3035;
        width: 15%;
    }

    #cod-2 {
        text-align: center;
        color: #bd3035;
        width: 15%;
    }

    #cod-3 {
        text-align: center;
        color: #bd3035;
        width: 15%;
    }

    #cod-4 {
        text-align: center;
        color: #bd3035;
        width: 15%;
    }

    .h4-text1 {
        display: block;
        font-family: "MiFuente", sans-serif;
        color: #1c557d;
        margin: 5px;
        font-size: 24px;
    }

    #span-link {
        color: #bd3035;
        text-decoration: underline;
        cursor: pointer;
    }

    .h2-text {
        font-family: "MiFuente", sans-serif;
        color: #1c557d;
        margin: 5px;
        font-size: 26px;
    }

    .button-submit {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 25px;
        margin-top: 10px;
        background: #1c557d;
        color: white;
        border: none;
        border-radius: 5px;
        font-size: 24px;
        text-align: center;
        width: 80%;
        cursor: pointer;
        font-family: "MiFuente", sans-serif;
    }

    .logo-close-adduser {
        width: 30px;
        height: 30px;
        background-image: url('../media/circle-xmark-solid.svg');
        background-size: contain;
        background-repeat: no-repeat;
        vertical-align: middle;
        cursor: pointer;
    }
}