:root {
  --bg: #0e0e0c;
  --panel: #161614;
  --line: #2a2925;
  --text: #edebe4;
  --text-2: #a8a59b;
  --text-3: #75726a;
  --paper: #eae6da;
  --paper-line: #cfcabb;
  --ink: #0e0e0c;
  --ink-2: #4a4840;
  --accent: #2ec4f1;
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-stretch: 68%; font-weight: 800; letter-spacing: -0.015em; line-height: 0.98; margin: 0; }
h1 { font-size: clamp(48px, 7.2vw, 96px); }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: 26px; line-height: 1.05; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em; }
.dim { color: var(--text-3); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 18px; line-height: 1.8;
}
.eyebrow::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 12px; vertical-align: 0; }
.eyebrow .tag-prox { margin-left: 8px; white-space: nowrap; }
.lead { font-size: 19px; color: var(--text-2); max-width: 600px; margin-top: 22px; }

/* Logo: el pixel cian es el punto de la i */
.logo { font-stretch: 68%; font-weight: 800; font-size: 30px; letter-spacing: -0.02em; line-height: 1; text-decoration: none; display: inline-block; }
.logo b { position: relative; font-weight: inherit; }
.logo b i { position: absolute; left: calc(50% + 0.025em); top: 0.075em; width: 0.17em; height: 0.17em; transform: translateX(-50%); background: var(--accent); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--line); background: transparent;
  font: 600 16px var(--sans); text-decoration: none; color: var(--text); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { border-color: var(--text-2); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-solid:hover { background: #63d5f7; border-color: #63d5f7; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.key {
  font-family: var(--mono); font-size: 11px; border: 1px solid currentColor; padding: 1px 5px; line-height: 1.4; opacity: 0.8;
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(14, 14, 12, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 900px) { .nav-links { display: none; } }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--text-2); }
.hero-facts li::before { content: '■ '; color: var(--accent); font-size: 9px; vertical-align: 2px; }
@media (max-width: 960px) {
  .hero { padding: 56px 0 48px; }
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
}

