.principal-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    min-height: 85vh;
    width: 100%;
}
.products-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}
.order-details-container {
    width: 50%;
    margin: 30px;
    padding: 15px;
    background-color: #f9f6fc; /* Fondo suave */
    border: 2px dashed #5d3b85; /* Borde punteado elegante */
    border-radius: 15px; /* Bordes redondeados */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15); /* Sombra sutil */
    transition: all 0.3s ease-in-out;
}
.list-products{
    max-height: 50vh;
    overflow-y: auto;
}
.list-products::-webkit-scrollbar {
    width: 8px !important; /* Grosor del scroll */
}

.list-products::-webkit-scrollbar-track {
    background: #d1a9e9; /* Color del fondo del scroll */
    border-radius: 10px;
}

.list-products::-webkit-scrollbar-thumb {
    background: #a165bf; /* Color del scroll */
    border-radius: 10px;
}

.list-products::-webkit-scrollbar-thumb:hover {
    background: #75568d; /* Color cuando pasas el mouse */
}
.resume-container {
    display: flex;
    flex-direction: column;
    width: 35%;
    margin: 30px 0px 30px 30px;
    color: #5d3b85;
    background-color: #f9f6fc; /* Fondo suave */
    border: 2px dashed #5d3b85; /* Borde punteado */
    border-radius: 15px; /* Bordes redondeados */
    padding: 20px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15); /* Sombra sutil */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.select-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding-left: 1.5em;
    padding-bottom: 15px;
}
.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, border 0.3s;
    cursor: pointer;
}
.form-check-input:checked {
    background-color: black;
    border-color: black;
    position: relative;
}
.form-check-label {
    margin-left: 10px;
    font-size: clamp(0.5rem, 1vw, 1.5rem);
    font-weight: bold;
}
.car-container{
    display: flex;
    flex-direction: column;
}
.car-product-container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 1em;
    transition: background-color 0.3s ease-in-out;
    border-radius: 10px;
    background-color: #C4B7E1;
    padding: 10px;
    color: #5d3b85;
}
.car-button-delete{
    background-color: #5d3b85;
    color: white;
}
.car-product-container:hover {
    background-color: #f0f0f0;
}
.car-product-imagen{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;
    height: auto;
}
.car-product-information{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 60%;
}
.form-control{
    width: 60%;
    height: 60%;
}
.car-product-actions{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 10%;
}
.resume-title-container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10%;
    font-size: 25px;
    font-weight: bold;
    border-bottom: 2px solid #5d3b85;
}
.list-producs-container{
    display: flex;
    flex-direction: column;
    height: 90%;
}
.list-products-information{
    height: 70%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.list-item-container{
    display: flex;
    justify-content: space-between;
    padding: 10px;
}
.resume-total-container{
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    padding: 10px;
    font-weight: bold;
}
.resume-button-container{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 12%;
}
.button-resumen{
    width: 90%;
    margin-top: 4px;
    background-color: #5d3b85;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    gap: 5px;
}
.button-resumen:hover{
    background-color: #7e5fa1;
}
.button-resumen-paypal{
    width: 90%;
    margin-top: 4px;
    background-color: #ffc439;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.button-resumen-paypal:hover{
    background-color: #f8b822;
}
.button-resumen-transfer{
    width: 90%;
    margin-top: 4px;
    background-color: #0b1fd5;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.button-resumen-transfer:hover{
    background-color: #1a29b8;
}
.page-buttons{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.button-next{
    width: 90%;
    background-color: #C4B7E1;
    color: #5d3b85;
    font-weight: bold;
}
.button-next:hover{
    background-color: rgb(153, 129, 180);
    color: white;
}
.button-before{
    width: 90%;
    margin-bottom: 10px;
    background-color: #5d3b85;
    color: white;
}
.button-before:hover{
    background-color: #7e5fa1;
    font-weight: bold;
    color: white;
}
.form-order-container{
    padding-top: 20px;
    padding-left: 2rem;
    padding-right: 2rem;
    min-height: 40vh;
}
.form-order-container form{
    color: #5d3b85;
}
.form-order-container form label{
    font-weight: bold;
}
.purchase-details{
    display: flex;
    flex-direction: row;
    width: 90%;
    margin: 2rem;
    color: #5d3b85;
}
.purchase-details-column{
    display: flex;
    flex-direction: column;
    padding: 10px;
    width: 50%;
}
.purchase-details-column label{
    padding-bottom: 10px;
}

/* ===================== */
/* ESTILOS DEL ÍCONO */
/* ===================== */
.help-icon {
    font-size: 1.2rem;
    color: #5d3b85;
    background-color: #eae0f3;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 8px;
}

.help-icon:hover {
    background-color: #d1a9e9;
}

/* ===================== */
/* ESTILOS DEL MODAL */
/* ===================== */
.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* Contenido del Modal */
.modal-content {
    background-color: #f9f6fc;
    padding: 20px;
    border-radius: 15px;
    width: 500px;
    max-width: 90%;
    border: 2px solid #5d3b85;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Botón de Cerrar */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #5d3b85;
}

.close-modal:hover {
    color: #d63384;
}

/* ===================== */
/* ESTILOS DEL CONTENIDO DEL MODAL */
/* ===================== */

.modal-content h2 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #4a2c6f;
    margin-bottom: 10px;
    border-bottom: 2px solid #5d3b85;
    padding-bottom: 8px;
}

.modal-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-content li {
    font-size: 1rem;
    color: #333;
    padding: 10px;
    border-left: 4px solid #5d3b85;
    margin-bottom: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-content .price {
    font-weight: bold;
    color: #d63384;
}
.product-description{
    display: flex; 
    justify-content: center;
}
.product-resumen{
    display: flex; 
    justify-content: center;
}

/* Contenedor general del tracker */
.progress-tracker-container {
    padding-top: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Tracker visual */
.progress-tracker {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    width: 70%;
}

/* Pasos del tracker */
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Círculos numerados */
.circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #ddd;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

/* Texto debajo del círculo */
.label {
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #777;
}

/* Línea de conexión entre los pasos */
.line {
    flex: 1;
    height: 3px;
    background-color: #ddd;
    margin: 0 10px;
}

/* Paso activo */
.step.active .circle {
    background-color: #5d3b85;
}

/* Paso completado */
.step.completed .circle {
    background-color: #5d3b85;
}

.step.completed .label {
    color: #5d3b85;
}

.step.completed + .line {
    background-color: #5d3b85;
}

.price-count {
    display: flex; 
    flex-direction: row; 
    height: 50%; 
    width: 100%;
}

.price-count div{
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    width: 50%;
}

/* 📱 Responsividad: Ajuste para pantallas medianas */
@media (max-width: 1024px) {
    .principal-container {
        flex-direction: column;
        align-items: center;
    }
    .order-details-container {
        width: 80%;
        max-width: none;
    }
    .list-producs-container{
        height: 70%;
    }

    .resume-container {
        width: 80%;
        max-width: none;
        margin-left: 0; /* Elimina margen lateral */
    }
}

/* 📱 Responsividad: Ajuste para móviles */
@media (max-width: 768px) {
    .principal-container {
        flex-direction: column;
        align-items: center;
    }

    .order-details-container {
        width: 100%;
        padding: 0px 10px;
        background-color: transparent;
        border: none;
        box-shadow: none;
        margin: 0px;
        margin-bottom: 30px;
    }
    .car-product-container{
        align-items: center;
    }
    .car-product-imagen{
        width: 50%;
    }
    .car-product-information{
        width: 100%;
        gap: 5px;
    }
    .resume-container {
        width: 90%;
        margin: 20px 0;
    }
    .product-description{
        display: none;
    }
    .product-resumen{
        padding: 0px 10px;
    }
    .progress-tracker {
        width: 90%;
    }
    .purchase-details {
        display: block;
        margin: 1rem;
    }
    .purchase-details-column {
        padding: 0px;
        width: 100%;
    }
    .datatittle {
        display: flex;
    }
    .label {
        display: none;
    }
    .price-count {
        flex-direction: column-reverse;
        gap: 5px;
    }
    .price-count div{
        width: 100%;
    }
    .form-control {
        padding: 3px .75rem;
    }
    .car-button-delete {
        padding: 3px 6px;
        font-size: 15px;
    }
}
