/* ===================================================================
   MetroBlox Santiago — Landing Page CSS
   Blanco + líneas finas rojas, animaciones, responsive
   =================================================================== */

/* ====== Reset & base ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #e30613;
  --red-dark: #b50410;
  --ink: #0a0a0a;
  --paper: #fafafa;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.15);
  --muted: #6b6b6b;
  --muted-light: #999;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1280px;

  /* Metro lines */
  --l1: #e30613;
  --l2: #f4b300;
  --l3: #8b4a9c;
  --l4: #1ea1d8;
  --l4a: #5fc9e7;
  --l5: #008c5f;
  --l6: #92278f;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'SF Mono', Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: white;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--red); color: white; }

/* ====== Layout helpers ====== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }
.section { padding: 96px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--red); margin-bottom: 12px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--red);
}

.hairline {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--red) 8%, var(--red) 92%, transparent);
  margin: 32px 0;
}

.h-title {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.05;
  font-size: clamp(2.25rem, 5vw, 4rem);
}
.h-title .red { color: var(--red); }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: white; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 11px; }

/* ====== Navbar ====== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding: 16px 0; transition: padding 0.3s; }
.navbar.scrolled { padding: 8px 0; }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 10px 16px;
  border-radius: 16px; transition: all 0.3s;
}
.navbar.scrolled .navbar-inner {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 4px 24px -8px rgba(0,0,0,0.08);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 16px;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1; }
.brand-sub { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.nav-links { display: none; gap: 4px; }
.nav-links a {
  position: relative; padding: 8px 14px; font-size: 14px; color: #333;
  transition: color 0.15s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: none; }
.nav-cta .btn { height: 36px; padding: 0 16px; font-size: 11px; }
.menu-toggle {
  display: flex; width: 40px; height: 40px; border-radius: 999px;
  background: white; border: 1px solid var(--line); align-items: center; justify-content: center;
}
@media (min-width: 768px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 50; background: white;
  display: flex; flex-direction: column; padding: 24px;
  transform: translateX(100%); transition: transform 0.3s;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mobile-menu nav { display: flex; flex-direction: column; padding: 24px 0; gap: 4px; }
.mobile-menu nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  padding: 12px 0; border-bottom: 1px solid var(--line); transition: color 0.15s;
}
.mobile-menu nav a:hover { color: var(--red); }

/* ====== Hero ====== */
.hero {
  position: relative; min-height: 100vh; padding: 120px 0 96px;
  background: white; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask: radial-gradient(ellipse at 50% 30%, black 0%, black 40%, transparent 90%);
  -webkit-mask: radial-gradient(ellipse at 50% 30%, black 0%, black 40%, transparent 90%);
}
.hero-train {
  position: absolute; top: 130px; left: 0; pointer-events: none;
  display: flex; gap: 4px; align-items: center;
  animation: train-glide 9s linear infinite;
  animation-delay: 1s;
}
.hero-train .car { background: var(--red); height: 4px; border-radius: 2px; }
.hero-train .car.c1 { width: 64px; border-radius: 0 8px 8px 0; }
.hero-train .car.c2 { width: 48px; opacity: 0.8; }
.hero-train .car.c3 { width: 48px; opacity: 0.6; }
@keyframes train-glide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(110vw); }
}
.hero-content { position: relative; z-index: 10; }
.hero-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 24px; animation: fade-up 0.6s 0.2s both;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero-eyebrow span {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.25em; color: var(--muted);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.04em; line-height: 0.95;
  font-size: clamp(2.5rem, 9vw, 7rem); text-align: center; margin-bottom: 32px;
}
.hero h1 .line { display: block; animation: fade-up 0.8s both; }
.hero h1 .line:nth-child(1) { animation-delay: 0.3s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.5s; }
.hero h1 .line:nth-child(3) { animation-delay: 0.7s; color: var(--muted-light); }
.hero h1 .red {
  color: var(--red); position: relative; display: inline-block;
}
.hero h1 .red::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left;
  animation: scale-x 0.8s 1.1s both;
}
@keyframes scale-x { to { transform: scaleX(1); } }
.hero-subtitle {
  max-width: 640px; margin: 0 auto 40px; text-align: center;
  color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6; animation: fade-up 0.8s 0.6s both;
}
.hero-subtitle .red-text { color: var(--red); font-weight: 500; }
.hero-cta {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-bottom: 64px; animation: fade-up 0.8s 0.8s both;
}
@media (min-width: 640px) { .hero-cta { flex-direction: row; justify-content: center; } }

