/* ═══════════════════════════════════════════
   CULTO GARAJE — Global Styles
   cultogaraje.es
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;1,300&family=Barlow+Condensed:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #D01010;
  --red-bright: #FF2020;
  --red-dark:   #8a0a0a;
  --bg:         #080808;
  --bg2:        #0f0f0f;
  --bg3:        #161616;
  --bg4:        #1e1e1e;
  --line:       #242424;
  --line2:      #333333;
  --cream:      #F0ECE4;
  --text:       #CCCAB8; /* slightly warmer tone */
  --muted:      #666660;
  --font-d:     'Bebas Neue', sans-serif;
  --font-c:     'Barlow Condensed', sans-serif;
  --font-b:     'Barlow', sans-serif;
  --ig:         #E1306C;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─── */
.label {
  font-family: var(--font-c);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
}
.label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

.display {
  font-family: var(--font-d);
  color: var(--cream);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.accent { color: var(--red) !important; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-c);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-red {
  background: var(--red);
  color: var(--cream);
}
.btn-red:hover { background: var(--red-bright); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); }

.btn-ig {
  background: var(--ig);
  color: #fff;
}
.btn-ig:hover { background: #c62a5e; }

.btn-sm {
  padding: 9px 18px;
  font-size: 12px;
}

/* ─── NAV ─── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: rgba(8,8,8,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo .mark {
  width: 34px; height: 34px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d);
  font-size: 14px;
  color: var(--red);
  flex-shrink: 0;
}

.nav-logo .wordmark {
  font-family: var(--font-c);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1;
}
.nav-logo .wordmark span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 0 1rem;
  font-family: var(--font-c);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.18s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--cream); }

.nav-links a.active {
  color: var(--red);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--line2);
  border-radius: 3px;
  overflow: hidden;
}

.lang-btn {
  padding: 5px 10px;
  background: none;
  border: none;
  font-family: var(--font-c);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: all 0.18s;
}

.lang-btn.active {
  background: var(--red);
  color: #fff;
}

.nav-cta {
  padding: 8px 18px;
  background: var(--ig);
  color: #fff;
  font-family: var(--font-c);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s;
}

.nav-cta:hover { background: #c62a5e; }

.nav-cta .ig-icon {
  width: 14px; height: 14px;
  fill: #fff;
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--cream);
  transition: all 0.2s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 62px; left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  z-index: 999;
  padding: 1rem 2rem 1.5rem;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-family: var(--font-c);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: color 0.18s;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--red); }

/* ─── MARQUEE ─── */
.marquee-wrap {
  background: var(--red);
  overflow: hidden;
  padding: 9px 0;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  font-family: var(--font-c);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0 2.5rem;
}

.marquee-track span::after {
  content: '//';
  margin-left: 2.5rem;
  opacity: 0.4;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── SECTIONS ─── */
.section { padding: 6rem 4rem; }
.section-sm { padding: 4rem 4rem; }
.section-dark { background: var(--bg2); }
.section-darker { background: var(--bg3); }

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 3rem;
}

/* ─── CAR CARDS ─── */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.car-card {
  background: var(--bg2);
  position: relative;
  transition: background 0.18s;
  display: flex;
  flex-direction: column;
}

.car-card:hover { background: var(--bg3); }

.car-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--bg3);
}

.car-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.car-card:hover .car-img img { transform: scale(1.03); }

.car-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--line2);
}

.car-img-placeholder svg { opacity: 0.4; }

.car-img-placeholder span {
  font-family: var(--font-c);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.4;
}

.car-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  font-family: var(--font-c);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
}

.badge-available { background: var(--red); color: #fff; }
.badge-reserved  { background: var(--bg4); color: var(--muted); border: 1px solid var(--line2); }
.badge-sold      { background: #222; color: var(--muted); }
.badge-culto     { background: transparent; border: 1px solid var(--red); color: var(--red); top: auto; bottom: 12px; }

.car-info {
  padding: 1.2rem 1.4rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.car-make {
  font-family: var(--font-c);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 3px;
}

.car-name {
  font-family: var(--font-c);
  font-size: 20px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: auto;
}

.spec-tag {
  font-family: var(--font-c);
  font-size: 11px;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--line);
}

.car-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}

.car-price {
  font-family: var(--font-d);
  font-size: 1.9rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.car-price small {
  font-family: var(--font-c);
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 3px;
}

/* ─── FORMS ─── */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-family: var(--font-c);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--line2);
  color: var(--cream);
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.18s;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }

.form-group textarea { min-height: 110px; resize: vertical; }
.form-group select option { background: var(--bg3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── FOOTER ─── */
#footer {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  padding: 3.5rem 4rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand-name {
  font-family: var(--font-c);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.footer-brand-name span { color: var(--red); }

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--ig);
  color: #fff;
  font-family: var(--font-c);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: background 0.18s;
}

.footer-ig:hover { background: #c62a5e; }

.footer-col h4 {
  font-family: var(--font-c);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 0.5rem;
  transition: color 0.18s;
}

.footer-col a:hover { color: var(--red); }

.footer-bottom {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  padding: 1.25rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-family: var(--font-c);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-bottom a { color: var(--red); }

/* ─── FADE UP ─── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 8rem 4rem 4rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-c);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--muted); transition: color 0.18s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--line2); }
.breadcrumb .current { color: var(--text); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .cars-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.open { display: flex; }
  .section { padding: 4rem 1.5rem; }
  .section-sm { padding: 3rem 1.5rem; }
  .page-hero { padding: 6rem 1.5rem 3rem; }
  .cars-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  #footer { grid-template-columns: 1fr 1fr; padding: 3rem 1.5rem; }
  .footer-bottom { padding: 1.25rem 1.5rem; flex-direction: column; gap: 8px; text-align: center; }
  #nav { padding: 0 1.5rem; }
  .nav-cta span { display: none; }
}

@media (max-width: 480px) {
  #footer { grid-template-columns: 1fr; }
}
