﻿

html, body {
    scroll-behavior: smooth;
}
form {
    height: 100%;
}

#loader {
    position: fixed;
    display: grid;
    align-content: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: white;
    top: 0;
    left: 0;
    z-index: 999;
}

.sk-folding-cube {
    margin: 20px auto;
    width: 25px;
    height: 25px;
    position: relative;
    -webkit-transform: rotateZ(45deg);
    transform: rotateZ(45deg);
}

    .sk-folding-cube .sk-cube {
        float: left;
        width: 50%;
        height: 50%;
        position: relative;
        -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
        transform: scale(1.1);
    }

        .sk-folding-cube .sk-cube:before{
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            -webkit-animation: sk-foldCubeAngle 2.4s infinite linear both;
            animation: sk-foldCubeAngle 2.4s infinite linear both;
            -webkit-transform-origin: 100% 100%;
            -ms-transform-origin: 100% 100%;
            transform-origin: 100% 100%;
        }

        .sk-folding-cube .sk-cube:nth-child(-n+2):before {
            background-color: #999999;
            
        }

        .sk-folding-cube .sk-cube:nth-child(n+3):before {
            background-color: #006599;
        }

    .sk-folding-cube .sk-cube2 {
        -webkit-transform: scale(1.1) rotateZ(90deg);
        transform: scale(1.1) rotateZ(90deg);
    }

    .sk-folding-cube .sk-cube3 {
        -webkit-transform: scale(1.1) rotateZ(180deg);
        transform: scale(1.1) rotateZ(180deg);
    }

    .sk-folding-cube .sk-cube4 {
        -webkit-transform: scale(1.1) rotateZ(270deg);
        transform: scale(1.1) rotateZ(270deg);
    }

    .sk-folding-cube .sk-cube2:before {
        -webkit-animation-delay: 0.3s;
        animation-delay: 0.3s;
    }

    .sk-folding-cube .sk-cube3:before {
        -webkit-animation-delay: 0.6s;
        animation-delay: 0.6s;
    }

    .sk-folding-cube .sk-cube4:before {
        -webkit-animation-delay: 0.9s;
        animation-delay: 0.9s;
    }

