/* bipbip rent — global styles + animations */

:root {
  --bb-orange: #39a0b1;
  --bb-orange-600: #20889b;
  --bb-orange-100: #d0e9ee;
  --bb-secondary: #a996ed;
  --bb-secondary-600: #9480d8;
  --bb-secondary-100: #ede9fa;
  --bb-secondary-glow: rgba(169, 150, 237, 0.45);
  --bb-navy: #0E3151;
  --bb-navy-900: #081E33;
  --bb-navy-700: #163D63;
  --bb-navy-500: #305A82;
  --bb-ink: #0B1929;
  --bb-paper: #F7F5F2;
  --bb-line: #E6E2DC;
  --bb-mute: #6B7785;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bb-paper);
  color: var(--bb-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.text-orange {
  color: var(--bb-orange) !important;
}
.text-secondary {
  color: var(--bb-secondary) !important;
}
.font-display {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* — Car photo placeholder (studio backdrop — multi-layer cyclorama) — */
.car-stage {
  position: relative;
  background:
    /* warm spotlight from top-right (brand orange tint) */
    radial-gradient(ellipse 60% 70% at 95% 8%, rgba(245,132,21,0.30) 0%, transparent 55%),
    /* cool fill light from top-right (cyclorama bounce) */
    radial-gradient(ellipse 80% 90% at 88% 28%, rgba(190,215,235,0.18) 0%, transparent 60%),
    /* bright floor band across middle-bottom */
    linear-gradient(180deg, transparent 48%, rgba(190,215,235,0.20) 62%, rgba(190,215,235,0.28) 70%, rgba(190,215,235,0.18) 78%, transparent 90%),
    /* darker corners + base wall */
    radial-gradient(ellipse 120% 90% at 50% 50%, #1a3656 0%, #0e2440 45%, #061425 90%);
  /* overflow: hidden; */
  isolation: isolate;
}

.car-stage::after {
  /* soft shadow under car */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 14% at 50% 78%, rgba(0,0,0,0.7) 0%, transparent 75%);
  pointer-events: none;
}

/* — Inside a car-card: inherit card gradient (no visible cut between text & photo) — */
.car-card .car-stage {
  background: transparent;
}
.car-card .car-stage::before {
  /* hide horizon — the parent card already paints the floor band */
  display: none;
}
.car-card .car-stage::after {
  background: radial-gradient(ellipse 50% 14% at 50% 78%, rgba(0,0,0,0.65) 0%, transparent 75%);
}
.car-stage > .car-wordmark {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  width: 100%; height: 100%;
  text-align: center;
  padding: 1rem;
}
.car-stage .car-wordmark .name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 1;
}
.car-stage .car-wordmark .caption {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-top: 12px;
}

/* tiny silhouette (allowed simple shapes only) using two ellipses + thin rect — abstract suggestion */
.car-silhouette {
  position: absolute;
  left: 8%; right: 8%; bottom: 18%;
  height: 38%;
  pointer-events: none;
  opacity: 0.85;
}

/* — Reveal on scroll — */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.40s; }
.reveal.delay-6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* — Buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; letter-spacing: 0.01em;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--bb-orange);
  color: white;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 8px 24px -8px rgba(18, 54, 75, 0.55);
}
.btn-primary:hover { background: var(--bb-orange-600); transform: translateY(-1px); }
.btn-secondary {
  background: var(--bb-navy);
  color: white;
}
.btn-secondary:hover { background: var(--bb-navy-900); transform: translateY(-1px); }
.btn-accent {
  background: var(--bb-secondary);
  color: white;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 8px 24px -8px rgba(169,150,237,0.55);
}
.btn-accent:hover { background: var(--bb-secondary-600); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--bb-ink);
  border: 1px solid var(--bb-line);
}
.btn-ghost:hover { border-color: var(--bb-ink); }
.btn-ghost-dark {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.55); }

/* — Car card — */
.car-card {
  position: relative;
  background:
    radial-gradient(ellipse 60% 70% at 95% 8%, var(--bb-secondary-glow) 0%, transparent 55%),
    /* cool cyclorama bounce from upper-right */
    radial-gradient(ellipse 80% 90% at 88% 28%, rgba(190,215,235,0.18) 0%, transparent 60%),
    /* horizontal floor band across middle-bottom */
    linear-gradient(180deg, transparent 48%, rgba(190,215,235,0.20) 62%, rgba(190,215,235,0.28) 70%, rgba(190,215,235,0.18) 78%, transparent 90%),
    /* base wall */
    radial-gradient(ellipse 120% 90% at 50% 50%, #1a3656 0%, #0e2440 45%, #061425 90%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.car-card:hover {
  transform: translateY(-4px);
  border-color: var(--bb-orange);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.55);
}
.car-card .car-stage-wrap {
  aspect-ratio: 16/9;       /* wider, more room for the car */
  margin-top: -16px;
  margin-bottom: -24px;
}
.car-card .border-t {
  /* remove visible divider between photo and price row */
  border-top-color: transparent;
}

