body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f8f8f8;
  color: #333;
}

main, .container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

header {
  background: #0fbe09;
  color: white;
  padding: 1rem;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

nav ul li a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #388e3c;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #2e7d32;
}

section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

section img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.grid-container,
#listings .grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

article,
#listings article {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

article:hover,
#listings article:hover {
  transform: translateY(-5px);
}

#listings article img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}

form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

label,
input,
textarea {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
}

input,
textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

footer {
  background-color: #0fbe09;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-item {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 1rem;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem;
  cursor: pointer;
  opacity: 0.7;
  z-index: 1;
}

.carousel-button.left {
  left: 10px;
}

.carousel-button.right {
  right: 10px;
}

/* === RUTAS / UBICACIÓN === */
#routes {
  padding: 2rem;
  background-color: #f9f9f9;
  border-top: 1px solid #ddd;
}

#routes h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #333;
}

#routes ul {
  margin-bottom: 1.5rem;
  padding-left: 1.2rem;
}

#routes li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

/* === GALERÍA DE IMÁGENES === */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.gallery-container img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-container img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li a {
    width: 100%;
    text-align: center;
  }

  .carousel-item {
    padding: 0.5rem;
  }

  .gallery-container img {
    width: 100%;
    max-width: 320px;
  }

  section {
    padding: 1rem;
  }

  footer {
    font-size: 12px;
    padding: 1rem;
  }
}
