* {
  margin: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  line-height: 1.8;
}

header {
  background-color: #BB4545;
  color: white;
  text-align: center;
  padding: 2rem 0;
  animation: slideIn 1s ease;
}

nav {
  background-color: #333;
  color: white;
  padding: 1rem 0;
  width: 100%;
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 3;
}

nav ul {
  width: 100%;
  list-style-type: none;
  padding: 0;
  display: flex;
        flex-direction: row;
        flex-wrap: wrap;

        justify-content: center;
        gap: 1rem;
}

nav ul li {
  display: inline;
  margin: 0 15px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;

}

nav a:hover {
  color: #BB4545;
}

main {
  max-width: 800px;
  margin: 1rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

section {
  margin-bottom: 20px;
}

h2 {
  color: #BB4545;
}

h3 {
  color: #333;
  margin-top: 20px;
}

.img-responsive {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 10px;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #333;
  color: white;
  position: relative;
  bottom: 0;
  width: 100%;
}

.fade-in {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.slide-in {
  animation: slideIn 1s ease forwards;
  transform: translateY(-20px);
  opacity: 0;
}

@keyframes fadeIn {
  to {
      opacity: 1;
  }
}

@keyframes slideIn {
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

@media (max-width: 600px) {
  nav ul li {
      display: block;
      margin: 5px 0;
  }

  nav ul {
      text-align: center;
  }
  
  header h1 {
      font-size: 1.5em;
  }

  main {
      padding: 15px;
  }
}


/* Estilo para la galería Masonry */
.masonry-gallery {
  column-count: 3;
  column-gap: 1rem;
  max-width: 1200px;
  width: 100%;
  padding: 1rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.masonry-item:hover {
  transform: scale(1.05);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

footer {
  width: 100%;
  padding: 1rem;
  text-align: center;
  background-color: #333;
  color: white;
}

/* Responsividad para pantallas más pequeñas */
@media (max-width: 768px) {
  .masonry-gallery {
      column-count: 2;
  }
}

.flex-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(350px, 1fr)
  );
  gap: 10px;
}


/* General Styles */
#menu {
  text-align: center;
}

#menu h2 {
  text-align: left;

}

#menu p {
  text-align: left;
}

/* Grid Layout */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Menu Item Styles */
.menu-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s;
}

.menu-item:hover {
  transform: scale(1.05);
}

.menu-item i {
  font-size: 2.5em;
  color: #ff6b6b;
  margin-bottom: 10px;
}

.menu-item h3 {
  font-size: 1.5em;
  margin-bottom: 5px;
}

.menu-item p {
  font-size: 1em;
  color: #777;
}