.logo{

    display: flex;
justify-content: center;

}

.menu{

    background-color: #00002e;
    overflow: hidden;
}


.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
 
}
.menu li {

    margin: 0 10px;
}
.menu li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    position: relative;
    font-family: helvetica;
}

.menu li a::after {
    content: '';
    display: block;
    width: 0;
    height: 1px; /* Grosor del subrayado */
    background: white; /* Color del subrayado */
    position: absolute;
    left: 50%;
    bottom: 5px; /* Espacio entre el texto y el subrayado */
    transition: width 0.3s, left 0.3s;
}
.menu li a:hover::after {
    width: 100%; /* Ancho completo del enlace */
    left: 0;
}

.Banner{
    display: flex;
    justify-content: center;


}

.about-us {
    position: relative;
    width: 100%; /* Ajusta el ancho según sea necesario */
    margin: auto; /* Centra la imagen en la página */
}
.cargoship {
    display: block;
    width: 100%;
    height: auto;
}
.cuadroaboutus {
    position: absolute;
    top: 15%; /* Ajusta la posición vertical según sea necesario */
    left: 25%; /* Ajusta la posición horizontal según sea necesario */
    right: 25%;
    background-color: white;
    color: black;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para el cuadro */
    padding: 60px; /* Márgenes internos del cuadro */
    
   
    
}

h2{
    display: flex;
    justify-content: center;
    color: #00002e; font-size: 40px; font-family: Helvetica;
}

p{
    display: flex;
    text-align: justify;
    color: #00002e; font-size: 24px; font-family: Helvetica;
    line-height: 1.5; /* Ajuste del interlineado */
}

.NuestrosProductos{

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px; /* Espacio entre las columnas */
    text-align: center; /* Centra el texto */
    padding: 20px;
    
}
.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* Centra el texto */
}

.item img {
    width: 100%;
    height: auto;
    max-width: 150px; /* Ajusta el tamaño máximo de la imagen */
    margin-bottom: 10px; /* Espacio entre la imagen y el texto */
}

.item p {
    margin: 0;
    font-size: 16px; /* Ajusta el tamaño de la fuente según sea necesario */
}


.whyus{

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* Espacio entre las columnas */
    text-align: center; /* Centra el texto */
    padding: 20px;
    
}

.whyus p {
    margin-left: 100px;
    margin-right: 100px;
    font-size: 16px; /* Ajusta el tamaño de la fuente según sea necesario */
    
}





.contacto{

background-color: #00002e;
color: white;
text-align: center; /* Centra el texto */

}

h3{

    display: flex;
    justify-content: center;
    font-size: 40px; font-family: Helvetica;
}
h4{

    font-family: Helvetica;
}

.contacto img{

    display: flex;
    justify-content: center;
    width: 100%;
    height: auto;
    

}

@media (max-width: 768px) {
    .menu ul {
        flex-direction: column;
    }

    .cuadroaboutus {
        top: 10px;
        left: 55px;
        right: 55px;
        width: auto;
        height: 80%;
        padding: 5px;
    }

    h2 {
        font-size: 16px;
    }

    p {
        font-size: 7px;
        text-align: center;
    }

    .NuestrosProductos {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    
    .whyus {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .whyus p {
        margin: 0 10px;
    }
}