﻿.bs-stepper-header {
    justify-content: center;
    gap: 0;
    display: flex;
    align-items: center;
    max-width: 300px;
    margin: 0 auto;
}

.bs-stepper-label {
    font-size: 12px;
    text-transform: initial;
}

.preview-container,
.preview-container .preview-image {
    width: 100%;
}


.dropzone {
    border: 2px dashed;
    border-radius: 21px;
    background: #56575B;
    padding: 2px;
    cursor: pointer;
    color: white;
    width: 100%;
    min-height: 190px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-content {
    border: 1px solid #2222228a;
    box-shadow: 2px 2px 4px #0000007a;
}

.buttons-container {
    display: flex;
    padding: 1rem 0rem 0rem 0rem;
    justify-content: flex-end;
    align-items: center;
}

.btn.delete-image {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 100;
    color: white;
    background-color: rgba(44, 44, 44, 0.7);
    border: none;
    cursor: pointer;
    border-radius: 14px;
}

.bs-stepper .line, .bs-stepper-line {
    background-color: rgb(113 113 113);
    margin: 5px;
}

.dz-preview.dz-image-preview .dz-progress {
    display: none !important;
}

.dz-preview.dz-image-preview {
    background: transparent !important;
    border: 2px solid #CCC;
    border-radius: 8px;
    width: 100%;
    margin: 0;
    /*height: 250px;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

    .dz-preview.dz-image-preview .dz-image {
        width: 100% !important;
        height: 100% !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none !important;
    }

        .dz-preview.dz-image-preview .dz-image img {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain !important;
            object-position: center !important;
        }

.dz-preview .dz-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Estilo para la línea entre los círculos */
.step {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    width: 110px;
}

    .step button span.bs-stepper-circle {
        background-color: #56575B;
        color: white;
        width: 3em;
        height: 3em;
        padding: 0.9em 0;
        border-radius: 9em;
    }

    /* Primera línea (entre círculo 1 y 2) */
    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 34%;
        left: 68%;
        width: 65%;
        height: 5px;
        background-color: #56575B;
    }


    .step.active button span.bs-stepper-circle {
        background-color: #fc682a;
        color: white;
    }

.alert-primary {
    color: #052c65;
    background-color: #cfe2ff !important;
    border-color: #9ec5fe;
}

.alert-success {
    color: #0a3622;
    background-color: #d1e7dd;
    border-color: #a3cfbb;
}

.alert {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

#openValidationIdentityModal, #identity-validated-alert, #identity-not-validated-alert {
    display: none;
}

.example-upload {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    width: 20rem;
}

.explanation-text {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    text-align: left;
    margin-left: 0;
    padding-left: 0;
    color: white;
}

.title-step {
    font-size: 22px!important;
    margin-bottom: 10px!important;
    color: white;
    font-weight: 700;
}

    .example-upload .explanation {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 1rem;
    }

        .example-upload .explanation .image img {
            width: 100%;
          /*  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);*/
        }


.btn-steps {
    text-transform: none;
    padding: 10px 40px;
}
.dropzone-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column !important;
    width: 100%;
}

    .dropzone-container .desktop {
        display: block;
        flex: 1;
        width: 75%;
    }

.open-camera {
    margin-top: 1rem;
    border: 1px solid;
    border-radius: 6px;
    padding: 1rem;
    display: none !important;
}

#camera-shoot .buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

    #camera-shoot .buttons button {
        font-size: 0.9rem;
    }

.dropzone-button .dropzone {
    border: 1px solid;
    min-height: auto !important;
}


    .dropzone-button .dropzone .dz-message {
        margin: 0;
    }

@media(width < 768px) {
    .example-upload .explanation .image {
        width: 100%;
    }

    .dropzone-container .desktop {
        min-width: 312px !important;
    }
    .dropzone {
        min-height: 175px!important;
    }
    .dropzone-container .mobile {
        display: block;
    }

    .open-identity-container {
        align-items: center;
    }

        .open-identity-container button {
            width: 100%;
        }

    .dz-default.dz-message {
        font-size: 0.8rem;
    }

    .dropzone-container {
        flex-direction: column !important;
    }
}