/* Ticket animado del hero (igual al panel de cobro de la app) */
.ticket {
  background: var(--paper); color: var(--ink); padding: 26px 26px 22px; position: relative;
  min-height: 430px; display: flex; flex-direction: column;
  --dot: radial-gradient(circle at 6px 0, var(--bg) 4px, transparent 4.5px);
}
.ticket::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: var(--dot); background-size: 12px 6px;
}
.ticket-head { display: flex; justify-content: space-between; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px dashed var(--paper-line); }
.ticket-items { list-style: none; margin: 0; padding: 8px 0; flex: 1; }
.ticket-items li {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--paper-line);
  animation: entra 0.35s ease-out both;
}
.ticket-items li span:first-child { font-weight: 600; font-size: 16px; }
.ticket-items li small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-2); font-weight: 400; }
.ticket-items li span:last-child { font-family: var(--mono); font-size: 14px; align-self: center; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); background: rgba(46, 196, 241, 0.25); } to { opacity: 1; transform: none; background: transparent; } }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px dashed var(--paper-line); }
.ticket-total .mono { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: var(--ink-2); }
.ticket-total strong { font-stretch: 62%; font-weight: 900; font-size: 54px; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket-foot { margin-top: 16px; background: var(--accent); color: var(--ink); display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 14px; font-weight: 500; }

/* Capturas */
.shot-main { padding: 24px 0 40px; }
.frame { margin: 0; border: 1px solid var(--line); background: var(--panel); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.frame-bar span { width: 9px; height: 9px; background: var(--line); }
.frame-bar em { font-style: normal; margin-left: 10px; color: var(--text-3); font-size: 12px; }
.caption { color: var(--text-3); margin-top: 14px; }

/* Secciones */
.sec { padding: 120px 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 820px; margin-bottom: 64px; }
.sec-paper { background: var(--paper); color: var(--ink); border-top: 0; }
.sec-paper .eyebrow, .sec-paper .lead { color: var(--ink-2); }
.sec-paper .eyebrow::before { background: var(--ink); }
@media (max-width: 700px) { .sec { padding: 80px 0; } .sec-head { margin-bottom: 40px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split-txt { display: flex; flex-direction: column; gap: 18px; font-size: 18px; }
.sec-paper .split-txt { color: var(--ink-2); }
.sec-paper strong { color: var(--ink); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Pasos */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pasos li { padding: 28px 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.pasos li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.pasos .num { color: var(--accent); }
.pasos p { color: var(--text-2); font-size: 16px; }
@media (max-width: 900px) {
  .pasos { grid-template-columns: 1fr 1fr; }
  .pasos li, .pasos li + li { padding: 28px 20px 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .pasos li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .pasos { grid-template-columns: 1fr; }
  .pasos li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Recorrido */
.tour-tabs { display: flex; flex-wrap: wrap; border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tour-tabs button {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
  background: transparent; border: 0; color: var(--text-2); font: 600 16px var(--sans); cursor: pointer;
}
.tour-tabs button + button { border-left: 1px solid var(--line); }
.tour-tabs button[aria-selected='true'] { background: var(--text); color: var(--ink); }
.tour-txt { color: var(--text-2); max-width: 720px; margin: 24px 0 28px; min-height: 3.1em; }
#tour-img { transition: opacity 0.2s; }
@media (max-width: 560px) {
  .tour-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .tour-tabs button { padding: 0 14px; }
  .tour-tabs button:nth-child(3) { border-left: 0; }
  .tour-tabs button:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ARCA */
.split-arca { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.check { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 12px; }
.check li { padding-left: 26px; position: relative; }
.check li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; background: var(--accent); }
.sec-paper .check li::before { background: var(--ink); }
.fiscal {
  background: #fbfaf6; color: var(--ink); padding: 28px 26px; max-width: 380px; justify-self: center; width: 100%;
  border: 1px solid var(--paper-line); box-shadow: 0 1px 0 var(--paper-line), 0 18px 40px -24px rgba(14, 14, 12, 0.35);
}
.fiscal-c { text-align: center; color: var(--ink-2); font-size: 12px; line-height: 1.6; }
.fiscal-tipo { text-align: center; font-stretch: 68%; font-weight: 800; font-size: 28px; margin-top: 16px; }
.fiscal-tipo span { font-size: 11px; color: var(--ink-2); font-weight: 400; vertical-align: middle; }
.fiscal-n { text-align: center; font-size: 12px; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px dashed var(--paper-line); }
.fiscal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 12px; }
.fiscal td { padding: 4px 0; }
.fiscal td:last-child { text-align: right; }
.fiscal-tot { display: flex; justify-content: space-between; font-stretch: 68%; font-weight: 800; font-size: 26px; padding: 12px 0; border-top: 1px dashed var(--paper-line); border-bottom: 1px dashed var(--paper-line); }
.fiscal-qr { display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.fiscal-qr p { font-size: 11px; line-height: 1.7; }
.qr { width: 96px; height: 96px; flex: none; display: grid; grid-template-columns: repeat(21, 1fr); }
.qr span { background: transparent; }
.qr span.on { background: var(--ink); }
@media (max-width: 900px) { .split-arca { grid-template-columns: 1fr; } }

/* Funciones */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feats article { padding: 32px 28px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feats h3 { font-size: 24px; margin-bottom: 12px; }
.feats p { color: var(--text-2); font-size: 16px; }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } .feats article { padding: 26px 20px; } }

/* Personalizable */
.tags { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); padding: 6px 12px; color: var(--text-2); }
.sec-line .split-txt { color: var(--text-2); }
.sec-line strong { color: var(--text); }

/* IA */
.tag-prox { font-size: 11px; letter-spacing: 0.08em; background: var(--ink); color: var(--paper); padding: 3px 8px; }
.ia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ia-card { border: 1px solid var(--paper-line); padding: 32px; display: flex; flex-direction: column; gap: 10px; background: #f2efe6; }
.ia-card > p { color: var(--ink-2); }
.chat { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.msg { max-width: 86%; padding: 10px 14px; font-size: 15px; line-height: 1.45; }
.msg.yo { align-self: flex-end; background: var(--ink); color: var(--paper); }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--paper-line); }
.msg.alerta { border-left: 3px solid #ff5a1f; }
.phone { margin-top: 18px; border: 1px solid var(--paper-line); background: #e4dfd1; max-width: 400px; width: 100%; align-self: center; }
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--ink); color: var(--paper); }
.phone-top b { font-stretch: 68%; font-size: 20px; }
.phone-top .mono { color: var(--text-3); font-size: 11px; }
.chat-wa { padding: 14px; margin: 0; }
.chat-wa .msg.yo { background: #d7f0e6; color: var(--ink); }
.nota { margin-top: 28px; color: var(--ink-2); }
@media (max-width: 900px) { .ia-grid { grid-template-columns: 1fr; } .ia-card { padding: 24px 18px; } }

/* Planes */
.planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.plan { padding: 36px 32px; display: flex; flex-direction: column; gap: 12px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan-n { color: var(--text-3); }
.plan-n span { color: var(--accent); }
.plan-d { color: var(--text-2); min-height: 3.1em; }
.precio { font-stretch: 62%; font-weight: 900; font-size: 44px; line-height: 1; margin: 12px 0 4px; }
.precio .mono { font-weight: 400; color: var(--text-3); }
.plan .check { margin: 8px 0 28px; flex: 1; font-size: 16px; color: var(--text-2); }
.plan .btn { width: 100%; }
.plan-dest { background: var(--panel); box-shadow: inset 0 3px 0 var(--accent); }
@media (max-width: 960px) {
  .planes { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan-d { min-height: 0; }
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-family: var(--mono); font-size: 22px; color: var(--text-2); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--text-2); padding: 0 0 22px; max-width: 620px; }

/* CTA final */
.cta { background: var(--accent); color: var(--ink); border-top: 0; }
.cta-in { display: flex; flex-direction: column; align-items: flex-start; }
.cta h2 { max-width: 900px; }
.cta .lead { color: var(--ink); opacity: 0.75; }
.cta .btn { color: var(--ink); border-color: rgba(14, 14, 12, 0.35); }
.cta .btn:hover { border-color: var(--ink); }
.cta .btn-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cta .btn-solid:hover { background: #2a2925; }

/* Pie */
.foot { padding: 40px 0; border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.foot .logo { font-size: 26px; }
.foot p { color: var(--text-2); }

/* Aparición al scrollear (sutil) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticket-items li { animation: none; }
}
