* { box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; margin: 0; background: #f8f9fa; }

/* ====================== HEADER ====================== */
.topbar {
  background: #6a1b9a;     /* Morado Premium */
  color: white; 
  padding: 12px 15px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  flex-wrap: wrap;
}

.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-img { 
  width: 70px; 
  height: 70px; 
  object-fit: contain; 
  border-radius: 8px;
}

.actions a {
  color: white;
  padding: 10px 16px;
  margin-left: 8px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}
.actions a:hover { 
  background: #9c27b0; 
  color: white; 
}

/* ====================== HERO ====================== */
.hero {
  background: linear-gradient(#6a1b9a, #8e24aa); 
  color: white; 
  text-align: center; 
  padding: 50px 20px;
}

/* ====================== BUSCADOR Y FILTROS ====================== */
.search-bar { 
  text-align: center; 
  padding: 20px; 
  background: white; 
}
.search-bar input { 
  width: 90%; 
  max-width: 500px; 
  padding: 14px; 
  font-size: 1.1rem; 
  border: 1px solid #ddd; 
  border-radius: 8px; 
}

.filtros { 
  text-align: center; 
  padding: 15px; 
  background: white; 
}
.filtros button { 
  margin: 5px; 
  padding: 10px 18px; 
  border: none; 
  border-radius: 8px; 
  background: #6a1b9a; 
  color: white; 
  cursor: pointer; 
}
.filtros button:hover {
  background: #9c27b0;
}

/* ====================== CATÁLOGO ====================== */
.catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}
.card {
  background: white; 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.card:hover { 
  transform: translateY(-8px); 
}
.card img { 
  width: 100%; 
  height: 220px; 
  object-fit: cover; 
}
.card-content { 
  padding: 15px; 
}
.precio { 
  font-size: 1.7rem; 
  font-weight: bold; 
  color: #9c27b0; 
  margin: 10px 0; 
}

.btn-wa {
  display: block;
  background: #9c27b0;
  color: white;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 10px;
  font-weight: bold;
}

/* ====================== FINANCIAMIENTO Y MODAL ====================== */
.finance { 
  padding: 25px; 
  background: white; 
  margin: 20px; 
  border-radius: 12px; 
  text-align: center; 
}
.finance input { 
  display: block; 
  width: 100%; 
  max-width: 400px; 
  margin: 10px auto; 
  padding: 12px; 
}

.modal { 
  display: none; 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.8); 
  z-index: 1000; 
}
.modal-content { 
  background: white; 
  margin: 5% auto; 
  padding: 20px; 
  width: 90%; 
  max-width: 700px; 
  border-radius: 12px; 
}

/* ====================== BOTÓN FLOTANTE ====================== */
.whatsapp-float {
  position: fixed; 
  bottom: 20px; 
  right: 20px; 
  background: #9c27b0; 
  color: white;
  width: 65px; 
  height: 65px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center;
  justify-content: center; 
  font-size: 32px; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
  z-index: 9999;
  text-decoration: none;
}

/* ====================== MAPA ====================== */
.mapa {
  padding: 25px;
  background: #fff;
  margin: 20px;
  border-radius: 12px;
}
.mapa iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 12px;
}