* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

img {
    max-width: 100%;
    border: 5px solid black; /* Añadir borde negro a todas las imágenes */
    border-radius: 10px; /* Bordes redondeados para todas las imágenes */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background-color: rgb(0,23,93);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    min-height: 70vh;
    padding: 120px 0 0 0;
}

.menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;  
}

.menu .navbar ul li {
    position: relative;
    float: left;
}

.menu .navbar ul li a {
    font-size: 20px;
    padding: 15px;
    color: whitesmoke;
    display: block;
    font-weight: 600;
}

.menu .navbar ul li a:hover {
    color: rgb(0, 0, 0);
}

.menu label {
    cursor: pointer;
}

.header-content {
    display: flex;
    align-items: center;
}

.header-txt {
    flex-basis: 50%;
    margin-right: 10px;
    margin-left: 35px;
}

.header-txt h1 {
    font-size: 55px;
    line-height: 1.2;
    color: whitesmoke;
    margin-bottom: 25px;
}

p {
    font-size: 20px;
    color: white;
    margin-bottom: 50px;
}

.btn-1 {
    display: inline-block;
    padding: 13px 45px;
    background-color: rgb(255, 255, 255);
    color: black;
    font-size: 17px;
    border-radius: 25px;
    margin-bottom: 150px;
}

.header-img {
    flex-basis: 50%;
    margin-bottom: 150px;
}

.mercado-content .container {
    text-align: center;
}

h2 {
    font-size: 45px;
    color: whitesmoke;
    margin-bottom: 15px;
}

.mercado-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.mercado-1 {
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
    text-align: center;
    height: 100%;
}

.mercado-1 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px; /* Bordes redondeados para imágenes en productos */
}

.mercado-1 a.btn-1:hover {
    background-color: rgb(0, 156, 223);
}

.info {
    padding: 120px 0;
    background-color: rgb(0,23,93);
    position: relative;
}

.info-group {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
    overflow: hidden;
    height: 700px; /* Aumenta la altura de la sección */
}

.info-group img {
    width: 90%;
    height: 700px; /* Aumenta la altura de las imágenes */
    object-fit: cover;
    border-radius: 10px; /* Bordes redondeados para imágenes en info */
}

.info-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    max-width: 80%;
    width: auto;
    box-sizing: border-box;
    border-radius: 10px;
}

.info-content h2 {
    font-size: 30px;
    margin-bottom: 15px;
}

.info-content p {
    font-size: 16px;
}

.footer {
    background-color: black;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding: 2%;
}

.contact-links .contact-item {
    margin: 0;
    text-align: center;
    width: 100%;
}

.productos {
    background-color: rgb(0,23,93);
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .header-img img {
        width: 100%; /* Asegúrate de que la imagen ocupe todo el ancho del contenedor */
        max-width: none; /* Evita que se restrinja el tamaño máximo de la imagen */
        height: auto; /* Mantén las proporciones de la imagen */
    }

    .header-content {
        flex-direction: column; /* Cambia la disposición a columna para que imagen y texto se alineen verticalmente */
        align-items: center; /* Alinea el contenido en el centro */
        text-align: center; /* Centra el texto en pantallas pequeñas */
    }

    .header-txt {
        margin-left: 0; /* Elimina el margen lateral en pantallas pequeñas */
        margin-right: 0;
        width: 90%; /* Asegura que el texto no ocupe más del 90% del ancho disponible */
    }

    .header-txt h1 {
        font-size: 35px; /* Ajusta el tamaño de fuente del título para pantallas más pequeñas */
    }

    .header-txt p {
        font-size: 16px; /* Ajusta el tamaño de fuente del párrafo */
        margin-bottom: 20px;
    }

    .btn-1 {
        margin-bottom: 30px; /* Reduce el margen inferior del botón en móviles */
    }

    .info-group {
        height: 550px; /* Ajusta la altura para que se vea correctamente en móviles */
    }

    /* Ocultar la lista de navegación en pantallas pequeñas */
    .menu .navbar ul {
        display: none;
    }

    /* Ajuste para que el texto no sea más grande que las imágenes */
    .mercado-1, .info-content {
        max-width: 95%; /* Limita el ancho del texto a un máximo del 90% del contenedor */
        margin: 0 auto;
    }

    .mercado-1 h2, .info-content h2 {
        font-size: 10x; /* Ajusta el tamaño del texto de los títulos */
    }

    .mercado-1 p, .info-content p {
        font-size: 14px; /* Ajusta el tamaño del texto de los párrafos */
    }
}
