@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-VariableFont_wght.woff2") format("woff2"), url("../fonts/PlusJakartaSans-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #011e41;
  --navy-2: #04274f;
  --ink: #000f22;
  --blue: #2a7de1;
  --blue-deep: #1947ba;
  --green: #00ce7c;
  --green-2: #24cc7a;
  --white: #ffffff;
  --paper: #f3f6fb;
  --text: #0b1a2e;
  --muted: #5b6b80;
  --muted-dark: #9fb0c6;
  --line: rgba(255, 255, 255, 0.1);
  --radius-xl: 40px;
  --radius-l: 28px;
  --radius-m: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 45%, var(--green) 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--text); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--white); color: var(--navy); }
.btn-primary:hover { box-shadow: 0 12px 30px -10px rgba(255, 255, 255, .5); }
.btn-green { background: var(--green); color: var(--navy); }
.btn-green:hover { box-shadow: 0 14px 34px -10px rgba(0, 206, 124, .7); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, backdrop-filter .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(0, 15, 34, .78); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, .78); transition: background-color .2s, color .2s; }
.nav-links a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 0; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(50% 45% at 20% 25%, rgba(42, 125, 225, .45), transparent 70%),
    radial-gradient(40% 40% at 85% 20%, rgba(0, 206, 124, .28), transparent 70%),
    radial-gradient(60% 50% at 50% 90%, rgba(25, 71, 186, .45), transparent 70%),
    var(--navy);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-copy { text-align: center; max-width: 980px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .85);
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0, 206, 124, .25); }
.display {
  margin: 22px 0 0; font-weight: 800; letter-spacing: -0.045em; line-height: .98;
  font-size: clamp(44px, 8.2vw, 112px);
}
.display .grad, .h2 .grad {
  background: linear-gradient(90deg, #6fb2ff, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 26px auto 0; max-width: 640px; font-size: clamp(17px, 1.6vw, 21px); color: rgba(255, 255, 255, .78); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.hero-stage { position: relative; margin: 72px auto 0; max-width: 1120px; }
.device {
  position: relative; border-radius: 26px; padding: 12px; background: linear-gradient(160deg, #26364d, #0b1626 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 60px 120px -30px rgba(0, 0, 0, .7), 0 30px 60px -30px rgba(42, 125, 225, .5);
}
.device img { border-radius: 16px; width: 100%; height: auto; }
.hero-stage .device { transform: perspective(1800px) rotateX(var(--tilt, 10deg)) scale(var(--lift, 1)); transform-origin: 50% 100%; will-change: transform; }
.hero-stage .float, .hero-stage .phone { translate: 0 var(--py, 0); }

.float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 20px;
  background: rgba(255, 255, 255, .96); color: var(--text); box-shadow: 0 24px 50px -16px rgba(0, 10, 30, .55);
  font-size: 14px; line-height: 1.25; animation: bob 6s ease-in-out infinite; z-index: 3;
}
.float b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.float small { color: var(--muted); font-weight: 500; }
.float .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--white); }
.float .ico svg { width: 22px; height: 22px; }
.f1 { left: -3%; top: 18%; }
.f2 { right: -2%; top: 8%; animation-delay: -2s; }
.f3 { left: 4%; bottom: 8%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-fade { height: 120px; margin-top: -120px; position: relative; background: linear-gradient(transparent, var(--ink)); }

/* ---------- Franja de datos ---------- */
.facts { padding: 40px 0 20px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { padding: 22px; border-radius: var(--radius-m); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.facts strong { display: block; font-size: 22px; letter-spacing: -0.02em; }
.facts span { color: var(--muted-dark); font-size: 15px; }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { max-width: 820px; }
.section-head.center { margin: 0 auto; text-align: center; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.h2 { margin: 14px 0 0; font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; font-size: clamp(38px, 5.6vw, 76px); }
.sub { margin: 20px 0 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted-dark); max-width: 640px; }
.center .sub { margin-left: auto; margin-right: auto; }

/* Bloque claro estilo "papel" */
.light { background: var(--paper); color: var(--text); }
.light .sub, .light p { color: var(--muted); }
.light .kicker { color: var(--blue-deep); }

/* ---------- Administración (claro, tarjetas con pestañas) ---------- */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.tab { height: 46px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer; background: var(--white); color: var(--text); font-weight: 700; box-shadow: 0 0 0 1px rgba(1, 30, 65, .1); transition: background-color .25s, color .25s; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); box-shadow: none; }
.panel-wrap { margin-top: 34px; display: grid; }
.panel { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; padding: clamp(22px, 4vw, 48px); border-radius: var(--radius-xl); background: var(--white); box-shadow: 0 30px 80px -50px rgba(1, 30, 65, .45); }
.panel[hidden] { display: none; }
.panel.active { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.panel h3 { margin: 0; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -0.035em; line-height: 1.05; color: var(--text); }
.panel p { margin: 14px 0 0; font-size: 17px; }
.panel img { border-radius: 18px; box-shadow: 0 0 0 1px rgba(1, 30, 65, .08), 0 24px 50px -24px rgba(1, 30, 65, .45); }

/* ---------- Sin Internet ---------- */
.offline { background: radial-gradient(70% 60% at 50% 100%, rgba(42, 125, 225, .35), transparent 70%), var(--navy); overflow: hidden; }
.net { position: relative; margin: 70px auto 0; max-width: 900px; aspect-ratio: 16 / 8; }
.net svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.net .lines path { fill: none; stroke: url(#lineGrad); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
.net .lines path.cut { stroke: rgba(255, 255, 255, .25); animation: none; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 10px; text-align: center; font-weight: 700; font-size: 15px; }
.node .disc { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.node .disc svg { width: 32px; height: 32px; }
.node.main .disc { width: 120px; height: 120px; border-radius: 32px; background: var(--white); box-shadow: 0 0 0 10px rgba(0, 206, 124, .12), 0 30px 60px -20px rgba(0, 206, 124, .5); }
.node.main .disc img { width: 64px; height: 64px; }
.node.off { opacity: .55; }
.node.off .disc { position: relative; }
.node.off .disc::after { content: ""; position: absolute; width: 90%; height: 3px; background: #ff5b6b; border-radius: 3px; transform: rotate(-35deg); }
.note { margin: 50px auto 0; max-width: 560px; text-align: center; color: var(--muted-dark); font-size: 15px; }

/* ---------- Teléfono ---------- */
.phone {
  position: absolute; width: 23%; right: -3%; bottom: -8%; z-index: 2; border-radius: 34px; padding: 8px;
  background: linear-gradient(160deg, #2b3d58, #0a1424 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -24px rgba(0, 0, 0, .75);
}
.phone img { border-radius: 27px; width: 100%; height: auto; }

/* ---------- Tarjetas de texto ---------- */
.mods { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mods li { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); }
.mods b { display: block; font-size: 16px; }
.mods span { font-size: 14px; color: var(--muted-dark); }


/* ---------- CTA final ---------- */
.cta { padding: clamp(70px, 9vw, 120px) 0; }
.cta-card {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px);
  background: var(--grad); text-align: center; isolation: isolate;
}
.cta-card::before { content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -260px; z-index: -1; background: url("../brand/nexopos-simbolo.svg") center / contain no-repeat; opacity: .12; filter: brightness(3); transform: rotate(-12deg); }
.cta-card .h2 { color: var(--white); }
.cta-card p { margin: 20px auto 0; max-width: 560px; font-size: 19px; color: rgba(255, 255, 255, .9); }
.cta-card .hero-cta { margin-top: 36px; }
.cta-card .btn-primary svg { color: #25d366; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 50px; color: var(--muted-dark); font-size: 14.5px; }
.foot-in { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot img { height: 26px; width: auto; }
.foot a:hover { color: var(--white); }

/* ---------- Variantes A/B (se asignan en boot.js antes de pintar) ---------- */
.ab-hero-b { display: none; }
[data-ab-hero="b"] .ab-hero-a { display: none; }
[data-ab-hero="b"] .ab-hero-b { display: inline; }

.btn-lg { height: 58px; padding: 0 30px; font-size: 17px; }
.btn-ghost-light { background: rgba(255, 255, 255, .14); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .22); }
.btn-primary svg, .btn-lg svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.hero-note { margin: 16px 0 0; font-size: 14.5px; color: rgba(255, 255, 255, .62); }
.link { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.light .link { color: var(--blue-deep); }
.inline-cta { margin: 40px 0 0; text-align: center; font-size: 17px; color: var(--muted-dark); }
.inline-cta a { color: var(--white); font-weight: 700; text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.light .inline-cta { color: var(--muted); }
.light .inline-cta a { color: var(--text); }
.nav-menu-cta { display: none; }

/* ---------- Problemas ---------- */
.pains { list-style: none; margin: 60px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain { padding: 28px; border-radius: var(--radius-l); background: var(--white); box-shadow: 0 1px 0 rgba(1, 30, 65, .06), 0 18px 40px -28px rgba(1, 30, 65, .35); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.pain:hover { box-shadow: 0 1px 0 rgba(1, 30, 65, .06), 0 26px 50px -28px rgba(1, 30, 65, .45); }
.pain-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #e8f0fd; color: var(--blue-deep); margin-bottom: 18px; }
.pain-ico svg { width: 24px; height: 24px; }
.pain h3 { margin: 0; font-size: 21px; letter-spacing: -0.02em; color: var(--text); }
.light .pain-q { margin: 8px 0 0; font-size: 15.5px; color: #8a2f3c; font-style: italic; }
.light .pain-a { margin: auto 0 0; padding-top: 18px; font-size: 15.5px; color: var(--muted); border-top: 1px dashed rgba(1, 30, 65, .12); margin-top: 18px; }
.pain-a b { color: #067a4b; }
.pain-cta { background: var(--navy); color: var(--white); justify-content: center; }
.pain-cta h3 { color: var(--white); font-size: 24px; }
.light .pain-cta p { color: var(--muted-dark); margin: 10px 0 22px; }
.pain-cta .btn { align-self: flex-start; background: var(--green); color: var(--navy); }

/* ---------- Recorrido del producto ---------- */
.tour { display: grid; grid-template-columns: 340px 1fr; gap: 28px; margin-top: 60px; align-items: start; }
.tour-tabs { display: grid; gap: 8px; min-width: 0; }
.tour-stage, .tour-panel { min-width: 0; }
.tour-tab { position: relative; overflow: hidden; display: flex; gap: 16px; align-items: center; text-align: left; padding: 16px 18px; border: 0; border-radius: var(--radius-m); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background-color .25s, box-shadow .25s; }
.tour-tab:hover { background: rgba(255, 255, 255, .07); }
.tour-tab[aria-selected="true"] { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.tour-num { font-size: 13px; font-weight: 800; color: var(--muted-dark); font-variant-numeric: tabular-nums; }
.tour-tab[aria-selected="true"] .tour-num { color: var(--green); }
.tour-tab b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.tour-tab small { display: block; font-size: 14px; color: var(--muted-dark); }
.tour-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.tour-tab[aria-selected="true"] .tour-bar { transform: scaleX(1); }
.tour.playing .tour-tab[aria-selected="true"] .tour-bar { animation: tourbar var(--tour-ms, 7000ms) linear forwards; }
@keyframes tourbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tour-stage { display: grid; border-radius: var(--radius-xl); padding: clamp(14px, 2vw, 22px); background: linear-gradient(160deg, #12305c, var(--navy-2) 70%); box-shadow: inset 0 0 0 1px var(--line), 0 50px 100px -50px rgba(0, 0, 0, .8); }
.tour-panel { grid-area: 1 / 1; }
.tour-panel[hidden] { display: block; visibility: hidden; opacity: 0; }
.tour-panel:not([hidden]) { animation: tourIn .55s var(--ease); }
@keyframes tourIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.tour-shot img { border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); background: #0b1626; }
.tour-points { list-style: none; margin: 18px 4px 4px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.tour-points li { position: relative; padding-left: 22px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.tour-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 60px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 26px; border-radius: var(--radius-l); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.step-n { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); font-weight: 800; font-size: 18px; margin-bottom: 18px; }
.step h3 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.step p { margin: 8px 0 0; font-size: 15.5px; color: var(--muted-dark); }

/* ---------- Negocios ---------- */
.checks { list-style: none; margin: 20px 0 26px; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-size: 16.5px; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #dff7ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23067a4b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.light .panel-note { font-size: 15px; margin: -10px 0 22px; }
.mods-light { margin-top: 26px; grid-template-columns: repeat(6, 1fr); }
.mods-light li { background: var(--white); box-shadow: 0 0 0 1px rgba(1, 30, 65, .08); }
.mods-light b { color: var(--text); }
.light .mods-light span { color: var(--muted); }

/* ---------- Reproductor / recorrido guiado ---------- */
.player { margin: 60px auto 0; max-width: 1080px; }
.player-frame { position: relative; border-radius: var(--radius-xl); padding: clamp(10px, 1.6vw, 18px); background: linear-gradient(160deg, #26364d, #0b1626 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 60px 120px -40px rgba(0, 0, 0, .8); }
.player-slides { display: grid; border-radius: 22px; overflow: hidden; }
.player-slide { grid-area: 1 / 1; margin: 0; position: relative; opacity: 0; transition: opacity .8s var(--ease); }
.player-slide.is-on { opacity: 1; }
.player-slide img { width: 100%; transform: scale(1.04); transition: transform 7s linear; }
.player-slide.is-on img { transform: scale(1); }
.player-slide figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 520px; padding: 14px 18px; border-radius: 16px; background: rgba(1, 30, 65, .92); color: rgba(255, 255, 255, .9); font-size: 15.5px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); }
.player-slide figcaption b { color: var(--green); margin-right: 6px; }
.player-bar[hidden], .player-slides[hidden], .player-video[hidden] { display: none; }
.player-video video { width: 100%; border-radius: 22px; background: #000; }
.player-bar { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 0 6px; }
.player-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--white); color: var(--navy); cursor: pointer; flex: none; transition: transform .2s var(--ease); }
.player-btn:hover { transform: scale(1.06); }
.player-btn svg { width: 20px; height: 20px; }
.player-btn .i-play, .player.paused .player-btn .i-pause { display: none; }
.player.paused .player-btn .i-play { display: block; }
.player-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex: 1; }
.player-dots li { flex: 1; }
.player-dots button { width: 100%; height: 28px; border: 0; background: none; padding: 12px 0; cursor: pointer; }
.player-dots i { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; position: relative; }
.player-dots i::after { content: ""; position: absolute; inset: 0; background: var(--green); transform: scaleX(0); transform-origin: left; }
.player-dots .done i::after { transform: scaleX(1); }
.player-dots [aria-current="step"] i::after { transform: scaleX(1); }
.player:not(.paused) .player-dots [aria-current="step"] i::after { animation: tourbar var(--tour-ms, 5500ms) linear forwards; }
.player-label { font-size: 14px; color: var(--muted-dark); white-space: nowrap; }

/* ---------- Confianza ---------- */
.trust { list-style: none; margin: 60px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust li { padding: 28px; border-radius: var(--radius-l); background: var(--white); box-shadow: 0 1px 0 rgba(1, 30, 65, .06), 0 18px 40px -28px rgba(1, 30, 65, .35); }
.trust-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--green); margin-bottom: 18px; }
.trust-ico svg { width: 24px; height: 24px; }
.trust h3 { margin: 0; font-size: 19px; letter-spacing: -0.02em; color: var(--text); }
.trust p { margin: 8px 0 0; font-size: 15.5px; }

/* ---------- Preguntas ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: 110px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-m); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s; }
.faq details[open] { background: rgba(255, 255, 255, .07); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 17px; position: relative; border-radius: var(--radius-m); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--muted-dark); font-size: 16px; }

/* ---------- CTA fija en móvil ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(0, 15, 34, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform .35s var(--ease); display: none; }
.sticky-cta .btn { width: 100%; }
.sticky-cta.show { transform: none; }

.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-weight: 600; }

/* ---------- 1. Esqueletos de carga ---------- */
@keyframes shimmer-x { to { background-position: -200% 0; } }
.sk, .sk-block {
  background: linear-gradient(100deg, rgba(150, 170, 200, .14) 30%, rgba(150, 170, 200, .32) 50%, rgba(150, 170, 200, .14) 70%) 0 0 / 200% 100%;
  animation: shimmer-x 1.3s linear infinite;
}
.light .sk, .admin-page .sk-block, .fcard .sk-block { background-image: linear-gradient(100deg, #e9eef6 30%, #f6f8fc 50%, #e9eef6 70%); }
.sk-in { animation: skIn .6s var(--ease); }
@keyframes skIn { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.sk-block { display: block; border-radius: 12px; }
.sk-line { height: 14px; margin: 8px 0; }
.sk-title { height: 28px; width: 40%; margin-bottom: 18px; }

/* ---------- 2. Microinteracciones ---------- */
.btn, .tab, .tour-tab, .opt, .cal-time, .cal-day, .player-btn, .fback { position: relative; overflow: hidden; isolation: isolate; }
.chip > span { position: relative; overflow: hidden; isolation: isolate; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); pointer-events: none; animation: ripple .6s var(--ease) forwards; z-index: -1; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.btn:active, .tab:active, .cal-time:active, .cal-day:active:not(:disabled), .chip:active > span, .player-btn:active { scale: .97; }
.btn, .tab, .cal-time, .cal-day, .chip > span, .player-btn { transition-property: transform, scale, background-color, box-shadow, color; }
.btn-primary::before, .btn-green::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) -150% 0 / 200% 100% no-repeat; transition: background-position .8s var(--ease); }
.btn-primary:hover::before, .btn-green:hover::before { background-position: 150% 0; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--green); }
.faq details[open] p { animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: none; } }

/* ---------- 3. Animaciones al hacer scroll ---------- */
.steps[data-steps-progress] { --p: 0; }
.step .step-n { transition: background-color .4s, box-shadow .4s, transform .5s var(--ease); background: rgba(255, 255, 255, .1); }
.step.on .step-n { background: var(--grad); box-shadow: 0 0 0 6px rgba(0, 206, 124, .14); transform: scale(1.06); }
.step { transition: box-shadow .4s, background-color .4s; }
.step.on { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(0, 206, 124, .35); }
.js .steps[data-steps-progress] .step:not(.on) .step-n { background: rgba(255, 255, 255, .1); }

/* ---------- 4. Tarjetas que reaccionan ---------- */
.tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .35s, background-color .35s; }
.tilt.tilting { transition: transform .12s linear, box-shadow .35s, background-color .35s; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 60%); }
.light .tilt::after, .tilt.opt::after, .admin-page .tilt::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(42, 125, 225, .12), transparent 60%); }
.tilt.tilting::after { opacity: 1; }
.tilt:active { scale: .985; }
.pain.tilting, .trust li.tilting { box-shadow: 0 1px 0 rgba(1, 30, 65, .06), 0 30px 60px -30px rgba(1, 30, 65, .5); }
.step.tilting, .facts li.tilting, .mods li.tilting { background: rgba(255, 255, 255, .09); }
.mods-light li.tilting { background: var(--white); box-shadow: 0 0 0 1px rgba(42, 125, 225, .35), 0 20px 40px -24px rgba(1, 30, 65, .35); }
.pain-ico, .trust-ico, .step-n { transition: transform .45s var(--ease); }
.tilting .pain-ico, .tilting .trust-ico { transform: translateZ(30px) scale(1.08) rotate(-4deg); }
.tour-stage.tilt::after { border-radius: var(--radius-xl); }

/* ---------- 5. Indicadores de progreso ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px rgba(0, 206, 124, .6); }
@media (min-width: 981px) {
  .steps[data-steps-progress]::before, .steps[data-steps-progress]::after { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 47px; height: 3px; border-radius: 3px; }
  .steps[data-steps-progress] { position: relative; }
  .steps[data-steps-progress]::before { background: rgba(255, 255, 255, .1); }
  .steps[data-steps-progress]::after { background: var(--grad); transform: scaleX(var(--p)); transform-origin: left; }
  .steps[data-steps-progress] .step { z-index: 1; }
  .steps[data-steps-progress] .step-n { position: relative; z-index: 1; }
}

/* ---------- Animaciones al desplazarse ---------- */
.js .reveal { opacity: 0; translate: 0 40px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; translate: none; }
.js .reveal-scale { scale: .94; transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease); }
.js .reveal-scale.in { scale: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-open .nav { background: rgba(0, 15, 34, .97); }
  .nav-open .nav-links { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; padding: 12px var(--gutter) 24px; background: rgba(0, 15, 34, .97); border-bottom: 1px solid var(--line); }
  .nav-open .nav-links a { font-size: 20px; padding: 14px 4px; }
  .panel, .tour, .faq-wrap { grid-template-columns: 1fr; }
  .nav-open .nav-menu-cta { display: block; margin-top: 10px; }
  .nav-open .nav-links .nav-menu-cta a { font-size: 17px; padding: 0 26px; height: 54px; display: flex; }
  .pains, .trust { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .mods-light { grid-template-columns: repeat(3, 1fr); }
  .tour-tabs { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); scroll-snap-type: x mandatory; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tab { scroll-snap-align: start; padding: 14px; }
  .tour-tab small { display: none; }
  .faq-wrap .section-head { position: static; }
  .sticky-cta { display: block; }
  .foot { padding-bottom: 110px; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .phone { width: 26%; right: 1%; bottom: -10%; border-radius: 22px; padding: 5px; }
  .phone img { border-radius: 18px; }
  .f1 { left: 2%; top: auto; bottom: -6%; }
  .f2 { right: 2%; top: -6%; }
  .f3 { display: none; }
}
@media (max-width: 600px) {
  .hero { padding-top: 120px; }
  .hero-stage { margin-top: 48px; }
  .hero-stage .device { transform: none; padding: 6px; border-radius: 16px; }
  .hero-stage .float, .hero-stage .phone { translate: none; }
  .device img { border-radius: 11px; }
  .float { padding: 10px 12px; border-radius: 14px; font-size: 12px; gap: 8px; }
  .float b { font-size: 14px; }
  .float .ico { width: 30px; height: 30px; border-radius: 9px; }
  .float .ico svg { width: 16px; height: 16px; }
  .hero-cta .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; height: auto; min-height: 52px; padding-top: 12px; padding-bottom: 12px; line-height: 1.2; }
  .btn-sm { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
  .btn-lg { min-height: 56px; }
  .facts li { padding: 16px; }
  .facts strong { font-size: 18px; }
  .mods { grid-template-columns: 1fr; }
  .mods-light { grid-template-columns: 1fr 1fr; }
  .pains, .trust, .steps { grid-template-columns: 1fr; }
  .tour-points { grid-template-columns: 1fr; }
  .player-label { display: none; }
  .player-slide figcaption { position: static; max-width: none; border-radius: 0 0 14px 14px; font-size: 14.5px; }
  .player-slides { border-radius: 14px; }
  .net { aspect-ratio: 4 / 5; }
  .node .disc { width: 56px; height: 56px; border-radius: 16px; }
  .node .disc svg { width: 24px; height: 24px; }
  .node.main .disc { width: 92px; height: 92px; border-radius: 26px; }
  .node.main .disc img { width: 48px; height: 48px; }
  .node { font-size: 13px; }
}
