:root {
  --bg: #fdfcfb;
  --bg-alt: #f4effa;
  --card: #ffffff;
  --card-border: #ece6f4;
  --text: #2c2a3a;
  --text-dim: #8b8794;
  --accent: #ff7a59;
  --accent-soft: #ffe4da;
  --lavender: #ded4f7;
  --mint: #cdeee0;
  --sky: #cfe4fb;
  --whatsapp: #2fbf71;
  --radius: 18px;
  --max-width: 1200px;
  --shadow-sm: 0 2px 10px rgba(44, 42, 58, 0.06);
  --shadow-md: 0 12px 30px rgba(44, 42, 58, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 251, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-filters {
  border-top: 1px solid var(--card-border);
  overflow-x: auto;
}
.header-filters .filters {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 24px;
  justify-content: center;
  flex-wrap: nowrap;
}
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-right: auto;
  color: var(--text);
}
.logo span { color: var(--accent); }
.main-nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.main-nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #ff6a45; box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--card-border); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: #27a862; box-shadow: var(--shadow-md); }
.header-cta { padding: 9px 18px; }

/* Hero */
.hero {
  padding: 28px 24px;
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, var(--sky), transparent 60%),
    radial-gradient(ellipse 55% 45% at 90% 0%, var(--lavender), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, var(--mint), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--card-border);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}