.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; max-width: 800px; margin: 0 auto;
  animation: fade-up 0.8s 1s both;
}
@media (min-width: 768px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stats .stat { background: white; padding: 24px; text-align: center; }
.hero-stats .stat .v { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; }
.hero-stats .stat .l { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em; margin-top: 4px; }

.hero-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 48px; animation: fade-up 0.8s 1.2s both;
}
.hero-chips .chip-label {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted-light);
  align-self: center; margin-right: 4px;
}
.hero-chips a {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px;
  background: white; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; color: #555;
  transition: all 0.2s;
}
.hero-chips a:hover { border-color: var(--red); box-shadow: 0 4px 12px -4px rgba(227,6,19,0.2); }
.hero-chips a .dot { width: 6px; height: 6px; border-radius: 50%; }
.hero-chips a .price { color: var(--muted-light); font-size: 10px; }

.hero-scroll {
  display: flex; justify-content: center; margin-top: 64px;
  animation: fade-up 0.8s 2s both;
}
.hero-scroll a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted-light); transition: color 0.2s;
  animation: bounce 2s infinite;
}
.hero-scroll a:hover { color: var(--red); }
.hero-scroll .label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; }

/* Marquee */
.marquee {
  position: absolute; bottom: 0; left: 0; right: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: white; overflow: hidden; padding: 12px 0;
}
.marquee-track { display: flex; animation: marquee 30s linear infinite; white-space: nowrap; }
.marquee-item {
  display: flex; align-items: center; gap: 8px; margin: 0 24px;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.3em; color: var(--muted-light);
}
.marquee-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Reveal-on-scroll (IntersectionObserver adds .revealed) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ====== Products section ====== */
.products { background: white; }
.products-header {
  display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px;
}
@media (min-width: 768px) {
  .products-header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  background: white; border: 1px solid var(--line-strong); color: #444;
  transition: all 0.2s;
}
.filter-pill:hover { border-color: var(--ink); }
.filter-pill.active { color: white; border-color: transparent; }
.filter-pill .dot { width: 6px; height: 6px; border-radius: 50%; }

.products-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  position: relative; background: white; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 20px 60px -20px rgba(227,6,19,0.18);
}
.product-card .top-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s;
}
.product-card:hover .top-bar { transform: scaleX(1); }
.product-card .badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.15em; padding: 4px 10px; border-radius: 999px; color: white;
}
.product-image {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background: #fafafa;
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.image-dots {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  display: flex; gap: 6px;
}
.image-dots button {
  height: 4px; flex: 1; border-radius: 999px; background: rgba(255,255,255,0.4);
  transition: background 0.2s;
}
.image-dots button.active { background: white; }
.image-dots button:hover { background: rgba(255,255,255,0.8); }

.product-body { padding: 20px; }
.product-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--muted); margin-bottom: 12px;
}
.product-meta .line-tag { display: inline-flex; align-items: center; gap: 6px; }
.product-meta .line-tag .dot { width: 8px; height: 8px; border-radius: 50%; }
.product-name {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  line-height: 1.2; margin-bottom: 8px;
}
.product-desc {
  font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.product-specs .spec .l { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-light); margin-bottom: 2px; }
.product-specs .spec .v { font-size: 14px; font-weight: 600; }
.product-price { display: flex; flex-direction: column; margin-bottom: 12px; }
.product-price .old { font-size: 12px; color: var(--muted-light); text-decoration: line-through; }
.product-price .now { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; height: 44px; font-size: 11px; padding: 0 12px; }
.product-quick { display: block; width: 100%; height: 36px; text-align: center; padding-top: 10px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); transition: color 0.15s; }
.product-quick:hover { color: var(--red); }

/* ====== 3D Modal ====== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative; background: white; width: 100%; max-width: 1000px;
  height: 85vh; border-radius: 24px; overflow: hidden;
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .modal { grid-template-columns: 1fr 320px; } }
.modal-3d { position: relative; background: #fafafa; min-height: 300px; }
.modal-side {
  padding: 32px; overflow-y: auto; background: white;
  border-left: 1px solid var(--line);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 36px; height: 36px; border-radius: 999px; background: rgba(0,0,0,0.05);
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.modal-close:hover { background: rgba(0,0,0,0.1); }
.modal-side h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.modal-side .modal-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.modal-side .modal-highlights { margin-bottom: 20px; }
.modal-side .modal-highlights li { display: flex; align-items: start; gap: 8px; font-size: 14px; margin-bottom: 8px; list-style: none; }
.modal-side .modal-highlights li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--red); margin-top: 8px; flex-shrink: 0; }
.modal-side .modal-price { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.three-canvas {
  width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(227,6,19,0.04), transparent 60%), linear-gradient(180deg, white, #fafafa);
}
.three-toolbar { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 10; }
.three-tool {
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.three-tool:hover { transform: scale(1.1); }
.three-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 12px;
  background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: #555;
  text-transform: uppercase; letter-spacing: 0.1em; pointer-events: none;
}
.three-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}
.three-loading .spinner {
  width: 40px; height: 40px; border: 2px solid var(--red); border-top-color: transparent;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ====== Metro Map ====== */
