/* Diseño general */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #333;
}

header {
  background-color: #00695c;
  color: white;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #004d40;
  color: white;
  margin-top: 2rem;
}

/* Cuadrícula de tarjetas */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

/* Tarjetas individuales */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* Se adapta al grid */
  min-height: 360px; /* Asegura misma altura */
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.02);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}
.card-content h3 {
  margin: 0;
  color: #00796b;
}

.card-content p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.card-content button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #009688;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.card-content button:hover {
  background-color: #00796b;
}

/* Mapa */
#mapa {
  width: 100%;
  height: 500px;
  max-width: 1200px;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
