/* Weaktony: página de servicios.
   Tema: azul oscuro con negro (oscuro, por defecto) y azul oscuro con blanco (claro).
   Formas: tarjetas 20px, teléfonos 34px, botones y chips en píldora. */

:root {
  color-scheme: dark;
  --bg: #05080E;
  --bg-2: #080D17;
  --surface: #0C1322;
  --surface-2: #141E33;
  --ink: #EEF2F8;
  --ink-2: #B9C3D3;
  --muted: #8C98AD;
  --line: #1D2940;
  --line-strong: #2B3A57;
  --accent: #8DB1F0;        /* el punto del logo */
  --accent-ink: #8DB1F0;    /* acento para textos */
  --on-accent: #0A1222;
  --accent-soft: #15264A;
  --phone-frame: #0E1626;
  --aura-1: rgba(43, 82, 153, .55);
  --aura-2: rgba(141, 177, 240, .22);
  --aura-3: rgba(30, 58, 110, .6);
  --shadow: 0 30px 80px rgba(2, 6, 16, .6);

  --font-display: "Lora", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --r-card: 20px;
  --r-phone: 34px;
  --gutter: 20px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #F3F5F9;
    --bg-2: #EAEEF5;
    --surface: #FFFFFF;
    --surface-2: #E8ECF3;
    --ink: #0A1222;
    --ink-2: #344054;
    --muted: #556075;
    --line: #DDE3EC;
    --line-strong: #C5CEDB;
    --accent: #1E3A6E;
    --accent-ink: #1E3A6E;
    --on-accent: #FFFFFF;
    --accent-soft: #E4EAF5;
    --phone-frame: #0A1222;
    --aura-1: rgba(141, 177, 240, .45);
    --aura-2: rgba(30, 58, 110, .14);
    --aura-3: rgba(141, 177, 240, .35);
    --shadow: 0 30px 70px rgba(10, 18, 34, .18);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.ic { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -12px var(--accent); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 18px; }
.btn .nudge { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -14px var(--accent); }
  .btn-primary:active { transform: scale(0.97); }
  .btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
  .btn-ghost:hover .nudge { transform: translateX(4px); }
}

/* ---------- Navegación ---------- */
.top-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color 250ms ease, border-color 250ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.nav-links { display: none; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color 200ms ease, background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); background: var(--surface-2); } }
.nav .btn { margin-left: auto; }
@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 8px; }
}
@media (max-width: 420px) {
  .nav .btn span { display: none; }
  .nav .btn { width: 44px; padding: 0; }
  .nav .btn .ic { width: 22px; height: 22px; }
}

/* ---------- Fondo animado (P22): luces de la marca que se mueven lento ---------- */
.aura { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aura span {
  position: absolute; border-radius: 50%;
  width: 70vmax; height: 70vmax;
  will-change: transform;
}
.aura span:nth-child(1) { background: radial-gradient(circle, var(--aura-1) 0%, transparent 62%); right: -28vmax; top: -30vmax; animation: drift-a 19s ease-in-out infinite alternate; }
.aura span:nth-child(2) { background: radial-gradient(circle, var(--aura-2) 0%, transparent 60%); right: 4vmax; bottom: -42vmax; animation: drift-b 23s ease-in-out infinite alternate; }
.aura span:nth-child(3) { background: radial-gradient(circle, var(--aura-3) 0%, transparent 60%); left: -40vmax; bottom: -30vmax; animation: drift-c 27s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-12vmax, 10vmax, 0) scale(1.12); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-10vmax, -14vmax, 0) scale(.92); } }
@keyframes drift-c { from { transform: translate3d(0, 0, 0) scale(.95); } to { transform: translate3d(14vmax, -8vmax, 0) scale(1.1); } }
.aura.paused span { animation-play-state: paused; }

/* ---------- Teléfono (marco de las capturas) ---------- */
.phone {
  margin: 0; position: relative; border-radius: var(--r-phone);
  background: var(--phone-frame); padding: 7px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  aspect-ratio: 390 / 844; overflow: hidden;
}
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--r-phone) - 7px); background: var(--surface-2); }