@-webkit-keyframes sk-foldCubeAngle {
    0%, 10% {
        -webkit-transform: perspective(140px) rotateX(-180deg);
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }

    25%, 75% {
        -webkit-transform: perspective(140px) rotateX(0deg);
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }

    90%, 100% {
        -webkit-transform: perspective(140px) rotateY(180deg);
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

@keyframes sk-foldCubeAngle {
    0%, 10% {
        -webkit-transform: perspective(140px) rotateX(-180deg);
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }

    25%, 75% {
        -webkit-transform: perspective(140px) rotateX(0deg);
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }

    90%, 100% {
        -webkit-transform: perspective(140px) rotateY(180deg);
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

.text-ellipsis {
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.form-control input[type=radio] + label {
    margin-left: 1rem;
}


.phone {
    height: 50px;
    width: 100px;
    border: 3px solid white;
    border-radius: 10px;
    animation: rotate 1.5s ease-in-out infinite alternate;
}

@media only screen and (max-width: 768px) and (orientation: portrait) {
    .signature-section {
        display: block;
    }
}

@media only screen and (min-width: 769px) and (orientation: portrait) {
    .signature-section {
        display: none;
    }
}
/*
@media only screen and (min-width: 769px) and (orientation: landscape) {
    .signature-section {
        display: none;
    }
}

@media only screen and (max-height: 768px) and (orientation: landscape) {
    .signature-section {
        display: block;
    }
}*/

    .signature-section {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        touch-action: none;
        overflow-y: scroll;
    }

    .message {
        color: white;
        font-size: 1em;
        margin-top: 40px;
    }

    .portrait-container {
        display: flex;
        width: 100%;
        height: 100%;
        background-color: black;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    @keyframes rotate {
        0% {
            transform: rotate(0deg)
        }

        50% {
            transform: rotate(-90deg)
        }

        100% {
            transform: rotate(-90deg)
        }
    }

    @media only screen and (max-width: 1223px) and (orientation: landscape) {
        .portrait-container {
            display: none;
        }

        .landscape-container {
            display: block;
            background-color: white;
            top: 0;
            left: 0;
            position: relative;
            width: 100%;
            height: 100%;
        }
    }

    @media only screen and (min-width : 1224px) and (orientation: landscape) {
        .portrait-container {
            display: none;
        }

        .landscape-container {
            display: block;
            background-color: white;
            top: 0;
            left: 0;
            position: relative;
            width: 100%;
            height: 100%;
        }
    }

    @media only screen and (max-width: 1223px) and (orientation: portrait) {
        .portrait-container {
            display: flex;
        }

        .landscape-container {
            display: none;
        }

        .sign-help-overlay {
            visibility: hidden;
        }
    }

    .landscape-left {
        width: 100%;
        height: 80%;
    }

        .landscape-left
        canvas {
            left: 5%;
            top: 5%;
            position: relative;
            width: 90%;
            height: 90%;
            border: 1px solid #212529;
        }

    .landscape-right {
        padding: 0.5rem 2rem;
        width: 100%;
        height: 20%;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
    }

        .landscape-right button {
            width: 100%;
        }

    .sign-help-overlay {
        left: 5%;
        top: 5%;
        position: fixed;
        width: 90%;
        height: 70%;
    }

        .sign-help-overlay .help-text {
            position: absolute;
            left: 10%;
            width: 80%;
            bottom: 20%;
            border-top: 1px solid #000;
        }



    .digit-group input {
        width: 30px !important;
        height: 50px !important;
        background-color: #18182a !important;
        border: none !important;
        line-height: 50px !important;
        text-align: center !important;
        font-size: 24px !important;
        font-family: 'Raleway', sans-serif;
        font-weight: 200 !important;
        color: white !important;
        margin: 0 2px !important;
        padding: 0 !important;
    }

    .digit-group .splitter {
        padding: 0 5px;
        color: #18182a !important;
        font-size: 30px;
    }

    #overlay-container {
        touch-action: none;
    }


    /*extra breakpoints for better mobile support*/
    @media(max-width:411px) {
        html, body {
            font-size: 11px !important;
        }
    }

    @media(max-width:320px) {
        html, body {
            font-size: 9px !important;
        }
    }

    .color-success {
        color: #4caf50;
    }

    .color-rejected {
        color: #f44336;
    }

    .color-pending {
        color: #ff9800;
    }

    .approved-step-icon g [fill] {
        fill: #4caf50;
    }

    [data-wizard-state="current"] .step-status-icon g [fill] {
        fill: #fff;
    }

    .pending-step-icon g [fill] {
        fill: #ff9800;
    }

.skipped-step-icon g [fill] {
    fill: #607d8b;
}

.rejected-step-icon g [fill] {
    fill: #f44336;
}

.completed-step-icon g [fill] {
    fill: #2196f3;
}

    .inactive-step {
        background-color: #f3f6f9;
        margin: 0.3rem 0;
    }



    .wizard.wizard-2 .wizard-nav .wizard-steps .wizard-step[data-wizard-state="current"] {
        background-color: #ddedfdbf;
    }

        .wizard.wizard-2 .wizard-nav .wizard-steps .wizard-step[data-wizard-state="current"]:after {
            border-left-color: #ddedfdbf;
        }

    @media(min-width: 992px) {
        .pt-lg-20, .py-lg-20 {
            padding-top: 1rem !important;
        }
    }

    .file-list {
        display: flex;
    }
        /*files input list*/
        .file-list .file-list-item {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-pack: justify;
            -ms-flex-pack: justify;
            justify-content: space-between;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            padding: 0.5rem 1rem;
            background-color: #F3F6F9;
            margin-top: 0.75rem;
            border-radius: 0.85rem;
            max-width: 100%;
        }

            .file-list .file-list-item a {
                text-overflow: ellipsis;
                max-width: 100%;
                overflow-x: hidden;
            }


            .file-list .file-list-item .file-list-label {
                font-weight: 500;
                color: #7E8299;
                white-space: nowrap;
            }

            .file-list .file-list-item .file-list-remove {
                cursor: pointer;
                margin-left: 1rem;
            }

                .file-list .file-list-item .file-list-remove i {
                    -webkit-transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
                    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
                    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
                    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, -webkit-box-shadow 0.15s ease;
                    color: #f44336;
                    font-size: 1rem;
                }

                .file-list .file-list-item .file-list-remove:hover i {
                    -webkit-transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
                    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
                    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
                    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, -webkit-box-shadow 0.15s ease;
                    color: #F64E60;
                }


    .progress.step-progress {
        height: 1.8rem !important;
        font-size: 1rem !important;
    }


    /* .wizard-steps:not(.mobile-steps) {
        display: block !important;
    }*/


    .accordion.accordion-toggle-arrow .card .card-header .card-title.no-arrows:after {
        content: none;
    }

    .wizard-steps .accordion .card .card-header .card-title {
        padding: 2rem 1.25rem;
    }

    .section-items {
        padding-top: 2rem;
        padding-bottom: 2rem;
        padding-right: calc(1rem + 12px);
        padding-left: 1rem;
        max-height: 33vh; 
        overflow: hidden;
        overflow-y: scroll;
    }

    .file-card {
        cursor: pointer;
    }



    /*custom input file*/
    .inputfile {
        width: 0.1px;
        height: 0.1px;
        opacity: 0;
        overflow: hidden;
        position: absolute;
        z-index: -1;
    }

        .inputfile + label {
            max-width: 80%;
            font-size: 0.75rem;
            /* 20px */
            font-weight: 700;
            text-overflow: ellipsis;
            white-space: nowrap;
            cursor: pointer;
            display: inline-block;
            overflow: hidden;
            padding: 0.625rem 1.25rem;
            /* 10px 20px */
        }

    .no-js .inputfile + label {
        display: none;
    }

    .inputfile:focus + label,
    .inputfile.has-focus + label {
        outline: 1px dotted #000;
        outline: -webkit-focus-ring-color auto 5px;
    }

    .inputfile + label * {
        /* pointer-events: none; */
        /* in case of FastClick lib use */
    }

    .inputfile + label svg {
        width: 1em;
        height: 1em;
        vertical-align: middle;
        fill: currentColor;
        margin-top: -0.25em;
        /* 4px */
        margin-right: 0.25em;
        /* 4px */
    }


    /* style 1 */

    .inputfile-1 + label {
        color: #f1e5e6;
        background-color: #7e8299;
        border-color: #7e8299;
    }

        .inputfile-1:focus + label,
        .inputfile-1.has-focus + label,
        .inputfile-1 + label:hover {
            background-color: #7e8299cc;
            border-color: #7e8299cc;
        }


    /* style 2 */

    .inputfile-2 + label {
        color: #d3394c;
        border: 2px solid currentColor;
    }

        .inputfile-2:focus + label,
        .inputfile-2.has-focus + label,
        .inputfile-2 + label:hover {
            color: #722040;
        }


    /* style 3 */

    .inputfile-3 + label {
        color: #d3394c;
    }

        .inputfile-3:focus + label,
        .inputfile-3.has-focus + label,
        .inputfile-3 + label:hover {
            color: #722040;
        }


    /* style 4 */

    .inputfile-4 + label {
        color: #d3394c;
    }

        .inputfile-4:focus + label,
        .inputfile-4.has-focus + label,
        .inputfile-4 + label:hover {
            color: #722040;
        }

        .inputfile-4 + label figure {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background-color: #d3394c;
            display: block;
            padding: 20px;
            margin: 0 auto 10px;
        }

        .inputfile-4:focus + label figure,
        .inputfile-4.has-focus + label figure,
        .inputfile-4 + label:hover figure {
            background-color: #722040;
        }

        .inputfile-4 + label svg {
            width: 100%;
            height: 100%;
            fill: #f1e5e6;
        }


    /* style 5 */

    .inputfile-5 + label {
        color: #d3394c;
    }

        .inputfile-5:focus + label,
        .inputfile-5.has-focus + label,
        .inputfile-5 + label:hover {
            color: #722040;
        }

        .inputfile-5 + label figure {
            width: 100px;
            height: 135px;
            background-color: #d3394c;
            display: block;
            position: relative;
            padding: 30px;
            margin: 0 auto 10px;
        }

        .inputfile-5:focus + label figure,
        .inputfile-5.has-focus + label figure,
        .inputfile-5 + label:hover figure {
            background-color: #722040;
        }

        .inputfile-5 + label figure::before,
        .inputfile-5 + label figure::after {
            width: 0;
            height: 0;
            content: '';
            position: absolute;
            top: 0;
            right: 0;
        }

        .inputfile-5 + label figure::before {
            border-top: 20px solid #dfc8ca;
            border-left: 20px solid transparent;
        }

        .inputfile-5 + label figure::after {
            border-bottom: 20px solid #722040;
            border-right: 20px solid transparent;
        }

        .inputfile-5:focus + label figure::after,
        .inputfile-5.has-focus + label figure::after,
        .inputfile-5 + label:hover figure::after {
            border-bottom-color: #d3394c;
        }

        .inputfile-5 + label svg {
            width: 100%;
            height: 100%;
            fill: #f1e5e6;
        }


    /* style 6 */

    .inputfile-6 + label {
        color: #d3394c;
    }

    .inputfile-6 + label {
        border: 1px solid #d3394c;
        background-color: #f1e5e6;
        padding: 0;
    }

        .inputfile-6:focus + label,
        .inputfile-6.has-focus + label,
        .inputfile-6 + label:hover {
            border-color: #722040;
        }

        .inputfile-6 + label span,
        .inputfile-6 + label strong {
            padding: 0.625rem 1.25rem;
            /* 10px 20px */
        }

        .inputfile-6 + label span {
            width: 200px;
            min-height: 2em;
            display: inline-block;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            vertical-align: top;
        }

        .inputfile-6 + label strong {
            height: 100%;
            color: #f1e5e6;
            background-color: #d3394c;
            display: inline-block;
        }

        .inputfile-6:focus + label strong,
        .inputfile-6.has-focus + label strong,
        .inputfile-6 + label:hover strong {
            background-color: #722040;
        }

    @media screen and (max-width: 50em) {
        .inputfile-6 + label strong {
            display: block;
        }
    }



    .lds-ellipsis {
        display: inline-block;
        position: relative;
        width: 80px;
        height: 80px;
    }

        .lds-ellipsis div {
            position: absolute;
            top: 33px;
            width: 13px;
            height: 13px;
            border-radius: 50%;
            background: #12827D;
            animation-timing-function: cubic-bezier(0, 1, 1, 0);
        }

            .lds-ellipsis div:nth-child(1) {
                left: 8px;
                animation: lds-ellipsis1 0.6s infinite;
            }

            .lds-ellipsis div:nth-child(2) {
                left: 8px;
                animation: lds-ellipsis2 0.6s infinite;
            }

            .lds-ellipsis div:nth-child(3) {
                left: 32px;
                animation: lds-ellipsis2 0.6s infinite;
            }

            .lds-ellipsis div:nth-child(4) {
                left: 56px;
                animation: lds-ellipsis3 0.6s infinite;
            }

    @keyframes lds-ellipsis1 {
        0% {
            transform: scale(0);
        }

        100% {
            transform: scale(1);
        }
    }

    @keyframes lds-ellipsis3 {
        0% {
            transform: scale(1);
        }

        100% {
            transform: scale(0);
        }
    }

    @keyframes lds-ellipsis2 {
        0% {
            transform: translate(0, 0);
        }

        100% {
            transform: translate(24px, 0);
        }
    }


.fs-4 {
    font-size: 1.5rem;
}

.swal2-container .swal2-html-container {
    max-height:50vh;
}



/* Estilo suave y acorde a Bootstrap */
.regen-card {
    max-width: 720px;
    margin: 10vh auto;
    border: 0;
    border-radius: .75rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,.08);
}

.regen-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e9f5ff, #dfeeff);
    color: #0d6efd;
    font-size: 28px;
    box-shadow: inset 0 0 0 2px rgba(13,110,253,.1);
}

.regen-title {
    font-weight: 600;
    letter-spacing: .2px;
}

.regen-text {
    color: #5f6b7a;
}

.btn-regenerate {
    font-weight: 600;
}

.link-volver {
    font-size: 1.05rem; /* Tamaño de fuente más grande */
    font-weight: 500; /* Un poco más gruesa para destacarla */
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    text-align: center;
}