/* — Marquee — */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex; gap: 3rem;
  animation: marquee 38s linear infinite;
  width: max-content;
}

/* — Floating quote bar — */
.quote-bar {
  background: white;
  border: 1px solid var(--bb-line);
  border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(11, 25, 41, 0.25), 0 1px 0 rgba(0,0,0,0.02);
}

/* — Pill chip — */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--bb-line);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bb-ink);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.chip:hover { border-color: var(--bb-ink); }
.chip.active {
  background: var(--bb-navy);
  color: white;
  border-color: var(--bb-navy);
}
.chip.accent.active {
  background: var(--bb-secondary);
  border-color: var(--bb-secondary);
}

/* — Tag (in car card) — */
.tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-orange { background: var(--bb-orange); color: white; }
.tag-secondary { background: var(--bb-secondary); color: white; }
.tag-outline { border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.85); }

/* — Form — */
.field {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--bb-line);
  border-radius: 10px;
  background: white;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--bb-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field:focus {
  outline: none;
  border-color: var(--bb-navy);
  box-shadow: 0 0 0 4px rgba(14,49,81,0.08);
}
.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bb-mute);
  margin-bottom: 0.4rem;
}

/* — Hero gradient backdrop — */
.hero-backdrop {
  background:
    radial-gradient(ellipse 90% 60% at 60% 60%, rgba(57,160,177,0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(48,90,130,0.25), transparent 60%),
    linear-gradient(180deg, #081E33 0%, #0E3151 60%, #0E3151 100%);
}

/* — Section divider band — */
.orange-band {
  background: var(--bb-orange);
  color: white;
}

/* — Subtle grain — */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* — Nav link — */
.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}
.nav-link:hover { color: white; }
.nav-link.active { color: white; }
.nav-link.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--bb-orange);
  border-radius: 2px;
}

/* — Counter/strong number — */
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--bb-navy);
}

/* — Car photo (real image on dark studio stage) — */
.car-photo {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -42%);
  width: 92%;
  height: auto;
  max-height: 90%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 22px 22px rgba(0,0,0,0.7));
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.car-card .car-photo {
  width: 110%;
  max-height: 100%;
  transform: translate(-50%, -42%);
  filter: drop-shadow(0 28px 26px rgba(0,0,0,0.7));
}
.car-card:hover .car-photo,
a.group:hover .car-photo { transform: translate(-50%, -46%) scale(1.03); }
.gallery-thumb .car-photo { transform: translate(-50%, -42%); width: 95%; }

/* — Tooltip / micro — */
.micro {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bb-mute);
}

/* — Accent ribbon — */
.accent-rule {
  display: inline-block;
  height: 2px; width: 36px;
  background: var(--bb-orange);
  vertical-align: middle;
  margin-right: 12px;
}

/* — Number bullet — */
.num-bullet {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bb-orange);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}
.num-bullet-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bb-secondary);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}

/* — DGT environmental labels — */
.dgt-label {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(0,0,0,0.5);
  border: 2.5px solid rgba(255,255,255,0.28);
  flex-shrink: 0;
}
.dgt-half-l,
.dgt-half-r {
  position: absolute;
  top: 0; bottom: 0;
}
.dgt-half-l { left: 0; width: 38%; }
.dgt-half-r { left: 38%; right: 0; }

