/* ============ Botones ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  border-radius: var(--border-radius, 12px);
  background: var(--button-color, var(--primary-color));
  color: #fff;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .92; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--button-color, var(--primary-color));
  color: var(--button-color, var(--primary-color));
}
.btn-secondary {
  background: var(--secondary-color);
  color: #fff;
}
[data-button-style="outline"] .btn:not(.btn-outline) {
  background: transparent;
  border-color: var(--button-color, var(--primary-color));
  color: var(--button-color, var(--primary-color));
}
[data-button-style="rounded"] .btn { border-radius: 999px; }

/* ============ Navbar ============ */
.navbar {
  background: var(--navbar-color, #fff);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
}
.navbar-brand img { height: 40px; width: auto; border-radius: 8px; }
.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
}
.navbar-links a:hover { color: var(--primary-color); }
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  padding: 4px;
}
.navbar-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 20px 18px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.navbar-mobile a { padding: 10px 0; font-weight: 600; }
.navbar-mobile.is-open { display: flex; }

@media (max-width: 860px) {
  .navbar-links { display: none; }
  .navbar-toggle { display: inline-flex; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.55));
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; }
.hero.no-image { color: var(--text-color); }
.hero.no-image .hero-content { color: inherit; }
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}
.hero p { font-size: clamp(16px, 2.4vw, 20px); margin-bottom: 32px; opacity: .95; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ Secciones ============ */
.section { padding: 72px 0; }
.section-alt { background: var(--section-alt-background, #f9fafb); }
.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
}
.section-subtitle {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
  opacity: .8;
  font-size: 17px;
}

/* ============ Cards ============ */
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: #fff;
  border-radius: var(--border-radius, 12px);
  overflow: hidden;
  box-shadow: var(--card-shadow, 0 2px 12px rgba(0,0,0,.08));
  display: flex;
  flex-direction: column;
}
.card-image-wrap { aspect-ratio: 4/3; overflow: hidden; background: #f1f1f1; position: relative; }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent-color, #f59e0b);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 18px; font-weight: 700; }
.card-desc { font-size: 14px; opacity: .78; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-current { font-size: 20px; font-weight: 800; color: var(--primary-color); }
.price-old { font-size: 14px; text-decoration: line-through; opacity: .55; }

/* ============ Sobre nosotros ============ */
.about-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
.about-grid img { border-radius: var(--border-radius, 12px); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ============ Contacto ============ */
.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.contact-item {
  background: #fff;
  border-radius: var(--border-radius, 12px);
  padding: 22px;
  box-shadow: var(--card-shadow, 0 2px 12px rgba(0,0,0,.08));
}
.contact-item strong { display: block; margin-bottom: 6px; font-size: 15px; }
.contact-map { margin-top: 32px; border-radius: var(--border-radius, 12px); overflow: hidden; }
.contact-map iframe { width: 100%; height: 320px; border: none; display: block; }

/* ============ Footer ============ */
.site-footer { background: var(--footer-color, #111827); color: #fff; padding: 48px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.footer-brand img { height: 36px; border-radius: 8px; }
.footer-socials { display: flex; gap: 14px; margin-top: 14px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.footer-copy { margin-top: 32px; font-size: 13px; opacity: .6; text-align: center; }

/* ============ WhatsApp flotante ============ */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  background: #25D366; color: #fff;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
