/* =====================================================================
   Franco System · MANDOX — Design system (v1.0.0)
   Alineado con sistema-diseno-landing.json
   Mobile-first, sin frameworks, pensado para Core Web Vitals.
   ===================================================================== */

:root {
	/* Variables oficiales del sistema de diseño */
	--lp-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--lp-page: #FFFFFF;
	--lp-surface: #FBFBFD;
	--lp-surface-alt: #F6F6FA;
	--lp-ink: #19191D;
	--lp-muted: #52525D;
	--lp-line: #E5E5EB;
	--lp-primary: #3943E8;
	--lp-primary-hover: #2C34C7;
	--lp-on-primary: #FFFFFF;
	--lp-dark: #1C1C1F;
	--lp-on-dark: #FAFAFD;
	--lp-muted-on-dark: #CACAD6;
	--lp-tag: #FFF1BA;
	--lp-tag-ink: #674B0A;
	--lp-focus: #444CE0;
	--lp-hero-glow: radial-gradient(ellipse at 18% 5%, #EFEEFF 0%, transparent 61%), radial-gradient(ellipse at 88% 42%, #FFF9E9 0%, transparent 56%), #FFFFFF;
	--lp-container: 72rem;
	--lp-gutter: clamp(1rem, 5.6vw, 4rem);
	--lp-section-gap: clamp(3.5rem, 8vw, 8rem);
	--lp-card-padding: clamp(1.25rem, 3vw, 2.75rem);
	--lp-grid-gap: clamp(0.75rem, 1.6vw, 1.5rem);
	--lp-radius-control: 0.5rem;
	--lp-radius-card: 1rem;
	--lp-radius-window: 0.875rem;
	--lp-shadow-window: 0 1.25rem 3rem rgb(28 28 45 / 14%), 0 2px 8px rgb(28 28 45 / 8%);
	--lp-h1: clamp(2rem, 5.1vw, 4.25rem);
	--lp-h2: clamp(1.75rem, 3.5vw, 3rem);
	--lp-h3: clamp(1.3rem, 2vw, 1.75rem);
	--lp-body: 1rem;
	--lp-lead: clamp(1.0625rem, 1.6vw, 1.3rem);

	/* Aliases semánticos para compatibilidad y extensiones */
	--font: var(--lp-font);
	--ink: var(--lp-ink);
	--ink-2: #334155;
	--muted: var(--lp-muted);
	--line: var(--lp-line);
	--surface: var(--lp-page);
	--surface-2: var(--lp-surface);
	--surface-alt: var(--lp-surface-alt);
	--navy: var(--lp-dark);
	--navy-2: #161619;
	--brand: var(--lp-primary);
	--brand-2: var(--lp-primary-hover);
	--brand-soft: #EEEDFF;
	--accent: #F59E0B;
	--accent-soft: var(--lp-tag);
	--ok: #16A34A;
	--ok-soft: #E7F8EE;
	--danger: #DC2626;
	--wa: #25D366;
	--wa-dark: #128C4B;
	--radius: var(--lp-radius-card);
	--radius-sm: var(--lp-radius-control);
	--radius-lg: 1.25rem;
	--shadow-sm: 0 1px 2px rgba(28, 28, 45, .05), 0 1px 3px rgba(28, 28, 45, .08);
	--shadow: var(--lp-shadow-window);
	--shadow-lg: 0 24px 60px -15px rgba(28, 28, 45, .22);
	--container: var(--lp-container);
	--header-h: 4.25rem;

	/* Aliases usados por plantillas interiores (antes sin definir) */
	--card: var(--lp-page);
	--bg-alt: var(--lp-surface-alt);
	--text: var(--lp-ink);
	--text-muted: var(--lp-muted);
	--border: var(--lp-line);
	--lp-border: var(--lp-line);
	--lp-color-border-subtle: var(--lp-line);
	--lp-color-border-default: #D4D4DD;
	--lp-shadow-card: 0 1px 3px rgba(28, 28, 45, .06), 0 8px 24px -12px rgba(28, 28, 45, .12);

	/* Movimiento */
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
	overflow-x: hidden;
	width: 100%;
	max-width: 100%;
}
body {
	margin: 0;
	font-family: var(--lp-font);
	color: var(--lp-ink);
	background-color: var(--lp-page);
	line-height: 1.55;
	font-size: var(--lp-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	width: 100%;
	max-width: 100%;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--lp-primary); text-decoration: none; transition: color .15s ease; }
a:hover { text-decoration: underline; color: var(--lp-primary-hover); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; color: var(--lp-ink); }
h1 { font-size: var(--lp-h1); line-height: 1.02; letter-spacing: -0.05em; font-weight: 750; text-wrap: balance; }
h2 { font-size: var(--lp-h2); line-height: 1.1; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; margin: 0 0 1.5rem; }
h3 { font-size: var(--lp-h3); line-height: 1.18; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 0.75rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--lp-dark); color: var(--lp-on-dark); padding: .6rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--lp-focus); outline-offset: 3px; border-radius: var(--lp-radius-control); }

/* ---------- layout (pagina.contenedor, pagina.seccion) ---------- */
.container { width: min(var(--lp-container), calc(100% - 2 * var(--lp-gutter))); max-width: 100%; margin-inline: auto; padding: 0; }
.section { padding: var(--lp-section-gap) 0; }
.section-sm { padding: calc(var(--lp-section-gap) * 0.45) 0; }
.section-alt { background: var(--lp-surface-alt); }
.section-dark { background: var(--lp-dark); color: var(--lp-on-dark); }
.section-dark h2, .section-dark h3 { color: var(--lp-on-dark); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--lp-muted); font-size: 1.08rem; }
.section-dark .section-head p { color: var(--lp-muted-on-dark); }
.eyebrow {
	display: inline-flex;
	gap: .45rem;
	align-items: center;
	justify-content: center;
	font-size: .8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--lp-primary);
	background: var(--brand-soft);
	padding: .35rem .85rem;
	border-radius: 999px;
	margin-bottom: 1.25rem;
	max-width: 100%;
	text-wrap: balance;
	text-align: center;
	line-height: 1.35;
}
.section-dark .eyebrow { background: rgba(255, 255, 255, .1); color: var(--lp-on-dark); }

