/* Tienda (PAGINA VERSION 2): ficha de producto, página principal del sitio.
   Independiente de styles.css — no comparte clases con la versión 1.
   Tema: sistema / claro / oscuro (data-theme en <html>, lo pone tienda.js). */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f4f4f5;
  --stage: #f4f4f5;        /* fondo de las fotos de producto (tienen fondo blanco) */
  --photo: #ffffff;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --ink: #111113;
  --ink-2: #52525b;
  --ink-3: #8a8a93;
  --red: #e2231a;
  --red-dark: #c01c14;
  --red-soft: #fdecea;
  --red-text: #c01c14;
  --green: #15803d;
  --green-soft: #effaf2;
  --on-green: #fff;    /* texto o tilde sobre fondo verde */
  --wa: #25d366;       /* verde oficial de WhatsApp */
  --wa-dark: #1ebe5b;
  --focus: rgba(17, 17, 19, .08);
  --topbar: #111113;
  --footer: #111113;
  --footer-line: #2a2a2e;
  --cutout: #6e6e71;       /* muescas del ticket de la promo (color del fondo oscurecido) */
  --logo-filter: invert(1); /* el logo es arte de línea blanco */
  --radius: 14px;
  --wrap: 1180px;
  color-scheme: light;
}

/* Oscuro: por sistema (si no se eligió claro) o elegido a mano */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e10; --surface: #17171a; --soft: #1e1e22; --stage: #ececef; --photo: #f4f4f5;
    --line: #2c2c31; --line-strong: #3a3a40;
    --ink: #f4f4f5; --ink-2: #b4b4bc; --ink-3: #85858f;
    --red: #e8352c; --red-soft: rgba(232, 53, 44, .16); --red-text: #ff8a80;
    --green: #3ecf74; --green-soft: rgba(62, 207, 116, .13); --on-green: #06260f;
    --focus: rgba(255, 255, 255, .12);
    --topbar: #000000; --footer: #08080a; --footer-line: #232327;
    --cutout: #070708; --logo-filter: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e10; --surface: #17171a; --soft: #1e1e22; --stage: #ececef; --photo: #f4f4f5;
  --line: #2c2c31; --line-strong: #3a3a40;
  --ink: #f4f4f5; --ink-2: #b4b4bc; --ink-3: #85858f;
  --red: #e8352c; --red-soft: rgba(232, 53, 44, .16); --red-text: #ff8a80;
  --green: #3ecf74; --green-soft: rgba(62, 207, 116, .13); --on-green: #06260f;
  --focus: rgba(255, 255, 255, .12);
  --topbar: #000000; --footer: #08080a; --footer-line: #232327;
  --cutout: #070708; --logo-filter: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
/* height:auto en todas: con los atributos width/height del HTML, sin esto
   una foto achicada por max-width queda estirada (desproporcionada). */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Top ---------- */
/* Franja de novedades que corre de costado (loop infinito, como la versión 1) */
.topbar {
  background: var(--topbar);
  color: #e4e4e7;
  font-size: 12.5px;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}
