/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== General ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f0f4f8, #d9e4ec);
  color: #2c3e50;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #2c3e50;
  color: white;
  padding: 20px;
  text-align: center;
}

h1 {
  font-size: 1.8rem;
}

.container {
  flex: 1;
  width: 90%;
  max-width: 1100px;
  margin: 20px auto;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: visible;
}

h2 {
  margin: 20px 0;
  text-align: center;
  font-size: 1.3rem;
  color: #34495e;
}

/* ===== Filters ===== */
.filters {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
}

select, input, button {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
position: relative;
  z-index: 10;
}

select:focus, input:focus {
  border-color: #2980b9;
  box-shadow: 0 0 5px rgba(41,128,185,0.4);
}

/* ===== Search ===== */
.search {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 10px;
  flex-wrap: wrap;
}

.search input {
  flex: 1;
  min-width: 250px;
}

button {
  background: #2980b9;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #1f6391;
}

/* ===== Results ===== */
#resultados {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.card {
  background: #fdfdfd;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-3px);
}

.card strong {
  font-size: 1.1rem;
  color: #2c3e50;
}

.card p {
  margin: 5px 0;
  color: #555;
}

.card a {
  display: inline-block;
  margin: 5px 5px 0 0;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.card a[href*="wa.me"] {
  background: #25D366;
  color: white;
}

.card a[href*="wa.me"]:hover {
  background: #1ebe5b;
}

.card a[href*="tel:"] {
  background: #34495e;
  color: white;
}

.card a[href*="tel:"]:hover {
  background: #2c3e50;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 15px;
  background: #2c3e50;
  color: white;
  font-size: 0.9rem;
}
