@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* Estilos generales */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    margin: 2px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    
    
}

#loadingOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Fondo blanco semitransparente */
    z-index: 1000; /* Asegúrate de que esté por encima de otros elementos */
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    text-align: center;
    font-size: 1.5rem;
    color: #001e62;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.container-main {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
}

/* Header */
.containerHeader {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.containerHeader h2 {
    color: #001e62;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

/* Formularios y botones */
input[type="text"], .btn {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

.btn {
    background-color: #081c74;
    border: 3px solid #fe5000; 
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.btn:hover {
    background-color: #fff;
    border: 3px solid #fe5000; 
    color: #fe5000;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.row > div {
    flex: 1;
    padding: 5px;
    box-sizing: border-box;
}

/* Contenedores de Pickup */
#containerPickup {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

#map {
    border-radius: 8px;
    overflow: hidden; /* Asegura que el contenido dentro del mapa no se salga del borde redondeado */
    height: 100%;
}

#infoPickup {
    background-color: #ffffff;
    color: #333;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    flex: 0 1 30%;
    height: 55vh;
}

.pickup-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pickup-item:hover {
    background-color: #f1f1f1;
}

.pickup-item h4 {
    margin: 0;
    font-size: 1.2rem;
}

.pickup-details {
    padding: 10px;
    background-color: #f9f9f9;
    margin-top: 10px;
    border-radius: 5px;
    display: none;
}

#containerMapa {
    background-color: #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 0 1 65%;
    height: 100%;
}

/* Modal */
/* Modal */
.modal-dialog {
    display: flex;
    justify-content: center; /* Centra el modal horizontalmente */
    align-items: center; /* Centra el modal verticalmente */
    min-height: 100vh; /* Asegura que el modal tome al menos el 100% de la altura de la pantalla */
}

.modal-content {
    border-radius: 8px;
    max-width: 80%; /* Ajusta el ancho máximo del modal */
    margin: 0 auto; /* Asegura que el modal esté centrado */
}

.modal-header {
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #001e62;
    color: white;
    padding: 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.btnClose {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btnClose:hover {
    color: red;
}

.modal-body {
    padding: 20px;
    background-color: #f5f7fa;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


/* Contenedor de la Data de la Tienda */
.containerDataTienda {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.containerDataTienda > div {
    display: flex;
    flex-direction: column;
}

.containerDataTienda > div > div:first-child {
    font-weight: 600;
    margin-bottom: 5px;
}

/* Horarios de la tienda */
.containerHorarioTienda table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.containerHorarioTienda th, .containerHorarioTienda td {
    border: 1px solid #ced4da;
    padding: 8px;
    text-align: center;
    background-color: white;
}

.containerHorarioTienda th {
    background-color: #e9ecef;
    font-weight: 600;
}

/* Responsividad */
@media (max-width: 768px) {
    .container-main {
        width: 100%;
        height: 100%;
        padding: 10px;
        display: flex;
        flex-direction: column;
    }

    #containerMapa {
        flex: 0 1 auto; /* Ensures the map takes up the necessary space */
        width: 100%;    /* Make sure the map takes the full width of the container */
        height: 30vh;   /* Adjust the height of the map */
        margin-bottom: 10px; /* Space between the map and the pickup points */
    }

    #infoPickup {
        flex: 0 1 auto;
        max-height: none;
        width: 100%; /* Ensure the pickup info also takes full width */
        display: flex; /* Switches to flex layout for pickup items */
        flex-wrap: wrap; /* Allow wrapping of items */
        justify-content: space-around; /* Space items evenly */
        gap: 10px; /* Space between items */
        order: 2; /* Make sure this div comes after the map */
        margin-bottom: 20px; /* Bottom spacing */
    }

    .pickup-item {
        flex: 0 1 100%; /* Adjusts item width to 45% so two items appear per row */
        text-align: center; /* Center the text of each item */
    }

    .containerHeader h2 {
        color: #001e62;
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0 auto;
        text-align: center;
        width: 100%;
    }
    
}