.topbar-track { display: inline-flex; width: max-content; animation: tickerScroll 30s linear infinite; }
.topbar:hover .topbar-track { animation-play-state: paused; }
/* inline-block (no flex): con flex se pierden los espacios alrededor de <strong> */
.topbar-item { display: inline-block; padding-right: 26px; }
.topbar-item::after { content: ""; display: inline-block; vertical-align: middle; width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin-left: 26px; }
.topbar-item strong { color: #fff; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
/* Logo partido en dos, de costado (como la versión 1): bandera + auto + texto */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-flag { width: 22px; height: auto; display: block; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.brand-logo { height: 30px; width: auto; filter: var(--logo-filter); }
.brand-wordmark { font-weight: 800; font-size: 15px; letter-spacing: 0; color: var(--ink); white-space: nowrap; }
.brand-uy { color: var(--ink-3); font-size: 11px; letter-spacing: .15em; margin-left: 2px; font-weight: 700; }
/* La separación se achica en pantallas medianas (notebooks chicas) para que
   el menú entre sin empujar los botones de la derecha fuera de la pantalla. */
.nav { display: flex; gap: clamp(14px, 1.7vw, 26px); font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-2); transition: color .15s; white-space: nowrap; }
/* Con el logo de costado, el menú completo entra recién desde ~1100 px */
/* El menú necesita ~1180 px junto a la marca y los botones: por debajo se
   oculta (antes se salía de la pantalla y aparecía una barra horizontal). */
@media (max-width: 1200px) { .nav { display: none; } }
.nav a:hover { color: var(--ink); }
.header-ig {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 12px; font-size: 13px; font-weight: 600; text-decoration: none;
  transition: border-color .15s;
}
/* Al pasar el mouse, el recuadro toma los colores de Instagram */
.header-ig { transition: background .2s, border-color .2s, color .2s; }
.header-ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; color: #fff; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--ink-3); padding: 18px 0 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Producto ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 32px; padding-bottom: 64px; }

.gallery { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; position: sticky; top: 84px; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumb {
  padding: 0; border: 1.5px solid var(--line); border-radius: 10px; background: var(--photo);
  aspect-ratio: 1; overflow: hidden; cursor: pointer; transition: border-color .15s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--ink-3); }
.thumb.is-active { border-color: var(--ink); }

.stage {
  margin: 0; position: relative; background: var(--stage); border-radius: 18px;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.stage img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .2s; }
.stage img.is-fading { opacity: 0; }
.stage-badge {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  background: var(--photo); color: #111113; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.buy { display: flex; flex-direction: column; }
.eyebrow { color: var(--red); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.buy h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.lead { color: var(--ink-2); margin-top: 12px; font-size: 15.5px; }

.price-block { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0 0; padding: 20px 0; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.price-old { color: var(--ink-3); font-size: 17px; }
.price-save { background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; align-self: center; }
.price-note { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }
.no-stock { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--soft); border: 1.5px solid transparent; border-radius: 12px; padding: 12px 16px; font-size: 15.5px; color: var(--ink-2); margin-top: 10px; opacity: .9; }

/* Fila de reserva: misma forma que "Comprar mi cockpit", pero activa y con cartel NUEVO */
.reserve-card {
  display: block; text-decoration: none; color: inherit; position: relative;
  border: 1.5px solid var(--red); border-radius: 12px; padding: 12px 14px 12px;
  background: linear-gradient(135deg, var(--red-soft), transparent 70%);
  transition: transform .2s ease, box-shadow .2s ease;
}
.reserve-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(226, 35, 26, .18); }
.reserve-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.reserve-title::after { content: " →"; transition: margin .2s; }
.reserve-card:hover .reserve-title::after { margin-left: 4px; }
.new-badge {
  flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--red); border-radius: 999px; padding: 3px 10px;
  box-shadow: 0 0 0 0 rgba(232, 53, 44, .5); animation: newPulse 2s ease-out infinite;
}
@keyframes newPulse { 0% { box-shadow: 0 0 0 0 rgba(232,53,44,.5); } 70% { box-shadow: 0 0 0 8px rgba(232,53,44,0); } 100% { box-shadow: 0 0 0 0 rgba(232,53,44,0); } }
.new-badge[hidden] { display: none; }
.reserve-card .price-kicker { display: block; }
/* Después del restock: solo el precio, sin marco */
/* Lo que es solo de la reserva se oculta con `hidden`: que ningún display le gane */
[data-phase][hidden] { display: none !important; }
/* Después del restock la fila es solo el precio: el que compra es el botón */
.reserve-card.is-static { cursor: default; }
.reserve-card.is-static:hover { transform: none; box-shadow: none; }
.reserve-card.is-static .reserve-title::after { content: none; }
.no-stock-price { color: var(--ink); font-weight: 700; margin-left: 4px; white-space: nowrap; }
.no-stock-badge { flex: none; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 11px; }
.price-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }

.pay-split { background: var(--soft); border-radius: 12px; padding: 14px 16px; margin-top: 16px; font-size: 14px; }
.pay-split-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.pay-split-row span { color: var(--ink-2); }
.pay-split-row span strong { color: var(--ink); font-weight: 600; }
.pay-split-foot { border-top: 1px dashed var(--line-strong); margin-top: 8px; padding-top: 10px; font-size: 12.5px; color: var(--ink-2); }

.stock { display: flex; align-items: center; justify-content: center; text-align: center; gap: 8px; color: var(--green); font-size: 13px; font-weight: 600; margin: 20px 0; }
.stock-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