/* ---------- Rubros (marquesina, única en la página) ---------- */
.rubros { padding: 8px 0 24px; text-align: center; }
.rubros-title { color: var(--muted); font-size: 15px; font-weight: 600; margin-bottom: 16px; }
/* Rubros: etiquetas quietas debajo de la fila curva */
.marquee-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-inline: var(--gutter); max-width: 920px; margin-inline: auto; }
.marquee-track li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 15px; color: var(--ink-2);
}
.marquee-track li .ic { color: var(--accent-ink); width: 20px; height: 20px; }

/* ---------- Secciones ---------- */
/* En el celular, menos aire entre secciones: la página se recorre más rápido hasta el precio */
.section { padding: 60px 0; position: relative; }
.section h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.85rem, 5.4vw, 3rem); line-height: 1.12; letter-spacing: -0.015em;
  max-width: 20ch; text-wrap: balance;
}
.eyebrow { color: var(--accent-ink); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.sub { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; max-width: 52ch; }
@media (min-width: 960px) { .section { padding: 128px 0; } }

/* Apariciones al bajar (P26). Sin JS todo se ve. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); transition-delay: var(--rd, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Bento de servicios ---------- */
.bento { display: grid; gap: 14px; margin-top: 48px; }
.cell {
  position: relative; overflow: hidden;
  border-radius: var(--r-card); border: 1px solid var(--line);
  background: var(--surface); padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.cell h3 { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.cell p { color: var(--ink-2); font-size: 1rem; }
.cell-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 6px; }
.cell-icon .ic { width: 24px; height: 24px; }
.cell-shot { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.cell-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .cell:hover .cell-shot img { transform: scale(1.04); }
}
.cell-c .cell-shot { height: 260px; margin-top: 10px; }
.cell-c .cell-shot img { object-position: center bottom; }
.cell-f { background: var(--bg-2); }
.cell-g .cell-shot { height: 260px; margin-bottom: 8px; }
.cell-g .cell-shot img { object-position: center 40%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--surface); }

@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-f { grid-column: span 2; }
}
@media (min-width: 1040px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
      "c d e g"
      "c f f g";
  }
  .cell-c { grid-area: c; } .cell-d { grid-area: d; } .cell-e { grid-area: e; } .cell-f { grid-area: f; } .cell-g { grid-area: g; }
  .cell-c .cell-shot, .cell-g .cell-shot { flex: 1 1 auto; height: auto; min-height: 250px; }
}

