/* Pegassi — tokens del ADN (docs/design-dna.json): negro, blanco, grises y un solo acento amarillo */
:root {
  --black: #000;
  --ink: #fff;
  --c-181: #181818;
  --c-202: #202020;
  --c-2f: #2f2f2f;
  --c-55: #555;
  --c-7d: #7d7d7d;
  --c-96: #969696;
  --c-dc: #dcdcdc;
  --c-f5: #f5f5f5;
  --gold: #ffc000;
  --gold-ink: #917300;
  --ok: #3bb273;
  --err: #e5484d;
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 2.6vw, 36px);
  --max: 1440px;
  --head-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--black); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 300 18px/28px var(--f-body); background: var(--black); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #000; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- tipografía ---------- */
.display, .h1, .h2, .h3, .overline, .btn, .label { font-family: var(--f-display); text-transform: uppercase; }
.display { font-size: clamp(56px, 8.4vw, 120px); line-height: 0.92; font-weight: 700; margin: 0; letter-spacing: 0; }
.h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 0.9; font-weight: 700; margin: 0; }
.h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1; font-weight: 700; margin: 0; }
.h3 { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.2; font-weight: 600; margin: 0; letter-spacing: 0.01em; }
.overline { font-size: clamp(16px, 1.7vw, 24px); font-weight: 600; letter-spacing: 0.01em; margin: 0 0 10px; }
.label { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--c-96); }
.lead { font-size: 18px; line-height: 28px; color: var(--c-dc); max-width: 68ch; }
.muted { color: var(--c-96); }

/* ---------- botones (rectos, en mayúsculas, con flecha) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 56px; padding: 0 22px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em; transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn svg { width: 20px; height: 20px; transition: transform 0.35s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(5px); }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: #ffcf3d; }
.btn-ghost { background: rgba(255, 255, 255, 0.16); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.28); }
.btn-line { background: transparent; color: #fff; padding: 0; min-height: 44px; border-bottom: 1px solid var(--c-7d); gap: 40px; }
.btn-line:hover { border-color: #fff; }
.btn-dark { background: #000; color: #fff; border: 1px solid var(--c-55); }
.btn-dark:hover { border-color: #fff; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-sm { min-height: 40px; font-size: 13px; padding: 0 14px; gap: 14px; }

/* ---------- cabecera ---------- */
.head {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad);
  background: linear-gradient(#000 0%, rgba(0, 0, 0, 0.55) 60%, transparent);
  transition: background 0.4s var(--ease);
}
.head.solid { background: #000; }
.head-menu { justify-self: start; display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; cursor: pointer;
  font: 700 15px var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; padding: 8px 0; }
.burger { width: 22px; height: 14px; position: relative; }
.burger i { position: absolute; left: 0; right: 0; height: 1.5px; background: #fff; transition: transform 0.35s var(--ease), opacity 0.2s; }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 6px; } .burger i:nth-child(3) { top: 12px; }
.menu-open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.head-logo img { height: 44px; width: auto; }
.head-right { justify-self: end; display: flex; gap: 6px; }
.head-icon { display: grid; place-items: center; width: 40px; height: 40px; }
.head-icon svg { width: 22px; height: 22px; }

/* menú a pantalla completa en columnas */
.menu {
  position: fixed; inset: 0; z-index: 40; background: #000; padding: calc(var(--head-h) + 28px) var(--pad) 40px;
  overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity 0.4s var(--ease), visibility 0s 0.4s;
}
.menu-open .menu { visibility: visible; opacity: 1; transition: opacity 0.4s var(--ease); }
.menu-open { overflow: hidden; }
.menu-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 48px); }
.menu-col h3 { margin: 0 0 6px; }
.menu-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--c-2f);
  font: 700 clamp(18px, 1.6vw, 22px) var(--f-display); text-transform: uppercase; }
