﻿@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #111a11;
  --bg-card: #1a2a1a;
  --bg-header: linear-gradient(180deg, #2c4a3e 0%, #1a2e1a 100%);
  --text-cream: #f5f0e8;
  --text-muted: #c8c0b0;
  --text-dark: #111a11;
  --accent-green: #4a7c5c;
  --accent-green-light: #5a9a6e;
  --accent-gold: #c8a96e;
  --border-subtle: rgba(245, 240, 232, 0.1);
  --border-medium: rgba(245, 240, 232, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* â”€â”€â”€ Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-header {
  background: var(--bg-header);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo { height: 28px; opacity: 0.9; }
.header-logo:hover { opacity: 1; }
.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.header-nav a:hover { color: var(--text-cream); }

/* â”€â”€â”€ Hero (Home) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero {
  background: var(--bg-header);
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.hero-logo { height: 48px; margin-bottom: 2rem; opacity: 0.95; }
.hero-edition {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--accent-gold);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-edition .circle {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
}
.hero-edition .line {
  width: 40px;
  height: 1px;
  background: var(--accent-gold);
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-cream);
  margin-bottom: 0.5rem;
}
.hero-date {
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* â”€â”€â”€ Search â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.search-section {
  max-width: var(--max-width);
  margin: -1.5rem auto 0;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}
.search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius);
  color: var(--text-cream);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}
.search-input::placeholder { color: var(--text-muted); opacity: 0.6; }
.search-input:focus { border-color: var(--accent-green); }
.search-wrapper {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  opacity: 0.5;
  pointer-events: none;
}
.search-count {
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* â”€â”€â”€ Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cars-grid {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.car-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.car-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-green);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.car-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.car-card-body { padding: 1.25rem; }
.car-card-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.car-card-year {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 500;
}
.car-card-owner {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  font-style: italic;
}

/* â”€â”€â”€ Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}
.footer-logo { height: 24px; opacity: 0.5; margin-bottom: 1rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.site-footer a:hover { color: var(--text-cream); }
.site-footer p { color: var(--text-muted); font-size: 0.75rem; opacity: 0.6; margin-top: 0.5rem; }

/* â•â•â• Car Detail Page â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.car-hero {
  background: var(--bg-header);
  padding: 4rem 2rem;
  text-align: center;
}
.car-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.car-hero-quote {
  font-size: 2rem;
  color: rgba(200, 169, 110, 0.3);
  margin-bottom: -0.5rem;
  font-family: var(--font-serif);
  line-height: 1;
}
.car-hero-historia {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.8;
  color: var(--text-cream);
  margin-bottom: 2rem;
}
.car-hero-owner {
  color: var(--accent-gold);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}
.car-hero-owner .dash { margin: 0 0.5rem; }

/* â”€â”€â”€ Gallery â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gallery-section {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 2rem;
}
.gallery-main {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
.gallery-main img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  background: #0a120a;
  display: block;
  cursor: pointer;
  border-radius: var(--radius);
}
.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.gallery-thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, opacity 0.3s;
  opacity: 0.6;
}
.gallery-thumb:hover, .gallery-thumb.active {
  border-color: var(--accent-green);
  opacity: 1;
}

/* â”€â”€â”€ Specs â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.specs-section {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 2rem;
}
.specs-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: center;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}
.spec-item { text-align: center; }
.spec-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.spec-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-cream);
}
.specs-divider {
  width: 60px;
  height: 1px;
  background: var(--accent-gold);
  margin: 2rem auto;
  opacity: 0.4;
}

/* â”€â”€â”€ Share / QR Button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.share-section {
  text-align: center;
  margin: 3rem auto;
  padding: 0 2rem;
}
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--accent-green);
  color: var(--text-cream);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  letter-spacing: 0.03em;
}
.btn-share:hover {
  background: var(--accent-green-light);
  transform: translateY(-2px);
}
.btn-share svg { width: 20px; height: 20px; }

/* â”€â”€â”€ Navigation â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.car-nav {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.car-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.car-nav a:hover { color: var(--text-cream); }

/* â”€â”€â”€ QR Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.qr-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 0;
  overflow-y: auto;
  backdrop-filter: blur(8px);
}
.qr-modal.active { display: flex; }
.qr-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 420px;
  width: 90%;
  position: relative;
  border: 1px solid var(--border-medium);
  margin: auto;
}
.qr-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}
.qr-close:hover { background: rgba(255,255,255,0.1); }
.qr-logo { height: 24px; margin-bottom: 1rem; opacity: 0.7; }
#qr-canvas { margin: 1rem auto; max-width: 280px; }
#qr-canvas canvas, #qr-canvas img { width: 100% !important; height: auto !important; }
.qr-car-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1rem;
}
.qr-car-year {
  color: var(--accent-gold);
  font-size: 0.85rem;
}
.btn-download-qr {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent-green);
  color: var(--text-cream);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-download-qr:hover { background: var(--accent-green-light); }

/* â”€â”€â”€ Lightbox â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 4px;
}

/* â”€â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .hero-logo { height: 36px; }
  .hero-subtitle { font-size: 1.3rem; }
  .cars-grid { grid-template-columns: 1fr; padding: 0 1rem; gap: 1rem; }
  .car-card-img { height: 200px; }
  .car-hero { padding: 3rem 1.5rem; }
  .car-hero-historia { font-size: 1.1rem; }
  .gallery-thumb { width: 70px; height: 50px; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .car-nav { flex-direction: column; gap: 1rem; }
  .search-section { padding: 0 1rem; }
  .qr-content { padding: 1.5rem; }
  #qr-canvas { max-width: 220px; }
}

@media (max-width: 480px) {
  .hero-subtitle { font-size: 1.1rem; }
  .car-hero-historia { font-size: 1rem; }
  .header-logo { height: 22px; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .qr-content { padding: 1.25rem; }
  #qr-canvas { max-width: 180px; }
  .qr-car-name { font-size: 0.95rem; }
  .btn-download-qr { font-size: 0.8rem; padding: 0.6rem 1.2rem; }
}

/* â”€â”€â”€ No results â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  display: none;
}