*{
    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;
}


.w{
    display: flex;
    align-items: center;
    gap: 8px;
}

.w img{
    width: 20px;
    height: 20px;
}

.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;
}

#portada{
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider{
    width: 100%;
    height: 100%;
    position: relative;
}

.slide{
    width: 100%;
    height: 150%;
    object-fit: cover;

    position: absolute;
    top: 0;
    left: 0;

    display: none;
}

.slide.activo{
    display: block;
}

.anterior, .siguiente{
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    background: rgba(0,0,0,0.5);

    color: white;

    border: none;

    font-size: 30px;

    padding: 15px;

    cursor: pointer;

    z-index: 100;
}

.anterior{
    left: 20px;
}

.siguiente{
    right: 20px;
}



#acerca-de {
    width: 85%;
    margin: 0 auto;
    padding: 80px 0;
}

#acerca-de h2{
     text-align: center;
    font-size: 45px;
    color: #233897;
    margin-bottom: 40px;
}

#acerca-de p{
      font-size: 18px;
    line-height: 1.8;
    color: #595a63;
    margin-bottom: 20px;
    text-align: justify;
}



#imagenes{
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    min-height: 10vh;
}

.galeria{
    display: flex;
    width: max-content;
    gap: 30px;
    animation: slide 30s linear infinite;
}

.galeria img{
    width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 0px;
}

.galeria img:hover {
transform: scale(1.1);
}

@keyframes slide{
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(-50%);
    }
}

.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;    
}

#info{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0; 
}

#info img{
    width: 100%;
    height: auto;
    display: block;
}


#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);
}

.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);
}

footer{
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
}