.hero-text { max-width: 560px; }
.hero-kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.hero-sub { color: var(--text-dim); font-size: 0.92rem; margin: 8px 0 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-collage {
  position: relative;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-single-img {
  height: 100%;
  max-width: 260px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: var(--shadow-md);
  object-fit: contain;
}
.hero-photo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  padding: 0;
  background: none;
  object-fit: contain;
  border-radius: var(--radius);
}

/* Catalogo */
.catalogo { padding: 18px 0 60px; }
.catalogo h2, .contacto h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); text-align: center; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 30px 0 44px;
}
.filter-btn {
  background: #fff;
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all .15s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-sm); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-image {
  background: linear-gradient(160deg, #fbf9ff, #ffffff);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.card-image img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-line {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
}
.card-name { font-size: 1.25rem; font-weight: 800; }
.card-tagline { color: var(--text-dim); font-size: 0.9rem; flex: 1; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.pill {
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.pill-ruta { background: #dbe9fd; border-color: #bcd7fb; color: #2f66c2; }
.pill-tt { background: #ece2fb; border-color: #d8c6f7; color: #7a45cf; }
.pill-gravel { background: #e2f3e0; border-color: #c6e7c2; color: #3f8a3a; }
.pill-montana { background: #fbe6db; border-color: #f6cdb4; color: #c15a26; }

.filter-btn.filter-ruta.active { background: #2f66c2; border-color: #2f66c2; }
.filter-btn.filter-tt.active { background: #7a45cf; border-color: #7a45cf; }
.filter-btn.filter-gravel.active { background: #3f8a3a; border-color: #3f8a3a; }
.filter-btn.filter-montana.active { background: #c15a26; border-color: #c15a26; }

.pill-ruedas { background: #dbe9fd; border-color: #bcd7fb; color: #2f66c2; }
.pill-horquillas { background: #fbe6db; border-color: #f6cdb4; color: #c15a26; }
.pill-manubrios { background: #ece2fb; border-color: #d8c6f7; color: #7a45cf; }
.pill-asientos { background: #e2f3e0; border-color: #c6e7c2; color: #3f8a3a; }

.filter-btn.filter-ruedas.active { background: #2f66c2; border-color: #2f66c2; }
.filter-btn.filter-horquillas.active { background: #c15a26; border-color: #c15a26; }
.filter-btn.filter-manubrios.active { background: #7a45cf; border-color: #7a45cf; }
.filter-btn.filter-asientos.active { background: #3f8a3a; border-color: #3f8a3a; }

/* Componentes */
.componentes { padding: 60px 0; }
.componentes h2 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.componentes-sub { text-align: center; color: var(--text-dim); max-width: 560px; margin: 0 auto 10px; }
.componentes .filters { margin: 24px 0 34px; }

.grid-components { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.component-card .card-image { aspect-ratio: 4/3; background: #fff; }
.component-specs { margin: 6px 0 12px; }
.component-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  padding: 6px 0;
  border-top: 1px solid var(--card-border);
}
.component-spec-label { color: var(--text-dim); flex: 0 0 auto; }
.component-spec-value { color: var(--text); font-weight: 600; text-align: right; }
.component-consult { justify-content: center; margin-top: auto; }

/* Nosotros / Tecnologia */
.section-kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  text-align: center;
  margin-bottom: 6px;
}
.nosotros, .tecnologia { padding: 60px 0; }
.nosotros h2, .tecnologia h2 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 40px; }
.tecnologia { background: var(--bg-alt); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }

.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.nosotros-block h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.nosotros-block p { color: var(--text-dim); font-size: 0.94rem; }

.tech-diagram {
  position: relative;
  max-width: 720px;
  margin: 0 auto 50px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.tech-diagram img { width: 100%; }
.tech-callout {
  position: absolute;
  background: var(--accent-soft);
  color: #b8481f;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 8px 14px;
  border-radius: 10px;
  line-height: 1.25;
  max-width: 150px;
  text-align: center;
}
.callout-1 { top: 12%; right: 6%; }
.callout-2 { top: 42%; left: 4%; }
.callout-3 { top: 66%; right: 10%; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 50px;
}
.tech-block {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.tech-block h3 { color: var(--accent); font-size: 1.1rem; margin-bottom: 10px; letter-spacing: 0.5px; }
.tech-block p { color: var(--text-dim); font-size: 0.92rem; }

.tech-tiers { max-width: 900px; margin: 0 auto; }
.tech-tier-labels {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding: 0 4px;
}
.tech-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.tech-badge {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tech-badge small { font-weight: 500; color: var(--text-dim); font-size: 0.7rem; }

@media (max-width: 640px) {
  .tech-callout { position: static; display: inline-block; margin: 4px; }
  .tech-diagram { display: flex; flex-direction: column; }
}

/* Contacto */
.contacto {
  background: var(--bg-alt);
  padding: 80px 0;
  border-top: 1px solid var(--card-border);
}
.contacto-inner { text-align: center; }
.contacto-text p { color: var(--text-dim); max-width: 560px; margin: 12px auto 30px; }
.contacto-cards { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-card strong { display: block; font-size: 0.95rem; color: var(--text); }
.contact-card span { color: var(--text-dim); font-size: 0.88rem; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 28px;
  color: var(--text-dim);
  font-size: 0.85rem;
  background: var(--bg);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 42, 58, 0.35);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-md);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.modal-image {
  background: linear-gradient(160deg, #fbf9ff, #ffffff);
  padding: 20px;
}
.modal-body { padding: 26px 30px 34px; }
.modal-line { color: var(--accent); font-weight: 700; letter-spacing: 1px; font-size: 0.78rem; text-transform: uppercase; }
.modal-name { font-size: 2rem; font-weight: 800; margin: 4px 0 6px; }
.modal-tagline { color: var(--text-dim); margin-bottom: 22px; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.spec-item { border-top: 2px solid var(--card-border); padding-top: 10px; }
.spec-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}
.spec-value { font-size: 0.95rem; font-weight: 600; color: var(--text); }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.swatch {
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 110px;
  position: relative;
}
.color-swatch:hover { z-index: 30; }
.color-swatch-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #fbf9ff, #ffffff);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
  transform-origin: center;
}
.color-swatch-img img { width: 100%; height: 100%; object-fit: contain; }
.color-swatch:hover .color-swatch-img {
  transform: scale(2.6);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.color-swatch span {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.2;
}

.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

@media (min-width: 720px) {
  .modal-inner-flex { display: flex; }
  .modal-image { flex: 0 0 340px; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 100%; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-collage { height: 200px; margin-top: 12px; }
  .header-filters .filters { justify-content: flex-start; }
}