.menu-link svg { width: 18px; height: 18px; opacity: 0.7; transition: transform 0.3s var(--ease); }
.menu-link:hover svg { transform: translateX(5px); opacity: 1; }
.menu-link:hover { border-color: var(--c-7d); }
.menu-sub { max-width: var(--max); margin: 48px auto 0; padding-top: 28px; border-top: 1px solid var(--c-55);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 48px); }
.menu-sub a { display: block; padding: 12px 0; border-bottom: 1px solid var(--c-2f); font-size: 15px; color: var(--c-dc); }
.menu-sub a:hover { color: #fff; }
.menu .reveal-item { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.menu-open .menu .reveal-item { opacity: 1; transform: none; transition-delay: calc(0.08s + var(--i, 0) * 0.025s); }

/* ---------- foto pendiente (los staff suben las capturas del juego) ---------- */
.ph { position: relative; background: radial-gradient(ellipse at 50% 60%, #1b1b1b, #050505 70%); overflow: hidden; }
.ph::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: min(46%, 520px); aspect-ratio: 5 / 2;
  background: url("/img/silhouette.svg?v=2") center / contain no-repeat; opacity: 0.16;
}
.ph.wait::before, .ph.wait::after { content: none; } /* mientras llega la foto: fondo oscuro, sin silueta */
.ph-logo::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -140%);
  background: url("/img/pegassi-mark.svg") center / contain no-repeat; opacity: 0.18;
}
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- héroe ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0) 55%), linear-gradient(90deg, rgba(0,0,0,0.45), transparent 60%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(48px, 9vh, 96px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero .overline { color: var(--c-dc); }
.crumbs { position: absolute; z-index: 2; top: calc(var(--head-h) + 18px); left: 0; right: 0; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  font: 700 13px var(--f-display); text-transform: uppercase; display: flex; gap: 10px; letter-spacing: 0.02em; }
.crumbs a { color: #fff; } .crumbs span { color: var(--c-96); } .crumbs i { width: 1px; background: var(--c-7d); }

/* ---------- secciones ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 56px); flex-wrap: wrap; }
.bg-181 { background: var(--c-181); }

/* carrusel de modelos */
.models { position: relative; text-align: center; overflow: hidden; }
.models-stage { position: relative; min-height: clamp(380px, 46vw, 640px); }
.model-slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; visibility: hidden; }
.model-slide.on { visibility: visible; }
.model-slide .tag { font: 600 clamp(16px, 1.5vw, 22px) var(--f-display); text-transform: uppercase; color: var(--gold); letter-spacing: 0.08em; }
.model-slide .display { margin-top: 6px; }
.model-shot { position: relative; width: min(1100px, 92%); aspect-ratio: 16 / 7; margin-top: 18px; pointer-events: none; } /* la foto desborda sobre pestañas y botones */
.model-shot .ph { background: none; }
.model-shot img, .model-shot.ph { width: 100%; height: 100%; object-fit: cover; }
.model-shot img { object-fit: contain; }
.hex-btn { position: absolute; top: 46%; z-index: 3; width: 52px; height: 58px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: #fff; }
.hex-btn svg.hex { position: absolute; inset: 0; width: 100%; height: 100%; }
.hex-btn svg.hex path { fill: none; stroke: var(--c-7d); stroke-width: 1.2; transition: stroke 0.25s, fill 0.25s; }
.hex-btn:hover svg.hex path { stroke: #fff; fill: rgba(255,255,255,0.08); }
.hex-btn svg.ar { width: 16px; height: 16px; position: relative; }
.hex-prev { left: var(--pad); } .hex-next { right: var(--pad); }
.tabs { display: flex; justify-content: center; gap: clamp(14px, 3vw, 48px); flex-wrap: wrap; margin: 26px auto 0; }
.tab { background: none; border: 0; border-bottom: 2px solid var(--c-55); padding: 10px 2px; cursor: pointer; min-width: 120px; white-space: nowrap; flex: none;
  font: 600 14px var(--f-display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-96); transition: color 0.25s, border-color 0.25s; }
.tab:hover { color: #fff; }
.tab.on { color: #fff; border-color: var(--gold); }
.ctas { display: flex; gap: clamp(14px, 2vw, 32px); justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* selección del mes */
.month { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.month-tabs { padding-top: 28px; }
.month-body { flex: 1; display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.4fr; align-items: center; gap: 24px; }
.month-shot { position: relative; aspect-ratio: 16 / 10; }

.month-copy .lead { margin: 18px 0 28px; }
.price { font: 700 clamp(26px, 2.4vw, 34px) var(--f-display); margin: 6px 0 0; }

/* tarjetas de anuncios */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.card { position: relative; overflow: hidden; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; background: var(--c-181); }
.card.wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.card img, .card .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0) 60%); }
.card-copy { position: relative; z-index: 1; padding: clamp(18px, 2.6vw, 40px); }
.card-copy p.lead { margin: 10px 0 0; font-size: 16px; line-height: 24px; max-width: 60ch; }
.card-date { position: absolute; z-index: 1; top: 16px; right: 18px; font: 600 13px var(--f-display); color: var(--c-dc); letter-spacing: 0.06em; }

/* filas (especificaciones / condiciones) */
.spec-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 5vw, 96px); align-items: start; }
.rows { border-top: 1px solid var(--c-2f); }
.row { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--c-2f); }
.row b { font: 600 15px var(--f-display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--c-dc); }
.row span { font: 700 15px var(--f-display); text-transform: uppercase; text-align: right; }
.row p { margin: 6px 0 0; font-size: 16px; line-height: 24px; color: var(--c-96); }
.row.stack { display: block; }

/* cifras gigantes */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fig { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: end; }
.fig strong { font: 700 clamp(60px, 7vw, 104px)/0.85 var(--f-display); }
.fig em { font-style: normal; font: 500 22px var(--f-display); color: var(--c-dc); align-self: end; padding-bottom: 6px; }
.fig small { grid-column: 1 / -1; margin-top: 14px; font-size: 17px; color: var(--c-96); }

/* galería en tarjetas deslizables */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 980px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--pad) 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: center; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-181); }
.rail img { width: 100%; height: 100%; object-fit: cover; }
.rail-bar { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.rail-bar i { width: 44px; height: 3px; background: var(--c-55); transform: scaleX(0.75); transition: background 0.3s, transform 0.4s var(--ease); }
.rail-bar i.on { background: #fff; transform: scaleX(1.2); }

/* rejilla de modelos */
.cat-bar { position: sticky; top: var(--head-h); z-index: 20; background: #000; border-bottom: 1px solid var(--c-202); }
.cat-bar .tabs { margin: 0; padding: 10px 0 0; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.tile { position: relative; display: block; background: var(--c-181); overflow: hidden; }
.tile-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tile-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile-shot img { transform: scale(1.05); }
.tile-copy { padding: 22px 22px 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tile-copy .h2 { font-size: clamp(30px, 2.6vw, 40px); }
.tile .arrow { width: 22px; height: 22px; transition: transform 0.35s var(--ease); flex: none; }
.tile:hover .arrow { transform: translateX(6px); }

/* estado / disponibilidad */
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--f-display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-dc); }
.status::before { content: ""; width: 8px; height: 8px; background: var(--c-7d); transform: rotate(45deg); }
.status.disponible::before { background: var(--ok); }
.status.edicion-limitada::before { background: var(--gold); }
.status.por-encargo::before { background: #29abe2; }
.status.agotado::before { background: var(--err); }

/* formularios (línea inferior, etiqueta en mayúsculas) */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font: 600 13px var(--f-display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-96); }
.input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--c-55); padding: 10px 0; font-size: 17px; border-radius: 0; transition: border-color 0.25s; }
.input:focus { outline: 0; border-color: var(--gold); }
textarea.input { resize: vertical; min-height: 120px; line-height: 26px; }
select.input { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 2px center / 18px no-repeat; }
select.input option { background: #111; }
.notice { padding: 18px 20px; border: 1px solid var(--c-2f); background: var(--c-181); font-size: 16px; line-height: 24px; }
.notice.err { border-color: rgba(229, 72, 77, 0.6); color: #ffb3b5; }
.notice.ok { border-color: rgba(59, 178, 115, 0.6); }

/* hilo de mensajes */
.thread { display: grid; gap: 14px; }
.msg { padding: 16px 18px; background: var(--c-181); max-width: 80%; }
.msg.staff { justify-self: end; background: #241f10; }
.msg header { display: flex; justify-content: space-between; gap: 16px; font: 600 12px var(--f-display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-96); margin-bottom: 6px; }
.msg p { margin: 0; font-size: 16px; line-height: 24px; white-space: pre-wrap; }

/* pie */
.foot { background: #000; border-top: 1px solid var(--c-202); padding: 64px 0 40px; font-size: 14px; line-height: 22px; color: var(--c-96); }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 36px; border-bottom: 1px solid var(--c-2f); flex-wrap: wrap; }
.foot-top img { height: 54px; width: auto; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--c-2f); }
.foot-cols a { display: block; padding: 5px 0; font: 600 14px var(--f-display); text-transform: uppercase; letter-spacing: 0.03em; color: #fff; }
.foot-cols a:hover { color: var(--gold); }
.foot-cols h4 { margin: 0 0 8px; font: 600 12px var(--f-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-7d); }
.foot-legal { padding-top: 26px; font-size: 13px; }

/* animación de entrada (GSAP la quita; sin JS se ve todo) */
.js [data-reveal] { opacity: 0; transform: translateY(32px); }
.js [data-reveal="fade"] { transform: none; }
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; }

@media (max-width: 900px) {
  .menu-grid, .menu-sub, .foot-cols { grid-template-columns: 1fr 1fr; }
  .month-body, .spec-split { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; gap: 36px; }
  .form { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card.wide { aspect-ratio: 16 / 10; }
  .hex-btn { top: 38%; transform: scale(0.8); }
}
@media (max-width: 560px) {
  :root { --head-h: 62px; }
  .head-logo img { height: 36px; }
  .head-menu span:last-child { display: none; }
  .menu-grid, .menu-sub, .foot-cols { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .ctas { flex-direction: column; align-items: stretch; padding: 0 var(--pad); }
  .tab { min-width: 0; }
  .msg { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* valoraciones del juego (0-100) */
.ratings { margin-top: 32px; display: grid; gap: 14px; }
.rating { display: grid; grid-template-columns: 120px 1fr 36px; align-items: center; gap: 16px; }
.rating span { font: 600 13px var(--f-display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-96); }
.rating i { height: 3px; background: var(--c-2f); position: relative; }
.rating b { position: absolute; inset: 0 auto 0 0; width: var(--v); background: #fff; }
.rating em { font: 700 16px var(--f-display); font-style: normal; text-align: right; }

/* ===== más Lamborghini ===== */
/* frase de presentación gigante y centrada (como "YOU CAN'T HIDE WHO YOU ARE") */
.statement { text-align: center; padding: clamp(96px, 14vw, 180px) 0 clamp(64px, 8vw, 110px); }
.statement .display { max-width: 16ch; margin: 0 auto; }
.statement .lead { margin: 28px auto 0; text-align: center; }

/* tarjetas destacadas con título sobre la foto + botón "+" (como DELANTERO / ALERÓN) */
.feat-rail { grid-auto-columns: min(72vw, 880px); }
.feat { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-181); }
.feat > img, .feat > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.feat:hover > img { transform: scale(1.04); }
.feat::before { content: ""; position: absolute; inset: 0 0 auto; height: 40%; background: linear-gradient(rgba(0,0,0,0.6), transparent); z-index: 1; pointer-events: none; }
.feat h3 { position: absolute; z-index: 2; top: clamp(16px, 2.4vw, 32px); left: clamp(16px, 2.4vw, 32px); margin: 0; font: 700 clamp(24px, 2.6vw, 40px)/1 var(--f-display); text-transform: uppercase; }
.feat-plus { position: absolute; z-index: 4; right: 18px; bottom: 18px; width: 44px; height: 44px; display: grid; place-items: center; background: #fff; color: #000; border: 0; cursor: pointer; transition: transform 0.35s var(--ease); }
.feat-plus:hover { transform: rotate(90deg); }
.feat-plus svg { width: 18px; height: 18px; }
.feat-text { position: absolute; z-index: 3; inset: 0; background: rgba(0,0,0,0.86); display: flex; align-items: flex-end; padding: clamp(20px, 3vw, 44px); opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0s 0.4s; }
.feat.open .feat-text { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease); }
.feat.open .feat-plus { transform: rotate(45deg); }
.feat-text p { margin: 0; max-width: 60ch; font-size: 17px; line-height: 27px; color: var(--c-dc); }
.rail-nav { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 22px; }
.rail-nav .rail-bar { margin: 0; }
.rail-arrow { background: none; border: 0; color: #fff; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; opacity: 0.7; }
.rail-arrow:hover { opacity: 1; }
.rail-arrow svg { width: 18px; height: 18px; }

/* secciones a pantalla completa con título centrado (Exterior / Interior) */
.bleed { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.bleed > .bleed-media { position: absolute; inset: 0; }
.bleed > .bleed-media img, .bleed > .bleed-media .ph { width: 100%; height: 115%; object-fit: cover; }
.bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0) 55%); }
.bleed-copy { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(56px, 9vh, 110px); text-align: center; }
.bleed-copy .display { margin-bottom: 18px; }
.bleed-copy .lead { margin: 0 auto; text-align: center; }

/* carrusel de modelos sobre fondo claro (como el de la portada de Lamborghini) */
.models.light { background: #fff; color: #000; }
.models.light .btn-line { color: #000; border-color: var(--c-96); }
.models.light .btn-line:hover { border-color: #000; }
.models.light .tab { color: var(--c-7d); border-color: var(--c-dc); }
.models.light .tab:hover, .models.light .tab.on { color: #000; }
.models.light .tab.on { border-color: var(--gold); }
.models.light .model-slide .tag { color: var(--gold-ink); }
.models.light .hex-btn { color: #000; }
.models.light .hex-btn svg.hex path { stroke: var(--c-96); }
.models.light .hex-btn:hover svg.hex path { stroke: #000; fill: rgba(0,0,0,0.05); }
.models.light .model-shot .ph { background: none; }
.models.light .model-shot .ph::after { filter: invert(1); opacity: 0.1; }


/* banda "Visite nuestro concesionario" */
.visit { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.visit .bleed-media { position: absolute; inset: 0; }
.visit .bleed-media img, .visit .bleed-media .ph { width: 100%; height: 100%; object-fit: cover; }
.visit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.85), rgba(0,0,0,0.2) 70%); }
.visit-copy { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.visit-copy .lead { margin: 22px 0 32px; max-width: 46ch; }

/* tarjetas del catálogo con el nombre sobre la foto */
.tile.over .tile-shot { aspect-ratio: 4 / 3; }
.tile.over .tile-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent 55%); }
.tile.over .tile-copy { position: absolute; inset: auto 0 0 0; z-index: 1; }

@media (max-width: 900px) {
  .feat-rail { grid-auto-columns: 86vw; }
  .bleed { min-height: 80vh; }
}

/* distintivos (Exclusivo, Novedad...) */
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, 0.5); font: 600 12px var(--f-display); text-transform: uppercase; letter-spacing: 0.08em; color: #fff; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(4px); }
.badge.exclusivo, .badge.solo-invitacion { border-color: var(--gold); color: var(--gold); }
.badge.ultima-unidad, .badge.oferta { background: var(--gold); border-color: var(--gold); color: #000; }
.models.light .badge { color: #000; border-color: var(--c-96); background: none; }
.models.light .badge.exclusivo, .models.light .badge.solo-invitacion { color: var(--gold-ink); border-color: var(--gold-ink); }
.models.light .badge.ultima-unidad, .models.light .badge.oferta { background: var(--gold); color: #000; }

/* superficies del navegador con la paleta de la marca */
html { scrollbar-color: #3a3a3a #000; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: var(--c-7d); }
input, textarea { caret-color: var(--gold); }
.price, .row span, .fig strong, .tile-price, .rating em { font-variant-numeric: tabular-nums lining-nums; }
.btn:active { transform: scale(0.985); }
body { animation: page-in 0.6s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } }

/* buscador (como el de lamborghini.com) */
.search { position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, 0.96); padding-top: calc(var(--head-h) + 32px); overflow-y: auto;
  visibility: hidden; opacity: 0; transition: opacity 0.35s var(--ease), visibility 0s 0.35s; }
.search-open .search { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease); }
.search-open { overflow: hidden; }
.search-bar { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--c-7d); padding-bottom: 14px; }
.search-bar > svg { width: 28px; height: 28px; flex: none; color: var(--c-96); }
.search-bar input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: 700 clamp(28px, 4vw, 56px)/1 var(--f-display); text-transform: uppercase; color: #fff; }
.search-bar input::placeholder { color: var(--c-55); }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-close { background: none; border: 0; color: #fff; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; }
.search-close svg { width: 24px; height: 24px; }
.search-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 0 32px; padding: 20px 0 60px; }
.search-item { display: grid; grid-template-columns: 112px 1fr 22px; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--c-2f); }
.search-item:hover { border-color: var(--c-7d); }
.search-item:hover > svg { transform: translateX(5px); }
.search-item > svg { width: 20px; height: 20px; transition: transform 0.3s var(--ease); }
.search-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-181); }
.search-thumb img, .search-thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.search-item b { display: block; font: 700 22px/1.1 var(--f-display); text-transform: uppercase; }
.search-item small { display: block; margin-top: 4px; font-size: 14px; color: var(--c-96); }
button.head-icon { background: none; border: 0; color: #fff; cursor: pointer; }

/* precio en las tarjetas del catálogo */
.tile-price { margin: 8px 0 0; font: 600 18px var(--f-display); letter-spacing: 0.02em; color: var(--c-dc); }
.foot-contact { margin: 24px 0 0; font: 600 13px var(--f-display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-96); }
.foot-contact:empty { display: none; }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

/* ===== chat de solicitudes (cliente y staff) — bloques rectos, tipografía condensada ===== */
.chat { position: relative; display: grid; grid-template-rows: 1fr auto; border: 1px solid var(--c-2f); background: #050505; min-height: 420px; }
.ch-scroll { overflow-y: auto; padding: 20px clamp(14px, 2.4vw, 28px) 12px; overscroll-behavior: contain; scroll-behavior: auto; }
.ch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ch-day, .ch-event { display: flex; align-items: center; gap: 14px; margin: 18px 0 10px; font: 600 12px var(--f-display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-7d); }
.ch-day::before, .ch-day::after, .ch-event::before, .ch-event::after { content: ""; flex: 1; height: 1px; background: var(--c-2f); }
.ch-day span { color: var(--c-dc); }
.ch-event { margin: 10px 0; font-weight: 500; letter-spacing: 0.06em; }
.ch-msg { max-width: min(78%, 620px); display: grid; gap: 6px; margin-top: 12px; }
.ch-msg.cont { margin-top: 2px; }
.ch-msg.mine { justify-self: end; }
.ch-who { display: flex; align-items: center; gap: 8px; font: 600 13px var(--f-display); text-transform: uppercase; letter-spacing: 0.05em; }
.ch-msg.mine .ch-who { justify-content: flex-end; }
.ch-who em { font-style: normal; color: var(--gold); letter-spacing: 0.1em; font-size: 11px; }
.ch-shield { width: 14px; height: 16px; }
.ch-body { position: relative; padding: 12px 16px 10px; background: var(--c-181); }
.ch-msg.mine .ch-body { background: #262626; }
.ch-msg.theirs .ch-body { background: transparent; box-shadow: inset 0 0 0 1px var(--c-2f); }
.ch-body p { margin: 0; font-size: 16px; line-height: 24px; white-space: normal; overflow-wrap: anywhere; color: #f2f2f2; }
.ch-body a { text-decoration: underline; text-underline-offset: 3px; color: var(--gold); }
.ch-time { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 4px; font: 500 11px var(--f-display); letter-spacing: 0.06em; color: var(--c-7d); font-variant-numeric: tabular-nums; }
.tick { width: 15px; height: 11px; color: var(--c-7d); }
.tick.seen { width: 20px; color: var(--gold); }
.ch-sending { font-style: italic; }
.ch-msg.pending .ch-body { opacity: 0.6; }
.ch-msg.internal .ch-body { background: repeating-linear-gradient(135deg, #1d1a10 0 10px, #1a170e 10px 20px); box-shadow: inset 0 0 0 1px rgba(255, 192, 0, 0.35); }
.ch-note { padding: 2px 8px; background: var(--gold); color: #000; font-size: 11px; letter-spacing: 0.08em; }
.ch-msg:last-child { animation: ch-in 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes ch-in { from { opacity: 0; transform: translateY(10px); } }
.ch-pill { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 2; border: 0; cursor: pointer; padding: 8px 16px; background: var(--gold); color: #000;
  font: 700 12px var(--f-display); text-transform: uppercase; letter-spacing: 0.08em; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.ch-compose { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0; border-top: 1px solid var(--c-2f); background: #0a0a0a; }
.ch-compose textarea { resize: none; border: 0; outline: 0; background: transparent; color: #fff; font: 400 16px/24px var(--f-body); padding: 16px clamp(14px, 2.4vw, 28px); max-height: 180px; min-height: 56px; caret-color: var(--gold); }
.ch-compose textarea::placeholder { color: var(--c-55); }
.ch-send { width: 64px; height: 56px; border: 0; background: var(--gold); color: #000; cursor: pointer; display: grid; place-items: center; transition: background 0.2s; }
.ch-send:hover { background: #ffcf3d; }
.ch-send svg { width: 22px; height: 22px; transition: transform 0.3s var(--ease); }
.ch-send:hover svg { transform: translateX(3px); }
.ch-tools { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px clamp(14px, 2.4vw, 28px); border-top: 1px solid #151515;
  font: 600 11px var(--f-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-55); }
.ch-closed { padding: 18px clamp(14px, 2.4vw, 28px); border-top: 1px solid var(--c-2f); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font: 600 14px var(--f-display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-dc); }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--f-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-96); }
.live-dot::before { content: ""; width: 7px; height: 7px; background: var(--ok); transform: rotate(45deg); animation: live 2s ease-in-out infinite; }
.live-dot.off::before { background: var(--c-55); animation: none; }
@keyframes live { 50% { opacity: 0.35; } }
@media (max-width: 560px) { .ch-msg { max-width: 92%; } .ch-pill { bottom: 110px; } }
@media (prefers-reduced-motion: reduce) { .ch-msg:last-child, .live-dot::before { animation: none; } }
.t-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--c-2f); border-bottom: 1px solid var(--c-2f); margin-bottom: 22px; }
.t-info div { padding: 14px 16px 14px 0; display: grid; gap: 4px; }
.t-info b { font: 600 11px var(--f-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-7d); }
.t-info span { font: 700 16px var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; }

/* flechas del carrusel: bien visibles, como en lamborghini.com */
.hex-btn { width: 60px; height: 66px; top: 50%; transform: translateY(-50%); }
.hex-btn svg.hex path { stroke-width: 1.6; }
.hex-btn svg.ar { width: 20px; height: 20px; stroke-width: 2; }
.models.light .hex-btn svg.hex path { stroke: #000; }
.models.light .hex-btn:hover svg.hex path { fill: #000; stroke: #000; }
.models.light .hex-btn:hover { color: #fff; }
/* detalles: rejilla de tarjetas (sin carrusel ni indicador) */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.feat-grid .feat:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .feat-grid { grid-template-columns: 1fr; } .feat-grid .feat:first-child:nth-last-child(odd) { aspect-ratio: 16 / 9; } .hex-btn { top: 42%; } }

/* ===== ficha estilo lamborghini.com: secciones con foto grande y tarjetas ===== */
.show { padding: clamp(72px, 9vw, 130px) 0 clamp(40px, 5vw, 70px); }
.show.alt { background: #0d0d0d; }
.show-head { text-align: center; max-width: 900px; margin: 0 auto clamp(28px, 4vw, 56px); }
.show-head .lead { margin: 20px auto 0; text-align: center; }
.show > .wrap { max-width: none; } /* foto y tarjetas a todo el ancho, solo con el margen lateral */
.show-img { position: relative; width: 100%; aspect-ratio: 16 / 8; max-height: 86vh; overflow: hidden; background: var(--c-181); }
.show-img img, .show-img .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.show-cards { display: grid; gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(12px, 1.6vw, 24px); }
.show-cards.n1 { grid-template-columns: 1fr; }
.show-cards.n2 { grid-template-columns: repeat(2, 1fr); }
.show-cards.n3 { grid-template-columns: repeat(3, 1fr); }
.show-cards .feat { width: 100%; aspect-ratio: 4 / 3; max-height: 78vh; }
.show-cards.n1 .feat { aspect-ratio: 21 / 9; }
.show-cards .feat h3 { font-size: clamp(20px, 1.8vw, 28px); }

/* galería con contador y flechas */
.gal { position: relative; }
.gal-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-181); }
.gal-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.8s var(--ease), transform 1.6s var(--ease); transform: scale(1.04); }
.gal-slide.on { opacity: 1; transform: none; }
.gal-slide img, .gal-slide .ph { width: 100%; height: 100%; object-fit: cover; }
.gal-bar { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 0; border-bottom: 1px solid var(--c-2f); padding-bottom: 14px; }
.gal-count { font: 700 18px var(--f-display); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.gal-nav { display: flex; gap: 10px; }
.gal-btn { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 1px solid var(--c-55); color: #fff; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.gal-btn:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.gal-btn svg { width: 20px; height: 20px; }

/* especificaciones desplegables */
.spec-extra { display: none; }
#specs-sec.all .spec-extra { display: flex; }
#specs-sec.all .spec-more svg { transform: rotate(45deg); }
.spec-more { margin-top: 22px; }
.spec-more svg { transition: transform 0.3s var(--ease); }
@media (max-width: 760px) {
  .show-cards.n2, .show-cards.n3 { grid-template-columns: 1fr; }
  .show-img { aspect-ratio: 4 / 3; }
}

/* logotipo del modelo (cursiva con filete dorado, como el de REVUELTO en lamborghini.com) */
.wordmark { display: inline-block; position: relative; padding: 0 6px 8px; font: italic 800 clamp(22px, 2.2vw, 32px)/1 var(--f-display);
  text-transform: uppercase; letter-spacing: 0.14em; transform: skewX(-10deg); }
.wordmark::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); }
.models.light .wordmark { color: #000; }
.model-slide .slogan { font-size: clamp(40px, 6.2vw, 96px); max-width: 15ch; margin-top: 14px; }

/* ---------- Mi Pegassi ---------- */
.contain { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.veh { background: var(--c-181); display: grid; grid-template-rows: auto 1fr; }
.veh-shot { position: relative; aspect-ratio: 16 / 7; background: radial-gradient(ellipse at 50% 70%, #262626, #0d0d0d 70%); }
.veh-shot .contain { padding: 6% 8%; box-sizing: border-box; }
.veh-body { padding: clamp(20px, 2.4vw, 34px); }
.veh-body .h3 { margin-bottom: 18px; text-transform: uppercase; font-family: var(--f-display); font-weight: 700; }
.veh-body .row { padding: 13px 0; }
.veh-body .row span { text-align: right; font-variant-numeric: tabular-nums; }
.veh-tuning { margin: 0; color: var(--c-dc); white-space: pre-line; line-height: 1.6; }
.acc-ticket { transition: background 0.2s; padding-left: 12px; padding-right: 12px; }
.acc-ticket:hover { background: var(--c-181); }
.status.abierto::before { background: var(--gold); }
.status.en-curso::before { background: #29abe2; }
.status.cerrado::before { background: var(--c-7d); }
.muted-sm { font-size: 13px; color: var(--c-7d, #7d7d7d); }
