/* ==========================================================================
   Nexlify — sistema de estilos de los sitios (index + landings de producto)
   Cada página define su color de acento con body[data-product].
   ========================================================================== */

:root {
  --navy-900: #070e1d;
  --navy-800: #0b1428;
  --navy-700: #12213d;
  --navy-600: #1c3358;
  --blue: #2454b3;
  --blue-400: #5b8def;
  --ink: #12213d;
  --ink-soft: #47567a;
  --muted: #6b7a96;
  --line: #e2e8f2;
  --bg: #f5f7fb;
  --paper: #ffffff;
  --ok: #0e8268;
  --danger: #c2410c;

  /* Acento por producto (Nexlify por defecto) */
  --accent: #2454b3;
  --accent-2: #5b8def;
  --accent-soft: #e8efff;
  --accent-ink: #1b3f8c;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(18, 33, 61, .06), 0 4px 14px -6px rgba(18, 33, 61, .12);
  --shadow-lg: 0 30px 70px -30px rgba(18, 33, 61, .45);
  --font-head: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
}

body[data-product="av360"] { --accent: #3b5bdb; --accent-2: #7c6cf6; --accent-soft: #edeefe; --accent-ink: #3140b0; }
body[data-product="pools360"] { --accent: #0b7fc1; --accent-2: #20b9a5; --accent-soft: #e3f4fb; --accent-ink: #075f91; }
body[data-product="korecenter360"] { --accent: #1c9a55; --accent-2: #f08a24; --accent-soft: #e6f6ec; --accent-ink: #137242; }
body[data-product="medicita360"] { --accent: #0e8a7a; --accent-2: #2f7de1; --accent-soft: #e2f5f2; --accent-ink: #0a6a5e; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 200; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 10px; }
.ic { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 15px/1 var(--font-body); padding: 15px 24px; border-radius: 14px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease; white-space: nowrap; }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 12px 30px -12px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px var(--accent); }
.btn-light { background: #fff; color: var(--navy-700); }
.btn-light:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .26); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-sm { padding: 11px 16px; font-size: 14px; border-radius: 11px; }

/* ---------- encabezado ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background-color .25s ease, box-shadow .25s ease; }
.site-header.scrolled, .site-header.open { background: rgba(7, 14, 29, .86); backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
.nav { height: 76px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font: 800 22px/1 var(--font-head); letter-spacing: -0.03em; }
.brand-name em { font-style: normal; font-weight: 400; color: var(--blue-400); }
.brand-product { display: inline-flex; align-items: center; gap: 10px; padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, .2); }
.brand-product img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 10px 13px; border-radius: 10px; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.lang button { font: 700 12px/1 var(--font-body); color: rgba(255, 255, 255, .7); background: none; border: 0; padding: 7px 9px; border-radius: 8px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy-700); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .06); color: #fff; place-items: center; cursor: pointer; }
.menu-btn .ic { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 150px 0 110px; background:
  radial-gradient(900px 520px at 88% -8%, color-mix(in srgb, var(--accent-2) 42%, transparent), transparent 62%),
  radial-gradient(800px 520px at -12% 108%, color-mix(in srgb, var(--accent) 48%, transparent), transparent 60%),
  linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .09) 1px, transparent 0); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000 40%, transparent); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; letter-spacing: .02em; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 30%, transparent); }
.hero-logo { height: 64px; width: auto; margin-top: 26px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 800; margin-top: 22px; }
.hero h1 .hl { background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--accent-2) 70%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 22px; font-size: 18.5px; line-height: 1.7; color: rgba(255, 255, 255, .76); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ic { color: var(--accent-2); width: 18px; height: 18px; }

/* ventana de aplicación (maqueta) */
.mock { position: relative; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .12); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f8fafd; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe5ee; }
.mock-bar i:nth-child(1) { background: #ff6b6b; } .mock-bar i:nth-child(2) { background: #ffc34d; } .mock-bar i:nth-child(3) { background: #3ecf8e; }
.mock-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 12px; border-radius: 12px; background: var(--bg); }
.kpi small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font: 800 22px/1.2 var(--font-head); margin-top: 3px; }
.kpi em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ok); }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 12px; border-radius: 12px; background: var(--bg); }
.mock-chart i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); opacity: .9; }
.mock-list { display: grid; gap: 8px; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; }
.mock-row .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex-shrink: 0; }
.mock-row b { display: block; font-size: 13px; }
.mock-row small { color: var(--muted); font-size: 11.5px; }
.tag { margin-left: auto; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--accent-soft); color: var(--accent-ink); }
.tag.ok { background: #e2f6ef; color: var(--ok); }
.tag.warn { background: #fff3e0; color: #b45309; }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 9px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; padding: 10px 14px; border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .45); }
.float-chip .ic { color: var(--accent); }
.float-chip.a { top: -18px; right: 22px; } .float-chip.b { bottom: -20px; left: -16px; }
@media (prefers-reduced-motion: no-preference) { .hero-art .mock { animation: floaty 7s ease-in-out infinite; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-art { position: relative; }

/* ---------- secciones ---------- */
section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.kicker::before { content: ''; width: 24px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 17.5px; color: var(--ink-soft); }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.dark { background: var(--navy-800); color: #fff; position: relative; overflow: hidden; }
.dark .section-head p { color: rgba(255, 255, 255, .72); }
.dark .kicker { color: color-mix(in srgb, var(--accent-2) 75%, #fff); }

/* problemas */
.pains { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pain { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.pain small { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: var(--danger); background: #fff1ea; padding: 4px 10px; border-radius: 999px; }
.pain p { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); }
.pain-result { margin-top: 26px; padding: 18px 22px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 15.5px; }

/* módulos */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.module:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.module .mi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex-shrink: 0; }
.module .mi .ic { width: 22px; height: 22px; }
.module h3 { font-size: 16.5px; font-weight: 700; }
.module p { margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* bloques destacados */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.rev > :first-child { order: 2; }
.feature > * { min-width: 0; }
.feature h3 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin-top: 12px; }
.feature .desc { margin-top: 14px; font-size: 16.5px; color: var(--ink-soft); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; }
.checks li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink); }
.checks li .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); margin-top: 1px; }
.visual { position: relative; border-radius: var(--radius-lg); padding: 26px; background: linear-gradient(145deg, var(--accent-soft), #fff); border: 1px solid var(--line); }
.visual .mock { box-shadow: var(--shadow-lg); }

/* flujo en pasos */
.flow { display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); gap: 14px; counter-reset: step; }
.flow-step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
.flow-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 800 30px/1 var(--font-head); background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flow-step h4 { margin-top: 12px; font-size: 16px; font-weight: 700; }
.flow-step p { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* antes / después */
.compare { display: grid; gap: 12px; }
.compare-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.compare-row > div { padding: 18px 20px; border-radius: 16px; font-size: 15px; }
.before { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); }
.after { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, transparent), color-mix(in srgb, var(--accent-2) 26%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 45%, transparent); color: #fff; font-weight: 600; }
.compare-row small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; margin-bottom: 6px; opacity: .75; }
.compare-arrow { display: grid; place-items: center; color: color-mix(in srgb, var(--accent-2) 80%, #fff); padding: 0 !important; }

/* permisos / seguridad */
.perm { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.perm-head { padding: 14px 18px; background: var(--bg); font-size: 13px; font-weight: 700; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.perm-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; font-size: 14px; border-bottom: 1px solid var(--line); }
.perm-row:last-child { border-bottom: 0; }
.perm-row span:last-child { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--accent-ink); }
.perm-row span.no { color: var(--muted); }

/* productos (index) */
.products { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.product { grid-column: span 2; position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.product.wide { grid-column: span 3; }
.product::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--p1), var(--p2)); }
.product:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(18, 33, 61, .35); border-color: transparent; }
.product .p-logo { height: 54px; width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.product .p-cat { margin-top: 20px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--p1); }
.product h3 { margin-top: 8px; font-size: 22px; font-weight: 800; }
.product > p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.product ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.product li { display: flex; gap: 10px; font-size: 14px; }
.product li .ic { width: 18px; height: 18px; color: var(--p1); margin-top: 2px; }
.product .p-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.product .p-actions .btn-primary { background: linear-gradient(135deg, var(--p1), var(--p2)); box-shadow: 0 12px 26px -14px var(--p1); }
.product .p-actions .btn-outline:hover { border-color: var(--p1); color: var(--p1); }

/* servicios (index) */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 26px; transition: background-color .2s ease; }
.service:hover { background: rgba(255, 255, 255, .08); }
.service .si { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(91, 141, 239, .18); color: #9dbcff; }
.service .si .ic { width: 23px; height: 23px; }
.service h3 { margin-top: 18px; font-size: 18px; font-weight: 700; }
.service p { margin-top: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .68); }
.service .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.service .chips span { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .78); }
.service.wide { grid-column: span 2; }

/* cifras */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stat b { display: block; font: 800 40px/1 var(--font-head); background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }

/* industrias */
.industries { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.industries span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.industries .ic { color: var(--accent); width: 18px; height: 18px; }

/* ---------- contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-info h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 14px; }
.contact-info > p { margin-top: 16px; font-size: 17px; color: var(--ink-soft); }
.channels { display: grid; gap: 12px; margin-top: 28px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
a.channel:hover { border-color: var(--accent); transform: translateX(4px); }
.channel .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex-shrink: 0; }
.channel .ci.wa { background: #e3f8ea; color: #128c4a; }
.channel small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.channel b { display: block; font-size: 15px; word-break: break-word; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 22px; font-weight: 800; }
.form-card > p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field label i { font-style: normal; color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; font: 400 15px/1.4 var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-actions .btn { min-width: 200px; }
.form-actions small { font-size: 12.5px; color: var(--muted); }
.form-status { grid-column: 1 / -1; display: none; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; }
.form-status.show { display: block; }
.form-status.ok { background: #e2f6ef; color: #075e4b; }
.form-status.error { background: #fff1ea; color: #9a3412; }
.form-status a { font-weight: 700; }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { display: none; text-align: center; padding: 28px 10px 10px; }
.form-success .check { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.form-success h4 { margin-top: 18px; font-size: 22px; font-weight: 800; }
.form-success p { margin-top: 8px; color: var(--ink-soft); }
.form-card.sent form { display: none; }
.form-card.sent .form-success { display: block; }

/* CTA final */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: 64px 48px; color: #fff; text-align: center; background:
  radial-gradient(600px 300px at 90% 0%, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent 70%),
  radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%), var(--navy-800); }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; max-width: 760px; margin-inline: auto; }