.grid { display: grid; gap: var(--lp-grid-gap); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48rem) {
	.grid-2 { grid-template-columns: repeat(2, 1fr); }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
	.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.split { display: grid; gap: var(--lp-card-padding); align-items: center; }
@media (min-width: 48rem) { .split { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); } }
.center { text-align: center; }
.muted { color: var(--lp-muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 12px; }

/* ---------- botones (boton.base, boton.primario, boton.secundario) ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	min-height: 2.75rem;
	padding: 0.625rem 1.125rem;
	border-radius: var(--lp-radius-control);
	border: 1px solid transparent;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none !important;
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease;
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary, a.btn-primary { background: var(--lp-primary); color: var(--lp-on-primary) !important; box-shadow: 0 4px 14px -3px rgba(57, 67, 232, .45); }
.btn-primary:hover, a.btn-primary:hover, .btn-primary:focus-visible, a.btn-primary:focus-visible { background: var(--lp-primary-hover); color: var(--lp-on-primary) !important; box-shadow: 0 6px 20px -3px rgba(57, 67, 232, .55); transform: translateY(-1px); }
.btn-secondary, a.btn-secondary {
	background: var(--lp-page);
	color: var(--lp-ink) !important;
	border-color: var(--lp-line);
	box-shadow: 0 1px 2px rgba(28, 28, 45, .04);
}
.btn-secondary:hover, a.btn-secondary:hover, .btn-secondary:focus-visible, a.btn-secondary:focus-visible {
	background: var(--lp-surface-alt);
	border-color: #cbd5e1;
	color: var(--lp-ink) !important;
	text-decoration: none;
	transform: translateY(-1px);
}
.btn-ghost, a.btn-ghost { background: var(--lp-page); color: var(--lp-ink) !important; border-color: var(--lp-line); }
.btn-ghost:hover, a.btn-ghost:hover, .btn-ghost:focus-visible, a.btn-ghost:focus-visible { background: var(--lp-surface-alt); color: var(--lp-ink) !important; border-color: #cbd5e1; text-decoration: none; }
.btn-wa, a.btn-wa { background: #16A34A; color: #FFFFFF !important; box-shadow: 0 4px 14px -3px rgba(22, 163, 74, .45); }
.btn-wa:hover, a.btn-wa:hover, .btn-wa:focus-visible, a.btn-wa:focus-visible { background: #15803D; color: #FFFFFF !important; box-shadow: 0 6px 20px -3px rgba(22, 163, 74, .55); transform: translateY(-1px); }
.btn-white, a.btn-white { background: #FFFFFF; color: #0F172A !important; border-color: transparent; }
.btn-white:hover, a.btn-white:hover, .btn-white:focus-visible, a.btn-white:focus-visible { background: #F1F5F9; color: #0F172A !important; transform: translateY(-1px); }
.section-dark .btn-ghost, .section-dark a.btn-ghost, .hero .btn-ghost, .hero a.btn-ghost { color: var(--lp-ink) !important; border-color: var(--lp-line); background: var(--lp-page); }
.section-dark .btn-ghost:hover, .section-dark a.btn-ghost:hover { background: var(--lp-surface-alt); color: var(--lp-ink) !important; }
.btn-lg { min-height: 3.25rem; padding: 0.875rem 1.6rem; font-size: 1.05rem; }
.btn-sm { min-height: 2.35rem; padding: 0.45rem 0.85rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow, .card-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--lp-primary); text-decoration: none; }
.link-arrow .icon, .card-link .icon { transition: transform .15s; }
.link-arrow:hover .icon, .card-link:hover .icon { transform: translateX(3px); }

/* ---------- etiquetas y badges (tarjeta.etiqueta) ---------- */
.etiqueta, .tag-highlight {
	display: inline-block;
	background: var(--lp-tag);
	color: var(--lp-tag-ink);
	padding: 0.2rem 0.55rem;
	border-radius: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 600;
}
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; padding: .25rem .55rem; border-radius: 0.375rem; background: var(--brand-soft); color: var(--lp-primary); }
.badge-accent { background: var(--lp-tag); color: var(--lp-tag-ink); }
.badge-ok { background: var(--ok-soft); color: #166534; }
.badge-dark { background: var(--lp-dark); color: var(--lp-on-dark); }

/* ---------- navegacion (navegacion.barra & navegacion.interior) ---------- */
.announce { background: var(--lp-dark); color: var(--lp-on-dark); font-size: .88rem; text-align: center; padding: .55rem 1rem; }
.announce a { color: #fff; font-weight: 700; text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--lp-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--lp-ink); font-weight: 800; font-size: 1.1rem; text-decoration: none !important; }
.brand-mark { width: 36px; height: 36px; border-radius: var(--lp-radius-control); background: linear-gradient(135deg, var(--lp-primary) 0%, #4f46e5 100%); color: #fff; display: grid; place-items: center; font-weight: 900; letter-spacing: -.05em; box-shadow: var(--shadow-sm); }
.brand small { display: block; font-size: .68rem; font-weight: 700; color: var(--lp-muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 1px; }
.brand img { height: 34px; width: auto; object-fit: contain; display: block; }
.brand-logo-dark, .brand-logo-mobile { display: none !important; }
[data-theme="dark"] .brand-logo-light { display: none !important; }
[data-theme="dark"] .brand-logo-dark { display: block !important; }
@media (max-width: 640px) {
	.header-inner .brand-logo-light,
	.header-inner .brand-logo-dark,
	.lp-header .brand-logo-light,
	.lp-header .brand-logo-dark { display: none !important; }
	.header-inner .brand-logo-mobile,
	.lp-header .brand-logo-mobile { display: block !important; width: 36px; height: 36px; }
}
.nav { display: none; }
.nav-toggle { display: inline-flex; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--lp-ink); }
.header-cta { display: none; gap: 10px; align-items: center; }
@media (min-width: 1040px) {
	.nav { display: flex; align-items: center; gap: 4px; }
	.nav-toggle { display: none; }
	.header-cta { display: flex; }
}
.nav > a, .nav-item > button { font: 600 .92rem var(--lp-font); color: var(--lp-muted); padding: .5rem .75rem; border-radius: var(--lp-radius-control); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .25rem; text-decoration: none; transition: color .15s ease, background .15s ease; }
.nav > a:hover, .nav-item > button:hover, .nav-item.open > button { background: var(--lp-surface-alt); color: var(--lp-ink); }
.nav-item { position: relative; }
.mega { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-radius-card); box-shadow: var(--shadow-lg); padding: 18px; display: none; width: min(860px, 92vw); }
.nav-item.open .mega { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mega h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lp-muted); margin: 0 0 .6rem; }
.mega a { display: flex; gap: .7rem; padding: .55rem .6rem; border-radius: var(--lp-radius-control); color: var(--lp-ink); text-decoration: none; align-items: flex-start; }
.mega a:hover { background: var(--lp-surface-alt); }
.mega a .icon { color: var(--lp-primary); margin-top: 2px; }
.mega a strong { display: block; font-size: .93rem; }
.mega a span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 9500 !important; background: rgba(2, 6, 23, .65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; }
.drawer.open { display: block; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 88vw); background: #fff; padding: 22px 20px; overflow-y: auto; box-shadow: -10px 0 35px rgba(2, 6, 23, .25); z-index: 9501 !important; }
.drawer-panel details { border-bottom: 1px solid var(--line); padding: .5rem 0; }
.drawer-panel summary { font-weight: 700; padding: .5rem 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.drawer-panel summary::-webkit-details-marker { display: none; }
.drawer-panel a.dl { display: flex; gap: .6rem; padding: .55rem 0; color: var(--ink); align-items: center; }
.drawer-panel .btn { margin-top: 12px; }

/* ---------- hero (Luminous SaaS Glow · vista_producto · sistema-diseno-landing.json) ---------- */
.hero {
	position: relative;
	overflow: hidden;
	background: var(--lp-hero-glow);
	color: var(--lp-ink);
	padding-block: clamp(3.5rem, 6.5vw, 6.5rem) clamp(2.5rem, 4vw, 4rem);
	border-bottom: 1px solid var(--lp-line);
	text-align: center;
}
.hero-container {
	width: min(var(--lp-container), calc(100% - 2 * var(--lp-gutter)));
	margin-inline: auto;
}
.hero-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.hero-title {
	font-size: var(--lp-h1);
	line-height: 1.04;
	letter-spacing: -0.05em;
	font-weight: 750;
	max-inline-size: 20ch;
	margin: 0 auto;
	text-wrap: balance;
	color: var(--lp-ink);
}
.hero-title em {
	font-style: normal;
	background: linear-gradient(135deg, var(--lp-primary), #7C3AED);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero-lead {
	font-size: var(--lp-lead);
	color: var(--lp-muted);
	line-height: 1.55;
	max-inline-size: 52ch;
	margin: 1.25rem auto 0;
	text-wrap: balance;
}
.hero-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-block-start: 1.85rem;
}
.hero-trust, .trust {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	margin-top: 22px;
	color: var(--lp-muted);
	font-size: .9rem;
	font-weight: 500;
}
.hero-content .hero-trust {
	justify-content: center;
}
.hero-trust span, .trust span {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
}
.hero-trust .icon, .trust .icon {
	color: var(--ok);
}
.hero-trust-sub {
	color: var(--lp-muted);
	font-size: 0.85rem;
	margin-top: 10px;
	margin-bottom: 0;
}
.hero-sm { padding-block: clamp(2.5rem, 4vw, 4rem) 2rem; }
.text-center { text-align: center; }
.section-hero {
	position: relative;
	overflow: hidden;
	background: var(--lp-hero-glow);
	color: var(--lp-ink);
	padding-block: clamp(3rem, 5vw, 4.75rem) clamp(2rem, 3.5vw, 3rem);
	border-bottom: 1px solid var(--lp-line);
	text-align: center;
}
.section-hero h1 {
	font-size: clamp(2rem, 1.35rem + 2.8vw, 3.35rem);
	line-height: 1.08;
	letter-spacing: -0.04em;
	font-weight: 750;
	margin: 0.35rem auto 0;
	max-inline-size: 24ch;
	text-wrap: balance;
}
.section-hero .lead {
	margin: 1rem auto 0;
	max-inline-size: 56ch;
	text-wrap: balance;
}
.crumbs { font-size: .85rem; color: var(--lp-muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: var(--lp-primary); }

/* vista previa compacta en páginas de solución (.mock) */
.mock {
	background: #0f172a;
	color: #f8fafc;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--lp-radius-window);
	box-shadow: var(--lp-shadow-window);
	overflow: hidden;
	width: 100%;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F56; display: block; flex-shrink: 0; }
.mock-bar i:nth-child(2) { background: #FFBD2E; }
.mock-bar i:nth-child(3) { background: #27C93F; }
.mock-body { padding: 16px; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.kpi { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--lp-radius-control); padding: 12px; }
.kpi small { color: #9fb0de; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.kpi b { display: block; color: #fff; font-size: 1.35rem; margin-top: 2px; }
.kpi .up { color: #86efac; font-size: .78rem; font-weight: 700; }
.chart { grid-column: span 2; height: 120px; border-radius: var(--lp-radius-control); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: flex-end; gap: 6px; padding: 12px; }
.chart span { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #60a5fa, #3b82f6); opacity: .9; }
.mock-row { grid-column: span 2; display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, .05); border-radius: var(--lp-radius-control); padding: 10px 12px; color: #dbe4ff; font-size: .85rem; }
.mock-row .badge { font-size: .68rem; }

/* vista de producto / marco de captura (vista_producto · sistema-diseno-landing.json) */
.hero-preview {
	margin-top: clamp(2.5rem, 4.5vw, 3.75rem);
	width: 100%;
	max-width: 1100px;
	margin-inline: auto;
}
.vista-producto-marco {
	display: block;
	padding: clamp(0.85rem, 2.5vw, 2rem);
	background: linear-gradient(135deg, #EEEDFF, #FAF8F2 55%, #F6EAF4);
	border-radius: var(--lp-radius-card);
	border: 1px solid rgba(229, 229, 235, .8);
	box-shadow: 0 4px 24px rgba(28, 28, 45, 0.05);
	overflow: hidden;
}
.app-window {
	background: #0f172a;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--lp-radius-window);
	box-shadow: var(--lp-shadow-window);
	overflow: hidden;
	text-align: left;
	color: #f8fafc;
}
.app-window-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	gap: 12px;
}
.window-controls {
	display: flex;
	gap: 6px;
}
.window-controls .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: block;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.window-tabs {
	display: flex;
	gap: 4px;
	overflow-x: auto;
}
.window-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	padding: 5px 10px;
	border-radius: 6px;
	color: #94a3b8;
	font-weight: 500;
	white-space: nowrap;
}
.window-tab.active {
	background: rgba(255, 255, 255, 0.08);
	color: #f8fafc;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.window-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 600;
	color: #86efac;
	background: rgba(34, 197, 94, 0.15);
	border: 1px solid rgba(34, 197, 94, 0.3);
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
}
.status-dot-pulse {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 8px #22c55e;
}
.app-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	gap: 14px;
	background: rgba(255, 255, 255, 0.02);
	flex-wrap: wrap;
}
.app-search {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	color: #64748b;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	padding: 6px 12px;
	flex: 1;
	max-width: 380px;
	min-width: 200px;
}
.app-stat-chips {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}
.app-chip {
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 6px;
	padding: 4px 9px;
	font-size: 11px;
}
.chip-label { color: #94a3b8; }
.chip-val { font-weight: 700; color: #f8fafc; }
.chip-trend { color: #86efac; font-weight: 700; font-size: 10.5px; }
.chip-badge-ok { background: rgba(34, 197, 94, 0.2); color: #86efac; padding: 1px 5px; border-radius: 4px; font-size: 9.5px; font-weight: 700; }
.chip-badge-sync { background: rgba(96, 165, 250, 0.2); color: #93c5fd; padding: 1px 5px; border-radius: 4px; font-size: 9.5px; font-weight: 700; }

.app-workspace {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 16px;
	padding: 16px 18px;
}
@media (max-width: 768px) {
	.app-workspace { grid-template-columns: 1fr; }
}

.pos-catalog {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.pos-catalog-head {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.cat-pill {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	color: #94a3b8;
	border: 1px solid rgba(255, 255, 255, 0.06);
}
.cat-pill.active {
	background: var(--lp-primary);
	color: #ffffff;
	border-color: var(--lp-primary);
}
.pos-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
@media (max-width: 540px) {
	.pos-grid { grid-template-columns: repeat(2, 1fr); }
}
.pos-item {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 80px;
	transition: background .15s ease, border-color .15s ease;
}
.pos-item:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.16);
}
.pos-item-code {
	font-size: 9px;
	font-weight: 700;
	color: #64748b;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.pos-item-name {
	font-size: 11.5px;
	font-weight: 600;
	color: #f1f5f9;
	line-height: 1.25;
	margin: 3px 0;
}
.pos-item-footer {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}
.pos-item-price {
	font-size: 12px;
	font-weight: 800;
	color: #60a5fa;
}
.pos-item-stock {
	font-size: 10px;
	color: #94a3b8;
}

.pos-checkout-pane {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.pos-ticket {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 8px;
	padding: 10px 12px;
}
.ticket-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding-bottom: 6px;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}
.ticket-client {
	font-size: 11.5px;
	color: #f8fafc;
	display: block;
}
.ticket-nit {
	font-size: 9.5px;
	color: #94a3b8;
}
.ticket-badge-siat {
	font-size: 9px;
	font-weight: 700;
	background: rgba(34, 197, 94, 0.15);
	color: #86efac;
	border: 1px solid rgba(34, 197, 94, 0.3);
	padding: 2px 6px;
	border-radius: 4px;
}
.ticket-items {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 6px 0;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}
.ticket-row {
	display: flex;
	justify-content: space-between;
	font-size: 10.5px;
	color: #cbd5e1;
}
.ticket-summary {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-top: 6px;
}
.ts-row {
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	color: #94a3b8;
}
.ts-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 12px;
	color: #f8fafc;
	font-weight: 700;
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ts-total b {
	color: #86efac;
	font-size: 14.5px;
}

.qr-floating-card {
	background: #1e293b;
	border: 1px solid rgba(57, 67, 232, 0.35);
	border-radius: 8px;
	padding: 10px 12px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}
.qr-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}
.qr-bank-brand {
	display: flex;
	align-items: center;
	gap: 8px;
}
.qr-icon-wrap {
	width: 26px;
	height: 26px;
	border-radius: 6px;
	background: rgba(57, 67, 232, 0.2);
	color: #818cf8;
	display: grid;
	place-items: center;
}
.qr-bank-brand strong {
	font-size: 11.5px;
	color: #f8fafc;
	display: block;
}
.qr-bank-brand small {
	font-size: 9.5px;
	color: #94a3b8;
	display: block;
}
.qr-pulse-badge {
	font-size: 9px;
	font-weight: 700;
	color: #86efac;
	background: rgba(34, 197, 94, 0.15);
	border: 1px solid rgba(34, 197, 94, 0.3);
	padding: 2px 7px;
	border-radius: 999px;
}
.qr-body {
	display: flex;
	align-items: center;
	gap: 12px;
}
.qr-code-graphic {
	background: #ffffff;
	padding: 5px;
	border-radius: 6px;
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.qr-info {
	flex: 1;
}
.qr-amount {
	font-size: 16px;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: -.02em;
}
.qr-desc {
	font-size: 10px;
	color: #94a3b8;
	line-height: 1.35;
	margin: 2px 0 5px;
}
.qr-cuf {
	font-size: 9px;
	font-family: monospace;
	color: #818cf8;
	background: rgba(57, 67, 232, 0.15);
	padding: 2px 5px;
	border-radius: 4px;
	display: inline-block;
}

@media (max-width: 768px) {
	.hero-preview {
		margin-top: 1.75rem;
		max-width: 100%;
	}
	.vista-producto-marco {
		padding: 8px;
		border-radius: var(--lp-radius-control);
	}
	.window-tabs .window-tab:not(.active) {
		display: none;
	}
	.window-status-pill {
		display: none;
	}
	.app-topbar {
		padding: 8px 10px;
	}
	.app-search {
		display: none;
	}
	.app-stat-chips {
		width: 100%;
		justify-content: space-between;
		gap: 6px;
	}
	.app-chip {
		padding: 3px 6px;
		font-size: 10px;
	}
	.app-chip:nth-child(3) {
		display: none;
	}
	.app-workspace {
		padding: 10px;
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.pos-catalog {
		display: none;
	}
	.qr-body {
		flex-direction: row;
		align-items: center;
		gap: 8px;
	}
	.qr-code-graphic svg {
		width: 64px;
		height: 64px;
	}
	.qr-amount {
		font-size: 14px;
	}
	.qr-desc {
		font-size: 9.5px;
	}
}

/* ---------- tarjetas (tarjeta.base · sistema-diseno-landing.json) ---------- */
.card {
	background: var(--lp-surface);
	border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius-card);
	padding: var(--lp-card-padding);
	box-shadow: 0 1px 3px rgba(28, 28, 45, 0.04);
	transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s cubic-bezier(.16, 1, .3, 1), border-color .2s ease;
	height: 100%;
}
a.card { display: block; color: inherit; text-decoration: none !important; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow-window); border-color: #C7D2FE; }
.card p { color: var(--lp-muted); margin-bottom: 0; line-height: 1.55; }
.card .card-foot { margin-top: 16px; }
.icon-box { width: 44px; height: 44px; min-width: 44px; flex-shrink: 0; border-radius: var(--lp-radius-control); display: grid; place-items: center; background: var(--brand-soft); color: var(--lp-primary); margin-bottom: 16px; }
.icon-box.accent { background: var(--lp-tag); color: var(--lp-tag-ink); }
.icon-box.ok { background: var(--ok-soft); color: var(--ok); }
.icon-box.danger { background: #fee2e2; color: var(--danger); }
.icon-box.warning { background: #fef3c7; color: #d97706; }
.section-dark .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); color: var(--lp-on-dark); box-shadow: none; }
.section-dark .card p { color: var(--lp-muted-on-dark); }
.section-dark .card .icon-box { background: rgba(255, 255, 255, .08); color: #93c5fd; }
.pain-card {
	background: var(--lp-page);
	border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius-card);
	box-shadow: 0 1px 3px rgba(28, 28, 45, 0.04);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pain-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px -6px rgba(28, 28, 45, 0.08);
	border-color: #cbd5e1;
}
.pain-card .icon-box {
	background: #fef2f2;
	color: #dc2626;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .35rem 0; }
.check-list .icon { color: var(--ok); margin-top: 3px; }
.x-list .icon { color: var(--danger); }

/* ---------- ecosystem ---------- */
.eco { display: grid; gap: var(--lp-grid-gap); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .eco { grid-template-columns: repeat(4, 1fr); } }
.eco a { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--lp-radius-card); border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #fff; text-decoration: none !important; transition: background .15s ease; }
.eco a:hover { background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none !important; }
.eco a span { color: var(--lp-muted-on-dark); font-size: .85rem; line-height: 1.4; }
.eco .icon { color: #93c5fd; }

/* ---------- logos (logos.fila & logos.item) ---------- */
.logos { width: 100%; max-width: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos-track { display: flex; gap: 48px; align-items: center; width: max-content; animation: marquee 60s linear infinite; }
.logos:hover .logos-track { animation-play-state: paused; }
.logos img { height: 44px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: .2s; }
.logos img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lp-grid-gap); }
@media (min-width: 720px) { .logo-grid { grid-template-columns: repeat(6, 1fr); } }
.logo-grid div { background: var(--lp-page); border: 1px solid var(--lp-line); border-radius: var(--lp-radius-control); height: 88px; display: grid; place-items: center; padding: 12px; transition: border-color .15s ease; }
.logo-grid img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; }
.logo-grid div:hover { border-color: var(--lp-primary); }
.logo-grid div:hover img { filter: none; opacity: 1; }
.sector-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.sector-tabs button { font: 600 .9rem var(--lp-font); border: 1px solid var(--lp-line); background: var(--lp-page); padding: .5rem .9rem; border-radius: 999px; cursor: pointer; color: var(--lp-muted); }
.sector-tabs button[aria-selected="true"] { background: var(--lp-dark); color: var(--lp-on-dark); border-color: var(--lp-dark); }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: var(--lp-grid-gap); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 22px; border-radius: var(--lp-radius-card); background: var(--lp-surface); border: 1px solid var(--lp-line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-weight: 900; font-size: 1.6rem; color: var(--lp-primary); opacity: .25; position: absolute; right: 18px; top: 12px; }

/* ---------- pricing ---------- */
.toggle { display: inline-flex; background: var(--lp-surface-alt); border: 1px solid var(--lp-line); border-radius: 999px; padding: 4px; gap: 4px; }
.toggle button { font: 700 .92rem var(--lp-font); border: 0; background: transparent; padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer; color: var(--lp-muted); }
.toggle button[aria-pressed="true"] { background: var(--lp-page); color: var(--lp-ink); box-shadow: var(--shadow-sm); }
.toggle .save { color: var(--ok); font-size: .78rem; }
.price-grid { display: grid; gap: var(--lp-grid-gap); margin-top: 28px; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } .price-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } .price-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-left: auto; margin-right: auto; } }
.price-card {
	position: relative;
	background: var(--lp-page);
	color: var(--lp-ink);
	border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius-card);
	padding: var(--lp-card-padding);
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(28, 28, 45, 0.04);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.price-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px -6px rgba(28, 28, 45, 0.08);
	border-color: #cbd5e1;
}
.price-card.featured {
	border: 2px solid var(--lp-primary);
	box-shadow: 0 12px 36px -6px rgba(57, 67, 232, 0.16);
}
@media (min-width: 900px) {
	.price-card.featured {
		transform: scale(1.03);
	}
	.price-card.featured:hover {
		transform: scale(1.03) translateY(-2px);
	}
}
.price-card .ribbon {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, var(--lp-primary), #6366f1);
	color: #fff;
	font-size: .75rem;
	font-weight: 800;
	padding: .35rem .95rem;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(57, 67, 232, 0.35);
}
.price-card h3 {
	font-size: 1.35rem;
	font-weight: 750;
	letter-spacing: -0.025em;
	margin-bottom: .25rem;
	color: var(--lp-ink);
}
.price-card .tagline {
	color: var(--lp-muted);
	font-size: .92rem;
	min-height: 2.6em;
	line-height: 1.45;
}
.price {
	margin: 16px 0 4px;
	display: flex;
	align-items: baseline;
	gap: .45rem;
	flex-wrap: wrap;
}
.price b {
	font-size: 2.4rem;
	font-weight: 850;
	letter-spacing: -.03em;
	color: var(--lp-ink);
}
.price .per {
	color: var(--lp-muted);
	font-weight: 600;
}
.price s {
	color: #94a3b8;
	font-size: 1.05rem;
}
.price-sub {
	color: var(--ok);
	font-weight: 700;
	font-size: .88rem;
	min-height: 1.4em;
}
.price-card .check-list {
	margin: 18px 0 24px;
	flex: 1;
	font-size: .95rem;
	color: var(--lp-ink);
}
.price-card .check-list li,
.price-card .check-list span {
	color: var(--lp-ink);
}
.price-card .note {
	font-size: .8rem;
	color: var(--lp-muted);
	margin-top: 12px;
	text-align: center;
}
.product-tabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
	margin: 20px auto 10px;
	background: var(--lp-surface-alt);
	padding: 5px;
	border-radius: 999px;
	border: 1px solid var(--lp-line);
	width: fit-content;
	max-width: 100%;
}
.product-tabs button {
	font: 600 .92rem var(--lp-font);
	display: inline-flex;
	gap: .45rem;
	align-items: center;
	border: 1px solid transparent;
	background: transparent;
	padding: .55rem 1.15rem;
	border-radius: 999px;
	cursor: pointer;
	color: var(--lp-muted);
	transition: all .15s ease;
}
.product-tabs button:hover {
	color: var(--lp-ink);
}
.product-tabs button[aria-selected="true"] {
	border-color: var(--lp-line);
	color: var(--lp-ink);
	background: var(--lp-page);
	box-shadow: 0 1px 3px rgba(28, 28, 45, 0.08);
	font-weight: 700;
}
.guarantee {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 18px 20px;
	border-radius: var(--lp-radius-card);
	background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
	border: 1px solid #86EFAC;
	color: #064E3B;
	box-shadow: 0 4px 14px -4px rgba(22, 163, 74, 0.12);
}
.guarantee strong {
	display: block;
	font-size: 1.02rem;
	font-weight: 750;
	color: #065F46;
	margin-bottom: 2px;
}
.guarantee .muted {
	color: #166534;
	font-size: .92rem;
	line-height: 1.45;
}
.guarantee .icon-box.ok {
	background: #DCFCE7;
	color: #16A34A;
	border: 1px solid #86EFAC;
	margin: 0;
}
.guarantee .icon { color: #16A34A; }
.section-dark .guarantee,
[data-theme="dark"] .guarantee {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 78, 59, 0.38) 100%);
	border-color: rgba(52, 211, 153, 0.38);
	color: #ECFDF5;
	box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.35);
}
.section-dark .guarantee strong,
[data-theme="dark"] .guarantee strong {
	color: #6EE7B7;
}
.section-dark .guarantee .muted,
[data-theme="dark"] .guarantee .muted {
	color: #D1FAE5;
}
.section-dark .guarantee .icon-box.ok,
[data-theme="dark"] .guarantee .icon-box.ok {
	background: rgba(16, 185, 129, 0.22);
	color: #34D399;
	border-color: rgba(52, 211, 153, 0.4);
}
.section-dark .guarantee .icon,
[data-theme="dark"] .guarantee .icon {
	color: #34D399;
}

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--lp-line); border-radius: var(--lp-radius-card); background: var(--lp-page); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--lp-line); vertical-align: top; }
table.compare thead th { background: var(--lp-surface-alt); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--lp-muted); }
table.compare td.ours { background: #f5f8ff; font-weight: 600; }
table.compare tr:last-child td { border-bottom: 0; }

/* ---------- FAQ (faq.lista & faq.pregunta) ---------- */
.faq {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.625rem var(--lp-grid-gap);
	align-items: start;
	max-width: min(var(--lp-container), 100%);
	margin: 0 auto;
}
@media (max-width: 48rem) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq details { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius-control); margin-bottom: 0; transition: border-color .15s ease; }
.faq details[open] { border-color: var(--lp-primary); }
.faq summary { cursor: pointer; padding: 0.85rem 1.15rem; min-height: 2.75rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--lp-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--lp-muted); }
.faq details[open] summary .icon { transform: rotate(180deg); color: var(--lp-primary); }
.faq .answer { padding: 0 1.15rem 1rem; color: var(--lp-muted); line-height: 1.55; }

