/* =========================================================
   Jorge Exclusive Cars · Landing + formulario conversacional
   Estilo: negro corporativo + plateado · Unbounded / Helvetica Neue
   Solo modo oscuro.
   ========================================================= */
:root {
  color-scheme: dark;
  --black: #070707;
  --bg: #070707;
  --bg-2: #0f0f0f;
  --bg-3: #1a1a1a;
  --border: #1a1a1a;
  --border-2: rgba(124, 124, 124, .35);
  --border-3: rgba(124, 124, 124, .6);
  --text: #ffffff;
  --text-2: #c4c4c4;
  --muted: #8f8f8f;
  --silver: linear-gradient(135deg, #ffffff 0%, #7c7c7c 100%);
  --silver-soft: linear-gradient(135deg, #f2f2f2 0%, #a9a9a9 100%);
  --success: #30d158;
  --danger: #ff453a;
  --whatsapp: #25d366;
  --shadow: 0 24px 48px -16px rgba(0, 0, 0, .8);
  --radius: 12px;
  --font: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
/* iOS: nunca menos de 16px en campos para que no haga zoom */
input, select, textarea, button { font-size: 16px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; }

.ic { width: 20px; height: 20px; flex: none; }
.text-gradient-silver { background: var(--silver); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Transiciones entre páginas ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: pageOut .32s var(--ease) both; }
::view-transition-new(root) { animation: pageIn .5s var(--ease) both; }
@keyframes pageOut { to { opacity: 0; transform: scale(.97); filter: blur(4px); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(24px); } }
body.leaving { animation: pageOut .32s var(--ease) forwards; }

/* ---------- Ambiente ---------- */
.glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 120vmax; height: 120vmax; left: 50%; top: -78vmax; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .09), transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .5; transform: translateX(-50%) scale(1.08); } }
main, .topbar { position: relative; z-index: 1; }

/* ---------- Botones (sistema bm-auto-export) ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .875rem 1.75rem; border-radius: 8px; border: 0;
  font: 600 .9375rem/1 var(--font); letter-spacing: .01em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.btn-primary { background: var(--silver); color: var(--black); box-shadow: 0 4px 12px rgba(255, 255, 255, .15); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 255, 255, .25); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(-120%); animation: sweep 3.4s ease-in-out infinite 1.2s;
}
@keyframes sweep { 40%, 100% { transform: translateX(120%); } }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.btn-outline:hover { border-color: #fff; transform: translateY(-2px); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37, 211, 102, .35); }
.btn-lg { min-height: 56px; font-size: 1rem; padding: 0 2rem; }
.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: .8125rem; }
.btn-block { width: 100%; }
.btn .ic { width: 20px; height: 20px; transition: transform .3s var(--spring); }
.btn:hover .ic { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: calc(64px + var(--safe-t)); padding: var(--safe-t) 16px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark, .avatar {
  display: grid; place-items: center; flex: none; position: relative;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--silver); color: var(--black);
  font: 800 17px/1 var(--display);
}
.brand-name { display: flex; flex-direction: column; font: 500 12px/1.2 var(--display); letter-spacing: .02em; }
.brand-name b { font-weight: 700; }
.brand-name small { color: var(--muted); font: 600 10px/1.4 var(--font); letter-spacing: .15em; text-transform: uppercase; }

/* ---------- Etiquetas de sección ---------- */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--text-2);
  margin-bottom: .75rem;
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 2rem; padding: 0 16px; }
.section-title { font-size: clamp(1.5rem, 6vw, 2.25rem); line-height: 1.2; margin-bottom: .75rem; }
.section-divider { width: 4rem; height: 3px; background: var(--silver); margin: 1rem auto 0; border-radius: 2px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); } }

/* ---------- Historias ---------- */
.stories { padding: 14px 0 4px; }
.stories-track { display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.stories-track::-webkit-scrollbar { display: none; }
.story-bubble { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; scroll-snap-align: start; animation: pop .6s var(--spring) both; animation-delay: var(--d); }
.story-bubble .ring { width: 68px; height: 68px; border-radius: 50%; padding: 2.5px; background: var(--silver); transition: transform .3s var(--spring); }
.story-bubble.is-featured .ring { background: conic-gradient(from 0deg, #fff, #5a5a5a, #fff, #9a9a9a, #fff); animation: spin 3.5s linear infinite; }
.story-bubble.is-featured .ring img { animation: spin 3.5s linear infinite reverse; }
.story-bubble.seen .ring { background: var(--bg-3); animation: none; }
.story-bubble.seen .ring img { animation: none; }
.story-bubble img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.story-bubble:active .ring { transform: scale(.92); }
.story-label { font-size: 12px; color: var(--text-2); max-width: 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(10px); } }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 28px; padding: 22px 16px 8px; max-width: 1180px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.75rem, 8.4vw, 3.4rem); line-height: 1.15; letter-spacing: -.01em; }
.lead { color: var(--text-2); font-size: clamp(1rem, 2.5vw, 1.125rem); margin: 1rem 0 1.5rem; max-width: 36rem; }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
.hero-actions .btn { width: 100%; }
@media (min-width: 481px) { .hero-actions .btn { width: auto; } }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 600; padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--border-2); color: var(--text-2);
}
.hero-badge .ic { width: 15px; height: 15px; }

