* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  background-color: #fff;
  border-bottom: 2px solid #ccc;
  flex-wrap: wrap;
}

.logo img {
  height: 70px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.nav button {
  background: none;
  border: none;
  color: #333;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.nav button:hover {
  text-decoration: underline;
}

.fabricantes {
  color: #002366;
  font-weight: bold;
  font-size: 18px;
  margin-top: 10px;
}

/* MAIN BACKGROUND */
.main .background {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  font-size: x-large;
}

.background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(70%);
}

.overlay-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px;
}

.nav button {
  background: none;
  border: none;
  color: #002366; /* Azul marino */
  font-weight: bold;
  margin: 0 10px;
  cursor: pointer;
  font-size: 16px;
}
.overlay-logo img {
  height: 200px;
}

/* SECCIONES */
.seccion {
  display: none;
  padding: 30px;
  background: #f5f5f5;
  font-size: 20px;
}

.seccion img {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 20px auto;
}

/* GALERÍA */
.galeria {
  background: #f2f2f2;
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.galeria img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.galeria img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* FOOTER */
.footer {
  background-color: #002366;
  color: #fff;
  padding: 50px 20px;
  text-align: center;
  font-size: 18px;
}

.contacto h3 {
  margin-bottom: 10px;
}

.contacto p {
  margin: 10px 0;
}

.whatsapp,
.ubicacion,
.facebook {
  display: inline-block;
  text-decoration: none;
  margin-top: 13px;
}

.whatsapp {
  color: #25D366;
  font-weight: bold;
}

.whatsapp:hover,
.ubicacion:hover {
  text-decoration: underline;
}

/* OTRAS CLASES */
.card {
  background-color: #1e1e1e;
  border-radius: 20px;
  width: 300px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.mampara {
  background-color: #5e2ca5;
  height: 180px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.image-placeholder img {
  width: 60px;
  opacity: 0.7;
}

main p {
  text-align: center;
}

h2 {
  text-align: center;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .overlay-logo img {
    height: 150px;
  }

  .galeria img {
    max-width: 45%;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 15px;
  }

  .nav {
    flex-direction: column;
    gap: 8px;
    
  }

  .logo img {
    height: 50px;
  }

  .fabricantes {
    font-size: 16px;
  }

  .overlay-logo img {
    height: 100px;
  }

  .background {
    height: 400px;
  }

  .galeria img {
    max-width: 100%;
  }

  .footer {
    font-size: 16px;
  }
}