.bullets { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.bullets li { display: flex; gap: 10px; }
.bullets .ic { width: 17px; height: 17px; margin-top: 2px; stroke-width: 2.2; }

.methods { margin: 22px 0 18px; }
.methods-label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.method { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--ink); border-radius: 10px; padding: 10px 14px; }
.method img { width: 28px; height: 28px; border-radius: 6px; }
.method div { display: flex; flex-direction: column; line-height: 1.3; }
.method strong { font-size: 14px; }
.method span { font-size: 12.5px; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 10px; border: 1.5px solid transparent; padding: 11px 20px;
  font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer; text-align: center; text-wrap: balance;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { width: 100%; padding: 15px 20px; font-size: 15px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-mp { background: #009ee3; color: #fff; }
.btn-mp:hover { background: #0087c2; }
#send-wa.btn-mp { animation: none; }
.bank > .btn-mp { display: flex; width: fit-content; margin: 0 auto 14px; }
.btn:disabled { opacity: .7; cursor: progress; }
.buy .btn + .btn { margin-top: 10px; }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.perk { background: var(--soft); border-radius: 12px; padding: 16px 10px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.perk .ic { margin: 0 0 8px; color: var(--ink); }
.perk strong { font-size: 13px; color: var(--ink); }

/* ---------- Tabs ---------- */
.info { border-top: 1px solid var(--line); padding-top: 48px; padding-bottom: 80px; scroll-margin-top: 32px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  flex: 1 1 0; text-align: center;
  padding: 20px 16px; font-size: 16px; font-weight: 600; color: var(--ink-3); cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--red); }
.panel { padding-top: 44px; }
.panel h2 { font-size: 28px; font-weight: 800; }

/* Descripción: mismo armado que la ficha técnica (texto a la izquierda,
   imagen a la derecha), así las pestañas se ven parejas. */
.desc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.desc-img { margin: 0; background: var(--stage); border-radius: var(--radius); overflow: hidden; }
.desc-img img { width: 100%; height: auto; mix-blend-mode: multiply; }
/* Dos fotos con datos (butaca / volante y pedalera): se pasan con las
   flechas, los puntitos o deslizando con el dedo. */
.desc-img:has(.slides) { background: none; border-radius: 0; overflow: visible; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; background: var(--stage); border-radius: var(--radius); }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; scroll-snap-align: center; }
.slide-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.slide-btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 24px; line-height: 1; padding: 0 0 3px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity .2s, border-color .2s; }
.slide-btn:hover { border-color: var(--ink); }
.slide-btn[disabled] { opacity: .35; cursor: default; }
.slide-dots { display: flex; gap: 6px; }
.slide-dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: var(--line-strong); cursor: pointer; transition: width .2s, background-color .2s; }
.slide-dots button.is-active { background: var(--red); width: 22px; }
/* Texto solo para buscadores y lectores de pantalla (no se ve) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.desc-copy p { color: var(--ink-2); margin-top: 14px; }
.desc-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.desc-media figure { margin: 0; background: var(--photo); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 12px; }
.desc-media img { width: 100%; height: 100%; object-fit: contain; }
.desc-media figure.is-dark { background: var(--soft); padding: 0; }
.desc-media figure.is-dark img { object-fit: cover; }

.clients { margin-top: 56px; }
.clients h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.clients-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.clients-row img { height: 220px; width: 100%; object-fit: cover; border-radius: 12px; scroll-snap-align: start; }
.clients-more { font-size: 13px; color: var(--ink-2); margin-top: 12px; }

.specs { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.spec-table { margin: 0; border-top: 1px solid var(--line); }
.spec-table div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table dt { color: var(--ink-2); }
.spec-table dd { margin: 0; font-weight: 600; }
.specs-img { margin: 0; background: var(--stage); border-radius: var(--radius); overflow: hidden; }
.specs-img img { mix-blend-mode: multiply; }

.compat-head p { color: var(--ink-2); margin-top: 8px; }
.compat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.compat label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; text-align: center; }
/* Títulos: renglones parejos, sin una palabra suelta en el último. */
h1, h2 { text-wrap: balance; }
/* "Buscá tu modelo" centrado en los tres selectores (computadora y celular). */
.compat select { text-align: center; text-align-last: center; }
.compat-result { margin-top: 18px; display: grid; gap: 8px; }
.compat-result div { display: flex; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.compat-result .ic { stroke-width: 2.4; }

.howto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.howto li { background: var(--soft); border-radius: var(--radius); padding: 20px; }
.howto-n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.howto strong { display: block; font-size: 15px; }
.howto p { color: var(--ink-2); font-size: 13.5px; margin-top: 6px; }
.howto-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 28px; }
.howto-cta p { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding: 0 0 18px; }
.faq-more { color: var(--ink-2); padding-top: 20px; }
.faq-more a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Formularios ---------- */
input, select {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus); }
input.is-error, select.is-error { border-color: var(--red); }