/* ---------- Abanico de fotos ---------- */
.deck { position: relative; width: min(72vw, 340px); aspect-ratio: 9 / 13; margin: 8px auto 40px; touch-action: pan-y; }
.card {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: var(--bg-3); box-shadow: var(--shadow); border: 1px solid var(--border-2);
  transition: transform .9s var(--spring), opacity .6s, filter .6s;
  animation: deal 1s var(--spring) both;
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8)); color: #fff;
  font: 600 13px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase;
}
.card[data-pos="0"] { transform: rotate(-3deg); z-index: 4; }
.card[data-pos="1"] { transform: translateX(16%) rotate(7deg) scale(.94); z-index: 3; filter: brightness(.55) grayscale(.4); }
.card[data-pos="2"] { transform: translateX(-16%) rotate(-11deg) scale(.9); z-index: 2; filter: brightness(.4) grayscale(.6); }
.card[data-pos="3"] { transform: translateY(4%) scale(.84); z-index: 1; opacity: 0; }
.card.fly { transform: translateX(-140%) rotate(-24deg) !important; opacity: 0; transition-duration: .55s; }
.card:nth-child(2) { animation-delay: .12s; }
.card:nth-child(3) { animation-delay: .24s; }
@keyframes deal { from { transform: translateY(40%) rotate(0) scale(.8); opacity: 0; } }
.badge-keys {
  position: absolute; z-index: 6; right: -10px; top: 18px;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  border-radius: 12px; background: rgba(15, 15, 15, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite, pop .8s var(--spring) .7s both;
  font: 700 12px/1.2 var(--display);
}
.badge-keys small { display: block; color: var(--muted); font: 500 11px/1.3 var(--font); margin-top: 2px; }
.badge-keys .key { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--silver); color: var(--black); animation: jingle 2.6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes jingle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-18deg); } 85% { transform: rotate(14deg); } 92% { transform: rotate(-6deg); } }
.deck-hint { position: absolute; left: 0; right: 0; bottom: -36px; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* ---------- Proceso ---------- */
.process { padding: 3.5rem 0 2.5rem; background: var(--bg-2); border-block: 1px solid var(--border); margin-top: 2.5rem; position: relative; z-index: 1; }
.steps { display: grid; gap: 2rem; max-width: 980px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1.1rem;
  display: grid; place-items: center; background: var(--silver); color: var(--black);
  font: 700 1.25rem/1 var(--display);
}
.step b { display: block; font: 700 1rem/1.3 var(--display); margin-bottom: .4rem; }
.step p { color: var(--text-2); font-size: .875rem; max-width: 30ch; margin: 0 auto; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.step.reveal:nth-child(2) { transition-delay: .1s; }
.step.reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- Showroom ---------- */
.showroom { padding: 3.5rem 0 1rem; overflow: hidden; position: relative; z-index: 1; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 50s linear infinite; padding: 10px 0 24px; }
.marquee:hover .marquee-track, .marquee:active .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.m-item { position: relative; flex: none; width: 150px; aspect-ratio: 9 / 15; border-radius: 12px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--border); transition: transform .4s var(--spring), border-color .3s; }
.m-item:nth-child(odd) { transform: translateY(14px); }
.m-item:hover { transform: translateY(-6px); border-color: var(--border-3); }
.m-item img { width: 100%; height: 100%; object-fit: cover; }
.m-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 10px; color: #fff; font: 600 10px/1.3 var(--display); letter-spacing: .04em; text-transform: uppercase; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }

.final-cta { text-align: center; padding: 3rem 16px 1rem; max-width: 640px; margin: 0 auto; }
.final-cta .lead { margin-inline: auto; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 2.5rem 16px calc(110px + var(--safe-b)); border-top: 1px solid var(--border); margin-top: 2.5rem; }
.foot p { margin: 4px 0; }
.fine { opacity: .7; }

/* CTA fija en móvil: aparece cuando el botón del hero sale de pantalla */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: linear-gradient(transparent, rgba(7, 7, 7, .95) 35%);
  transform: translateY(110%); transition: transform .5s var(--ease);
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.show { transform: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } .foot { padding-bottom: 2.5rem; } }

