*{
    margin: 0;
    padding: 0;
    box-sizing:border-box;
    font-family: "Arial", sans-serif;
}

body{
    line-height: 1.6;
}

header{
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.barra-superior{
    background-color: #d9d9d9;
    width: 100%;
    min-height: 40px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;

    font-size: 15px;
    color: #666;
    font-family: Arial, sans-serif;

    padding: 10px 20px;
    box-sizing: border-box;
}

.dato{
    white-space: nowrap;
}

.logo{
    font-size: 0.5rem;
    font-weight: bold;
    color: #333;
}

.nav-links{
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: 20px;
    margin-top: 1px;
}

.nav-links a{
    text-decoration: none;
    color: #333;
    font-weight: bold;
    margin-right: 1rem;
    margin-top: 1px;
}

.redes-sociales{
    display: flex;
    gap: 15px;
    margin-right: 10px;
    margin-top: 6px;

}
.btn-contacto{
    display:flex;
    gap: 15px;
    margin-right: 1px;
    background-color: #233897;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    margin-top: 0px;
    
}
.btn-contacto:hover{
    background-color: #1c244a;
}

.dropdown{
    position: relative;
}

.submenu{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    list-style: none;
    background: white;
    min-width: 220px;

    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.submenu li{
    width: 100%;
}

.submenu a{
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
}

.submenu a:hover{
    background-color: #233897;
    color: white;
}

.dropdown:hover .submenu{
    display: block;
}

.w{
    display: flex;
    align-items: center;
    gap: 8px;
}

.w img{
    width: 20px;
    height: 20px;
}


.whatsapp{
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
}

.whatsapp img{
    width: 70px;
    height: 70px;
    transition: 0.3s;
}

.whatsapp img:hover{
    transform: scale(1.1);
}

.titulo-productos{
    text-align: center;
    font-size: 43px;
    font-weight: 700;
    color: #202020;
    margin-bottom: 15px;
}

.titulo-productos::after{
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    background-color: #233897;
    margin: 15px auto 0;
}

#productos{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    margin: 0 ;
    padding: 60px;
    color: #595a63;
    background-color: #e6e6e6;
    box-sizing: border-box;
}

.producto{
    background: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
}

.producto h3{
    color: #233897;
}

.producto img{
    width: 90%;
    max-width: 450px;
    height: auto;
    object-fit: cover;    
}

#contacto{
    background-image: url("fondo pie.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    text-align: center;
    color: white;

    padding: 80px 20px;
    position: relative;
}

/* Capa oscura para mejorar lectura */
#contacto::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

#contacto *{
    position: relative;
    z-index: 1;
}

#contacto h2{
    font-size: 60px;
    margin-bottom: 40px;
    font-weight: bold;
}

#contacto p{
    font-size: 28px;
    margin: 25px 0;
}

.redes{
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.redes img{
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #000000;
    padding: 15px;
    transition: 0.3s;
}

.redes img:hover{
    transform: scale(1.1);
}

footer{
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
}


@media (max-width: 768px){

    .barra-superior{
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .encabezado{
        flex-direction: column;
        padding: 15px;
    }

    .logo img{
        width: 180px;
        height: auto;
    }

    .nav-links{
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin: 15px 0;
    }

    .redes-sociales{
        justify-content: center;
        margin: 15px 0;
    }

    .btn-contacto{
        margin: 15px auto;
    }

    #nosotros{
        width: 95%;
        padding: 40px 15px;
    }

    #nosotros h1{
        font-size: 32px;
    }

    #nosotros p{
        text-align: center;
        font-size: 16px;
    }

    #contacto h2{
        font-size: 38px;
    }

    #contacto p{
        font-size: 18px;
    }

    .redes{
        flex-wrap: wrap;
    }

    .redes img{
        width: 55px;
        height: 55px;
    }

    footer{
        padding: 15px;
        font-size: 14px;
    }
}

img{
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px){

    #productos{
        grid-template-columns: 1fr;
        padding: 20px;
    }

}