/* ============================================================
   Home de CheQR — dirección cinematográfica.
   Tokens y primitivas vienen de /styles.css. Solo se animan
   transform y opacity; con movimiento reducido todo queda visible.
   ============================================================ */
.hm { background: #04060d; }
.hm section, .hm header { position: relative; }
.hm .wrap { max-width: 1180px; }

/* ---- Tipografía de cartel ---- */
.hm-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 18px; }
.hm-kicker.rojo { color: var(--bad); }
.hm-h1 { font-size: clamp(2.7rem, 7.6vw, 6.4rem); font-weight: 800; letter-spacing: -.05em; line-height: .94; }
.hm-h1 span { color: var(--brand-2); }
.hm-h2 { font-size: clamp(2rem, 4.8vw, 3.9rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; max-width: 18ch; }
.hm-h2 span { color: var(--bad); }
.hm-lead { font-size: clamp(1.03rem, 1.45vw, 1.2rem); color: var(--text-dim); max-width: 36rem; margin: 22px 0 30px; }
.hm-fino { font-size: .84rem; color: var(--text-mut); margin-top: 16px; }
.hm-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hm-cta.centro { justify-content: center; margin-top: 34px; }

/* Cifras y titulares de cartel: corte ancho de Archivo. */
.hm-h1, .hm-h2, .hm-remate, .hm-tachados s, .hm-ley-num b, .hm-calc-res b, .hm-plan-p, .hm-pasos b, .hm-pan h3 { font-stretch: var(--ancho-cartel); }

/* ---- Aparición al hacer scroll ---- */
/* Solo se oculta si el script llegó a correr (clase `hm-js`): sin JS todo se ve. */
.hm-js .rv { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.hm-js .rv.in { opacity: 1; transform: none; }

/* ---- Aviso 2027 ---- */
.hm-aviso { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 16px; background: #1a1206; border-bottom: 1px solid rgba(251, 191, 36, .3); font-size: .88rem; color: #f5deb0; }
.hm-aviso[hidden] { display: none; }
.hm-aviso b { color: var(--warn); font-variant-numeric: tabular-nums; }
.hm-aviso a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.hm-aviso button { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: none; border: 0; color: #f5deb0; cursor: pointer; }
.hm-aviso button:hover { background: rgba(255,255,255,.08); }

/* ---- Navegación ---- */
.hm-nav { position: sticky; top: 0; z-index: 50; background: rgba(4, 6, 13, .86); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hm-nav.baja { border-bottom-color: var(--border); }
.hm-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.hm-nav-links { display: flex; gap: 28px; font-size: .92rem; font-weight: 600; color: var(--text-dim); }
.hm-nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.hm-nav-links a:hover { color: var(--text); }

/* ---- Hero ---- */
.hm-hero { min-height: calc(100dvh - 68px); display: grid; align-items: center; padding: clamp(36px, 7vh, 80px) 0 clamp(48px, 9vh, 100px); overflow: hidden; }
.hm-luz { position: absolute; inset: -30% -10% auto; height: 110vh; pointer-events: none; z-index: 0;
  background: radial-gradient(50% 55% at 72% 34%, rgba(34, 211, 238, .22), transparent 68%), radial-gradient(42% 42% at 10% 4%, rgba(109, 94, 252, .20), transparent 70%);
  animation: hmRespira 10s ease-in-out infinite alternate; }
.hm-luz.baja { inset: auto -10% -40%; background: radial-gradient(50% 55% at 50% 60%, rgba(109, 94, 252, .28), transparent 68%); }
@keyframes hmRespira { from { opacity: .7; transform: translate3d(-1.5%, 0, 0); } to { opacity: 1; transform: translate3d(1.5%, 1%, 0) scale(1.05); } }
.hm-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hm-hero-txt { animation: hmEntra .9s var(--ease-out) both; }
.hm-hero-esc { display: grid; justify-items: center; perspective: 1400px; animation: hmEntra .9s .15s var(--ease-out) both; }
@keyframes hmEntra { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
.hm-tablet { width: min(390px, 100%); aspect-ratio: 4 / 5; padding: 14px; border-radius: 34px; background: linear-gradient(145deg, #1b2136, #0a0d18); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 70px 130px -45px rgba(34, 211, 238, .55), 0 30px 60px -30px #000; transform: rotateY(-12deg) rotateX(5deg); animation: hmFlota 7s ease-in-out infinite alternate; }
@keyframes hmFlota { from { transform: rotateY(-12deg) rotateX(5deg); } to { transform: rotateY(-7deg) rotateX(3deg) translate3d(0, -10px, 0); } }
.hm-tablet-in { height: 100%; border-radius: 22px; background: #0b1020; display: flex; flex-direction: column; overflow: hidden; }
.hm-tab-top { display: flex; justify-content: space-between; padding: 14px 18px; font-size: .78rem; font-weight: 600; color: var(--text-mut); border-bottom: 1px solid var(--border); }
.hm-tab-live { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-2); }
.hm-tab-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hm-tab-body { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 18px; }
.hm-qr { width: min(230px, 58vw); aspect-ratio: 1; background: #fff; border-radius: 18px; padding: 16px; }
.hm-qr > div, .hm-qr svg { width: 100%; height: 100%; display: block; }
.hm-ttl { width: min(230px, 58vw); height: 4px; border-radius: 4px; background: var(--brand-2); transform-origin: left; }
.hm-ttl.corre { animation: hmTtl 10s linear both; }
@keyframes hmTtl { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.hm-tab-nota { font-size: .8rem; color: var(--text-mut); font-variant-numeric: tabular-nums; }

/* ---- Bloques ---- */
.hm-demo, .hm-problema, .hm-como, .hm-no, .hm-seg, .hm-comp, .hm-ley, .hm-quien, .hm-calc, .hm-precios, .hm-faq { padding: clamp(72px, 12vh, 150px) 0; }

.hm-demo { background: #0a0508; border-block: 1px solid rgba(248, 113, 113, .22); }
.hm-demo-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hm-demo .hm-h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.hm-trampas { list-style: none; display: grid; gap: 12px; }
.hm-trampas li { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px; background: #140c12; border: 1px solid rgba(248, 113, 113, .3); }
.hm-trampas b { font-size: .8rem; color: var(--text-mut); font-variant-numeric: tabular-nums; }
.hm-trampas span { font-weight: 600; }
.hm-trampas em { font-style: normal; padding: 4px 10px; border-radius: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #c53030; transform: rotate(-3deg); }

.hm-actos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.hm-acto { padding: 26px; border-radius: 22px; background: #0b0f1c; border: 1px solid var(--border); }
.hm-acto-n { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-mut); margin: 22px 0 8px; }
.hm-acto h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 10px; }
.hm-acto p:last-child { color: var(--text-dim); font-size: .95rem; }
.hm-acto-arte { height: 150px; border-radius: 14px; background: #060912; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; }
.arte-compadre i { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: var(--surface-2); border: 2px solid var(--border-strong); }
.arte-compadre i + i { border-style: dashed; color: var(--text-mut); background: none; }
.arte-compadre span { padding: 6px 10px; border-radius: 8px; background: rgba(248, 113, 113, .14); color: var(--bad-text); font-weight: 700; font-size: .84rem; }
.arte-chat { flex-direction: column; align-items: stretch; padding: 14px; gap: 7px; }
.arte-chat span { align-self: flex-start; max-width: 85%; padding: 7px 11px; border-radius: 12px 12px 12px 3px; background: #1a2030; font-size: .8rem; }
.arte-chat span.yo { align-self: flex-end; border-radius: 12px 12px 3px 12px; background: #12392f; color: #c7f5e3; }
.arte-huella svg { width: 96px; height: 96px; fill: none; stroke: var(--bad); stroke-width: 2.4; stroke-linecap: round; opacity: .85; }

.hm-como { background: #070a14; }
.hm-pasos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--border-strong); }
.hm-pasos li { padding: 26px 22px 0 0; }
.hm-pasos li + li { padding-left: 22px; border-left: 1px solid var(--border); }
.hm-pasos b { display: block; font-size: 3.2rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--brand-2); margin-bottom: 18px; }
.hm-pasos h3 { font-size: 1.15rem; margin-bottom: 8px; }
.hm-pasos p { color: var(--text-dim); font-size: .94rem; }

.hm-no .hm-h2 { max-width: 14ch; }
.hm-tachados { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; margin: 60px 0 56px; }
.hm-tachados s { display: block; font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--text-mut); text-decoration-color: var(--bad); text-decoration-thickness: .09em; margin-bottom: 10px; }
.hm-tachados span { color: var(--text-dim); font-size: .95rem; }
.hm-remate { font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; max-width: 24ch; }

.hm-seg { background: #070a14; }
.hm-seg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.hm-foto-q { padding: 20px 22px; border-radius: 16px; background: #0c111f; border: 1px solid var(--border); }
.hm-foto-q p { color: var(--text-dim); margin-top: 6px; font-size: .95rem; }
.hm-capas { list-style: none; display: grid; gap: 10px; }
.hm-capas li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: #0c111f; border: 1px solid var(--border); }
.hm-capas li > span { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: rgba(34, 211, 238, .1); color: var(--brand-2); }
.hm-capas p { color: var(--text-dim); font-size: .92rem; margin-top: 2px; }

.hm-tabla { margin-top: 48px; overflow-x: auto; border-radius: 18px; border: 1px solid var(--border); background: #0b0f1c; }
.hm-tabla table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .92rem; }
.hm-tabla th, .hm-tabla td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.hm-tabla tbody tr:last-child > * { border-bottom: 0; }
.hm-tabla thead th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mut); }
.hm-tabla tbody th { font-weight: 600; color: var(--text-dim); width: 17%; }
.hm-tabla td { color: var(--text-dim); }
.hm-tabla .yo { background: rgba(34, 211, 238, .08); color: var(--text); font-weight: 600; }
.hm-tabla thead .yo { color: var(--brand-2); }

.hm-ley { background: #120d04; border-block: 1px solid rgba(251, 191, 36, .22); }
.hm-ley-in { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.hm-ley .hm-kicker { color: var(--warn); }
.hm-ley-num { text-align: center; }
.hm-ley-num b { display: block; font-size: clamp(5rem, 16vw, 13rem); font-weight: 800; letter-spacing: -.06em; line-height: .85; color: var(--warn); font-variant-numeric: tabular-nums; }
.hm-ley-num span { font-size: .9rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #c9a24b; }

.hm-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 40px 0 22px; }
.hm-tabs button { min-height: 44px; padding: 10px 18px; border-radius: 999px; background: none; border: 1px solid var(--border); color: var(--text-dim); font-weight: 600; cursor: pointer; }
.hm-tabs button[aria-selected="true"] { background: var(--text); color: #04060d; border-color: var(--text); }
.hm-pan { max-width: 46rem; }
.hm-pan h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.03em; margin-bottom: 12px; }
.hm-pan p { color: var(--text-dim); font-size: 1.08rem; }

.hm-calc { background: #070a14; }
.hm-calc-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hm-calc-caja { padding: 28px; border-radius: 22px; background: #0c111f; border: 1px solid var(--border); }
.hm-rango { margin-bottom: 18px; }
.hm-rango label { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; font-weight: 600; color: var(--text-dim); }
.hm-rango output { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm input[type="range"] { width: 100%; height: 44px; accent-color: var(--brand-2); cursor: pointer; background: transparent; }
.hm-calc-res { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--border); display: grid; }
.hm-calc-res span { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mut); }
.hm-calc-res b { font-size: clamp(2.8rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; color: var(--warn); font-variant-numeric: tabular-nums; }
.hm-calc-res em { font-style: normal; color: var(--text-dim); }

.hm-planes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; max-width: 820px; }
.hm-plan { padding: 28px; border-radius: 22px; background: #0b0f1c; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.hm-plan.dest { border-color: var(--brand-2); background: #0a1420; }
.hm-plan-n { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-2); }
.hm-plan-p { font-size: 2.8rem; font-weight: 800; letter-spacing: -.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hm-plan-anual { margin-top: 2px; font-size: .88rem; font-weight: 650; color: var(--good); }
.hm-plan-p small { font-size: .95rem; font-weight: 600; color: var(--text-mut); letter-spacing: 0; }
.hm-plan ul { list-style: none; margin: 14px 0 22px; display: grid; gap: 8px; color: var(--text-dim); font-size: .95rem; flex: 1; }
.hm-plan li::before { content: '✓'; color: var(--good); font-weight: 800; margin-right: 10px; }
.hm-planes-err { grid-column: 1 / -1; padding: 28px; border-radius: 18px; background: #0b0f1c; border: 1px solid var(--border); text-align: center; display: grid; gap: 14px; justify-items: center; }

.hm-faq { background: #070a14; }
.hm-faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.hm-faq-lista details { border-bottom: 1px solid var(--border); }
.hm-faq-lista summary { list-style: none; cursor: pointer; padding: 20px 34px 20px 0; font-weight: 650; font-size: 1.06rem; position: relative; min-height: 44px; }
.hm-faq-lista summary::-webkit-details-marker { display: none; }
.hm-faq-lista summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--text-mut); }
.hm-faq-lista details[open] summary::after { content: '–'; }
.hm-faq-lista p { color: var(--text-dim); padding: 0 34px 22px 0; }

.hm-cierre { padding: clamp(100px, 20vh, 220px) 0; text-align: center; overflow: hidden; }
.hm-cierre .wrap { position: relative; z-index: 1; }

.hm-pie { border-top: 1px solid var(--border); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); }
.hm-pie-in { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.hm-pie nav { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: .9rem; color: var(--text-dim); }
.hm-pie nav a { min-height: 44px; display: inline-flex; align-items: center; }
.hm-pie nav a:hover { color: var(--text); }
.hm-pie .hm-fino { margin: 0; }

/* Botón fijo en celular: aparece al pasar el hero. */
.hm-fijo { display: none; }

/* El celular que corre solo: /c en modo vitrina dentro de un marco de teléfono.
   La pantalla mide 375×760 (un celular real) y se escala para caber. */
.hm-cel { padding: clamp(72px, 12vh, 150px) 0; background: #05070f; overflow: hidden; }
.hm-cel-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hm-cel-esc { position: relative; display: grid; place-items: center; }
.hm-cel-esc::before { content: ''; position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(109, 94, 252, .22), transparent); pointer-events: none; }
.hm-movil { --k: .74; position: relative; width: calc(375px * var(--k) + 24px); height: calc(760px * var(--k) + 24px); padding: 12px; border-radius: 46px;
  background: linear-gradient(145deg, #1b2136, #0a0d18); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.hm-movil::after { content: ''; position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #04060d; }
.hm-movil-pant { display: block; width: 375px; height: 760px; border: 0; border-radius: calc(36px / var(--k)); background: #04060d;
  transform: scale(var(--k)); transform-origin: 0 0; pointer-events: none; }
.hm-cel-puntos { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.hm-cel-puntos li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--brand-2); }
.hm-cel-puntos b { font-weight: 800; }
.hm-cel-puntos span { color: var(--text-dim); }
@media (max-width: 900px) {
  .hm-nav-links { display: none; }
  .hm-hero { min-height: 0; }
  .hm-cel-grid { grid-template-columns: 1fr; }
  .hm-movil { --k: .62; }
  .hm-hero-grid, .hm-demo-in, .hm-seg-grid, .hm-calc-in, .hm-faq-in, .hm-ley-in { grid-template-columns: 1fr; }
  .hm-tablet { width: min(300px, 82%); }
  .hm-actos, .hm-planes { grid-template-columns: 1fr; }
  .hm-pasos { grid-template-columns: 1fr 1fr; }
  .hm-pasos li, .hm-pasos li + li { padding: 22px 16px 22px 0; border-left: 0; border-bottom: 1px solid var(--border); }
  .hm-tachados { grid-template-columns: 1fr 1fr; gap: 28px 18px; margin: 40px 0; }
  .hm-ley-num { text-align: left; }
  .hm-aviso { justify-content: space-between; text-align: left; font-size: .82rem; }
  .hm-fijo { display: inline-flex; position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 60; transform: translate3d(0, 160%, 0); transition: transform .3s var(--ease-out); }
  .hm-fijo.ver { transform: none; }
  /* El aviso de versión nueva sube para no tapar el botón fijo. */
  .hm-fijo.ver ~ .aviso-version { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px); }
  .hm-pie { padding-bottom: 96px; }
}
@media (max-width: 520px) {
  .hm-nav .btn-ghost { display: none; }
  .hm-cta .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .hm-pasos { grid-template-columns: 1fr; }
  .hm-trampas li { grid-template-columns: auto 1fr; }
  .hm-trampas em { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-js .rv { opacity: 1; transform: none; transition: none; }
  .hm-luz, .hm-tablet, .hm-hero-txt, .hm-hero-esc, .hm-ttl.corre { animation: none !important; }
  .hm-tablet { transform: none; }
  .hm-fijo { transition: none; }
}
