/* Sitio público. Tema oscuro, mobile primero. Sin fuentes ni recursos externos: la tipografía se sirve desde /assets/fonts. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0a0c;
  --surface: #131318;
  --surface-2: #1b1b22;
  --line: #2a2a33;
  --fg: #f5f5f7;
  --muted: #a7a9b4;
  --pink: #ff65c3;
  --pink-ink: #0b0b0d;
  --blue: #6aa6ff;
  --brand-blue: #004aad;
  --radius: 16px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--fg); background: var(--bg); padding-bottom: 76px; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(30px, 7vw, 56px); letter-spacing: -0.025em; }
h2 { font-size: clamp(22px, 4.5vw, 32px); }
h3 { font-size: 17px; margin: 0 0 2px; letter-spacing: 0; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Encabezado */
.site-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 12px 16px; background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid #16161b; }
.site-top .home { display: block; line-height: 0; }
.logo { height: 40px; width: auto; }
.links { display: none; gap: 22px; margin-left: auto; }
.links a { color: var(--fg); text-decoration: none; font-weight: 700; font-size: 15px; }
.links a:hover { color: var(--pink); }
.lang { display: flex; gap: 6px; }
.lang a { display: flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #444; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 12px; }
.lang a.on { background: var(--pink); border-color: var(--pink); color: var(--pink-ink); font-weight: 800; }

/* Botones */
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); text-decoration: none; font: 800 15px var(--font); cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.btn:hover { border-color: var(--blue); transform: translateY(-1px); }
.btn.primary { background: var(--pink); border-color: var(--pink); color: var(--pink-ink); }
.btn.primary:hover { background: #ff7fcd; border-color: #ff7fcd; }
.btn.ghost { background: transparent; border-color: #3a3a44; }
button { min-height: 52px; padding: 0 24px; font: 800 16px var(--font); border: 0; border-radius: 12px; background: var(--pink); color: var(--pink-ink); cursor: pointer; }

/* Estructura */
main { min-height: 60vh; }
.wrap, main > .section { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.section { padding-top: 40px; padding-bottom: 8px; }
.section.narrow { max-width: 720px; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.head a { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Portada */
.hero { background: radial-gradient(900px 380px at 85% -10%, rgba(255, 101, 195, 0.18), transparent 60%), radial-gradient(700px 360px at -10% 110%, rgba(0, 74, 173, 0.4), transparent 60%), #000; padding: 36px 0 40px; border-bottom: 1px solid #16161b; }
.hero .lead { font-size: clamp(16px, 2.6vw, 20px); color: #d5d9dd; max-width: 620px; margin: 0; }
.chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); display: flex; align-items: center; gap: 8px; }
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.chip.blue::before { background: var(--blue); }

/* Paneles */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 12px 0; }
.panel.err { border-color: var(--pink); }
.panel.feature { background: linear-gradient(135deg, rgba(255, 101, 195, 0.1), rgba(0, 74, 173, 0.2)); }
.panel h3 { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.visit-grid .panel { margin: 0; }

/* Pasos */
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: var(--pink-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }

/* Autos */
.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-top: 12px; }
.car { display: block; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.car:hover { border-color: var(--pink); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255, 101, 195, 0.12); }
.car-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.car-img img { width: 100%; height: 100%; object-fit: cover; }
.car-img.big { border-radius: var(--radius); }
.ph { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #5d5f6c; font-weight: 700; font-size: 13px; }
.car-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 16px; }
.car-info { min-width: 0; }
.car-info .muted { font-size: 13px; }
.price { font-weight: 800; font-size: 19px; color: var(--blue); white-space: nowrap; }
.price.big { font-size: 34px; margin: 4px 0 12px; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--pink); color: var(--pink-ink); font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.tag.static { position: static; display: inline-block; margin-bottom: 6px; }

.detail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: start; margin-top: 8px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 8px; }
.thumbs img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 8px 0 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.desc { white-space: pre-line; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } }

/* Franja final */
.band { margin: 40px 0 0; padding: 28px 22px; border-radius: 22px; background: radial-gradient(500px 220px at 100% 0, rgba(255, 101, 195, 0.25), transparent 60%), var(--surface); border: 1px solid var(--line); }
.band p { color: #d5d9dd; margin: 0; }

/* Formularios */
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 0; }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 0 14px; font: 500 16px var(--font); color: var(--fg); background: #0f0f14; border: 1px solid #34343e; border-radius: 12px; }
.form textarea { padding: 12px 14px; resize: vertical; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; font-weight: 500; color: #d5d9dd; margin: 18px 0; }
.form .check input { width: 22px; min-height: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--pink); }
.form .err { color: #ff8fc2; font-weight: 700; margin: 0 0 8px; }
.form button { width: 100%; }
.small { font-size: 13px; margin: 6px 0 0; }

.legal h2 { margin-top: 26px; font-size: 20px; }

/* Pie */
.site-foot { margin-top: 48px; background: #000; border-top: 1px solid #16161b; padding: 28px 0 32px; color: #d5d9dd; }
.foot-grid, .site-foot .fine { max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.foot-grid strong { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: flex-start; }
.site-foot .fine { font-size: 13px; margin-top: 14px; color: var(--muted); }
.site-foot a.team { color: var(--muted); text-decoration: none; }
.site-foot a.team:hover { text-decoration: underline; }

/* Barra fija de llamar / pedir informes en el celular */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(8px); border-top: 1px solid #1d1d24; }
.cta-bar .btn { min-height: 48px; }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .cta-bar { display: none; }
  .links { display: flex; }
  .site-top { padding: 14px 32px; }
  .wrap, main > .section { padding-left: 32px; padding-right: 32px; }
  .hero { padding: 72px 0 64px; }
  .band { padding: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; }
  .foot-grid, .site-foot .fine { padding-left: 32px; padding-right: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .car { transition: none; }
  .btn:hover, .car:hover { transform: none; }
}

.form label + input, .form label + textarea, .form label + select { margin-top: 6px; }

/* ---------- Movimiento: escena del inicio y entradas ---------- */
.hero::before { content: ''; position: absolute; inset: -20%; pointer-events: none; background: radial-gradient(40% 40% at 20% 30%, rgba(255, 101, 195, 0.16), transparent 70%), radial-gradient(40% 40% at 80% 70%, rgba(0, 74, 173, 0.35), transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(4%, -3%, 0) scale(1.08); } }
.hero .wrap { position: relative; }
.hero-grid { display: grid; gap: 20px; align-items: center; }
.hero-art { margin: 0 -16px; }
.scene { width: 100%; height: auto; display: block; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
@media (min-width: 720px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 32px; } .hero-art { margin: 0; } }

.scene #sc-far rect { fill: #251a3a; }
.scene #sc-near rect { fill: #0d0d17; stroke: rgba(106, 166, 255, 0.22); stroke-width: 1; }
.scene .lt.p { fill: #ff65c3; }
.scene .lt.b { fill: #6aa6ff; }
.scene .lt { animation: twinkle 3.2s ease-in-out infinite; }
.scene .lt.d1 { animation-delay: 0.6s; }
.scene .lt.d2 { animation-delay: 1.3s; }
.scene .lt.d3 { animation-delay: 2s; }
@keyframes twinkle { 0%, 100% { opacity: 0.95; } 50% { opacity: 0.25; } }
.scene .sky-far { animation: scroll-x 40s linear infinite; }
.scene .sky-near { animation: scroll-x 17s linear infinite; }
@keyframes scroll-x { to { transform: translateX(-600px); } }
.scene .dashes { animation: dash 0.9s linear infinite; }
.scene .dashes.slow { animation-duration: 1.6s; }
@keyframes dash { to { stroke-dashoffset: -80; } }
.scene .streak { opacity: 0; animation: streak 1.15s linear infinite; }
.scene .s2 { animation-delay: 0.3s; }
.scene .s3 { animation-delay: 0.62s; }
.scene .s4 { animation-delay: 0.85s; }
@keyframes streak { 0% { transform: translateX(150px); opacity: 0; } 25% { opacity: 0.9; } 100% { transform: translateX(-190px); opacity: 0; } }
.scene .car-enter { animation: drive-in 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes drive-in { from { transform: translateX(-440px); } to { transform: none; } }
.scene .car-bob { animation: bob 0.45s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-1.6px); } }
.scene .spin { transform-box: fill-box; transform-origin: center; animation: spin 0.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene .beam { animation: beam 2.4s ease-in-out infinite alternate; }
@keyframes beam { from { opacity: 0.55; } to { opacity: 1; } }
.scene .glow { animation: glow 2.6s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: 0.3; } to { opacity: 0.65; } }

.rise { opacity: 0; transform: translateY(14px); animation: rise 0.7s ease-out forwards; }
.rise.r2 { animation-delay: 0.12s; }
.rise.r3 { animation-delay: 0.24s; }
.rise.r4 { animation-delay: 0.36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.6s ease; }
.btn.primary:hover::after { transform: translateX(120%); }
.chip::before { animation: ping 2.4s ease-in-out infinite; }
@keyframes ping { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 101, 195, 0.6); } 50% { box-shadow: 0 0 0 5px rgba(255, 101, 195, 0); } }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .scene *, .chip::before { animation: none !important; }
  .rise { opacity: 1; transform: none; animation: none; }
  .scene .streak { display: none; }
}

/* ---------- Galería del auto ---------- */
.gallery:not(.g-on) .g-btn, .gallery:not(.g-on) .g-count { display: none; }
.g-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.g-main { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.55); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); cursor: pointer; }
.g-btn:hover { background: rgba(0, 0, 0, 0.8); }
.g-prev { left: 10px; }
.g-next { right: 10px; }
.g-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.g-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.g-thumb { flex: 0 0 auto; width: 88px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: 0.65; scroll-snap-align: center; transition: opacity 0.15s ease, border-color 0.15s ease; }
.g-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.g-thumb:hover { opacity: 1; }
.g-thumb[aria-current='true'] { opacity: 1; border-color: var(--pink); }

.detail > *, .gallery, .g-stage { min-width: 0; }
.g-thumbs { max-width: 100%; }
