:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #111111;
  --surface-raised: #181818;
  --text: #f2efe9;
  --muted: #aaa7a1;
  --subtle: #77736e;
  --line: rgba(255,255,255,.14);
  --line-strong: rgba(255,255,255,.28);
  --accent: #c91920;
  --accent-hover: #e0252c;
  --whatsapp: #20b866;
  --wallapop: #13c1ac;
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fast: 120ms;
  --default: 220ms;
  --slow: 360ms;
  --ease-out: cubic-bezier(.16,1,.3,1);
  --page: min(1440px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--body); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
body.lightbox-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: rgba(201,25,32,.2); }
button { color: inherit; font: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
[id] { scroll-margin-top: 88px; }
h1,h2,h3,p,figure { margin-top: 0; }
h1,h2,h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link { position: fixed; z-index: 1000; left: 12px; top: 12px; padding: 10px 14px; background: #fff; color: #000; transform: translateY(-150%); transition: transform var(--fast) var(--ease-out); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 32px; border-bottom: 1px solid transparent; transition: background-color var(--default), border-color var(--default), height var(--default); }
.site-header.scrolled { height: 66px; background: rgba(8,8,8,.9); border-color: var(--line); backdrop-filter: blur(18px); }
.wordmark { display: inline-flex; align-items: center; width: max-content; gap: 12px; text-transform: uppercase; }
.brand-logo { width: 120px; height: auto; padding: 5px 9px; background: white; border-radius: 3px; }
.wordmark-year { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.wordmark-model { font-family: var(--display); font-size: 25px; font-weight: 900; font-style: italic; letter-spacing: -.04em; }
.wordmark-model i, .footer-mark i, h1 i { color: var(--accent); font-style: inherit; }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a { position: relative; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.site-header nav a::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--default) var(--ease-out); }
.site-header nav a:hover::after { transform: scaleX(1); }
.header-contact { justify-self: end; padding: 11px 18px; border: 1px solid rgba(255,255,255,.42); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: color var(--fast), background-color var(--fast), border-color var(--fast); }
.header-contact:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; transform: scale(1.075); animation: hero-in 1.4s var(--ease-out) forwards; }
.hero-shade { background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 38%, rgba(0,0,0,.06) 70%), linear-gradient(0deg, rgba(0,0,0,.8) 0%, transparent 45%); }
.racing-stripes { position: absolute; z-index: 1; top: 0; right: clamp(8%, 12vw, 18%); height: 100%; width: clamp(115px, 14vw, 220px); display: flex; gap: 16%; opacity: .72; mix-blend-mode: color; transform: skewX(-5deg); }
.racing-stripes span { flex: 1; background: var(--accent); transform: translateY(-100%); animation: stripe-drop .85s .22s var(--ease-out) forwards; }
.racing-stripes span:last-child { animation-delay: .32s; }
.hero-copy { position: relative; z-index: 3; width: var(--page); margin: 0 auto; padding: 150px 0 74px; opacity: 0; transform: translateY(28px); animation: copy-in .75s .55s var(--ease-out) forwards; }
.eyebrow, .kicker, .section-index { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; color: rgba(255,255,255,.78); }
.eyebrow span { width: 34px; height: 2px; background: var(--accent); }
.hero h1 { margin-bottom: 25px; font-family: var(--display); font-weight: 900; line-height: .78; letter-spacing: -.055em; text-transform: uppercase; }
.hero h1 small { display: block; margin-bottom: 9px; font-family: var(--body); font-size: clamp(17px,2vw,28px); font-style: normal; font-weight: 600; letter-spacing: .2em; }
.hero h1 strong { display: block; font-size: clamp(104px,15vw,220px); font-style: italic; }
.hero-meta { display: flex; align-items: center; gap: 0; margin-bottom: 31px; }
.hero-meta span { padding: 0 17px; border-right: 1px solid var(--line-strong); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-meta span:first-child { padding-left: 0; }
.hero-meta span:last-child { border-right: 0; }
.hero-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 29px; }
.hero-price span, .hero-price small { color: rgba(255,255,255,.68); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-price strong { font-size: clamp(30px,4vw,48px); font-variant-numeric: tabular-nums; line-height: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 23px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: background-color var(--fast) var(--ease-out), border-color var(--fast) var(--ease-out), transform 90ms var(--ease-out); }
.button:active { transform: scale(.98); }
.button svg { width: 19px; height: 19px; fill: currentColor; }
.button-primary { color: #fff; background: var(--whatsapp); }
.button-primary:hover { background: #179a53; }
.button-wallapop { color: #042c28; background: var(--wallapop); border: 1px solid var(--wallapop); }
.button-wallapop:hover { background: #5cddcd; border-color: #5cddcd; }
.button-ghost { border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.22); backdrop-filter: blur(10px); }
.button-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.button-ghost span { font-size: 17px; }
.scroll-cue { position: absolute; z-index: 3; right: 30px; bottom: 75px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.66); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-cue span { width: 1px; height: 42px; background: rgba(255,255,255,.65); }

.spec-strip { width: 100%; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0c0c0c; }
.spec-strip > div { min-height: 150px; display: flex; flex-direction: column; justify-content: center; padding: 26px clamp(22px,4vw,68px); border-right: 1px solid var(--line); }
.spec-strip > div:last-child { border: 0; }
.spec-strip span, .spec-strip small { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.spec-strip strong { margin: 8px 0 5px; font-family: var(--display); font-size: clamp(22px,2.3vw,34px); line-height: 1; text-transform: uppercase; }

.section { width: var(--page); margin: 0 auto; padding: clamp(88px,11vw,170px) 0; }
.section-index { margin-bottom: clamp(45px,7vw,90px); padding-bottom: 14px; color: var(--subtle); border-bottom: 1px solid var(--line); }
.intro-layout { display: grid; grid-template-columns: .75fr 1.25fr; align-items: start; gap: clamp(44px,7vw,110px); }
.kicker { margin-bottom: 20px; color: var(--accent); }
h2 { margin-bottom: 32px; font-family: var(--display); font-size: clamp(48px,6.4vw,100px); font-weight: 900; line-height: .92; letter-spacing: -.045em; text-transform: uppercase; }
.intro-copy { padding-top: 25px; }
.intro-copy .lead { max-width: 43ch; color: var(--text); font-size: clamp(18px,2vw,25px); line-height: 1.45; }
.intro-copy > p:last-child { max-width: 55ch; color: var(--muted); }
.feature-image { margin: 0; }
.feature-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 61%; filter: saturate(.82) contrast(1.04); }
.feature-image figcaption { display: flex; justify-content: space-between; padding-top: 13px; color: var(--subtle); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.sound-section { width: 100%; padding-inline: max(24px,calc((100vw - 1440px)/2)); background: var(--text); color: var(--bg); }
.sound-section .section-index { border-color: rgba(0,0,0,.17); color: rgba(0,0,0,.5); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; margin-bottom: 55px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 48ch; margin-bottom: 9px; color: rgba(0,0,0,.62); }
.sound-section .kicker { color: var(--accent); }
.video-rail { display: grid; grid-auto-columns: min(80vw,470px); grid-auto-flow: column; gap: 22px; padding-bottom: 22px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--accent) rgba(0,0,0,.12); }
.video-item { margin: 0; scroll-snap-align: start; }
.video-item video { width: 100%; aspect-ratio: 9/12; object-fit: cover; background: #080808; }
.video-item > div { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 12px; padding: 13px 0 0; border-top: 1px solid rgba(0,0,0,.24); }
.video-item span, .video-item small { color: rgba(0,0,0,.52); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.video-item strong { font-family: var(--display); font-size: 19px; text-transform: uppercase; }
.rail-hint { margin: 22px 0 0; color: rgba(0,0,0,.52); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-align: right; text-transform: uppercase; }
.rail-hint span { margin-left: 8px; color: var(--accent); font-size: 22px; }

.mechanical-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(45px,7vw,100px); align-items: center; }
.engine-figure { margin: 0; position: relative; }
.engine-figure img { width: 100%; aspect-ratio: 3/2; object-fit: cover; filter: saturate(.78) contrast(1.08); }
.engine-figure figcaption { position: absolute; left: 0; bottom: 0; padding: 12px 16px; color: #080808; background: var(--text); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mechanical-copy h2 { font-size: clamp(44px,5vw,76px); }
.equipment-list { margin: 42px 0 0; }
.equipment-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.equipment-list dt { color: var(--subtle); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.equipment-list dd { margin: 0; font-size: 15px; }
.honesty-band { margin-top: 65px; display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; padding: 25px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.honesty-band span { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.honesty-band p { margin: 0; font-family: var(--display); font-size: clamp(20px,2.5vw,34px); font-weight: 700; text-transform: uppercase; }

.gallery-section { width: 100%; padding-inline: max(24px,calc((100vw - 1440px)/2)); background: #0d0d0d; }
.gallery-section .section-heading { margin-bottom: 70px; }
.gallery-section .section-heading > p { color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: minmax(260px,34vw); gap: 9px; }
.gallery-item { position: relative; min-width: 0; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: #141414; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); transition: transform var(--slow) var(--ease-out), filter var(--slow) var(--ease-out); }
.gallery-item::after { content: "+"; position: absolute; right: 16px; bottom: 14px; width: 34px; height: 34px; display: grid; place-items: center; color: #080808; background: rgba(242,239,233,.92); font-size: 20px; opacity: 0; transform: translateY(7px); transition: opacity var(--default), transform var(--default); }
.gallery-item:hover img { transform: scale(1.035); filter: saturate(1); }
.gallery-item:hover::after { opacity: 1; transform: none; }
.gallery-wide { grid-column: span 2; }
.gallery-landscape { grid-column: span 2; }

.maintenance-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(45px,9vw,140px); }
.maintenance-title h2 { font-size: clamp(44px,5vw,76px); }
.maintenance-list { margin: 0; padding: 0; list-style: none; }
.maintenance-list li { display: grid; grid-template-columns: 54px 1fr; align-items: center; min-height: 78px; border-top: 1px solid var(--line); }
.maintenance-list li:last-child { border-bottom: 1px solid var(--line); }
.maintenance-list span { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.maintenance-list strong { font-size: 16px; font-weight: 500; }

.contact-section { position: relative; min-height: 800px; display: grid; place-items: center; padding: 120px 24px; overflow: hidden; isolation: isolate; }
.contact-photo, .contact-overlay { position: absolute; inset: 0; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-overlay { background: linear-gradient(90deg,rgba(0,0,0,.93),rgba(0,0,0,.64) 55%,rgba(0,0,0,.35)); }
.contact-copy { position: relative; z-index: 2; width: min(920px,100%); }
.contact-copy > p:not(.kicker) { max-width: 52ch; margin-bottom: 42px; color: rgba(255,255,255,.72); font-size: 18px; }
.contact-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.contact-option { position: relative; min-height: 152px; display: flex; flex-direction: column; justify-content: center; padding: 25px 70px 25px 25px; border: 1px solid rgba(255,255,255,.38); background: rgba(8,8,8,.64); backdrop-filter: blur(13px); transition: background-color var(--default), border-color var(--default), transform var(--fast); }
.contact-option:hover { transform: translateY(-4px); }
.contact-option.whatsapp:hover { background: rgba(32,184,102,.24); border-color: var(--whatsapp); }
.contact-option.wallapop:hover { background: rgba(19,193,172,.22); border-color: var(--wallapop); }
.contact-option span, .contact-option small { color: rgba(255,255,255,.65); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-option strong { margin: 7px 0 5px; font-family: var(--display); font-size: 35px; text-transform: uppercase; }
.contact-option b { position: absolute; right: 25px; top: 50%; font-size: 27px; font-weight: 400; transform: translateY(-50%); }
.phone-link { display: inline-block; margin-top: 26px; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.4); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

footer { min-height: 300px; display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: 55px; width: var(--page); margin: 0 auto; padding: 80px 0 130px; border-top: 1px solid var(--line); }
.footer-mark { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 130px; min-height: 110px; border: 1px solid var(--line-strong); }
.footer-mark span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.footer-mark strong { font-family: var(--display); font-size: 42px; font-style: italic; }
footer p { align-self: end; margin-bottom: 9px; font-family: var(--display); font-size: 22px; font-weight: 700; text-transform: uppercase; }
footer small { max-width: 86ch; color: var(--subtle); font-size: 11px; line-height: 1.6; }

.mobile-contact { position: fixed; z-index: 90; inset: auto 0 0; display: none; grid-template-columns: 1fr 1fr; padding: 8px; background: rgba(8,8,8,.93); border-top: 1px solid var(--line); backdrop-filter: blur(15px); transform: translateY(100%); animation: dock-in .45s 1.2s var(--ease-out) forwards; }
.mobile-contact a { min-height: 51px; display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mobile-whatsapp { background: var(--whatsapp); }
.mobile-wallapop { color: #041f1c; background: var(--wallapop); }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 50px; border: 0; background: rgba(0,0,0,.96); overflow: hidden; }
.lightbox::backdrop { background: rgba(0,0,0,.82); }
.lightbox[open] { display: grid; place-items: center; animation: fade-in var(--default) var(--ease-out); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; }
.lightbox-close { position: absolute; z-index: 2; right: 22px; top: 15px; width: 45px; height: 45px; padding: 0; border: 1px solid rgba(255,255,255,.32); color: #fff; background: rgba(0,0,0,.5); font-size: 28px; cursor: pointer; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
.js .reveal.in-view { opacity: 1; transform: none; }

@keyframes hero-in { to { transform: scale(1); } }
@keyframes stripe-drop { to { transform: translateY(0); } }
@keyframes copy-in { to { opacity: 1; transform: translateY(0); } }
@keyframes dock-in { to { transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 950px) {
  :root { --page: calc(100% - 36px); }
  .site-header { height: 66px; padding: 0 18px; grid-template-columns: 1fr auto; }
  .site-header nav, .header-contact { display: none; }
  .hero-copy { padding-bottom: 110px; }
  .hero-shade { background: linear-gradient(0deg,rgba(0,0,0,.92) 0%,rgba(0,0,0,.55) 49%,rgba(0,0,0,.1) 82%); }
  .racing-stripes { right: 12%; opacity: .55; }
  .scroll-cue { display: none; }
  .spec-strip { grid-template-columns: repeat(2,1fr); }
  .spec-strip > div { min-height: 125px; }
  .spec-strip > div:nth-child(2) { border-right: 0; }
  .spec-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .intro-layout, .mechanical-grid, .maintenance-layout { grid-template-columns: 1fr; }
  .intro-copy { padding-top: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .section-heading > p { margin-bottom: 0; }
  .mechanical-copy { max-width: 700px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: minmax(250px,55vw); }
  .contact-options { grid-template-columns: 1fr 1fr; }
  .mobile-contact { display: grid; }
  footer { padding-bottom: 115px; }
}

@media (max-width: 600px) {
  :root { --page: calc(100% - 28px); }
  .hero { min-height: 790px; }
  .hero-media img { object-position: 53% center; }
  .hero-copy { padding: 120px 0 92px; }
  .hero h1 { margin-bottom: 21px; }
  .hero h1 small { font-size: 13px; letter-spacing: .16em; }
  .hero h1 strong { font-size: clamp(95px,37vw,145px); }
  .hero-meta span { padding: 0 10px; font-size: 10px; }
  .hero-price { flex-wrap: wrap; gap: 7px 12px; }
  .hero-price strong { width: 100%; font-size: 38px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .racing-stripes { width: 100px; right: 2%; gap: 12px; }
  .spec-strip { grid-template-columns: 1fr; }
  .spec-strip > div { min-height: 105px; border-right: 0; border-bottom: 1px solid var(--line); }
  .spec-strip > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .section { padding: 88px 0; }
  .section-index { margin-bottom: 46px; }
  h2 { font-size: 46px; }
  .feature-image img { aspect-ratio: 4/5; }
  .sound-section, .gallery-section { padding-inline: 14px; }
  .video-rail { grid-auto-columns: 84vw; gap: 10px; }
  .video-item video { aspect-ratio: 9/12; }
  .mechanical-grid { gap: 43px; }
  .engine-figure img { aspect-ratio: 4/3; }
  .equipment-list > div { grid-template-columns: 95px 1fr; }
  .honesty-band { grid-template-columns: 1fr; gap: 8px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 66vw; gap: 5px; }
  .gallery-wide, .gallery-landscape { grid-column: span 2; }
  .gallery-item::after { opacity: .9; transform: none; }
  .maintenance-layout { gap: 34px; }
  .contact-section { min-height: 830px; padding: 95px 14px 120px; }
  .contact-options { grid-template-columns: 1fr; }
  .contact-option { min-height: 132px; }
  footer { grid-template-columns: 1fr; gap: 28px; padding-top: 62px; }
  .footer-mark { grid-row: auto; width: 104px; min-height: 88px; }
  footer p { margin: 0; }
  .lightbox { padding: 52px 10px 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