/* ---------- Visor de historias ---------- */
.viewer { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; display: flex; flex-direction: column; touch-action: none; animation: viewerIn .35s var(--ease); }
.viewer[hidden] { display: none; }
.viewer.closing { animation: viewerOut .3s var(--ease) forwards; }
@keyframes viewerIn { from { opacity: 0; transform: scale(.92); } }
@keyframes viewerOut { to { opacity: 0; transform: translateY(20%) scale(.9); } }
.viewer-bars { display: flex; gap: 4px; padding: calc(10px + var(--safe-t)) 10px 0; position: relative; z-index: 3; }
.viewer-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.viewer-bars span i { display: block; height: 100%; width: 0; background: #fff; }
.viewer-bars span.full i { width: 100%; }
.viewer-bars span.run i { animation: fillbar 5s linear forwards; }
.viewer.paused .viewer-bars span.run i { animation-play-state: paused; }
@keyframes fillbar { to { width: 100%; } }
.viewer-top { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.viewer-top b { flex: 1; font: 600 13px/1.2 var(--display); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.viewer-close { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.viewer-stage { position: absolute; inset: 0; overflow: hidden; }
.viewer-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 6s ease-out both; }
@media (min-aspect-ratio: 3/4) { .viewer-stage img { object-fit: contain; animation-name: fadeIn; } }
.viewer-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .5), transparent 22%, transparent 55%, rgba(0, 0, 0, .85)); pointer-events: none; }
@keyframes kenburns { from { transform: scale(1.12); opacity: .2; } 12% { opacity: 1; } to { transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } }
.viewer-bottom { position: relative; z-index: 3; margin-top: auto; padding: 16px 16px calc(22px + var(--safe-b)); display: grid; gap: 14px; }
.viewer-bottom p { font: 600 clamp(1.1rem, 5vw, 1.5rem)/1.25 var(--display); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.viewer-nav { position: absolute; z-index: 2; top: 90px; bottom: 150px; width: 40%; }
.viewer-nav.prev { left: 0; }
.viewer-nav.next { right: 0; width: 60%; }

/* =========================================================
   PÁGINA DEL FORMULARIO
   ========================================================= */
.page-form { min-height: 100dvh; display: flex; flex-direction: column; }
.form-bg {
  position: fixed; inset: -40px; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
  filter: blur(40px) grayscale(1) brightness(.35); opacity: .45;
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.15) translate(2%, -2%); } }
.form-head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) 12px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-2); flex: none; transition: border-color .3s, transform .2s; }
.icon-btn:hover { border-color: #fff; }
.icon-btn:active { transform: scale(.92); }
.avatar { width: 42px; height: 42px; font-size: 18px; }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.online { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--success); border: 2px solid var(--bg); }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.who b { font: 700 14px/1.3 var(--display); }
.who small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-count { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--display); color: var(--muted); letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; user-select: none; }
.step-count.is-done { color: var(--success); animation: pop .5s var(--spring) both; }
.step-count .ic { width: 16px; height: 16px; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--border); }
.progress span { display: block; height: 100%; width: 0; background: var(--silver); transition: width .7s var(--ease); box-shadow: 0 0 12px rgba(255, 255, 255, .6); }