/* ---------- Panel: pestañas elásticas (P14) ---------- */
.tabs { margin-top: 44px; }
.tablist {
  position: relative; display: flex; gap: 4px; padding: 5px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tablist::-webkit-scrollbar { display: none; }
.tablist [role="tab"] {
  position: relative; z-index: 1; min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; color: var(--ink-2); white-space: nowrap;
  transition: color 220ms ease;
}
.tablist [role="tab"][aria-selected="true"] { color: var(--on-accent); }
@media (max-width: 420px) {
  .tablist { gap: 0; padding: 4px; }
  .tablist [role="tab"] { padding: 0 9px; font-size: 14px; }
}
.tab-ind {
  position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: 100px;
  border-radius: 999px; background: var(--accent);
  transform-origin: 0 50%; will-change: transform;
}
.tabpanel { display: grid; gap: 36px; margin-top: 40px; align-items: center; }
.tabpanel[hidden] { display: none; }
.tabpanel.entering { animation: panel-in 200ms var(--ease-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.tp-text h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 600; line-height: 1.2; }
.tp-text p { margin-top: 12px; color: var(--ink-2); }
.tabpanel .phone { width: min(70vw, 270px); justify-self: center; }
.checks { display: grid; gap: 14px; margin-top: 22px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks .ic { color: var(--accent-ink); width: 22px; height: 22px; margin-top: 2px; }
.channels { display: grid; gap: 12px; }
.channels li { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.channels h4 { font-size: 1.08rem; font-weight: 800; }
.channels p { color: var(--ink-2); font-size: .98rem; }
.ch-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); }
.ch-icon .ic { width: 28px; height: 28px; }
@media (min-width: 960px) {
  .tabpanel { grid-template-columns: 1fr 1fr; gap: 64px; min-height: 620px; align-items: start; }
  .tp-text { padding-top: 24px; }
  .tabpanel .phone { width: 280px; }
}

/* ---------- Cómo empezamos ---------- */
.start-track { position: relative; margin-top: 52px; }
.start-steps { display: grid; gap: 36px; position: relative; }
.start-steps li { position: relative; padding-left: 76px; }
.start-steps h3 { font-size: 1.25rem; font-weight: 800; }
.start-steps p { margin-top: 6px; color: var(--ink-2); max-width: 34ch; }
.start-icon {
  position: absolute; left: 0; top: -6px; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--accent-ink);
}
.start-icon .ic { width: 28px; height: 28px; }
.start-line {
  position: absolute; left: 27px; top: 50px; bottom: 60px; width: 2px; background: var(--accent);
  transform-origin: top; transform: scaleY(0); transition: transform 1100ms var(--ease-in-out) 200ms; opacity: .7;
}
.start-track.in .start-line { transform: none; }
@media (min-width: 900px) {
  .start-steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .start-steps li { padding-left: 0; padding-top: 84px; }
  .start-icon { top: 0; }
  .start-line { left: 28px; right: calc(33.33% - 28px); top: 27px; bottom: auto; width: auto; height: 2px; transform-origin: left; transform: scaleX(0); }
}

/* ---------- Videos con IA (se ven con una imagen de portada; el video se baja solo al tocar) ---------- */
.vrow { --vh: clamp(300px, 64vw, 440px); display: flex; gap: 14px; margin: 36px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 14px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: thin; overscroll-behavior-x: contain; }
.vcard { flex: none; scroll-snap-align: start; }
.vplay { position: relative; display: block; height: var(--vh); width: auto; padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); cursor: pointer; transition: transform 200ms var(--ease-out), border-color 200ms ease; }
.vplay:active { transform: scale(0.98); }
.vplay img, .vplay video { display: block; width: 100%; height: 100%; object-fit: contain; }
.vplay video { position: absolute; inset: 0; background: #000; }
.vbtn { position: absolute; z-index: 1; pointer-events: none; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); transition: transform 200ms var(--ease-out); }
.vbtn .ic { width: 28px; height: 28px; margin-left: 3px; }
.vplay.playing .vbtn { display: none; }
.vplay.ended .vbtn { display: grid; }   /* al terminar se queda el último cuadro y vuelve el botón para repetir */
.vname { margin-top: 10px; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.vnote { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 62ch; }
@media (hover: hover) and (pointer: fine) { .vplay:hover { border-color: var(--accent); } .vplay:hover .vbtn { transform: scale(1.08); } }
@media (min-width: 960px) { .vrow { margin-inline: 0; padding-inline: 0; } }

/* ---------- Planes ---------- */
.plans { display: grid; gap: 18px; margin-top: 36px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px 22px 24px; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface); }
.plan h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.plan-price { margin-top: 10px; display: flex; align-items: baseline; gap: 4px; font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; letter-spacing: -0.03em; }
.plan-price .cur { font-size: .5em; align-self: flex-start; margin-top: .15em; color: var(--accent-ink); }
.plan-price small { margin-left: 8px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.plan-lead { margin-top: 12px; color: var(--ink); font-weight: 600; }
.plan-intro { color: var(--ink-2); font-weight: 700; }
.plan-list { margin-top: 0; gap: 11px; font-size: 15.5px; }
.plan-list .ic { width: 20px; height: 20px; }
.plan-list strong, .plan-more strong { color: var(--ink); }
.plan-note { margin-top: auto; color: var(--muted); font-size: 14.5px; font-style: italic; }
.plan-btn { width: 100%; white-space: normal; text-align: center; padding-block: 10px; }
.plan-btn.is-off { cursor: default; color: var(--ink-2); }
.plan-badge { position: absolute; right: 18px; top: 22px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.plan-pronto .plan-list { opacity: .95; }
/* Web a medida: la opción premium, a todo lo ancho debajo de los planes (misma familia: mismas letras, bordes y botón) */
.plan-custom { grid-column: 1 / -1; border-color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); }
.plan-custom .eyebrow { margin-bottom: 8px; }
.plan-custom .plan-note { margin-top: 0; font-style: normal; color: var(--ink-2); }
@media (min-width: 700px) { .plan-custom { display: grid; grid-template-columns: 1.3fr 1fr auto; align-items: center; gap: 28px; padding: 28px 30px; } .plan-custom .plan-btn { width: auto; } }
.plan-more { display: grid; gap: 36px; margin-top: 48px; }
.plan-more h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
.plan-more h3 small { font-family: var(--font-body); font-size: .8em; font-weight: 600; color: var(--muted); }
.plan-more .plan-note { margin-top: 18px; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } .plan-more { grid-template-columns: 1fr 1fr; gap: 56px; } }
@media (min-width: 1180px) { .plans { grid-template-columns: repeat(4, 1fr); gap: 16px; } .plan { padding: 26px 20px 22px; } }