/* ---------- forms ---------- */
.form-card { background: var(--lp-page); border-radius: var(--lp-radius-card); padding: var(--lp-card-padding); box-shadow: var(--lp-shadow-window); border: 1px solid var(--lp-line); color: var(--lp-ink); }
.form-card h3 { margin-bottom: .3rem; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--lp-ink); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem var(--lp-font); padding: .75rem .9rem; border: 1px solid var(--lp-line); border-radius: var(--lp-radius-control); background: var(--lp-page); color: var(--lp-ink); min-height: 44px; transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lp-primary); outline: 0; box-shadow: 0 0 0 3px rgba(57, 67, 232, .18); }
.field textarea { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -5000px; }
.consent { display: flex; gap: .6rem; font-size: .82rem; color: var(--lp-muted); align-items: flex-start; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.form-msg { display: none; padding: 14px; border-radius: var(--lp-radius-control); margin-top: 12px; font-weight: 600; }
.form-msg.error { display: block; background: #fef2f2; color: var(--danger); }
.form-success { display: none; text-align: center; padding: 10px 0; }
.form-success .icon-box { margin: 0 auto 12px; }
.form-assure { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--lp-muted); margin-top: 12px; justify-content: center; }
.form-assure span { display: inline-flex; gap: .3rem; align-items: center; }

/* ---------- banner CTA (banner_cta.superficie) ---------- */
.cta-band { border-radius: var(--lp-radius-card); padding: var(--lp-card-padding); background: var(--lp-dark); color: var(--lp-on-dark); display: grid; gap: 20px; align-items: center; border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: var(--lp-on-dark); margin-bottom: .3em; }
.cta-band p { color: var(--lp-muted-on-dark); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; padding: clamp(2.5rem, 5vw, 4rem); } .cta-band .btn-row { justify-content: flex-end; } }

