﻿#section-valida {
    padding: 80px 0 70px;
    color: #212529;
}

/******** STEPS  ********/
#title-container {
    min-height: 460px;
    height: 100%;
    color: #fff;
    background-color: transparent;
    text-align: center;
    padding: 105px 28px 28px 28px;
    box-sizing: border-box;
    position: relative;
    border-radius: 20px 0 0 20px;
    box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
    -webkit-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
    -moz-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
}

#title-container h2 {
    font-size: 45px;
    font-weight: 800;
    color: #fff;
    padding: 0;
    margin-bottom: 0px;
}

#title-container h3 {
    font-size: 25px;
    font-weight: 600;
    color: #82000a;
    padding: 0;
}

#title-container p {
    font-size: 13px;
    padding: 0 25px;
    line-height: 20px;
}
/* FORMS */

#qbox-container {
    position: relative;
    padding: 10px 62px;
    background-color: transparent;
    border-radius: 0 0px 20px 0;
}

#steps-container {
    margin: auto;
    width: 100%;
    min-height: 250px;
    vertical-align: middle;
    align-items: center;
}

.step {
    display: none;
}


#q-box__buttons {
    text-align: center;
    display: flex;
   position:relative;
   z-index:999;
}

.back-link {
    font-weight: 700;
    color: #148381;
    text-decoration: none;
    font-size: 18px;
}

.back-link:hover {
    color: #105c5a;
}

/* PRELOADER */

#preloader-wrapper {
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
}

#preloader {
    background-image: url('../img/preloader.png');
    width: 120px;
    height: 119px;
    border-top-color: #fff;
    border-radius: 100%;
    display: block;
    position: relative;
    top: 50%;
    left: 50%;
    margin: -75px 0 0 -75px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    z-index: 1001;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

#preloader-wrapper .preloader-section {
    width: 51%;
    height: 100%;
    position: fixed;
    top: 0;
    background: #F7F9FF;
    z-index: 1000;
}

#preloader-wrapper .preloader-section.section-left {
    left: 0
}

#preloader-wrapper .preloader-section.section-right {
    right: 0;
}

.loaded #preloader-wrapper .preloader-section.section-left {
    transform: translateX(-100%);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded #preloader-wrapper .preloader-section.section-right {
    transform: translateX(100%);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded #preloader {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.loaded #preloader-wrapper {
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s 1s ease-out;
}
/* MEDIA QUERIES */

@media (min-width: 990px) and (max-width: 1199px) {
    #title-container {
        padding: 80px 28px 28px 28px;
    }

    #steps-container {
        width: 85%;
    }
}

@media (max-width: 991px) {
    #title-container {
        padding: 30px;
        min-height: inherit;
    }
}

@media (max-width: 767px) {
    #qbox-container {
        padding: 30px;
    }

    #steps-container {
        width: 100%;
        min-height: 300px;
    }

    #title-container {
        padding-top: 50px;
    }
}

@media (max-width: 560px) {
    #qbox-container {
        padding: 20px;
        border-radius: 0;
    }

    #title-container {
        padding-top: 45px;
        border-radius: 0;
    }

    .progress {
        border-radius: 0;
    }
}

/******* INPUT FILE *********/

.input-group {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

input[type=file]:focus, .custom-file-input:focus ~ .custom-file-label {
    cursor: pointer;
}

.custom-file,
.custom-file-label,
.custom-file-input {
    cursor: pointer;
}

.custom-file-input ~ .custom-file-label::after {
    content: "Seleccionar";
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    margin-left: 0px !important;
}

.custom-control-label::before, .custom-file-label, .custom-select {
    transition: background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(2.25rem + 2px);
    margin: 0;
    opacity: 0;
}

.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: calc(2.25rem + 2px);
    margin-bottom: 0;
}

.custom-file-input ~ .custom-file-label::after {
    content: "Seleccionar";
}

.custom-file-label::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: 2.25rem;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    color: #495057;
    content: "Browse";
    background-color: #e9ecef;
    border-left: inherit;
    border-radius: 0 0.25rem 0.25rem 0;
}
/************  END   ***************/

/**************     BTN PROGRESS     **********/
.btnStyleIniciar {
    background-color: #a60000;
    border-color: #a60000;
    color: #ffffff;
}

