/* Estilos básicos */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f9;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background: #0077b6;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

/* Navigation */
nav {
  background: #023e8a;
}

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

.menu li {
  position: relative;
}

.menu li a {
  display: block;
  padding: 1rem 1.5rem;
  color: white;
  text-decoration: none;
}

.menu li a:hover {
  background: #0077b6;
}

/* Dropdown */
.dropdown:hover .submenu {
  display: block;
}

.submenu {
  display: none;
  position: absolute;
  background: #023e8a;
  list-style: none;
  padding: 0;
  margin: 0;
  top: 100%;
}

.submenu li a {
  padding: 0.8rem 1.5rem;
  white-space: nowrap;
}

/* Main content */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

section {
  margin-bottom: 2rem;
}

h2 {
  color: #0077b6;
}

/* Brands / bloques de fondo */
.brand {
  background: #caf0f8;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
}

/* Footer */
footer {
  background: #023e8a;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* Galería de fotos */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.gallery img {
  width: 220px;
  height: 150px;
  border-radius: 10px;
  object-fit: contain;     /* la imagen entra completa */
  background-color: #ffffff; /* fondo blanco uniforme */
  padding: 5px;            /* margen interno opcional */
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Productos */
.products {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 1rem;
  justify-content: center;
}

.product {
  flex: 1 1 250px;
  background: #e0f7fa;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.product img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.product h3 {
  margin: 0.5rem 0;
  color: #0077b6;
}

/* Botón de contacto */
.brand a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #0077b6;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.brand a:hover {
  background-color: #023e8a;
}