@media(width < 400px) {
    .example-upload .explanation .image {
        width: 90%;
    }

    .dropzone-container .desktop {
        min-width: 280px!important;
    }
    .dropzone {
        min-height: 169px!important;
    }
}

    .message-modal-body {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        /* text-transform: uppercase;*/
    }

        .message-modal-body .verify-icon {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 2rem;
            color: white;
            font-size: 4rem;
            width: 7rem;
            height: 7rem;
            border-radius: 50%;
        }

        .message-modal-body.error .verify-icon {
            background: #c12626;
        }

        .message-modal-body.success .verify-icon {
            background: green;
        }

    .verify-icon img {
        width: 7rem;
    }

    #camera-mobile, #camera-mobile video {
        width: 100% !important;
        height: auto !important;
    }

    .mobile .preview-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        display: none;
        flex-direction: column;
        position: relative;
    }

        .mobile .preview-container .image-wrapper {
            width: 150px;
            height: 150px;
            overflow: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

            .mobile .preview-container .image-wrapper img {
                height: 100%;
                border: 1px solid #333;
                border-radius: 15px;
            }

        .mobile .preview-container button {
            position: absolute;
            right: 20%;
        }

    .open-identity-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

        .open-identity-container button {
            min-width: 300px;
            margin-bottom: 1rem;
        }

    .validation-container {
        border: 1px solid #e3e3e3;
        border-left: none;
        border-right: none;
        padding-top: 1rem;
        margin-bottom: 1rem;
    }

.btn-steps:not(:disabled) {
    background-color: #fc682a !important;
}
.skipModalValiadateIdentity {
    text-transform: none;
}

.completed .bs-stepper .step-trigger.disabled, .bs-stepper .step-trigger:disabled {
    opacity: 1;
}
/* Estilos para el stepper completado */
.bs-stepper .step.completed .bs-stepper-circle {
    background-color: transparent !important;
    border: 2px solid #fc682a;
    color: transparent;
    position: relative;
    opacity: 1;
}

    .bs-stepper .step.completed .bs-stepper-circle::after {
        content: '✓';
        position: absolute;
        color: #fc682a;
        font-size: 1rem;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 1;
    }

.bs-stepper .step.completed:not(:last-child)::after {
    background-color: #fc682a;
}

.dropzone .dz-preview .dz-image {
    width: 100% !important;
    max-height: 200px !important;
    z-index: 1;
    border: none !important;
    padding: 0 !important;
    background: none !important;
}

.dropzone .dz-preview {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

    .dropzone .dz-preview img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        z-index: 1;
        border: none !important;
    }

.dropzone .dz-preview {
    width: 100% !important;
    margin: 0 !important;
    position: relative;
    border: 2px solid #28a745;
    border-radius: 21px;
    overflow: hidden;
    background: none !important;
}

.dropzone.has-image {
    border: 2px dashed transparent !important;
    border-radius: 32px !important;
    background: transparent !important;
}

.dropzone .dz-preview img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    z-index: 1;
    position: relative;
    border: none !important;
}

.dropzone .dz-preview:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 44,44, 0.5);
    z-index: 10;
}

.dropzone .dz-preview:before {
    content: "Imagen cargada correctamente";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    color: white;
    font-size: 16px;
    text-align: center;
    width: auto;
}

.dropzone .dz-preview .dz-image {
    border-radius: 21px !important;
}