.btnStyleIniciar:hover {
    background-color: #1dae5a;
    border-color: #1dae5a;
    color: #ffffff;
}

.btnStyleIniciar:focus {
    background-color: #a60000 !important;
    border-color: #a60000 !important;
    color: #ffffff;
}

.progress-btn {
    position: relative;
    width: 150px;
    height: 50px;
    display: inline-block;
    background: #00847A;
    border-color: #00847A;
    color: #fff !important;
    font-weight: normal;
    font-size: 1rem;
    border-radius: .25rem;
    transition: all 0.4s ease;
    cursor: pointer;
}


.progress-btn > .btnProgress {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    line-height: 50px;
    text-align: center;
    z-index: 10;
    opacity: 1;
}

.progress-btn > .progress {
    width: 0%;
    z-index: 5;
    background: #17726c;
    border-color: #17726c;
    opacity: 0;
    transition: all 0.3s ease;
    height: 100%;
}

.progress-btn.active > .progress {
    opacity: 1;
    animation: progress-anim 4.8s ease 1s;
}

.progress-btn[data-progress-style='fill-back'] > .progress {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

@keyframes progress-anim {
    100% {
        width: 100%;
    }
}

@keyframes progress-indefinite-anim {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 0%;
    }
}
/**************     END     **********/

/*********** CODE STYLES  *********/
:root {
    /* colors palette */
    --placeholder-color: hsl(240, 54%, 87%);
    --bg-color: hsl(240, 54%, 97%);
    --focus-color: hsla(240, 54%, 61%, 0.6);
    --shadow-color: hsla(240, 54%, 61%, 0.2);
    --text-color: hsl(0, 0%, 20%);
    --text-color-inversed: hsl(0, 0%, 95%);
    --success-color: hsl(145, 63%, 42%);
    --success-color-desaturated: hsl(145, 0%, 42%);
    --failure-color: hsl(0, 79%, 63%);
    /* border-radius */
    --border-radius: 6px;
    /* z-index */
    --z-index-xs: 1;
    --z-index-sm: 10;
    --z-index-md: 100;
    /* easing */
    --easing: cubic-bezier(0.25, 0.01, 0.25, 1);
    /* transition durations */
    --transition-duration-step-1: 450ms;
    --transition-duration-step-2: 300ms;
    --transition-duration-step-3: 300ms;
    /* transition delays */
    --transition-delay-step-2: calc(var(--transition-duration-step-1));
    --transition-delay-step-3: calc( var(--transition-duration-step-1) + var(--transition-duration-step-2) );
    /* transition properties */
    --transition-step-1: var(--transition-duration-step-1) var(--easing);
    --transition-step-2: var(--transition-duration-step-2) var(--easing) var(--transition-delay-step-2);
    --transition-step-3: var(--transition-duration-step-3) var(--easing) var(--transition-delay-step-3);
}
/* base styles */

.fieldset {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    justify-content: center;
    column-gap: 6px;
    border-radius: 6px;
    overflow: hidden;
    will-change: transform;
    /* make shadows of inner elements visible */
    padding: 6px;
    margin: -6px;
}

.fieldset::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform: translateX(-100%);
}


.boxCode {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 0 6px 1px var(--shadow-color);
    overflow: hidden;
    will-change: transform;
}

.boxCode:focus-within {
    box-shadow: 0 0 6px 1px var(--shadow-color), 0 0 0 2px var(--focus-color);
}

.boxCode::before,
.boxCode::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.boxCode::before {
    background: var(--bg-color);
    z-index: var(--z-index-xs);
    transition: background-color var(--transition-step-1);
}

.boxCode::after {
    transform: translateY(100%);
    background-color: var(--success-color-desaturated);
    opacity: 0;
    z-index: var(--z-index-sm);
    transition: transform var(--transition-step-1), opacity var(--transition-step-1), background-color var(--transition-step-1);
}

.field {
    position: relative;
    border: 0;
    outline: 0;
    font-size: 25.21px;
    line-height: 42px;
    color: var(--text-color);
    background-color: transparent;
    text-align: center;
    z-index: var(--z-index-md);
}

    .field::placeholder {
        color: var(--placeholder-color);
    }

