/* ------------------------PROCESO COMPRA ----------------------------*/

.procesoCompra{
    height: auto;
    overflow-y: auto;
}

.boton-siguiente{
    font-size: 20px;
    float: right;
}

.container-pasoDos h1 {
    text-align: center;
}

/*Pasos de proceso compra*/
.diagrama-proceso {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    margin-top: 10px;
    gap: 5em;
    border-radius: 8px;
    padding: 5px 2em;
}

.diagrama-proceso .paso {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diagrama-proceso .circulo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #808080;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
}

.diagrama-proceso .circulo-activo {
    background-color: #007bff;
    color: white; 
    border: 2px solid #007bff;
}


.proceso-compra{
    display: flex;
    justify-content: space-between;
    width: 95%;
    margin: 0 auto;
    padding-top: 3em;
    padding-bottom: 3em;
}

.proceso-compra .columna-izquierda{
    width: 65%;
}

.contenedor-detalle-formulario{
    border-radius: 8px;
    padding: 2em 1em;
    height: auto;
    width: 25%;
    overflow-y: auto;
}
.contenedor-detalle-formulario h4{
    margin-top: 0;
}

.contenedor-detalle-formulario ul{
    padding: 0;
}

.formulario-proceso{
    width: 100% !important;
}

.proceso-compra .logo{
    background: url('/public/img/logo.png');
    width: 200px;
    height: 90px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

.proceso-compra h5{
    font-size: 16px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.container-pasoTres {
    padding: 20px;
}

.container-pasoTres h3 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.container-pasoTres .resumen-pedido{
    width: 100%;
}

.resumen-datos {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.carrito-resumen{
    width: 25%;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.resumen-datos h4 {
    color: #007bff;
    margin-bottom: 10px;
}

.resumen-datos p {
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

#resumen-notas-pedido {
    display: block; 
    max-width: 100%; 
    overflow-wrap: break-word; /* Permite ajustar palabras largas */
    word-wrap: break-word; /* Compatibilidad con navegadores más antiguos */
    word-break: break-word; /* Rompe palabras largas */
    white-space: pre-wrap; /* Mantiene los saltos de línea y ajusta el texto */
    overflow-y: auto; 
    max-height: 200px; 
}


.boton-anterior, .boton-confirmar {
    background-color: gray;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.boton-anterior:hover, .boton-confirmar:hover {
    background-color: #0056b3;
    border: none;
    color: white;
}

.botones {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/*Modal detalles contenido*/
.modal-detalles-carrito {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-detalles-carrito .modal-contenido {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    text-align: center;
    overflow-y: auto;
}

.modal-detalles-carrito .modal-contenido #lista-detalles{
    text-decoration: none;
    list-style: none;
    padding: 0;
}

.modal-detalles-carrito .cerrar-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
}

.contenedor-detalle-formulario .btn-ver-detalles{
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    padding: 5px 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    margin-left: 1em;
    transition: all .3s ease;
}

.contenedor-detalle-formulario .btn-ver-detalles:hover{
    background-color: #0056b3;
}

.contenedor-detalle-formulario .carrito-volver-atras{
    text-decoration: none;
    color: #000;
    padding: 8px 10px;
    border: 1px solid #000;
    border-radius: 0 8px;
    margin-top: 2em !important;
    transition: all .3s ease;
}
.contenedor-detalle-formulario .carrito-volver-atras:hover{
    background: #000;
    color: white;
    border: none;
}

/* Estilo para los campos con error */
.error input {
    border: 2px solid red;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

/*RESPONSIVE -----------------------------------------*/

@media (max-width: 1024px) {
    .col-md-3 {
        flex: 0 50%;
        max-width: 50%;
        padding: 0 0.5rem;
    }
    .proceso-compra .correo-preferencia{
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .proceso-compra{
        flex-direction: column;
        width: 95%;
        margin: 0 auto;
        padding-top: 3em;
        padding-bottom: 3em;
    }
    
    .proceso-compra .columna-izquierda{
        width: 90%;
    }
    
    .contenedor-detalle-formulario{
        height: auto;
        width: 50%;
        margin-top: 2em;
    }
}

@media (max-width: 484px) {
    .proceso-compra .row{
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .proceso-compra .col-md-6 {
        flex: 100%;
        max-width: 100%;
        padding: 0;
    }
    .proceso-compra .col-md-4 {
        flex: 100%;
        max-width: 100%;
        padding: 0;
    }
    .proceso-compra .col-md-12{
        padding: 0;
    }
    .col-md-3 {
        flex: 100%;
        max-width: 100%;
        padding: 0;
    }
    .contenedor-detalle-formulario{
        width: 90%;
        margin-top: 3em;
    }

    .diagrama-proceso {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin: 0 auto;
        gap: 4em;
        border-radius: 8px;
        padding: 0;
    }
    
    .diagrama-proceso .paso {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .columna-izquierda{
        width: 90% !important;
        box-sizing: border-box;
    }

    .proceso-compra{
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        align-items: center;
        align-content: center;
        box-sizing: border-box;
    }
    .form-group input {
        padding: 13px 0; 
    }
 
    .container-pasoTres .resumen-pedido{
        width: 100%;
    }
    .resumen-datos {
        padding: 20px 0;
        width: 100%;
        box-shadow: none;
    }

    .container-pasoTres .columna-izquierda{
        width: 100% !important;
    }

    .container-pasoTres {
        padding: 0;
        width: 90%;
        margin: 0 auto;
    }

    .boton-anterior, .boton-confirmar {
        background-color: gray;
        color: white;
        padding: 5px 10px;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
}

/*Aviso de envío y pago*/

.aviso-envio {
    font-size: 17px;
    color: #555;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    display: block;
    width: fit-content;
    margin-bottom: 2em;
    transition: all 0.3s ease-in-out;
}

.aviso-envio:hover{
    cursor: pointer;
    background-color: #007bff; 
    color: #fff; 
    transform: scale(1.03);
}

.aviso-envio i{
    color: #007bff;
}