/* ---------- Footer ---------- */
.footer { background: var(--footer); border-top: 1px solid var(--footer-line); color: #d4d4d8; padding: 40px 0 28px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 80px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; font-size: 14px; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: #fff; font-weight: 600; transition: color .2s; }
/* Al pasar el mouse, solo el texto toma el color de cada red */
.footer-links a[href*="wa.me"]:hover, #footer-wa:hover { color: var(--wa); }
.footer-links a[href*="instagram.com"]:hover { color: #e1306c; }
.footer-bottom { border-top: 1px solid var(--footer-line); margin-top: 28px; padding-top: 20px; font-size: 12px; color: #8a8a93; }

/* ---------- Barra mobile ---------- */
.mbar { display: none; }

/* ---------- Checkout ---------- */
.checkout { position: fixed; inset: 0; z-index: 50; }
.checkout[hidden] { display: none; }
.checkout-backdrop { position: absolute; inset: 0; background: rgba(10,10,12,.45); animation: fade .2s ease; }
.checkout-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  background: var(--surface); display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,.15); animation: slideIn .25s ease;
}
@keyframes fade { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }

.checkout-head { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.checkout-head h2 { flex: 1; font-size: 17px; font-weight: 700; }
.icon-btn { background: none; border: 0; width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: var(--soft); }
.icon-btn[hidden] { display: none; }

.steps { list-style: none; margin: 0; padding: 14px 20px; display: flex; gap: 8px; border-bottom: 1px solid var(--line); counter-reset: st; }
.steps li { flex: 1; font-size: 12px; font-weight: 600; color: var(--ink-3); counter-increment: st; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: ""; height: 3px; border-radius: 3px; background: var(--line); }
.steps li.is-current { color: var(--ink); }
.steps li.is-current::before { background: var(--red); }
.steps li.is-done { color: var(--green); }
.steps li.is-done::before { background: var(--green); }

.checkout-body { flex: 1; overflow-y: auto; padding: 20px; }
.order { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 12px; padding: 10px 14px 10px 10px; margin-bottom: 22px; }
.order img { width: 56px; height: 56px; border-radius: 8px; background: var(--photo); object-fit: contain; }
.order-info { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.order-info strong { font-size: 14px; }
.order-info span { font-size: 12px; color: var(--ink-2); }
.order-price { text-align: right; display: flex; flex-direction: column; line-height: 1.25; }
.order-price strong { font-size: 15px; }
.order-price s { font-size: 12px; color: var(--ink-3); }

.step label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.step label:first-child { margin-top: 0; }
.opt { font-weight: 400; color: var(--ink-3); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red-dark); font-size: 13px; margin-top: 12px; }
.step .btn-lg { margin-top: 20px; }

.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.who div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.who strong { font-size: 14px; }
.who span { font-size: 12.5px; color: var(--ink-2); }
.link-btn { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }

.amount-label { font-size: 13px; color: var(--ink-2); margin-top: 22px; }
.amount { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-top: 2px; }

.bank { border: 1.5px solid var(--ink); border-radius: 12px; margin-top: 16px; overflow: hidden; }
.bank-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--soft); font-weight: 700; font-size: 14px; }
.bank-head img { width: 26px; height: 26px; border-radius: 6px; }
.bank-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.bank-row span { color: var(--ink-2); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; cursor: pointer; font-weight: 700; font-variant-numeric: tabular-nums;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.copy-btn.is-copied em { color: var(--green); }

.tip { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); background: var(--soft); border-radius: 10px; padding: 11px 12px; margin-top: 14px; }
.tip .ic { width: 17px; height: 17px; margin-top: 1px; }
.fine { font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.fine.center { text-align: center; }
.fine a, .footer-bottom a { color: inherit; text-decoration: underline; }

.done { text-align: center; padding: 28px 8px; outline: none; }
.done-icon { display: inline-flex; width: 60px; height: 60px; border-radius: 50%; background: var(--green-soft); color: var(--green); align-items: center; justify-content: center; }
.done-icon .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.done h3 { font-size: 21px; margin-top: 16px; }
.done p { color: var(--ink-2); margin: 10px 0 22px; }

/* ---------- Medios de pago (arriba, en la ficha) ---------- */
.methods-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.methods-row .method { border-width: 1px; border-color: var(--line); }
/* Logos de bancos sobre recuadro blanco: el de Mercado Pago es ancho y
   azul oscuro, y sobre fondo oscuro no se veía. */
.pay-logo { flex: none; width: 52px; height: 32px; border-radius: 7px; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; padding: 3px 5px; overflow: hidden; }
.pay-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
/* El logo de Mercado Pago trae mucho margen propio: se agranda para que se lea */
.pay-logo img[src*="mercadopago"] { transform: scale(1.4); }
.method .pay-logo img, .pay-method .pay-logo img { width: 100%; height: 100%; }
.pay-note { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.pay-methods[hidden] { display: none; }
.buy-card .pay-methods { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.bank-head .pay-logo { width: 46px; height: 28px; }
.bank-note { padding: 12px 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); margin: 0; }
.tip[hidden] { display: none; }

/* ---------- Pilotos en pista (carrusel infinito, igual a la versión 1) ---------- */
.clients-section { padding: 64px 0 72px; border-top: 1px solid var(--line); }
.clients-head { text-align: center; margin-bottom: 28px; }
.clients-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.clients-head p:last-child { color: var(--ink-2); margin: 10px auto 0; max-width: 60ch; }
.clients-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.clients-track { display: flex; align-items: center; gap: 16px; width: max-content; animation: clientsScroll 55s linear infinite; }
.clients-marquee:hover .clients-track { animation-play-state: paused; }
.clients-item { margin: 0; flex: none; height: 220px; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.clients-item img { height: 100%; width: auto; max-width: none; display: block; }
@keyframes clientsScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.clients-cta { text-align: center; margin-top: 24px; color: var(--ink-2); font-size: 14px; }
.clients-cta a { font-weight: 700; }

/* ---------- Sección de compra ---------- */
.buy-section { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; scroll-margin-top: 64px; }
.buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.buy-intro h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; }
.buy-lead { color: var(--ink-2); margin-top: 10px; }
.steps-v { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; }
/* Todos los pasos con su recuadro (el actual, los hechos y los que faltan) */
.steps-v li { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: background-color .2s; }
.steps-v li.is-current { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.sv-n { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--ink-2); background: var(--surface); }
.steps-v li.is-current .sv-n { background: var(--red); border-color: var(--red); color: #fff; }
/* Los que faltan, igual que el actual: relleno rojo */
.steps-v li:not(.is-current):not(.is-done):not(.is-arriving) .sv-n { background: var(--red); border-color: var(--red); color: #fff; }
.steps-v li.is-done .sv-n { background: var(--green); border-color: var(--green); color: var(--on-green); }
/* Paso 4 después de enviar el comprobante: interior gris, aro verde que late */
.steps-v li.is-arriving { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.steps-v li.is-arriving .sv-n { background: var(--soft); border: 2px solid var(--green); color: var(--ink-2); animation: arrivePulse 1.6s ease-out infinite; }
@keyframes arrivePulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 207, 116, .55); }
  70% { box-shadow: 0 0 0 10px rgba(62, 207, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 207, 116, 0); }
}
.steps-v strong { display: block; font-size: 15px; }
.steps-v p { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }

.buy-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.05); scroll-margin-top: 80px; }
.buy-card .order { background: var(--soft); }
.step-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 10px; }
#step-1 .step-title { margin-top: 0; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-method { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pay-method:hover { border-color: var(--ink-3); }
.pay-method.is-active { border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus); }
.pay-method img { width: 26px; height: 26px; border-radius: 6px; flex: none; }
.pay-method span { display: flex; flex-direction: column; line-height: 1.25; }
.pay-method strong { font-size: 14px; }
.pay-method small { font-size: 12px; color: var(--ink-2); }
.amount-sub { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

/* ---------- Bloques clickeables ---------- */

/* ---------- Efectos (estilo uiverse.io, adaptados a la tienda) ---------- */
/* Brillo que cruza los botones principales */
.btn-primary, .btn-wa { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-wa::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; z-index: -1;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-20deg); transition: left .6s ease; pointer-events: none;
}
.btn-primary:hover::after, .btn-wa:hover::after { left: 135%; }
/* El botón principal de la ficha brilla solo cada tanto, para llamar la atención */
#open-checkout::after { animation: autoShine 5s ease-in-out 2s infinite; }
@keyframes autoShine { 0%, 70% { left: -80%; } 88%, 100% { left: 135%; } }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(226, 35, 26, .35); transform: translateY(-1px); }

