﻿/* Estilos de los elementos de inicio y fin */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* INTRO SECTION
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.intro {
    background: #f45b69;
    padding: 100px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
}


/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline ul {
    background: #fff;
    padding: 50px 0;
}

.timeline ul li {
    list-style-type: none;
    position: relative;
    width: 6px;
    margin: 0 auto;
    padding-top: 50px;
    background: #7A7A7A;
    height: 150px;
}

.timeline ul li::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: inherit;
    z-index: 1;
}

.timeline ul li div {
    position: relative;
    bottom: 0;
    width: 400px;
    padding: 15px;
    background: var(--beforeCuadro-color, #7A7A7A);
}

.timeline ul li div::before {
    content: "";
    position: absolute;
    bottom: 7px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline ul li:nth-child(odd) div {
    left: 45px;
}

.timeline ul li:nth-child(odd) div::before {
    left: -15px;
    border-width: 8px 16px 8px 0;
    border-color: transparent var(--beforeRight-color, #7A7A7A) transparent transparent;
}

.timeline ul li:nth-child(even) div {
    left: -439px;
}

.timeline ul li:nth-child(even) div::before {
    right: -15px;
    border-width: 8px 0 8px 16px;
    border-color: transparent transparent transparent var(--beforeLeft-color, #7A7A7A);
}

time {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff
}

.timeline ul li::after {
    transition: background 0.5s ease-in-out;
}

.timeline ul li div {
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.timeline ul li:nth-child(odd) div {
    transform: translate3d(200px, 0, 0);
}

.timeline ul li:nth-child(even) div {
    transform: translate3d(-200px, 0, 0);
}

.timeline ul li.in-view div {
    transform: none;
    visibility: visible;
    opacity: 1;
}

/* EFFECTS
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline ul li::after {
    transition: background 0.5s ease-in-out;
}

.timeline ul li.in-view::after {
    background: #7A7A7A;
}

.timeline ul li div {
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.timeline ul li:nth-child(odd) div {
    transform: translate3d(200px, 0, 0);
}

.timeline ul li:nth-child(even) div {
    transform: translate3d(-200px, 0, 0);
}

.timeline ul li.in-view div {
    transform: none;
    visibility: visible;
    opacity: 1;
}


/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */

@media screen and (max-width: 900px) {
    .timeline ul li div {
        width: 250px;
    }

    .timeline ul li:nth-child(even) div {
        left: -289px;
        /*250+45-6*/
    }
}

@media screen and (max-width: 600px) {
    .timeline ul li {
        margin-left: 20px;
    }

    .timeline ul li div {
        width: calc(100vw - 91px);
    }

    .timeline ul li:nth-child(even) div {
        left: 45px;
    }

    .timeline ul li:nth-child(even) div::before {
        left: -15px;
        border-width: 8px 16px 8px 0;
        border-color: transparent var(--beforeLeft-color) transparent transparent;
    }

    .seg_ns_startText {
        margin-left: 67px !important;
    }

    .seg_ns_finText::after {
        margin-left: 47px !important;
    }
}


/* EXTRA/CLIP PATH STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.timeline-clippy ul li::after {
    width: 40px;
    height: 40px;
    border-radius: 0;
}

.timeline-rhombus ul li::after {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.timeline-rhombus ul li div::before {
    bottom: 12px;
}

.timeline-star ul li::after {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.timeline-heptagon ul li::after {
    clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
}

.timeline-infinite ul li::after {
    animation: scaleAnimation 2s infinite;
}

@keyframes scaleAnimation {
    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.25);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

.seg_ns_text {
    color: #fff;
}

.seg_ns_boxText::after {
    border-radius: 0% !important;
    width: 100px !important;
    color: #fff;
    align-items: center !important;
    display: flex;
    justify-content: center;
}

.seg_ns_startText::after {
    content: "INICIO" !important;
}

.seg_ns_finText::after {
    content: "FIN" !important;
}

.seg_ns_progress_container {
    width: 100%;
    margin-bottom: 30px;
    border: 1px solid #3F7300;
    border-radius: 3px;
}

.seg_ns_progress_bar {
    height: 30px;
    background-color: #70B221;
    width: 0;
    transition: width 0.5s ease; /* Agregamos una transición de 0.5 segundos */
    position: relative;
}

.seg_ns_progress_text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.timeline ul li.in-view::after {
    background: var(--custom-color, #7A7A7A);
}

.timeline ul li::after {
   background: var(--after-color, #0071b9);
}

.timeline ul li.in-view::after {
    width: var(--custom-width, 30px);
}

.color-blue {
    background: #0071b9 !important;
}
/* ERROR */
input.error {
    border: 2px solid red;
}
select.error {
    border: 2px solid red;
}


/* STEPPER */

.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    margin: 40px 0;
}

.stepper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background-color: #ccc;
}

.step {
    position: relative;
    text-align: center;
    flex: 1;
}

.step .circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 auto;
    line-height: 30px;
    color: #fff;
    font-weight: bold;
}

.step .label {
    margin-top: 5px;
    font-size: 12px;
}

.step.active .circle,
.step.completed .circle {
    background-color: #70B221;
}

.form-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    padding: 20px;
}

.form-step {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.modal{
    height: auto;
}

.modal-custom {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.modal-custom .modal-message {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.modal-custom .modal-header .modal-title {
    font-size: 1.5em;
    flex-grow: 1;
    text-align: center;
    padding-top: 10px;
}

.modal-custom .modal-body{
    margin-top: 10px;
    display: block;
    align-content: center;
    text-align: center;
}

.modal-custom .modal-body i.fas {
    margin: 0 auto 15px; 
}

.modal-custom .modal-footer {
    text-align: center;
}

.modal-custom .modal-footer button {
    border-radius: 5px 5px;
}

.modal.fade .modal-dialog {
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    transform: scale(0.8);
    opacity: 0;
}

.modal.fade.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

.modal.fade .modal-dialog.fade-out {
    transform: scale(0.8);
    opacity: 0;
}