/* ---------- Términos de servicio (terminos.html) ---------- */
.legal { padding: calc(100px + env(safe-area-inset-top)) 0 72px; }   /* el encabezado fijo mide 69 px: sin esto tapaba el título */
.legal-wrap { max-width: 780px; }
.legal-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.legal-date { margin-top: 12px; color: var(--muted); font-size: 15px; }
.legal-toc { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); }
.legal-toc h2 { font-family: var(--font-body); font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); max-width: none; }
.legal-toc ol { margin-top: 10px; display: grid; gap: 2px 24px; list-style: none; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 10px; align-items: baseline; min-height: 44px; padding: 8px 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.35; }
.legal-toc a::before { content: counter(toc) "."; flex: none; min-width: 1.6em; color: var(--accent-ink); font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .legal-toc a:hover { color: var(--ink); } }
.legal-body { margin-top: 20px; }
.legal-sec { padding: 26px 0 6px; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.legal-sec:first-child { border-top: 0; }
.legal-sec h2 { display: flex; gap: 12px; align-items: baseline; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.25; max-width: none; text-wrap: balance; }
.legal-n { flex: none; color: var(--accent-ink); font-family: var(--font-body); font-weight: 800; font-size: .95rem; }
.legal-sec p, .legal-sec li { color: var(--ink-2); max-width: 68ch; }
.legal-sec p { margin-top: 12px; }
.legal-sec ul { margin-top: 12px; display: grid; gap: 9px; padding-left: 1.2em; list-style: disc; }
.legal-sec ul ul { margin-top: 8px; list-style: circle; }
.legal-sec ol { margin-top: 12px; display: grid; gap: 9px; padding-left: 1.5em; list-style: decimal; }
.legal-sec ol li::marker { color: var(--accent-ink); font-weight: 700; }
.legal-sec li::marker { color: var(--accent-ink); }
.legal-sec strong { color: var(--ink); }
.nav .legal-back { margin-left: auto; width: auto; padding: 0 18px; }
.foot-link { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .foot-link:hover { color: var(--ink); } }
.plan-terms { margin-top: 28px; color: var(--muted); font-size: 15px; }
@media (min-width: 700px) { .legal-toc ol { grid-template-columns: 1fr 1fr; } .legal { padding: calc(124px + env(safe-area-inset-top)) 0 96px; } }

/* ---------- Pulido de planes y videos ---------- */
/* Las tarjetas suben un poco al pasar el puntero (solo con mouse; en el celular un toque no las deja "pegadas") */
.plan { transition: translate 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease; }
.js .plan.reveal { transition: opacity 520ms var(--ease-out) var(--rd, 0ms), transform 520ms var(--ease-out) var(--rd, 0ms), translate 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease; }
@media (hover: hover) and (pointer: fine) {
  .plan:hover { translate: 0 -4px; border-color: var(--accent); box-shadow: var(--shadow); }
}
/* Las filas de videos avisan que hay más al lado: se desvanecen en el borde derecho mientras queda algo por ver */
.vrow { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
@media (min-width: 960px) { .vrow { -webkit-mask-image: none; mask-image: none; } }
.vplay:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* Botón de play: respira una vez al aparecer la tarjeta (no se repite) */
.vcard.in .vbtn { animation: vpop 420ms var(--ease-out) 240ms both; }
@keyframes vpop { from { opacity: 0; transform: scale(.95); } }
/* Fotos de celular: aparecen con un desvanecido corto cuando terminan de cargar, sin saltos */
.phone img { transition: opacity 260ms ease; }
@media (prefers-reduced-motion: reduce) {
  .plan, .js .plan.reveal { transition: opacity 300ms ease; }
  .plan:hover { translate: none; box-shadow: none; }
  .vcard.in .vbtn { animation: none; }
  .vplay, .vbtn { transition: none; }
}

/* ---------- Fondo suave que se desplaza mientras se baja (solo transform; quieto si el navegador no lo soporta o con menos movimiento) ---------- */
.bgscroll { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.bgscroll span { position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%; will-change: transform; }
.bgscroll span:nth-child(1) { background: radial-gradient(circle, var(--aura-1) 0%, transparent 62%); right: -34vmax; top: -30vmax; opacity: .8; }
.bgscroll span:nth-child(2) { background: radial-gradient(circle, var(--aura-2) 0%, transparent 60%); left: -40vmax; top: 30vh; opacity: .9; }
.bgscroll span:nth-child(3) { background: radial-gradient(circle, var(--aura-3) 0%, transparent 60%); right: -30vmax; bottom: -40vmax; opacity: .7; }
@supports (animation-timeline: scroll()) {
  .bgscroll span { animation: bg-sube linear both; animation-timeline: scroll(root); }
  .bgscroll span:nth-child(2) { animation-name: bg-baja; }
  .bgscroll span:nth-child(3) { animation-name: bg-lado; }
}
@keyframes bg-sube { to { transform: translate3d(-22vmax, 70vh, 0) scale(1.15); } }
@keyframes bg-baja { to { transform: translate3d(36vmax, -60vh, 0) scale(.9); } }
@keyframes bg-lado { to { transform: translate3d(-28vmax, -80vh, 0) scale(1.2); } }

/* ---------- Preguntas ---------- */
.faq-wrap { display: grid; gap: 36px; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 18px; max-width: 780px; border-radius: 28px; border: 1px solid var(--line); background: var(--bg-2); }
.msg { max-width: 88%; padding: 14px 18px; border-radius: 20px; line-height: 1.5; }
.msg p { margin: 0; }
.msg-q { align-self: flex-end; margin-top: 12px; background: var(--accent); color: var(--on-accent); font-weight: 700; border-bottom-right-radius: 6px; }
.msg-q:first-child { margin-top: 0; }
.msg-a { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 6px; }
.msg-a strong { color: var(--ink); }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }

/* ---------- Panel vivo: una sola animación orquestada en el celular de Pagos (llega el aviso, se abre la captura, se aprueba y sale WhatsApp). Solo transform y opacity. Sin movimiento o sin JavaScript se ve el final. ---------- */
.live .lv { position: absolute; inset: 7px; border-radius: calc(var(--r-phone) - 7px); overflow: hidden; background: #fff; color: #0B0F19; container-type: size; font-size: 12.5px; line-height: 1.35; text-align: left; }
.lv-screen { position: absolute; inset: 0; background: #fff; padding: 34px 14px 14px; }
.lv-screen h4 { margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.lv-top { font-size: 12px; color: #4A5163; }
.lv-top b { color: #0B0F19; }
.lv-seg { margin-top: 10px; display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: #EDEFF3; font-weight: 700; color: #4A5163; }
.lv-seg span { flex: 1; text-align: center; padding: 6px 4px; border-radius: 999px; }
.lv-seg .on { background: #0B0F19; color: #fff; }
.lv-card { margin-top: 10px; padding: 11px 12px; border: 1px solid #DDE1E8; border-radius: 14px; }
.lv-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.lv-row em { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #EDEFF3; color: #344054; }
.lv-line { margin-top: 6px; color: #4A5163; }
.lv-line b { color: #0B0F19; }
.lv-b { display: flex; flex-direction: column; box-shadow: -14px 0 28px -10px rgb(0 0 0 / .35); }
.lv-shot { margin-top: 10px; height: 118px; border: 1.5px dashed #AEB5C2; border-radius: 12px; display: grid; align-content: center; justify-items: center; gap: 6px; background: #F5F6F8; }
.lv-shot i { display: block; width: 62%; height: 6px; border-radius: 4px; background: #D3D8E0; } .lv-shot i:nth-child(2) { width: 46%; } .lv-shot i:nth-child(3) { width: 54%; }
.lv-shot span { font-size: 12px; color: #4A5163; }
.lv-actions { margin-top: auto; margin-bottom: 78px; display: flex; gap: 8px; }
.lv-rej, .lv-yes { flex: 1; position: relative; text-align: center; padding: 11px 6px; border-radius: 12px; font-weight: 800; }
.lv-rej { border: 1.5px solid #AEB5C2; color: #0B0F19; }
.lv-yes { background: #0B0F19; color: #fff; }
.lv-yes::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0F6B3A; }
.lv-yes > span { position: relative; }
.lv-t1 { position: absolute !important; inset: 11px 0 auto; opacity: 0; }
.lv-ring { position: absolute !important; inset: 0; border-radius: inherit; border: 2px solid #0F6B3A; opacity: 0; }
.lv-wa { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 12px; border-radius: 14px; background: #0B0F19; color: #fff; }
.lv-wa p { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.lv-wa .ic { width: 18px; height: 18px; }
.lv-wa small { display: block; margin-top: 4px; font-size: 12px; color: #D3D8E0; line-height: 1.35; }
.lv-note { position: absolute; left: 10px; right: 10px; top: 10px; padding: 10px 12px; border-radius: 14px; background: #0B0F19; color: #fff; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .45); opacity: 0; display: grid; }
.lv-note b { font-size: 13px; } .lv-note span { color: #D3D8E0; font-size: 12px; }
.lv-tap { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgb(11 15 25 / .28); border: 2px solid #fff; box-shadow: 0 0 0 1px rgb(11 15 25 / .35); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .live:not(.play) .lv-b { transform: translateX(100%); }
  .js .live:not(.play) .lv-wa { opacity: 0; transform: translateY(14px); }
  .js .live:not(.play) .lv-yes::before { opacity: 0; }
  .js .live:not(.play) .lv-t2 { opacity: 0; }
  .js .live:not(.play) .lv-t1 { opacity: 1; }
  .live.play .lv-note { animation: lv-note 7.5s var(--ease-out) both; }
  .live.play .lv-tap { animation: lv-tap 7.5s var(--ease-out) both; }
  .live.play .lv-b { animation: lv-b 7.5s cubic-bezier(0.32, 0.72, 0, 1) both; }
  .live.play .lv-a::after { content: ""; position: absolute; inset: 0; background: #000; animation: lv-dim 7.5s var(--ease-out) both; }
  .live.play .lv-yes { animation: lv-press 7.5s var(--ease-out) both; }
  .live.play .lv-yes::before { animation: lv-fade-in 7.5s ease both; }
  .live.play .lv-t1 { animation: lv-t1 7.5s ease both; }
  .live.play .lv-t2 { animation: lv-fade-in 7.5s ease both; }
  .live.play .lv-ring { animation: lv-ring 7.5s var(--ease-out) both; }
  .live.play .lv-wa { animation: lv-wa 7.5s var(--ease-out) both; }
}
@keyframes lv-note { 0%, 6% { opacity: 0; transform: translateY(-130%); } 11%, 29% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-14%); } }
@keyframes lv-tap {
  0%, 13% { opacity: 0; transform: translate(60cqw, 18cqh); }
  18% { opacity: 1; transform: translate(50cqw, 8cqh) scale(1); }
  25% { opacity: 1; transform: translate(50cqw, 8cqh) scale(.82); }
  28%, 36% { opacity: 1; transform: translate(50cqw, 8cqh) scale(1); }
  46% { opacity: 1; transform: translate(72cqw, calc(100cqh - 112px)) scale(1); }
  50% { opacity: 1; transform: translate(72cqw, calc(100cqh - 112px)) scale(.82); }
  53% { opacity: 1; transform: translate(72cqw, calc(100cqh - 112px)) scale(1); }
  60%, 100% { opacity: 0; transform: translate(72cqw, calc(100cqh - 112px)); }
}
@keyframes lv-b { 0%, 29% { transform: translateX(100%); } 40%, 100% { transform: none; } }
@keyframes lv-dim { 0%, 29% { opacity: 0; } 40%, 100% { opacity: .4; } }
@keyframes lv-press { 0%, 49% { transform: none; } 51% { transform: scale(0.97); } 54%, 100% { transform: none; } }
@keyframes lv-fade-in { 0%, 52% { opacity: 0; } 56%, 100% { opacity: 1; } }
@keyframes lv-t1 { 0%, 51% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes lv-ring { 0%, 52% { opacity: 0; transform: scale(1); } 53% { opacity: .6; transform: scale(1); } 62%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes lv-wa { 0%, 62% { opacity: 0; transform: translateY(14px); } 70%, 100% { opacity: 1; transform: none; } }

/* ---------- Cierre (P28): las luces del hero vuelven y se juntan detrás del botón ---------- */
.closing { position: relative; overflow: hidden; padding: 120px 0 128px; text-align: center; border-top: 1px solid var(--line); }
.closing-inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.closing h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance; }
.closing .sub { margin-inline: auto; }
.closing .btn { margin-top: 32px; }
.aura-close span { width: 60vmax; height: 60vmax; transition: transform 1100ms var(--ease-out), opacity 1100ms ease; opacity: .35; }
.aura-close span:nth-child(1) { right: -35vmax; top: -35vmax; }
.aura-close span:nth-child(2) { right: auto; bottom: auto; left: 50%; top: 50%; margin: -30vmax 0 0 -30vmax; transform: scale(.4); background: radial-gradient(circle, var(--aura-1) 0%, transparent 55%); }
.aura-close span:nth-child(3) { left: -38vmax; bottom: -20vmax; }
.closing.in .aura-close span { opacity: 1; }
.closing.in .aura-close span:nth-child(1) { transform: translate(-10vmax, 12vmax); }
.closing.in .aura-close span:nth-child(3) { transform: translate(10vmax, -8vmax); }
.closing.in .aura-close span:nth-child(2) { transform: scale(1); }
.aura-close span { animation: none; }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.footer p { color: var(--muted); font-size: 15px; }

/* ---------- Movimiento reducido: menos y más suave, nada que se desplace solo ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bgscroll span { animation: none !important; }
  .aura span { animation: none !important; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .start-line { transition: none; transform: none !important; }
  .cell:hover .cell-shot img { transform: none; }
  .tabpanel.entering { animation-name: fade; }
  .aura-close span { transition: none; }
}
@keyframes fade { from { opacity: 0; } }

/* ---------- Negocios que confían en Weaktony: tiendas reales, cada una lleva directo a su web ---------- */
.cli-lista { list-style: none; margin: 34px calc(var(--gutter) * -1) 0; padding: 14px var(--gutter) 22px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.cli-lista::-webkit-scrollbar { display: none; }
.cli { flex: 0 0 min(72vw, 290px); scroll-snap-align: start; min-width: 0; }
.cli-card { display: grid; gap: 0; height: 100%; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 0 22px 44px -30px rgb(0 0 0 / .6); animation: cli-flota 7s ease-in-out var(--cf, 0s) infinite alternate; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 200ms ease; }
@keyframes cli-flota { from { translate: 0 0; } to { translate: 0 -7px; } }
.cli-shot { display: block; position: relative; aspect-ratio: 840 / 1000; overflow: hidden; background: var(--surface-2); }
.cli-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 520ms var(--ease-out); }
.cli-shot::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(to bottom, transparent, var(--surface)); pointer-events: none; }
.cli-body { display: grid; gap: 4px; padding: 6px 18px 18px; position: relative; z-index: 1; margin-top: -26px; }
.cli-rubro { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.cli-name { font: 600 1.3rem/1.15 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.cli-go { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px; }
.cli-go .ic { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
.cli-card:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .cli-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 30px 56px -28px rgb(0 0 0 / .7), 0 0 0 1px var(--accent); }
  .cli-card:hover .cli-shot img { transform: scale(1.05); }
  .cli-card:hover .cli-go .ic { transform: translate(3px, -3px); }
}
@media (min-width: 720px) { .cli-lista { flex-wrap: wrap; justify-content: center; gap: 18px; overflow: visible; margin-inline: 0; padding-inline: 0; } .cli { flex: 0 0 calc((100% - 18px) / 2); } }   /* las filas incompletas quedan centradas */
@media (min-width: 1040px) { .cli { flex-basis: calc((100% - 54px) / 4); } }
@media (min-width: 1040px) { .cli-lista:has(.cli:nth-child(6):last-child) .cli { flex-basis: calc((100% - 36px) / 3); } }   /* 6 tarjetas: 3 y 3 */
@media (prefers-reduced-motion: reduce) { .cli-card { animation: none; } .cli-shot img, .cli-go .ic { transition: none; } }