.chat-page { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 20px 14px 8px; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 16px; line-height: 1.45; animation: bubble .5s var(--spring) both; transform-origin: left bottom; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: var(--bg-3); border: 1px solid rgba(255, 255, 255, .05); border-bottom-left-radius: 4px; color: var(--text-2); }
.msg.bot.q { color: var(--text); font: 600 16px/1.4 var(--display); letter-spacing: -.005em; }
.msg.bot.q .hint { display: block; font: 400 14px/1.4 var(--font); color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.msg.me {
  align-self: flex-end; background: var(--silver-soft); color: var(--black);
  border-bottom-right-radius: 4px; font-weight: 700; transform-origin: right bottom;
  display: flex; align-items: center; gap: 10px; text-align: left;
}
.msg.me .ic { width: 15px; height: 15px; opacity: .5; }
.msg.me:active { transform: scale(.97); }
@keyframes bubble { from { opacity: 0; transform: translateY(12px) scale(.85); } }
.typing { display: inline-flex; gap: 4px; padding: 16px 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.composer { padding: 8px 14px calc(24px + var(--safe-b)); }
.options { display: grid; gap: 10px; }
.options.two { grid-template-columns: 1fr 1fr; }
.opt {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 12px 16px; text-align: left;
  border-radius: var(--radius); border: 1px solid var(--border-2); background: rgba(15, 15, 15, .85);
  font-weight: 600; font-size: 16px; line-height: 1.25;
  animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 80ms);
  transition: transform .2s var(--spring), border-color .25s, background .25s, box-shadow .25s;
}
.opt .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-3); color: var(--text-2); flex: none; transition: background .25s, color .25s; }
.opt .ico .ic { width: 20px; height: 20px; }
.opt .tick { margin-left: auto; width: 22px; height: 22px; opacity: 0; transform: scale(.4); transition: .3s var(--spring); }
.opt:hover { border-color: var(--border-3); box-shadow: 0 16px 32px rgba(255, 255, 255, .04); }
.opt:active { transform: scale(.97); }
.opt.picked { border-color: #fff; background: rgba(255, 255, 255, .06); }
.opt.picked .ico { background: var(--silver); color: var(--black); }
.opt.picked .tick { opacity: 1; transform: none; }
.options.leaving .opt:not(.picked) { opacity: 0; transform: scale(.94); transition: .25s; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(15, 15, 15, .85);
  font-size: 15px; font-weight: 600; color: var(--text-2);
  animation: pop .45s var(--spring) both; animation-delay: calc(var(--i) * 45ms + 150ms);
  transition: border-color .2s, color .2s, transform .2s var(--spring);
}
.chip .ic { width: 16px; height: 16px; }
.chip:hover { border-color: #fff; color: #fff; }
.chip:active { transform: scale(.94); }
.chip.ghost { border-style: dashed; color: var(--muted); }

.field {
  display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 14px;
  border-radius: var(--radius); border: 1px solid var(--border-2); background: rgba(15, 15, 15, .9);
  transition: border-color .2s, box-shadow .2s; animation: rise .5s var(--ease) both;
}
.field > .ic { color: var(--muted); }
.field:focus-within { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.field:focus-within > .ic { color: #fff; }
.field input, .field select { flex: 1; min-width: 0; min-height: 46px; border: 0; outline: 0; background: none; color: var(--text); font: 500 16px/1.2 var(--font); }
.field input::placeholder { color: var(--muted); }
.field select { flex: none; width: auto; padding-right: 2px; -webkit-appearance: none; appearance: none; cursor: pointer; font-weight: 600; }
.field select option { background: var(--bg-2); }
.field .sep { width: 1px; align-self: stretch; margin: 8px 2px; background: var(--border-2); }
.send { flex: none; width: 46px; height: 46px; border-radius: 8px; background: var(--silver); color: var(--black); display: grid; place-items: center; transition: transform .2s var(--spring), opacity .2s; }
.send[disabled] { opacity: .3; }
.send:active { transform: scale(.9); }

.contact { display: grid; gap: 12px; }
.contact .lbl { font-size: .75rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--text-2); margin: 4px 0 -6px 2px; }
.field.err { border-color: var(--danger); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border-3); display: grid; place-items: center; transition: .2s var(--spring); color: var(--black); }
.check .box .ic { width: 16px; height: 16px; transform: scale(0); transition: transform .3s var(--spring); }
.check input:checked + .box { background: var(--silver); border-color: #fff; }
.check input:checked + .box .ic { transform: scale(1); }
.check input:focus-visible + .box { outline: 2px solid #fff; outline-offset: 2px; }
.privacy { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; color: var(--muted); font-size: 13px; }
.privacy .ic { width: 15px; height: 15px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.inline-link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Pantalla final */
.done { text-align: center; padding: 14px 4px 6px; animation: rise .7s var(--ease) both; }
.done .seal {
  width: 88px; height: 88px; margin: 4px auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--silver); color: var(--black);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 0 60px rgba(255, 255, 255, .25);
  animation: pop .8s var(--spring) both;
}
.done .seal .ic { width: 40px; height: 40px; animation: jingle 2.6s ease-in-out infinite 1s; }
.done h3 { font-size: clamp(1.4rem, 6vw, 1.9rem); line-height: 1.2; margin-bottom: 10px; }
.done p { color: var(--text-2); margin: 0 auto 22px; max-width: 36ch; }
.done .actions { display: grid; gap: 10px; }
.done .btn .ic { width: 22px; height: 22px; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* ---------- Escritorio ---------- */
@media (min-width: 900px) {
  .topbar { height: 84px; padding: 0 3rem; }
  .brand-mark { width: 44px; height: 44px; font-size: 20px; }
  .brand-name { font-size: 14px; }
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 48px 3rem 24px; min-height: 72vh; }
  .deck { width: 340px; }
  .stories-track { justify-content: center; }
  .m-item { width: 190px; }
  .chat { padding-top: 32px; }
}

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

/* ---------- Botón "Empezar" dorado con destello sutil ---------- */
.btn-gold {
  background: linear-gradient(135deg, #f6e3a8 0%, #d9b35c 45%, #b8893a 100%);
  color: #1a1206;
  box-shadow: 0 4px 14px rgba(217, 179, 92, .22), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(217, 179, 92, .35), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-20deg) translateX(0);
  animation: goldShine 5s ease-in-out infinite 1.5s;
  pointer-events: none;
}
@keyframes goldShine { 0% { transform: skewX(-20deg) translateX(0); } 22%, 100% { transform: skewX(-20deg) translateX(560%); } }
