.wizard {
    width: 100%;
    margin: 0px auto !important;
    background: #fff;
}

.wizard .nav-tabs {
    position: relative;
    margin: 20px auto !important;
    margin-bottom: 0;
    border-bottom-color: #e0e0e0;
}

.wizard > div.wizard-inner {
    position: relative;
}

.connecting-line {
    height: 2px;
    background: #e0e0e0;
    position: absolute;
    /* width: 80%; */
    margin: 0 auto;
    left: 50%;
    right: 0;
    top: 54px;
    transform: translateX(-50%);
    z-index: 1;
}

/* Asegura que esté por encima de la línea gris */
.wizard .nav-tabs .nav-link {
    border: 0;
    background: transparent;
    padding: 0;
}

.wizard .nav-tabs .nav-link.active,
.wizard .nav-tabs .nav-link:hover,
.wizard .nav-tabs .nav-link:focus {
    color: #555555;
    cursor: default;
    border: 0;
    background: transparent;
}

span.round-tab {
    width: 50px;
    height: 50px;
    line-height: 46px;
    display: inline-block;
    border-radius: 100px;
    background: #fff;
    border: 2px solid #e0e0e0;
    z-index: 2;
    position: relative;
    text-align: center;
    font-size: 20px;
}

span.round-tab i {
    color: #555555;
}

.wizard .nav-tabs .nav-link.active span.round-tab {
    background: #fff;
    border: 2px solid var(--bs-primary);
}

.wizard .nav-tabs .nav-link.active span.round-tab i {
    color: var(--bs-primary);
}

.wizard .nav-tabs .nav-link.active {
    background: transparent;
}

span.round-tab:hover {
    color: #333;
    border: 2px solid #333;
}

.wizard .nav-tabs {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border: none;
}

.wizard .nav-tabs .nav-link {
    width: 25%;
    border: none;
    background: none;
    position: relative;
}

.wizard .nav-tabs .nav-link:focus {
    border: none;
    outline: none;
}

.wizard .nav-tabs {
    position: relative;
    margin: 20px auto 20px;
    border: none;
}

.wizard .nav-tabs .nav-link {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    position: relative;
    z-index: 2;
}

.wizard-inner {
    position: relative;
}

.wizard .nav-tabs .active::after {
    content: '';
    position: absolute;
    top: 62px;
    left: 35px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--bs-primary);;
    transition: left 0.3s ease;
}

.wizard .nav-tabs .nav-link .title {
    position: absolute;
    bottom: 60px;
    left: -85px;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 250px;
    font-size: 0.75em;
}

.wizard .nav-tabs .nav-link {
    width: 70px;
    height: 70px;
    margin: 20px auto;
    border-radius: 100%;
    padding: 0;
}

.wizard .tab-pane {
    position: relative;
    padding-top: 0px !important;
}

.wizard h3 {
    margin-top: 0;
}

@media (max-width: 585px) {
    .wizard {
        width: 90%;
        height: auto !important;
    }

    span.round-tab {
        font-size: 16px;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }

    span.round-tab i {
        position: relative;
        bottom: 2.5px;
    }

    .wizard .nav-tabs .nav-link {
        width: 50px;
        height: 50px;
        line-height: 50px;
    }

    .wizard .nav-tabs .nav-link.active::after {
        left: 35%;
    }
}

.tab-pane {
    padding: 15px 0;
}

.gap-2 {
    gap: 0.5rem !important;
}

/* Estilo para los pasos procesados */
.wizard .nav-tabs .processed span.round-tab {
    background: #fff;
    border: 2px solid var(--bs-primary);
}

.wizard .nav-tabs .processed span.round-tab i {
    color: var(--bs-primary);
}

/* Estilo para el título de pasos procesados */
.wizard .nav-tabs .processed .title {
    color: var(--bs-primary);
}

/* Diseño responsivo para dispositivos móviles */
@media (max-width: 585px) {
    .wizard .nav-tabs .active::after {
        content: '';
        position: absolute;
        top: 51px;
        left: 25px !important;
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid var(--bs-primary);;
        transition: left 0.3s ease;
    }    
}

@media (max-width: 768px) {
    .wizard {
        width: 100%;
    }

    span.round-tab {
        font-size: 16px;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }

    .wizard .nav-tabs .nav-link {
        width: 50px;
        height: 50px;
        line-height: 50px;
    }

    .wizard .nav-tabs .nav-link.active::after {
        left: 25px;
        top: 51px;
    }

    /* Asegurar que los botones de navegación también se ajusten */
    .wizard .d-flex {
        flex-direction: row;
        align-items: center;
        /*margin-top: 30px;*/
    }    

    .wizard .d-flex button {
        /*width: 100%;*/
        margin-top: 10px;
    }

    .connecting-line {
        height: 2px;
        background: #e0e0e0;
        position: absolute;
       /*  width: 80%; */
        margin: 0 auto;
        left: 50%;
        right: 0;
        top: 45px;
        transform: translateX(-50%);
        z-index: 1;
    }
}

.guardar-direccion {
  border-top-right-radius: var(--bs-btn-border-radius) !important;
  border-bottom-right-radius: var(--bs-btn-border-radius) !important;
}

select {
  border-top-right-radius: var(--bs-border-radius) !important;
  border-bottom-right-radius: var(--bs-border-radius) !important;
}


/* Tamaño normal (por defecto) */
.responsive-btn {
  padding: 0.375rem 0.75rem; /* igual que btn normal */
  font-size: 1rem;
}

/* En pantallas pequeñas: agrandar */
@media (max-width: 576px) {
  .responsive-btn {
    padding: 0.5rem 1rem; /* igual que .btn-lg */
    font-size: 1.25rem;
    border-radius: 0.5rem;
  }
}