/* ECO: blue left, green right */
.dgt-eco .dgt-half-l { background: #1356A2; }
.dgt-eco .dgt-half-r { background: #3A8C30; }

/* 0 emissions: solid blue */
.dgt-zero .dgt-half-l { background: #1565C0; width: 100%; }
.dgt-zero .dgt-half-r { display: none; }

/* C: solid green */
.dgt-c .dgt-half-l { background: #3A8C30; width: 100%; }
.dgt-c .dgt-half-r { display: none; }

/* B: solid yellow */
.dgt-b .dgt-half-l { background: #F5C800; width: 100%; }
.dgt-b .dgt-half-r { display: none; }

.dgt-letter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-right: 9px;
  padding-bottom: 8px;
  color: white;
  font-family: 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.05;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.dgt-b .dgt-letter { color: #1a1a1a; text-shadow: none; }
.dgt-logo {
  position: absolute;
  bottom: 5px;
  left: 0; right: 0;
  text-align: center;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.dgt-b .dgt-logo { color: #1a1a1a; text-shadow: none; }

/* — Footer link — */
.footer-link {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-link:hover { color: white; }

/* — Mobile menu — */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 100;
  visibility: hidden;
  background: rgba(8, 30, 51, 0);
  transition: background 0.38s ease, backdrop-filter 0.38s ease, visibility 0s linear 0.38s;
}
.mobile-menu.open {
  visibility: visible;
  background: rgba(8, 30, 51, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.38s ease, backdrop-filter 0.38s ease, visibility 0s;
}

.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(100vw, 400px);
  background: var(--bb-navy-900);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.45);
  /* subtle glow accent */
  border-left: 1px solid rgba(57, 160, 177, 0.12);
}
.mobile-menu.open .mobile-menu__panel {
  transform: translateX(0);
}
/* decorative glow top-right */
.mobile-menu__panel::before {
  content: "";
  position: absolute; top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 160, 177, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Header */
.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}
.mobile-menu__close {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.mobile-menu__close:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

/* Nav */
.mobile-menu__nav {
  flex: 1;
  padding: 12px 0;
}
.mobile-menu__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  color: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  /* enter animation */
  opacity: 0;
  transform: translateX(20px);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    padding-left 0.25s ease,
    opacity 0.38s ease,
    transform 0.38s ease;
}
.mobile-menu.open .mobile-menu__item        { opacity: 1; transform: translateX(0); transition-delay: 0.06s; }
.mobile-menu.open .mobile-menu__item:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.open .mobile-menu__item:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu__item:hover  { color: white; background: rgba(255, 255, 255, 0.04); padding-left: 36px; }
.mobile-menu__item.is-active { color: white; }
.mobile-menu__item.is-active .mobile-menu__num { color: var(--bb-orange); }

.mobile-menu__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  transition: color 0.2s;
}
.mobile-menu__item:hover .mobile-menu__num { color: var(--bb-orange); }

.mobile-menu__label {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  flex: 1;
}

.mobile-menu__arrow {
  opacity: 0;
  transform: translateX(-8px);
  color: var(--bb-orange);
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-menu__item:hover .mobile-menu__arrow { opacity: 1; transform: translateX(0); }

/* Footer */
.mobile-menu__footer {
  padding: 22px 28px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.38s ease 0.24s, transform 0.38s ease 0.24s;
}
.mobile-menu.open .mobile-menu__footer { opacity: 1; transform: translateY(0); }

.mobile-menu__tel,
.mobile-menu__wa {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 7px 0;
  transition: color 0.2s;
}
.mobile-menu__tel:hover,
.mobile-menu__wa:hover { color: white; }
.mobile-menu__tel i,
.mobile-menu__wa svg { color: var(--bb-orange); flex-shrink: 0; }

/* — Category card (white bg image area) — */
.cat-card .car-photo {
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.13));
}
.cat-card:hover .car-photo {
  transform: translate(-50%, -46%) scale(1.03);
}

/* utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── Hero Category Fan ─── */
.hero-cat-section {
  min-height: 760px;
}
.hero-cat-bg {
  background: linear-gradient(135deg, #082a3a 0%, #0a5570 35%, #0d90a8 65%, #1ec8dc 100%);
}
.hero-cat-wave {
  height: 360px;
  background: var(--bb-paper);
  clip-path: polygon(0 18%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.01em;
}
.hero-pill i {
  color: #a8eaf2;
  font-size: 0.7rem;
}

/* Slider track */
.cat-fan-stage {
  height: 100%;
  will-change: transform;
}

/* Cards — flex children del track */
.cat-fan-item {
  flex-shrink: 0;
  width: 340px;
  height: 100%;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  user-select: none;
  -webkit-user-select: none;
}
.cat-fan-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 26px 9px rgba(0,0,0,0.38));
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Flechas — discretas, sobre fondo claro */
.cat-fan-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(14,49,81,0.06);
  border: 1px solid rgba(14,49,81,0.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: #0E3151;
  transition: background 0.18s, transform 0.18s;
  font-size: 0.72rem;
}
.cat-fan-prev:hover, .cat-fan-next:hover {
  background: rgba(14,49,81,0.12);
  transform: scale(1.08);
}

/* Mobile */
@media (max-width: 640px) {
  .cat-fan-item { width: 230px; }
  .hero-cat-wave { height: 280px; clip-path: polygon(0 25%, 100% 0%, 100% 100%, 0% 100%); }
}

/* ─── Brand marquee ─── */
.brand-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2.5rem;
  color: var(--bb-mute);
  opacity: 0.55;
  height: 68px;
  flex-shrink: 0;
}
.brand-item svg {
  height: 42px;
  width: auto;
}
.brand-item img {
  height: 48px;
  width: auto;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.25s;
}
.brand-item:hover img {
  filter: grayscale(0.2) opacity(0.9);
}
.brand-item { opacity: 1; }