.dropzone .dz-preview .check-icon {
    content: '';
    position: absolute;
    top: 24%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 12;
    width: 55px;
    height: 55px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='55' height='55' viewBox='0 0 55 55' fill='none'%3E%3Cg filter='url(%23filter0_d_1_4376)'%3E%3Cpath d='M27.5 47.7734C16.5039 47.7734 7.57812 38.8477 7.57812 27.8516C7.57812 16.8555 16.5039 7.92969 27.5 7.92969C38.4961 7.92969 47.4219 16.8555 47.4219 27.8516C47.4219 38.8477 38.4961 47.7734 27.5 47.7734ZM27.5 44.4531C36.6797 44.4531 44.1016 37.0312 44.1016 27.8516C44.1016 18.6719 36.6797 11.25 27.5 11.25C18.3203 11.25 10.8984 18.6719 10.8984 27.8516C10.8984 37.0312 18.3203 44.4531 27.5 44.4531ZM25.3516 37.1289C24.707 37.1289 24.1797 36.8555 23.6914 36.2109L18.9258 30.3516C18.6523 29.9805 18.4766 29.5703 18.4766 29.1406C18.4766 28.2812 19.1406 27.5977 19.9805 27.5977C20.5273 27.5977 20.957 27.7539 21.4258 28.3789L25.2734 33.3594L33.3789 20.3516C33.75 19.7852 34.2383 19.4727 34.7266 19.4727C35.5469 19.4727 36.3281 20.0391 36.3281 20.918C36.3281 21.3477 36.0742 21.7773 35.8594 22.168L26.9336 36.2109C26.543 36.8164 25.9961 37.1289 25.3516 37.1289Z' fill='%230CD664'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_1_4376' x='0.378125' y='0.729688' width='54.2437' height='54.2437' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset/%3E%3CfeGaussianBlur stdDeviation='3.6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_1_4376'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_1_4376' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.dropzone .dz-preview .dz-success-mark,
.dropzone .dz-preview .dz-error-mark,
.dropzone .dz-preview .dz-details,
.dropzone .dz-preview .dz-progress {
    display: none !important;
}

/* Eliminar cualquier borde o fondo adicional excepto para el check-icon */
.dropzone .dz-preview *:not(.check-icon):not(.delete-image) {
    border: none !important;
    background: none !important;
}



.dropzone .dz-default.dz-message {
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
}

    .dropzone .dz-default.dz-message img {
        margin: 0 auto !important;
        display: block !important;
        max-width: 100px !important; /* ajusta este valor según necesites */
    }



.modal-validation-container {
    position: relative;
    width: 148px;
    height: 146px;
    margin: 0 auto 20px;
    background-color: #25212b;
    border-radius: 8px;
    padding: 30px;
}

    .modal-validation-container .persona-outline {
        position: absolute;
        top: 62%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 92%;
        background-image: url('../../img/rekognition/success/persona.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .modal-validation-container .frame-corners {
        position: absolute;
        top: 46%;
        left: 48%;
        transform: translate(-50%, -50%);
        width: 91%;
        height: 67%;
        background-image: url('../../img/rekognition/success/marco.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .modal-validation-container .check-icon {
        position: absolute;
        bottom: -27px;
        right: -15px;
        width: 45px;
        height: 45px;
        background-color: #0CD664;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .modal-validation-container .check-icon:after {
            content: '✓';
            color: white;
            font-size: 23px;
            font-weight: bold;
        }


    .modal-validation-container .persona-outline-error {
        position: absolute;
        top: 62%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 92%;
        background-image: url('../../img/rekognition/error/persona.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .modal-validation-container .frame-corners-error {
        position: absolute;
        top: 46%;
        left: 48%;
        transform: translate(-50%, -50%);
        width: 91%;
        height: 67%;
        background-image: url('../../img/rekognition/error/marco.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .modal-validation-container .error-icon {
        position: absolute;
        bottom: -27px;
        right: -15px;
        width: 45px;
        height: 45px;
        background-color: rgba(196, 0, 0, 1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .modal-validation-container .error-icon:after {
            content: 'X';
            color: white;
            font-size: 23px;
            font-weight: bold;
        }