:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #14181f;
  --muted: #5b6572;
  --line: #e4e7ec;
  --accent: #ff4d00;
  --accent-ink: #ffffff;
  --accent-2: #1f5cff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 24, 31, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; line-height: 1.1; }

/* Header */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }

.logo { width: 38px; height: 38px; color: var(--accent); }

.brand span { color: var(--accent); }

.nav { display: flex; gap: 22px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--ink); }

.cta {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 24px;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.hero-tag {
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
.hero h1 span { color: var(--accent); }

.hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 30ch; margin: 18px 0 26px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px rgba(255, 77, 0, 0.3); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }

.hero-bike {}
.hero-bike svg { width: 100%; max-width: 480px; height: auto; filter: drop-shadow(0 20px 40px rgba(255, 77, 0, 0.18)); }

/* Loading skeleton */
.skeleton { position: relative; overflow: hidden; background: #e9edf2; color: #c7d0db; }
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skeleton svg { width: 55%; opacity: 0.6; }

.product-img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(16px, 6vw, 48px); }

.section h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 8px; }

.section-sub { color: var(--muted); margin: 0 0 28px; }

.section-alt { max-width: none; background: var(--surface); border-top: 1px solid var(--line); }

/* Nosotros */
.nosotros-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; margin-top: 24px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }

.card h3 { margin-bottom: 8px; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.fact span { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.fact strong { font-size: 1.05rem; }

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.product:hover { transform: translateY(-4px); }

.product .thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 0; overflow: hidden; background: #eef1f5; }
.product .thumb svg { width: 100%; height: 100%; }

.product .meta { padding: 16px 18px 18px; }
.product .meta h3 { font-size: 1.05rem; margin-bottom: 4px; }
.product .meta p { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; }
.product .price { font-weight: 800; font-size: 1.1rem; color: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }

.contact-info p { margin: 0 0 14px; font-size: 1.05rem; }
.contact-info a { color: var(--accent-2); font-weight: 600; }
.hours { color: var(--muted); }
.hours::before { content: "🕐 "; }

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input, .contact-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent-2); border-color: transparent; }
.contact-form textarea { resize: vertical; }

.form-msg { min-height: 1.2em; margin: 0; color: #16803c; font-weight: 600; }

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px clamp(16px, 6vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-bike { order: -1; }
  .hero-bike svg { max-width: 360px; margin: 0 auto; display: block; }
  .nosotros-grid, .contact-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}