.cta-band p { margin: 16px auto 0; max-width: 58ch; color: rgba(255, 255, 255, .75); font-size: 17px; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- pie ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid p { margin-top: 14px; font-size: 14px; max-width: 34ch; }
.foot-grid h5 { margin: 0 0 14px; font: 700 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .8); transition: transform .2s ease; }
.wa-float:hover { transform: scale(1.07); }
.wa-float .ic { width: 30px; height: 30px; }

/* aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* bilingüe (index) */
html[lang="es"] [lang="en"]:not(html), html[lang="en"] [lang="es"]:not(html) { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .modules { grid-template-columns: repeat(3, 1fr); }
  .pains { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .nav-links { position: absolute; top: 76px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 18px; background: rgba(7, 14, 29, .97); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .site-header.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px; font-size: 16px; }
  .nav-actions { margin-left: auto; }
  .hero { padding-top: 124px; }
  .hero-grid, .feature, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature.rev > :first-child { order: 0; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .product, .product.wide { grid-column: span 1; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .float-chip.b { left: 8px; }
}
@media (max-width: 720px) {
  section { padding: 76px 0; }
  .wrap { padding-inline: 18px; }
  .modules, .pains, .products, .services, .form-grid { grid-template-columns: 1fr; }
  .service.wide { grid-column: auto; }
  .flow { grid-template-columns: 1fr; }
  .mock-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi b { font-size: 18px; }
  .compare-row { grid-template-columns: 1fr; gap: 8px; }
  .compare-arrow { transform: rotate(90deg); height: 20px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 17px; }
  .hero-logo { height: 50px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .brand-product { display: none; }
  .nav-actions .btn { display: none; }
  .form-card { padding: 22px 18px; }
  .form-actions .btn { width: 100%; }
  .cta-band { padding: 48px 22px; border-radius: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 32px; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