/* ---------- testimonials ---------- */
.quote { font-size: 1.02rem; color: var(--lp-ink); }
.quote-author { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.quote-author img, .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); display: grid; place-items: center; font-weight: 800; color: var(--lp-primary); }
.stars { color: var(--accent); display: flex; gap: 2px; margin-bottom: 10px; }

/* ---------- calculator ---------- */
.calc { display: grid; gap: 24px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; } }
.calc-result { background: var(--lp-dark); color: var(--lp-on-dark); border-radius: var(--lp-radius-card); padding: var(--lp-card-padding); }
.calc-result b { color: var(--lp-on-dark); font-size: 2.2rem; display: block; }
.calc input[type=range] { width: 100%; accent-color: var(--lp-primary); }

/* ---------- footer (pie.interior) ---------- */
.site-footer { background: var(--lp-dark); color: var(--lp-muted-on-dark); padding: clamp(3rem, 6vw, 5rem) 0 28px; font-size: .93rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer h4 { color: var(--lp-on-dark); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer a { color: var(--lp-muted-on-dark); }
.site-footer a:hover { color: var(--lp-on-dark); text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .25rem 0; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .82rem; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: var(--lp-radius-control); background: rgba(255, 255, 255, .06); display: grid; place-items: center; color: var(--lp-muted-on-dark); }
.socials a:hover { color: #fff; background: rgba(255, 255, 255, .12); }

/* ---------- floating + sticky CTAs (Impeccable Layering) ---------- */
.wa-float {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 200;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--wa);
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: 0 10px 25px -5px rgba(18, 140, 75, .6);
	text-decoration: none !important;
	transition: transform .2s ease, opacity .25s ease, box-shadow .2s ease;
}
.wa-float:hover {
	color: #fff !important;
	transform: scale(1.08) translateY(-2px);
	box-shadow: 0 14px 30px -5px rgba(18, 140, 75, .75);
}
.wa-float .pulse {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--wa);
	animation: pulse 2.2s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.mobile-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 150;
	display: flex;
	gap: 8px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, .96);
	border-top: 1px solid var(--line);
	backdrop-filter: blur(8px);
}
.mobile-cta .btn { flex: 1; min-height: 48px; padding: .8rem; font-size: .95rem; }
@media (min-width: 1040px) { .mobile-cta { display: none; } }
@media (max-width: 1039px) {
	body { padding-bottom: 76px; }
	.wa-float { bottom: 84px !important; right: 16px !important; width: 52px !important; height: 52px !important; }
}