.metro-map { background: linear-gradient(to bottom, white, var(--paper), white); }
.map-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .map-grid { grid-template-columns: 1.3fr 1fr; } }
.map-canvas-wrap {
  position: relative; background: white; border: 1px solid var(--line);
  border-radius: 24px; overflow: hidden;
}
.map-canvas { position: relative; aspect-ratio: 1/1; background: white; }
.map-canvas svg { width: 100%; height: 100%; display: block; }
.map-overlay {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  max-width: 240px; pointer-events: none;
}
.map-overlay .label {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted);
}
.map-overlay .name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.map-overlay .endpoints { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.map-hint-bottom {
  position: absolute; bottom: 12px; right: 12px;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--muted-light); display: flex; align-items: center; gap: 6px;
}
.line-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; justify-content: center; }
.line-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  background: white; border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: #444; transition: all 0.2s;
}
.line-btn:hover { border-color: var(--ink); }
.line-btn.active { color: white; border-color: transparent; }
.line-btn .dot { width: 10px; height: 10px; border-radius: 50%; }
.line-btn .count { font-size: 9px; opacity: 0.8; }

.map-panel {
  background: white; border: 1px solid var(--line); border-radius: 24px;
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.map-panel .head { display: flex; align-items: center; gap: 12px; }
.map-panel .head .num {
  width: 32px; height: 32px; border-radius: 8px; color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
}
.map-panel .head .meta { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; }
.map-panel h3 { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.map-panel .endpoints { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.map-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.map-stats .stat { background: white; padding: 12px; text-align: center; }
.map-stats .stat .v { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.map-stats .stat .l { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-light); margin-top: 2px; }
.map-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }
.map-products-list { display: flex; flex-direction: column; gap: 8px; }
.map-product {
  display: flex; align-items: center; gap: 12px; padding: 8px;
  border-radius: 12px; transition: background 0.15s;
}
.map-product:hover { background: var(--paper); }
.map-product img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.map-product .info { flex: 1; min-width: 0; }
.map-product .name { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.map-product .meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.map-product .arrow {
  width: 32px; height: 32px; border-radius: 999px;
  background: white; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; flex-shrink: 0;
}
.map-product:hover .arrow { background: var(--red); border-color: var(--red); color: white; }
.no-products { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px; text-align: center; color: var(--muted); }
.no-products .icon { font-size: 32px; }
.map-section-title { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.stations-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.station-chip { font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: #444; }

/* ====== History ====== */
.history { background: #0a0a0a; color: white; position: relative; overflow: hidden; }
.history::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--red), transparent); opacity: 0.6; }
.history::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--red), transparent); opacity: 0.3; }
.history .glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px; border-radius: 50%; opacity: 0.2;
  background: radial-gradient(circle, var(--red) 0%, transparent 70%);
  pointer-events: none;
}
.history-content { position: relative; z-index: 1; }
.history-header { text-align: center; margin-bottom: 80px; }
.history-header .eyebrow { color: var(--red); justify-content: center; }
.history-header .eyebrow::after { content: ''; width: 24px; height: 1px; background: var(--red); }
.history-header h2 { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 16px; }
.history-header h2 .red { color: var(--red); }
.history-header p { max-width: 640px; margin: 0 auto; color: #999; line-height: 1.6; }

.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 16px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2) 10%, rgba(255,255,255,0.2) 90%, transparent);
}
@media (min-width: 768px) { .timeline::before { left: 50%; } }
.timeline-item { position: relative; display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
@media (min-width: 768px) { .timeline-item { grid-template-columns: 1fr 1fr; gap: 32px; } }
.timeline-item .dot {
  position: absolute; left: 16px; top: 8px; width: 16px; height: 16px;
  border-radius: 50%; border: 2px solid white; transform: translateX(-50%);
}
@media (min-width: 768px) { .timeline-item .dot { left: 50%; } }
.timeline-item .content { padding-left: 48px; }
@media (min-width: 768px) {
  .timeline-item .content { padding-left: 0; }
  .timeline-item.right .content { grid-column: 2; padding-left: 48px; }
  .timeline-item.left .content { grid-column: 1; padding-right: 48px; text-align: right; }
}
.timeline-item .year { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5rem); font-weight: 700; line-height: 1; margin-bottom: 8px; }
.timeline-item .title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.timeline-item .text { font-size: 14px; color: #999; line-height: 1.6; }

.history-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; overflow: hidden; margin-top: 80px; }
@media (min-width: 768px) { .history-stats { grid-template-columns: repeat(4, 1fr); } }
.history-stats .stat { background: #0a0a0a; padding: 24px; text-align: center; }
.history-stats .stat .v { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: var(--red); }
.history-stats .stat .l { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: #666; margin-top: 4px; }

/* ====== Testimonials ====== */
.testimonials { background: white; }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  position: relative; background: white; border: 1px solid var(--line);
  border-radius: 16px; padding: 24px; transition: border-color 0.3s, box-shadow 0.3s;
}
.testimonial:hover { border-color: var(--line-strong); box-shadow: 0 20px 60px -20px rgba(227,6,19,0.15); }
.testimonial .top { position: absolute; top: 0; left: 0; right: 0; height: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.5s; }
.testimonial:hover .top { transform: scaleX(1); }
.testimonial .quote-icon { font-size: 28px; margin-bottom: 16px; }
.testimonial .text { font-size: 14px; color: #444; line-height: 1.6; margin-bottom: 20px; }
.testimonial .author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.testimonial .avatar {
  width: 40px; height: 40px; border-radius: 50%; color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
}
.testimonial .author-info { flex: 1; }
.testimonial .name { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.testimonial .role { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.testimonial .stars { display: flex; gap: 2px; color: var(--red); font-size: 12px; }

/* ====== FAQ ====== */
.faq { background: var(--paper); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item.open { border-color: rgba(227,6,19,0.3); box-shadow: 0 4px 12px -4px rgba(0,0,0,0.05); }
.faq-question {
  width: 100%; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 16px;
  color: var(--ink); transition: color 0.15s;
}
.faq-item.open .faq-question { color: var(--red); }
.faq-question .icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); transition: background 0.2s, color 0.2s;
  font-size: 18px; font-weight: 600;
}
.faq-item.open .faq-question .icon { background: var(--red); color: white; }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ====== Contact ====== */
.contact { background: white; position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact h2 { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 24px; }
.contact h2 .red { color: var(--red); }
.contact p.lead { color: var(--muted); line-height: 1.6; margin-bottom: 32px; max-width: 420px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-item .icon {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(227,6,19,0.08);
  display: flex; align-items: center; justify-content: center; color: var(--red);
  transition: background 0.15s, color 0.15s;
}
.contact-item:hover .icon { background: var(--red); color: white; }
.contact-item .label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }
.contact-item .value { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.contact-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-trust .v { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--red); }
.contact-trust .l { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }

.contact-form {
  background: white; border: 1px solid var(--line); border-radius: 24px; padding: 32px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-field label { display: block; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: 12px; font-family: inherit; font-size: 14px; transition: border-color 0.15s;
  background: white;
}
.form-field textarea { height: auto; padding: 12px; resize: vertical; min-height: 100px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--red); }
.form-checkbox { display: flex; align-items: start; gap: 12px; margin: 20px 0; cursor: pointer; }
.form-checkbox input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--red); }
.form-checkbox span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.form-submit {
  width: 100%; height: 52px; background: var(--red); color: white;
  border-radius: 12px; font-family: var(--font-mono); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em; transition: transform 0.15s, background 0.15s;
}
.form-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.form-foot { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted-light); text-align: center; margin-top: 16px; }

/* ====== Footer ====== */
.footer { background: #0a0a0a; color: white; padding: 64px 0 32px; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--red), transparent); opacity: 0.6; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-desc { font-size: 12px; color: #888; line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); }
.footer h4 { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: #888; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { font-size: 13px; color: #ccc; transition: color 0.15s; }
.footer ul a:hover { color: white; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom p { font-family: var(--font-mono); font-size: 11px; color: #666; }
.footer-disclaimer { font-family: var(--font-mono); font-size: 10px; color: #555; max-width: 580px; line-height: 1.6; }

/* ====== Toast ====== */
.toast {
  position: fixed; top: 20px; right: 20px; z-index: 200;
  background: white; border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 12px 20px; box-shadow: 0 12px 30px -10px rgba(0,0,0,0.2);
  font-size: 14px; max-width: 320px; animation: slide-in 0.3s;
}
.toast.success { border-left: 4px solid #2d6a2d; }
.toast.error { border-left: 4px solid var(--red); }
@keyframes slide-in { from { transform: translateX(120%); } to { transform: translateX(0); } }

/* ====== Responsive tweaks ====== */
@media (max-width: 768px) {
  .hero { padding: 100px 0 80px; }
  .modal { height: 90vh; }
  .modal-side { padding: 20px; }
}