/* animate-success styles  */

.animate-success.fieldset {
    padding: 0;
    margin: 0;
}

.animate-success.fieldset::before {
    background-color: var(--success-color);
    transform: translateX(0);
    transition: transform var(--transition-step-2);
}

.animate-success > .boxCode {
    box-shadow: none;
    transition: transform var(--transition-step-3);
}

.animate-success > .boxCode:nth-child(1) {
    transform: translateX(24px);
}

.animate-success > .boxCode:nth-child(2) {
    transform: translateX(12px);
}

.animate-success > .boxCode:nth-child(4) {
    transform: translateX(-12px);
}

.animate-success > .boxCode:nth-child(5) {
    transform: translateX(-24px);
}

.animate-success > .boxCode:nth-child(6) {
    transform: translateX(-36px);
}

.animate-success > .boxCode::before {
    background-color: transparent;
}

.animate-success > .boxCode::after {
    background-color: var(--success-color);
    transform: translateY(0);
    opacity: 1;
}

.animate-success > .boxCode > .field,
.animate-success > .boxCode > .field::placeholder {
    color: var(--text-color-inversed);
    transition: color var(--transition-step-1);
}

/* animate-failure styles  */

.animate-failure.fieldset {
    animation-name: shaking;
    animation-duration: var(--transition-duration-step-2);
    animation-timing-function: var(--easing);
    animation-delay: var(--transition-delay-step-2);
}

.animate-failure > .boxCode::before {
    background-color: transparent;
}

.animate-failure > .boxCode::after {
    background-color: var(--failure-color);
    transform: translateY(0);
    opacity: 1;
}

.animate-failure > .boxCode > .field,
.animate-failure > .boxCode > .field::placeholder {
    color: var(--text-color-inversed);
    transition: color var(--transition-step-1);
}

@keyframes shaking {
    0%, 100% {
        transform: translateX(0);
    }

    25%, 75% {
        transform: translateX(10px);
    }

    50% {
        transform: translateX(-10px);
    }
}

/******* SELFIE ENROLLER*******/
#webcam {
    width: 100% !important;
    height: auto !important;
}

#canvas {
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 350px;
}

.StepTomarFoto > .row > div > p {
    font-size: 1em;
    line-height: 1.2;
    width: 100%;
    height: 35px;
    margin-top: 1px;
    color: #A7A7A7;
    display: flex;
    background-color: #fff;
    font-size: 22px;
    justify-content: center;
    align-items: center;
    width: 510px;
    margin: 15px auto 0 auto;
    border-bottom: 2px solid #74D288;
}

@media (min-width: 300px) and (max-width:320px) {

    #canvas {
        width: 205px;
    }

    .StepTomarFoto > .row > div > p {
        line-height: 1.2;
        width: 100% !important;
        height: 45px;
        margin-top: 1px;
        color: #9e1c63;
        display: flex;
        background-color: #fff;
        justify-content: center;
        align-items: center;
        margin: 30px auto 0 auto;
        border-bottom: 2px solid #9e1c63;
        padding-bottom: 30px;
    }
}

@media (min-width: 321px) and (max-width: 390px) {
    #canvas {
        width: 260px;
    }

    .StepTomarFoto > .row > div > p {
        width: 100% !important;
        line-height: 1.2;
        height: 45px;
        margin-top: 1px;
        color: #9e1c63;
        display: flex;
        background-color: #fff;
        justify-content: center;
        align-items: center;
        margin: 25px auto 0 auto;
        border-bottom: 2px solid #9e1c63;
        padding-bottom: 20px;
    }
}

@media (min-width: 390px) and (max-width:532px) {
    #canvas {
        width: 270px;
    }

    .StepTomarFoto > .row > div > p {
        width: 100% !important;
        line-height: 1.2;
        height: 45px;
        margin-top: 1px;
        color: #9e1c63;
        display: flex;
        background-color: #fff;
        justify-content: center;
        align-items: center;
        margin: 25px auto 0 auto;
        border-bottom: 2px solid #9e1c63;
        padding-bottom: 20px;
    }

    .cursorCanva {
        width: 100%;
    }
}