/* ---------- cookie banner (Impeccable & Non-colliding) ---------- */
.cookie {
	position: fixed;
	left: 24px;
	right: auto;
	bottom: 24px;
	z-index: 9000;
	width: min(420px, calc(100vw - 32px));
	background: rgba(255, 255, 255, .98);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 24px 50px -12px rgba(10, 26, 58, .25), 0 0 0 1px rgba(10, 26, 58, .05);
	padding: 20px 22px;
	display: none;
	flex-direction: column;
	gap: 12px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s cubic-bezier(.16, 1, .3, 1), transform .3s cubic-bezier(.16, 1, .3, 1);
}
.cookie.show {
	display: flex;
	opacity: 1;
	pointer-events: auto;
	animation: fsCookieSlideUp .35s cubic-bezier(.16, 1, .3, 1) forwards;
}
@keyframes fsCookieSlideUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}
.cookie.hide-anim {
	animation: fsCookieSlideDown .24s cubic-bezier(.16, 1, .3, 1) forwards;
}
@keyframes fsCookieSlideDown {
	from { opacity: 1; transform: translateY(0); }
	to { opacity: 0; transform: translateY(20px); }
}
.cookie-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-title { display: flex; align-items: center; gap: 8px; font-size: .96rem; color: var(--ink); }
.cookie-badge { width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.cookie-close { background: transparent; border: none; padding: 4px; border-radius: 6px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color .15s, background .15s; }
.cookie-close:hover { background: var(--surface-2); color: var(--ink); }
.cookie-text { margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.cookie-link { color: var(--brand); font-weight: 600; white-space: nowrap; }
.cookie-link:hover { text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.cookie-actions .btn { flex: 1; min-width: 140px; font-size: .88rem; }
@media (max-width: 1039px) { .cookie { bottom: calc(76px + env(safe-area-inset-bottom, 12px)); } }
@media (max-width: 640px) {
	.cookie {
		left: 12px;
		right: 12px;
		width: calc(100vw - 24px);
		padding: 16px;
	}
	.cookie-actions .btn {
		min-width: 0;
	}
}

/* ---------- Floating widgets layout: cookie on left, chat on right (zero collision) ---------- */
.wa-float {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 800;
}

/* ---------- MDX Assist Widget Alignment & Responsive Polish ---------- */
.mdx-assist__trigger {
	z-index: 200 !important;
	transition: transform .2s ease, opacity .25s ease, box-shadow .2s ease !important;
}
.mdx-assist__panel {
	z-index: 300 !important;
}
@media (max-width: 1039px) {
	.mdx-assist__trigger {
		bottom: 84px !important;
		left: 16px !important;
	}
	.mdx-assist__trigger--pill {
		height: 44px !important;
		padding: 0 14px !important;
	}
	.mdx-assist__panel {
		bottom: 142px !important;
		max-height: 65vh !important;
	}
}
@media (max-width: 480px) {
	.mdx-assist__trigger-label {
		font-size: 12px !important;
	}
	.mdx-assist__panel {
		left: 10px !important;
		right: 10px !important;
		width: calc(100vw - 20px) !important;
	}
}

/* ---------- misc ---------- */
.stat b { display: block; font-size: 2.2rem; font-weight: 900; color: #fff; letter-spacing: -.03em; }
.stat span { color: #aebde8; font-size: .9rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem; font-size: .85rem; font-weight: 600; }
.status-preventa { background: var(--accent-soft); color: #92400e; }
.lp-header { padding: 16px 0; border-bottom: 1px solid var(--line); background: #fff; }
.thanks { max-width: 680px; margin: 0 auto; text-align: center; }
.reveal { opacity: 1; transform: none; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* =====================================================================
   HEADER TOOLS · selector de idioma + tema
   ===================================================================== */
.header-tools { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 4px; }
@media (min-width: 1040px) { .nav { margin-inline: auto; } .header-tools { margin-left: 0; margin-right: 0; } }
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--lp-line); border-radius: 999px; background: var(--lp-surface-alt); }
.lang-switch button { font: 700 .72rem var(--lp-font); letter-spacing: .04em; border: 0; background: transparent; color: var(--lp-muted); padding: .32rem .55rem; border-radius: 999px; cursor: pointer; transition: background .2s var(--ease-out), color .2s ease; }
.lang-switch button:hover { color: var(--lp-ink); }
.lang-switch button[aria-pressed="true"] { background: var(--lp-page); color: var(--lp-ink); box-shadow: var(--shadow-sm); }
.theme-toggle { position: relative; width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--lp-line); background: var(--lp-page); color: var(--lp-ink); cursor: pointer; overflow: hidden; transition: background .2s ease, border-color .2s ease, transform .2s var(--ease-out); }
.theme-toggle:hover { background: var(--lp-surface-alt); transform: rotate(-12deg); }
.theme-toggle .icon { position: absolute; transition: transform .45s var(--ease-spring), opacity .25s ease; }
.theme-icon-sun { transform: translateY(140%) rotate(90deg); opacity: 0; }
[data-theme="dark"] .theme-icon-moon { transform: translateY(-140%) rotate(-90deg); opacity: 0; }
[data-theme="dark"] .theme-icon-sun { transform: none; opacity: 1; color: #FCD34D; }
@media (max-width: 380px) { .lang-switch button { padding: .3rem .42rem; } }

/* =====================================================================
   MODO OSCURO · tokens + correcciones de colores fijos
   ===================================================================== */
[data-theme="dark"] {
	color-scheme: dark;
	--lp-page: #0A0A0F;
	--lp-surface: #111118;
	--lp-surface-alt: #15151D;
	--lp-ink: #F2F2F7;
	--lp-muted: #A3A3B2;
	--lp-line: #262631;
	--lp-primary: #5B63F6;
	--lp-primary-hover: #737AFF;
	--lp-dark: #12121A;
	--lp-on-dark: #FAFAFD;
	--lp-muted-on-dark: #B4B4C3;
	--lp-tag: rgba(250, 204, 21, .14);
	--lp-tag-ink: #FCD978;
	--lp-focus: #8B91FF;
	--lp-hero-glow: radial-gradient(ellipse at 18% 5%, rgba(91, 99, 246, .26) 0%, transparent 60%), radial-gradient(ellipse at 88% 42%, rgba(245, 158, 11, .09) 0%, transparent 55%), #0A0A0F;
	--lp-shadow-window: 0 1.25rem 3rem rgb(0 0 0 / 55%), 0 2px 8px rgb(0 0 0 / 40%);
	--ink-2: #CBD5E1;
	--brand-soft: rgba(91, 99, 246, .16);
	--ok-soft: rgba(34, 197, 94, .14);
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .5);
	--shadow-lg: 0 24px 60px -15px rgba(0, 0, 0, .7);
	--card: var(--lp-surface);
	--lp-color-border-default: #33333F;
	--lp-shadow-card: 0 1px 3px rgba(0, 0, 0, .5), 0 8px 24px -12px rgba(0, 0, 0, .6);
}
[data-theme="dark"] body { background-color: var(--lp-page); }
[data-theme="dark"] main p a:not(.btn), [data-theme="dark"] main li a:not(.btn), [data-theme="dark"] .answer a, [data-theme="dark"] .crumbs a, [data-theme="dark"] .link-arrow, [data-theme="dark"] .cookie-link { color: #9EA4FF; }
[data-theme="dark"] .eyebrow { color: #B4B8FF; }
[data-theme="dark"] .badge { color: #B4B8FF; }
[data-theme="dark"] .badge-ok { color: #86EFAC; }
[data-theme="dark"] .site-header { background: rgba(10, 10, 15, .82); border-bottom-color: var(--lp-line); }
[data-theme="dark"] .mega, [data-theme="dark"] .drawer-panel { background: var(--lp-surface); }
[data-theme="dark"] .mega a strong, [data-theme="dark"] .drawer-panel a.dl, [data-theme="dark"] .mega a { color: var(--lp-ink); }
[data-theme="dark"] .lp-header { background: var(--lp-page); }
[data-theme="dark"] .section-dark { background: linear-gradient(180deg, #12121A, #0E0E15); border-block: 1px solid var(--lp-line); }
[data-theme="dark"] .site-footer { background: #07070B; }
[data-theme="dark"] .cta-band { background: linear-gradient(135deg, #171730, #12121A); border-color: var(--lp-line); }
[data-theme="dark"] a.card:hover { border-color: rgba(115, 122, 255, .55); }
[data-theme="dark"] .pain-card:hover, [data-theme="dark"] .price-card:hover { border-color: #3A3A48; box-shadow: 0 12px 28px -6px rgba(0, 0, 0, .6); }
[data-theme="dark"] .pain-card .icon-box, [data-theme="dark"] .icon-box.danger { background: rgba(239, 68, 68, .14); color: #FCA5A5; }
[data-theme="dark"] .icon-box.warning { background: rgba(245, 158, 11, .14); color: #FCD34D; }
[data-theme="dark"] .icon-box.ok { color: #4ADE80; }
[data-theme="dark"] .guarantee { border-color: rgba(34, 197, 94, .3); }
[data-theme="dark"] table.compare td.ours { background: rgba(91, 99, 246, .1); }
[data-theme="dark"] .form-msg.error { background: rgba(239, 68, 68, .14); color: #FCA5A5; }
[data-theme="dark"] .btn-secondary:hover { border-color: #3A3A48; }
[data-theme="dark"] .btn-white { background: #F2F2F7; color: #0A0A0F; }
[data-theme="dark"] .vista-producto-marco { background: linear-gradient(135deg, rgba(91, 99, 246, .18), rgba(17, 17, 24, .9) 55%, rgba(236, 72, 153, .1)); border-color: var(--lp-line); }
[data-theme="dark"] .mobile-cta { background: rgba(10, 10, 15, .94); }
[data-theme="dark"] .cookie { background: rgba(17, 17, 24, .97); box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04); }
[data-theme="dark"] .status-preventa { color: #FCD34D; }
[data-theme="dark"] .price s { color: #6B6B7B; }
[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea { background: #0E0E14; border-color: #2E2E3A; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { color: var(--lp-ink); }
[data-theme="dark"] .logos img { filter: grayscale(1); opacity: .85; background: #EDEDF3; border-radius: 8px; padding: 6px 10px; box-sizing: content-box; }
[data-theme="dark"] .logos img:hover { opacity: 1; filter: none; }
.brand { white-space: nowrap; flex-shrink: 0; }
.site-header .header-inner { width: min(82rem, calc(100% - 2 * var(--lp-gutter))); }
@media (min-width: 1040px) and (max-width: 1365px) {
	.header-cta .btn-ghost { display: none; }
	.nav > a, .nav-item > button { padding: .5rem .55rem; }
}
@media (min-width: 1040px) and (max-width: 1160px) {
	.brand small { display: none; }
	.nav > a, .nav-item > button { padding: .45rem .4rem; font-size: .88rem; }
}
/* entre 1040 y 1239px el menú completo no cabe: hamburguesa + herramientas + CTA */
@media (min-width: 1040px) and (max-width: 1239px) {
	.nav { display: none; }
	.nav-toggle { display: inline-flex; }
	.header-tools { margin-left: auto; }
}
/* estilos en línea de plantillas interiores */
[data-theme="dark"] [style*="background:#fff"], [data-theme="dark"] [style*="background:#FFF"], [data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#FFFFFF"], [data-theme="dark"] [style*="background:#ffffff"], [data-theme="dark"] [style*="background:white"],
[data-theme="dark"] [style*="background:#F8FAFC"], [data-theme="dark"] [style*="background:#F1F5F9"], [data-theme="dark"] [style*="background:var(--lp-surface,#"] { background: var(--lp-surface) !important; }
[data-theme="dark"] [style*="background:#EEF2FF"], [data-theme="dark"] [style*="background:#EFF6FF"] { background: rgba(91, 99, 246, .16) !important; }
[data-theme="dark"] [style*="background:#d1fae5"], [data-theme="dark"] [style*="background:#F0FDF4"], [data-theme="dark"] [style*="background:#ECFDF5"], [data-theme="dark"] [style*="background:#DCFCE7"] { background: rgba(34, 197, 94, .12) !important; }
[data-theme="dark"] [style*="background:#fef3c7"] { background: rgba(245, 158, 11, .14) !important; }
[data-theme="dark"] [style*="border:1px solid #E2E8F0"], [data-theme="dark"] [style*="border:2px solid #CBD5E1"], [data-theme="dark"] [style*="border:1px solid #BBF7D0"], [data-theme="dark"] [style*="var(--lp-border,#E2E8F0)"] { border-color: var(--lp-line) !important; }
[data-theme="dark"] [style*="color:#3943E8"], [data-theme="dark"] [style*="color:var(--lp-primary,#3943E8)"], [data-theme="dark"] [style*="color:#1E3A8A"] { color: #A5ABFF !important; }
[data-theme="dark"] [style*="color:#065f46"], [data-theme="dark"] [style*="color:#166534"], [data-theme="dark"] [style*="color:#059669"], [data-theme="dark"] [style*="color:#16A34A"] { color: #86EFAC !important; }
[data-theme="dark"] [style*="color:#92400e"] { color: #FCD34D !important; }
[data-theme="dark"] [style*="color:#0F172A"] { color: var(--lp-ink) !important; }
[data-theme="dark"] [style*="color:#64748B"] { color: var(--lp-muted) !important; }
/* transición suave al cambiar de tema (sin View Transitions) */
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* =====================================================================
   ANIMACIONES · solo CSS + IntersectionObserver (sin librerías)
   ===================================================================== */

/* barra de progreso de lectura (scroll-driven, sin JS) */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 9999; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--lp-primary), #8B5CF6, #EC4899); }
@supports (animation-timeline: scroll()) {
	.scroll-progress { animation: fsProgress linear both; animation-timeline: scroll(root); }
	@keyframes fsProgress { to { transform: scaleX(1); } }
}

/* header con sombra al desplazarse */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(28, 28, 45, .25); }
[data-theme="dark"] .site-header.scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .7); }

/* aparición al hacer scroll (solo cuando JS está activo: html.fs-anim) */
html.fs-anim .reveal { opacity: 0; transform: translate3d(0, 22px, 0) scale(.985); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--rd, 0ms); will-change: opacity, transform; }
html.fs-anim .reveal.in { opacity: 1; transform: none; }
html.fs-anim .reveal.reveal-left { transform: translate3d(-28px, 0, 0); }
html.fs-anim .reveal.reveal-right { transform: translate3d(28px, 0, 0); }
html.fs-anim .reveal.reveal-left.in, html.fs-anim .reveal.reveal-right.in { transform: none; }

/* entrada del hero (al cargar) */
html.fs-anim .hero-content > *, html.fs-anim .section-hero .container > * { animation: fsRise .8s var(--ease-out) both; }
html.fs-anim .hero-content > :nth-child(1), html.fs-anim .section-hero .container > :nth-child(1) { animation-delay: .05s; }
html.fs-anim .hero-content > :nth-child(2), html.fs-anim .section-hero .container > :nth-child(2) { animation-delay: .14s; }
html.fs-anim .hero-content > :nth-child(3), html.fs-anim .section-hero .container > :nth-child(3) { animation-delay: .24s; }
html.fs-anim .hero-content > :nth-child(4), html.fs-anim .section-hero .container > :nth-child(4) { animation-delay: .34s; }
html.fs-anim .hero-content > :nth-child(5), html.fs-anim .section-hero .container > :nth-child(5) { animation-delay: .42s; }
html.fs-anim .hero-preview { animation: fsPreviewIn 1.1s var(--ease-out) .35s both; transform-origin: 50% 0; }
@keyframes fsRise { from { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fsPreviewIn { from { opacity: 0; transform: perspective(1400px) rotateX(14deg) translateY(40px) scale(.96); } to { opacity: 1; transform: perspective(1400px) rotateX(0) translateY(0) scale(1); } }

/* aurora suave detrás del hero */
.hero::before, .section-hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: 0; background: radial-gradient(40% 35% at 25% 20%, rgba(91, 99, 246, .16), transparent 70%), radial-gradient(35% 30% at 78% 30%, rgba(236, 72, 153, .10), transparent 70%), radial-gradient(30% 30% at 55% 70%, rgba(245, 158, 11, .08), transparent 70%); filter: blur(10px); }
html.fs-anim .hero::before, html.fs-anim .section-hero::before { animation: fsAurora 18s ease-in-out infinite alternate; }
.hero > *, .section-hero > * { position: relative; z-index: 1; }
@keyframes fsAurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(3%, 2%, 0) scale(1.06); } 100% { transform: translate3d(-3%, -1%, 0) scale(1.02); } }

/* título con brillo en degradado animado */
html.fs-anim .hero-title em { background-size: 200% auto; animation: fsShine 6s linear infinite; background-image: linear-gradient(110deg, var(--lp-primary) 0%, #7C3AED 35%, #EC4899 55%, var(--lp-primary) 100%); }
@keyframes fsShine { to { background-position: 200% center; } }

/* botones: destello al pasar el mouse */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .35) 50%, transparent 75%); transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn .icon { transition: transform .25s var(--ease-out); }
.btn:hover .lucide-arrow-right { transform: translateX(3px); }

/* tarjetas: foco de luz que sigue al cursor + ícono vivo */
.card, .price-card, .pain-card, .step { --mx: 50%; --my: 50%; position: relative; }
.card::after, .price-card::after, .pain-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(91, 99, 246, .10), transparent 45%); }
.card:hover::after, .price-card:hover::after, .pain-card:hover::after { opacity: 1; }
[data-theme="dark"] .card::after, [data-theme="dark"] .price-card::after, [data-theme="dark"] .pain-card::after { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(115, 122, 255, .16), transparent 45%); }
.card .icon-box, .pain-card .icon-box { transition: transform .4s var(--ease-spring), background .2s ease; }
.card:hover .icon-box, .pain-card:hover .icon-box { transform: translateY(-2px) rotate(-6deg) scale(1.06); }
.step { transition: transform .25s var(--ease-out), border-color .2s ease, box-shadow .25s ease; }
.step:hover { transform: translateY(-3px); border-color: rgba(91, 99, 246, .35); box-shadow: var(--lp-shadow-card); }
.step:hover::before { opacity: .6; transition: opacity .25s ease; }
.eco a { transition: background .2s ease, transform .25s var(--ease-out), border-color .2s ease; }
.eco a:hover { transform: translateY(-3px); border-color: rgba(147, 197, 253, .35); }
.faq details { transition: border-color .15s ease, box-shadow .2s ease; }
.faq details[open] { box-shadow: 0 8px 24px -16px rgba(91, 99, 246, .5); }
html.fs-anim .faq details[open] .answer { animation: fsRise .45s var(--ease-out) both; }

/* banda de cifras */
.stats-band-wrap { padding-block: 8px 28px; }
.stats-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--lp-line); border: 1px solid var(--lp-line); border-radius: var(--lp-radius-card); overflow: hidden; }
@media (min-width: 48rem) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stat-item { background: var(--lp-page); padding: clamp(1.1rem, 2.6vw, 1.75rem) 1rem; text-align: center; }
.stat-item b { display: block; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, var(--lp-ink) 30%, var(--lp-primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-item span { display: block; margin-top: .35rem; color: var(--lp-muted); font-size: .88rem; line-height: 1.35; }

/* mockup POS "vivo" */
.ticket-row { transition: opacity .35s ease, transform .45s var(--ease-out), background .6s ease; border-radius: 4px; }
.ticket-row.is-hidden { opacity: 0; transform: translateX(14px); }
.ticket-row.is-new { background: rgba(91, 99, 246, .22); }
.pos-item { transition: transform .25s var(--ease-spring), box-shadow .25s ease, border-color .25s ease; }
.pos-item.is-tapped { transform: scale(.94); border-color: rgba(129, 140, 248, .8) !important; box-shadow: 0 0 0 3px rgba(91, 99, 246, .35); }
.qr-floating-card { transition: opacity .45s var(--ease-out), transform .6s var(--ease-spring); }
.qr-floating-card.is-hidden { opacity: 0; transform: translateY(18px) scale(.92); }
.qr-pulse-badge { transition: background .3s ease, color .3s ease; }
.qr-pulse-badge.is-paid { background: rgba(34, 197, 94, .2) !important; color: #86EFAC !important; border-color: rgba(34, 197, 94, .4) !important; }
html.fs-anim .qr-pulse-badge:not(.is-paid) { animation: fsBlink 1.6s ease-in-out infinite; }
html.fs-anim .qr-code-graphic { animation: fsQrGlow 2.4s ease-in-out infinite; border-radius: 8px; }
.chip-val.bump { animation: fsBump .5s var(--ease-spring); }
@keyframes fsBlink { 50% { opacity: .55; } }
@keyframes fsQrGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(91, 99, 246, 0); } 50% { box-shadow: 0 0 0 6px rgba(91, 99, 246, .25); } }
@keyframes fsBump { 0% { transform: scale(1); } 40% { transform: scale(1.12); color: #86EFAC; } 100% { transform: scale(1); } }
.chip-val { display: inline-block; }

/* transiciones entre páginas (Chrome/Edge 126+, navegación del mismo sitio) */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.scroll-progress { display: none; }
	@view-transition { navigation: none; }
}


/* =====================================================================
   PROGRAMA DE SOCIOS · landing /socios + portal /socios/panel
   ===================================================================== */
.form-msg.ok { display: block; background: var(--ok-soft); color: #166534; }
[data-theme="dark"] .form-msg.ok { color: #86EFAC; }
.small { font-size: .85rem; }
.legal h3 { margin-top: 1.8rem; font-size: 1.15rem; }
.legal p, .legal li { color: var(--lp-muted); }
.legal li { margin-bottom: .4rem; }

.partner-story { background: var(--lp-page); border: 1px solid var(--lp-line); border-radius: var(--lp-radius-card); padding: var(--lp-card-padding); box-shadow: var(--lp-shadow-card); }
.ps-row { display: flex; justify-content: space-between; gap: 12px; padding: .85rem 0; border-bottom: 1px dashed var(--lp-line); }
.ps-row b { font-variant-numeric: tabular-nums; }
.ps-total { border-bottom: 0; font-size: 1.15rem; }
.ps-total b { color: var(--ok); font-size: 1.6rem; letter-spacing: -.02em; }
.partner-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.pl-item { border: 1px solid var(--lp-line); border-radius: var(--lp-radius-control); padding: 12px; display: flex; flex-direction: column; gap: 2px; background: var(--lp-page); }
.pl-item:last-child { border-color: rgba(245, 158, 11, .5); background: linear-gradient(135deg, rgba(245, 158, 11, .08), transparent); }
.pl-rate { font-size: 1.5rem; font-weight: 800; color: var(--lp-primary); letter-spacing: -.02em; }
@media (max-width: 560px) { .partner-levels { grid-template-columns: 1fr; } }
.partner-calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 8px; }
.partner-calc-out > div { background: var(--brand-soft); border-radius: var(--lp-radius-control); padding: 14px; text-align: center; }
.partner-calc-out span { display: block; font-size: .8rem; color: var(--lp-muted); }
.partner-calc-out b { font-size: 1.6rem; letter-spacing: -.02em; color: var(--lp-ink); font-variant-numeric: tabular-nums; }
.field input[type=range] { padding: 0; accent-color: var(--lp-primary); }

.portal { padding: clamp(1.5rem, 3vw, 2.5rem) 0 5rem; background: var(--lp-surface-alt); min-height: 70vh; }
.portal-welcome { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 14px 18px; border-radius: var(--lp-radius-card); background: var(--ok-soft); border: 1px solid rgba(34, 197, 94, .35); margin-bottom: 16px; }
.portal-head { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; background: var(--lp-page); border: 1px solid var(--lp-line); border-radius: var(--lp-radius-card); padding: 18px; box-shadow: var(--lp-shadow-card); }
@media (min-width: 900px) { .portal-head { grid-template-columns: auto 1fr auto; } }
.ph-id { display: flex; gap: 12px; align-items: center; }
.ph-avatar { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--lp-primary), #8B5CF6); }
.ph-name { font-weight: 750; font-size: 1.1rem; }
.ph-meta { display: flex; gap: 6px; margin-top: 2px; }
.ph-link { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-start; }
@media (min-width: 900px) { .ph-link { justify-content: center; } }
.ph-code { display: flex; flex-direction: column; }
.ph-code b { font-size: 1.5rem; letter-spacing: .04em; color: var(--lp-primary); }
.ph-url { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ph-url input { min-width: 220px; flex: 1; padding: .5rem .7rem; border: 1px solid var(--lp-line); border-radius: var(--lp-radius-control); background: var(--lp-surface); color: var(--lp-ink); font: 500 .88rem var(--lp-font); }
.ph-qr { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none !important; color: var(--lp-muted); }
.ph-qr img { border-radius: 10px; border: 1px solid var(--lp-line); background: #fff; }
.portal-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 720px) { .portal-stats { grid-template-columns: repeat(5, 1fr); } }
.portal-stats > div { background: var(--lp-page); border: 1px solid var(--lp-line); border-radius: var(--lp-radius-card); padding: 14px; }
.portal-stats span { display: block; font-size: .8rem; color: var(--lp-muted); }
.portal-stats b { font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.portal-stats b.ok, .ref-meta .ok { color: var(--ok); }
.portal-level { margin-top: 14px; background: var(--lp-page); border: 1px solid var(--lp-line); border-radius: var(--lp-radius-card); padding: 14px 16px; font-size: .92rem; }
.pl-bar { height: 8px; background: var(--lp-surface-alt); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.pl-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lp-primary), #F59E0B); border-radius: 999px; }
.portal-alert { margin-top: 14px; padding: 12px 16px; border-radius: var(--lp-radius-card); background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); font-weight: 600; }
.portal-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 20px 0 14px; padding: 4px; background: var(--lp-page); border: 1px solid var(--lp-line); border-radius: 999px; scrollbar-width: none; }
.portal-tabs button { flex: 0 0 auto; font: 600 .9rem var(--lp-font); border: 0; background: transparent; color: var(--lp-muted); padding: .55rem 1rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.portal-tabs button[aria-selected="true"] { background: var(--lp-primary); color: #fff; }
.portal-empty { text-align: center; padding: 40px 16px; background: var(--lp-page); border: 1px dashed var(--lp-line); border-radius: var(--lp-radius-card); }
.ref-filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ref-filters input, .ref-filters select { flex: 1; min-width: 180px; padding: .6rem .8rem; border: 1px solid var(--lp-line); border-radius: var(--lp-radius-control); background: var(--lp-page); color: var(--lp-ink); font: inherit; }
.ref-card { background: var(--lp-page); border: 1px solid var(--lp-line); border-radius: var(--lp-radius-card); padding: 16px 18px; margin-bottom: 10px; }
.ref-card.due { border-color: rgba(245, 158, 11, .6); }
.ref-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ref-card h3 { font-size: 1.05rem; margin: 0 0 2px; }
.stage-badge { flex: 0 0 auto; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: var(--brand-soft); color: var(--lp-primary); white-space: nowrap; }
.stage-badge.s-ganado, .stage-badge.s-pagada { background: var(--ok-soft); color: #15803D; }
.stage-badge.s-perdido, .stage-badge.s-descartado, .stage-badge.s-anulada { background: rgba(239, 68, 68, .12); color: #DC2626; }
.stage-badge.s-pendiente, .stage-badge.s-aprobada { background: var(--lp-tag); color: var(--lp-tag-ink); }
[data-theme="dark"] .stage-badge.s-ganado, [data-theme="dark"] .stage-badge.s-pagada { color: #86EFAC; }
[data-theme="dark"] .stage-badge.s-perdido, [data-theme="dark"] .stage-badge.s-descartado, [data-theme="dark"] .stage-badge.s-anulada { color: #FCA5A5; }
.ref-pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; list-style: none; padding: 0; margin: 14px 0 8px; }
.ref-pipeline li { display: flex; flex-direction: column; gap: 4px; }
.ref-pipeline li span { height: 6px; border-radius: 999px; background: var(--lp-surface-alt); border: 1px solid var(--lp-line); }
.ref-pipeline li.done span { background: linear-gradient(90deg, var(--lp-primary), #8B5CF6); border-color: transparent; }
.ref-pipeline small { font-size: .68rem; color: var(--lp-muted); line-height: 1.2; }
@media (max-width: 560px) { .ref-pipeline small { display: none; } }
.ref-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.ref-meta a { display: inline-flex; gap: 4px; align-items: center; }
.ref-meta .icon { display: inline; }
.ref-more { margin-top: 10px; border-top: 1px solid var(--lp-line); padding-top: 8px; }
.ref-more summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--lp-primary); }
.ref-notes { display: grid; gap: 8px; margin-top: 12px; }
.ref-notes label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; }
.ref-notes textarea, .ref-notes input, .ref-msg input { width: 100%; padding: .6rem .75rem; border: 1px solid var(--lp-line); border-radius: var(--lp-radius-control); background: var(--lp-surface); color: var(--lp-ink); font: 400 .92rem var(--lp-font); }
.ref-notes input[type=date] { max-width: 220px; }
.ref-notes .btn { justify-self: start; }
.ref-thread { margin-top: 14px; display: grid; gap: 8px; }
.msg { max-width: 85%; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: var(--lp-surface-alt); font-size: .9rem; }
.msg small { display: block; font-size: .72rem; color: var(--lp-muted); margin-top: 2px; }
.msg.mine { justify-self: end; border-radius: 12px 12px 4px 12px; background: var(--brand-soft); }
.ref-msg { display: flex; gap: 6px; margin-top: 4px; }
.kit-text { white-space: pre-wrap; background: var(--lp-surface-alt); border-radius: var(--lp-radius-control); padding: 12px; font-size: .9rem; color: var(--lp-ink); }
.kit-card .btn-row { margin-top: 10px; }

/* validación de campos */
.field-error { display: block; color: var(--danger); font-size: .8rem; margin-top: 4px; line-height: 1.35; }
[data-theme="dark"] .field-error { color: #FCA5A5; }
input.is-invalid, .field input.is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.qr-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 4px; }
.qr-status { font-size: .88rem; color: var(--lp-muted); }
.qr-status.ok { color: var(--ok); font-weight: 600; }
.qr-status.err { color: var(--danger); }

/* iconos 3D de productos MANDOX (POS + ERP, CRM, WMS, TMS) */
.icon-pos-3d { object-fit: contain; display: inline-block; vertical-align: middle; filter: drop-shadow(0 3px 6px rgba(15, 23, 42, .16)); }
.icon-box:has(.icon-pos-3d) { width: 56px; height: 56px; min-width: 56px; flex-shrink: 0; padding: 6px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .95), var(--brand-soft)); border: 1px solid rgba(57, 67, 232, .12); box-shadow: 0 6px 16px -4px rgba(15, 23, 42, .1); }
[data-theme="dark"] .icon-box:has(.icon-pos-3d) { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .14), rgba(57, 67, 232, .18)); border-color: rgba(255, 255, 255, .12); box-shadow: 0 8px 20px -4px rgba(0, 0, 0, .45); }
.icon-box .icon-pos-3d { width: 42px; height: 42px; }
.eco .icon-pos-3d { width: 48px; height: 48px; margin-bottom: 4px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .4)); transition: transform .35s var(--ease-spring); }
.eco a:hover .icon-pos-3d { transform: translateY(-3px) scale(1.08); }
.mega a .icon-pos-3d { width: 28px; height: 28px; margin-top: 0; }
.drawer-panel a.dl .icon-pos-3d { width: 22px; height: 22px; }
.product-tabs button .icon-pos-3d { width: 24px; height: 24px; }
.hero-pos-icon { width: 54px; height: 54px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .28)); transition: transform .35s var(--ease-spring); }
.hero-pos-icon:hover { transform: scale(1.08) rotate(-4deg); }

/* showcase real MDX POS en el Hero (video WebM + capturas interactivas) */
button.window-tab { border: 0; background: transparent; font-family: inherit; cursor: pointer; transition: background .15s ease, color .15s ease; }
button.window-tab:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.app-window-body.pos-live-stage { padding: 0; background: #f8fafc; overflow: hidden; }
.pos-live-pane { width: 100%; line-height: 0; }
.pos-live-media { width: 100%; height: auto; aspect-ratio: 16 / 10; display: block; object-fit: cover; background: #f8fafc; }