/* Botón de WhatsApp: aro que late para guiar al último paso */
#send-wa { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: waPulse 2.2s ease-out infinite; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); } 70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* Punto "en vivo" de stock/restock */
.stock-dot { position: relative; }
.stock-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: livePing 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes livePing { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* Pasos completados: tilde en vez del número */
.steps-v li.is-done .sv-n { font-size: 0; }
.steps-v li.is-done .sv-n::before { content: "✓"; font-size: 14px; font-weight: 800; }
.steps-v li .sv-n { transition: background-color .3s, border-color .3s, transform .3s; }
.steps-v li.is-done .sv-n { transform: scale(1.05); }

/* Medio de pago elegido: tilde en la esquina */
.pay-method { position: relative; }
.pay-method.is-active::after {
  content: "✓"; position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: var(--on-green); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--surface); animation: popIn .25s ease;
}
@keyframes popIn { from { transform: scale(0); } }

/* Bloques y tarjetas que se levantan */
.perk { transition: transform .2s ease; }
.perk:hover { transform: translateY(-2px); }

/* Copiado: el botón se pone verde */
.copy-btn.is-copied { border-color: var(--green); background: var(--green-soft); }

/* Secciones que aparecen suavemente al bajar (lo activa tienda.js) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.steps-v li.reveal { transition: opacity .6s ease, transform .6s ease, background-color .2s; }

/* ---------- Tema ---------- */
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-btn {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .15s;
}
.theme-btn:hover { border-color: var(--ink); }
body, .header, .checkout-panel, .mbar, input, select, .btn-ghost, .perk, .pay-split, .howto li {
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

/* ---------- Promo de restock (al entrar) ---------- */
.promo { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.promo[hidden] { display: none; }
.promo-backdrop { position: absolute; inset: 0; background: rgba(8, 8, 10, .62); backdrop-filter: blur(3px); animation: fade .25s ease; }
.promo-card {
  position: relative; width: 100%; max-width: 400px; background: var(--surface); color: var(--ink);
  border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  animation: promoIn .35s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes promoIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.promo-close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 8px;
  background: transparent; color: rgba(255, 255, 255, .85); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.promo-close:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.promo-stub {
  background: linear-gradient(120deg, #b3160f, var(--red)); color: #fff;
  padding: 16px 52px 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.promo-stub-brand { font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.promo-stub-tag { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; opacity: .85; }
.promo-perf { position: relative; border-top: 2px dashed var(--line-strong); }
.promo-perf::before, .promo-perf::after {
  content: ""; position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--cutout);
}
.promo-perf::before { left: -10px; }
.promo-perf::after { right: -10px; }
.promo-body { padding: 24px 26px 20px; text-align: center; }
.promo-img { width: 150px; margin: -4px auto 10px; border-radius: 12px; background: var(--photo); }
.promo-body .eyebrow { margin-bottom: 6px; }
.promo-body h2 { font-size: 28px; font-weight: 800; }
.promo-copy { color: var(--ink-2); font-size: 14px; margin: 10px 0 18px; }
.promo-prices { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin-bottom: 20px; }
.promo-price { display: flex; flex-direction: column; gap: 2px; }
.promo-price small { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.promo-price strong { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.promo-price--old strong { font-size: 18px; color: var(--ink-3); text-decoration: line-through; font-weight: 600; }
.promo-price--new strong { color: var(--green); }
.promo-arrow { color: var(--ink-3); padding-bottom: 4px; }
.promo-meta { font-size: 12.5px; color: var(--ink-2); margin-top: -8px; margin-bottom: 18px; }
.promo-later { display: block; width: 100%; margin-top: 8px; background: none; border: 0; padding: 8px; font-size: 13px; color: var(--ink-3); cursor: pointer; }
.promo-later:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  /* Una columna: título y precio van ANTES de la foto. La columna de
     compra se "abre" (display: contents) para poder reordenar sus partes
     alrededor de la galería. */
  .product { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 28px; }
  .buy { display: contents; }
  .buy > .eyebrow { order: 1; }
  .buy > h1 { order: 2; text-align: center; }
  /* El precio va debajo de la foto, justo antes del stock y el botón de compra. */
  .buy > .price-block { order: 5; margin-top: 18px; padding: 0; border: 0; }
  .gallery { order: 4; position: static; margin: 16px 0 20px; }
  .buy > * { order: 5; }
  /* Después de la foto: stock, botón y envío; la descripción, al final */
  .buy > .lead { order: 6; margin-top: 24px; }
  .buy > .bullets { order: 6; margin-top: 14px; }
  .desc, .specs { grid-template-columns: 1fr; gap: 28px; }
  .howto { grid-template-columns: repeat(2, 1fr); }
  .compat { grid-template-columns: 1fr; }
  .buy-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header-inner { height: 56px; }
  .header-ig span { display: none; }
  .header-ig { width: 38px; height: 38px; justify-content: center; padding: 0; }
  .brand-logo { height: 26px; }
  .clients-item { height: 160px; }
  .clients-section { padding: 44px 0 52px; }
  .crumbs { padding: 12px 0 14px; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; overflow-x: auto; scrollbar-width: none; }
  /* Celular: foto grande, después stock y botón de compra, y recién ahí las
     miniaturas. Así "Comprar" entra en la primera pantalla. */
  .gallery { display: contents; }
  .stage { order: 4; margin-top: 16px; }
  /* Fila "Comprar mi Cockpit · USD 950 · Sin stock" en un solo renglón */
  .no-stock { font-size: 14.5px; padding: 12px 14px; }
  .no-stock-badge { font-size: 11.5px; padding: 3px 9px; }
  .buy > .pay-split, .buy > .stock, .buy > #open-checkout { order: 5; }
  .thumbs { order: 6; margin: 16px 0 6px; }
  .buy > * { order: 7; }
  .buy > .lead, .buy > .bullets { order: 8; }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumb { width: 60px; flex: none; }
  /* Celular: las 4 pestañas no entran en una fila; van en una grilla de
     2 × 2 como botones, así se ven todas sin tener que deslizar. */
  .tabs { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; border-bottom: 0; overflow: visible; }
  .tab { margin: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 8px; font-size: 14.5px; white-space: normal; }
  .tab.is-active { border-color: var(--red); }
  .panel { padding-top: 28px; }
  .stage { border-radius: 14px; }
  /* Envío / Retiro / Armado: tres tarjetas en fila, centradas (antes eran
     tres renglones largos con mucho espacio vacío). */
  .perks { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
  .perk { padding: 14px 6px 12px; gap: 2px; font-size: 11.5px; }
  .perk .ic { margin: 0 0 6px; }
  .perk strong { font-size: 12.5px; line-height: 1.25; }
  /* Características: en un recuadro con el mismo estilo que las tarjetas, y
     con aire antes de la sección siguiente (antes quedaban pegadas al borde). */
  .product { padding-bottom: 40px; }
  .buy > .lead { margin-top: 28px; }
  .buy > .bullets { background: var(--soft); border-radius: 14px; padding: 16px; gap: 11px; margin-top: 16px; }
  /* Títulos de sección centrados en el celular (el texto largo sigue a la izquierda). */
  .panel h2, .compat-head, .buy-intro > .eyebrow, .buy-intro > h2, .buy-intro > .buy-lead { text-align: center; }
  .howto { grid-template-columns: 1fr; }
  .buy-section { padding: 40px 0; }
  .buy-card { padding: 16px; border-radius: 14px; }
  .steps-v { margin-top: 18px; }
  .steps-v li { padding: 10px; }
  .panel { padding-top: 28px; }
  .panel h2 { font-size: 23px; }
  .spec-table div { grid-template-columns: 1fr; gap: 2px; }
  .footer { padding-bottom: 96px; }

  .mbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--bg); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mbar.is-visible { transform: none; }
  .mbar div { display: flex; flex-direction: column; line-height: 1.2; }
  .mbar span { font-size: 11.5px; color: var(--ink-2); }
  .mbar strong { font-size: 18px; }

  .checkout-panel { top: auto; height: 92vh; width: 100%; border-radius: 18px 18px 0 0; animation-name: slideUp; }
  @keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }
}

@media (max-width: 480px) {
  .brand-wordmark { display: none; }
  /* Departamento y Ciudad, uno debajo del otro: a lo ancho no entran. */
  .row2 { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .clients-marquee { overflow-x: auto; }
  .topbar { overflow-x: auto; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
