/* =========================================================================
   ServTec GS · Sistema visual 2030
   Sin estilos inline: compatible con Content-Security-Policy estricta.
   ========================================================================= */

:root {
  --bg: #05060a;
  --bg-2: #090b12;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9edf6;
  --muted: #8d95aa;
  --dim: #5d6478;
  --a1: #3df5c8;   /* aurora teal */
  --a2: #5b8cff;   /* quantum blue */
  --a3: #a970ff;   /* violet */
  --warn: #ffb547;
  --danger: #ff5c7a;
  --ok: #3df5c8;
  --grad: linear-gradient(110deg, var(--a1) 0%, var(--a2) 50%, var(--a3) 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1240px;
  --nav-h: 76px;
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); background: var(--bg); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(61, 245, 200, .3); color: #fff; }

:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 6px; }

.sprite { display: none; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--a1); color: #001; padding: .6rem 1rem; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.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; }

/* ---------- Fondo ---------- */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bg-aurora {
  position: fixed; inset: -20% -10% auto; height: 80vh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(61, 245, 200, .10), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(91, 140, 255, .12), transparent 70%),
    radial-gradient(30% 40% at 55% 60%, rgba(169, 112, 255, .08), transparent 70%);
  filter: blur(20px);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

.page { position: relative; z-index: 1; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

/* ---------- Barra de progreso ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 120; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(var(--wrap), 100% - 1.5rem); height: var(--nav-h);
  z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 .75rem 0 1rem;
  background: rgba(9, 11, 18, .62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(9, 11, 18, .85); border-color: var(--border-strong); }

.brand { display: flex; align-items: center; gap: .7rem; font-weight: 700; letter-spacing: -.01em; }
.brand-logo {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--border-strong), 0 0 24px rgba(61, 245, 200, .25);
}
.brand-logo img { width: 130%; height: 130%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.02rem; }
.brand-text small { font-family: var(--mono); font-size: .66rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .95rem; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.kbd-btn {
  display: inline-flex; align-items: center; gap: .5rem; height: 42px; padding: 0 .9rem;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  cursor: pointer; font-size: .85rem; transition: border-color .2s, color .2s;
}
.kbd-btn:hover { color: var(--text); border-color: var(--border-strong); }
kbd { white-space: nowrap; font-family: var(--mono); font-size: .7rem; padding: .1rem .4rem; border-radius: 6px; border: 1px solid var(--border-strong); background: rgba(0,0,0,.3); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; place-items: center; }
.menu-btn .i { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.nav.open .menu-btn .i-open { display: none; }
.nav.open .menu-btn .i-close { display: block; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 50px; padding: 0 1.5rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
}
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn-primary { background: var(--grad); color: #04060c; box-shadow: 0 10px 30px -10px rgba(61, 245, 200, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(91, 140, 255, .7); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-sm { height: 42px; padding: 0 1.1rem; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--a1);
}
.pill {
  display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .5rem;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
  font-size: .82rem; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 245, 200, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,245,200,.55); } 80%,100% { box-shadow: 0 0 0 10px rgba(61,245,200,0); } }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 90px) 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.9rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700;
  margin: 1.4rem 0 1.4rem;
}
.hero h1 .line { display: block; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 2.5rem; margin-top: 3rem; justify-content: start; }
.stat strong { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.stat span { font-size: .82rem; color: var(--muted); }

/* Consola */
.console {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 17, 28, .92), rgba(8, 10, 17, .92));
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(61, 245, 200, .05), 0 0 80px -20px rgba(91, 140, 255, .35);
}
.console::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0 50%, rgba(255,255,255,.015) 50% 100%); background-size: 100% 4px;
}
.console-bar { display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
.console-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a2f3d; }
.console-bar span:nth-child(1) { background: #ff5f57; }
.console-bar span:nth-child(2) { background: #febc2e; }
.console-bar span:nth-child(3) { background: #28c840; }
.console-bar em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: .72rem; color: var(--dim); }
.console-body { padding: 1.2rem 1.25rem 1.4rem; font-family: var(--mono); font-size: .82rem; min-height: 230px; }
.console-body p { color: var(--muted); white-space: pre-wrap; }
.console-body .ok { color: var(--ok); }
.console-body .info { color: var(--a2); }
.console-body .warn { color: var(--warn); }
.caret { display: inline-block; width: .55em; height: 1.05em; background: var(--a1); vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; padding: 0 1.25rem 1.25rem; }
.meter { padding: .8rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.meter small { display: block; font-family: var(--mono); font-size: .66rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.meter b { display: block; font-size: 1.15rem; margin: .2rem 0 .5rem; }
.bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v, 50%); background: var(--grad); border-radius: inherit; transition: width 1.2s var(--ease); }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 3.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; margin: 1rem 0 1rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Tarjetas con spotlight ---------- */
.card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius); padding: 1.9rem;
  background: var(--surface); border: 1px solid var(--border); overflow: hidden; isolation: isolate;
  transition: border-color .3s, transform .4s var(--ease), background .3s;
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(61, 245, 200, .10), transparent 45%);
}
.card:hover { border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
a.card:hover { transform: translateY(-4px); }

.icon-box {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.4rem;
  background: linear-gradient(140deg, rgba(61,245,200,.16), rgba(91,140,255,.12));
  border: 1px solid rgba(61, 245, 200, .25); color: var(--a1);
}
.icon-box .i { width: 24px; height: 24px; }
.card h3 { font-size: 1.35rem; letter-spacing: -.015em; margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .97rem; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.4rem; font-weight: 600; font-size: .92rem; color: var(--a1); }
.card-link .i { transition: transform .25s var(--ease); }
a.card:hover .card-link .i { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.chip { font-family: var(--mono); font-size: .72rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text); background: rgba(255,255,255,.025); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .feature { min-height: 300px; display: flex; flex-direction: column; }
.bento .feature .card-link { margin-top: auto; padding-top: 1.4rem; }

/* ---------- Marquee de marcas ---------- */
.marquee { position: relative; overflow: hidden; padding: 1.2rem 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee + .marquee { margin-top: .4rem; }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: scroll 45s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand-chip {
  display: grid; place-items: center; min-width: 170px; height: 74px; padding: 0 1.6rem;
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; color: #c9d1e3; transition: color .25s, border-color .25s;
}
.brand-chip:hover { color: #fff; border-color: var(--border-strong); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Pasos / proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: step; position: relative; }
.steps.steps-2 { grid-template-columns: 1fr 1fr; }
.step { padding: 1.6rem; }
.step-num { font-family: var(--mono); font-size: .78rem; color: var(--a1); letter-spacing: .1em; }
.step h3 { margin-top: .9rem; font-size: 1.2rem; }
.step p { font-size: .93rem; margin-top: .4rem; }
.step .track { margin-top: 1.3rem; height: 2px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.step .track i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 1.2s var(--ease); }
.step.in .track i { width: 100%; }
.step:nth-child(2) .track i { transition-delay: .2s; }
.step:nth-child(3) .track i { transition-delay: .4s; }
.step:nth-child(4) .track i { transition-delay: .6s; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.prose p { color: var(--muted); font-size: 1.05rem; }
.prose p + p { margin-top: 1.1rem; }
.prose strong { color: var(--text); font-weight: 600; }

.checklist { list-style: none; display: grid; gap: .8rem; margin-top: 1.6rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; color: var(--text); }
.checklist .i { color: var(--a1); margin-top: .2rem; }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.value { padding: 1.4rem; }
.value h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.value h3 .i { color: var(--a1); }
.value p { font-size: .9rem; margin-top: .4rem; }
.leader { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; margin-top: 1.6rem; max-width: 360px; }
.leader-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--bg); background: var(--grad); }
.leader-info { display: flex; flex-direction: column; }
.leader-info b { color: var(--text); font-size: 1.02rem; }
.leader-info small { color: var(--muted); font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; margin-top: .15rem; }

/* ---------- Banda de seguridad ---------- */
.trust {
  border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(91, 140, 255, .14), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(61, 245, 200, .10), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--border-strong);
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.trust-item { padding: 1.3rem; border-radius: var(--radius-sm); background: rgba(0,0,0,.25); border: 1px solid var(--border); }
.trust-item .i { color: var(--a1); width: 22px; height: 22px; }
.trust-item h3 { font-size: 1rem; margin: .8rem 0 .3rem; }
.trust-item p { font-size: .88rem; color: var(--muted); }

/* ---------- Subpáginas ---------- */
.page-hero { padding: calc(var(--nav-h) + 90px) 0 50px; }
.crumbs { display: flex; gap: .5rem; align-items: center; font-family: var(--mono); font-size: .78rem; color: var(--dim); margin-bottom: 1.6rem; }
.crumbs a:hover { color: var(--text); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.3rem); line-height: 1.04; letter-spacing: -.035em; max-width: 16ch; margin: 1.1rem 0 1.2rem; }
.page-hero .lead { max-width: 58ch; }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: end; }
.kpis { display: grid; gap: .8rem; }
.kpi { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.kpi strong { font-size: 1.6rem; letter-spacing: -.02em; }
.kpi span { color: var(--muted); font-size: .85rem; text-align: right; }

.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.stack { padding: 2.1rem; }
.rows { margin-top: 1.4rem; border-top: 1px solid var(--border); }
.row { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.row .i { color: var(--a2); }
.row span { flex: 1; font-size: .95rem; }
.row em { font-style: normal; font-family: var(--mono); font-size: .7rem; color: var(--warn); padding: .2rem .6rem; border-radius: 999px; border: 1px solid rgba(255, 181, 71, .3); background: rgba(255, 181, 71, .07); }

.price { display: flex; align-items: baseline; gap: .6rem; margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px dashed var(--border-strong); }
.price small { color: var(--muted); font-size: .85rem; }
.price strong { font-size: 1.9rem; letter-spacing: -.02em; }

.notice {
  display: flex; align-items: center; justify-content: center; gap: .7rem; flex-wrap: wrap; text-align: center;
  margin-top: 1.4rem; padding: .9rem 1.2rem; border-radius: 999px;
  border: 1px solid rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .06); color: #ffd79a; font-size: .9rem; font-weight: 500;
}

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: 2.2rem 2.4rem; border-radius: 24px; border: 1px solid var(--border-strong);
  background: linear-gradient(110deg, rgba(61,245,200,.09), rgba(91,140,255,.08), rgba(169,112,255,.09));
}
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.02em; line-height: 1.15; max-width: 26ch; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem; align-items: stretch; }
.channels { display: grid; gap: .8rem; align-content: start; }
.channel { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; }
.channel .icon-box { margin: 0; width: 46px; height: 46px; }
.channel small { display: block; font-family: var(--mono); font-size: .68rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.channel b { font-weight: 600; font-size: .98rem; word-break: break-word; }

.form { padding: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.field label abbr { color: var(--a1); text-decoration: none; }
.input {
  width: 100%; height: 50px; padding: 0 1rem; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .28); border: 1px solid var(--border-strong); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea.input { height: auto; min-height: 130px; padding: .85rem 1rem; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
select.input option { background: #0c0f18; }
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 4px rgba(61, 245, 200, .12); background: rgba(0,0,0,.4); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 92, 122, .1); }
.hint { min-height: 1.1em; font-size: .75rem; color: var(--danger); }
.hint.counter { color: var(--dim); text-align: right; }

.consent { display: flex; align-items: flex-start; gap: .7rem; font-size: .85rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--a1); flex-shrink: 0; }
.consent a { color: var(--a1); text-decoration: underline; text-underline-offset: 3px; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.3rem; }
.secure-note { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--dim); font-family: var(--mono); }
.secure-note .i { color: var(--a1); }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.status { display: none; margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; }
.status.show { display: block; }
.status.ok { background: rgba(61, 245, 200, .08); border: 1px solid rgba(61, 245, 200, .35); color: var(--ok); }
.status.err { background: rgba(255, 92, 122, .08); border: 1px solid rgba(255, 92, 122, .35); color: #ff9fb1; }
.status.info { background: rgba(91, 140, 255, .08); border: 1px solid rgba(91, 140, 255, .35); color: #a9c1ff; }

/* ---------- Footer ---------- */
.footer { margin-top: 60px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(0,0,0,.4)); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.1rem; font-weight: 500; }
.footer ul { list-style: none; display: grid; gap: .6rem; }
.footer li, .footer li a { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .93rem; }
.footer li a:hover { color: var(--text); }
.footer .i { color: var(--a1); }
.footer-about p { color: var(--muted); font-size: .93rem; margin-top: 1rem; max-width: 34ch; }
.socials { display: flex; gap: .6rem; margin-top: 1.3rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); transition: background .25s, color .25s, transform .25s var(--ease); }
.socials a:hover { background: var(--a1); color: #04060c; transform: translateY(-3px); }
.socials .i { color: inherit; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--dim); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- WhatsApp flotante ---------- */
.fab {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; gap: .6rem; height: 56px; padding: 0 1.25rem 0 1rem; border-radius: 999px;
  background: #25d366; color: #04210f; font-weight: 700; box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .7);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.fab .i { width: 24px; height: 24px; stroke-width: 2; }
.fab:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(37, 211, 102, .85); }

/* ---------- Command palette ---------- */
.cmdk { margin: auto; margin-top: 14vh; width: min(620px, 100% - 2rem); padding: 0; border: 1px solid var(--border-strong); border-radius: 18px; background: rgba(12, 14, 22, .96); color: var(--text); box-shadow: 0 40px 100px -20px rgba(0,0,0,.9); }
.cmdk::backdrop { background: rgba(3, 4, 8, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cmdk-search { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.cmdk-search .i { color: var(--muted); width: 20px; height: 20px; }
.cmdk-search input { flex: 1; background: none; border: 0; outline: none; font-size: 1.05rem; }
.cmdk-list { list-style: none; max-height: 340px; overflow-y: auto; padding: .5rem; }
.cmdk-list li a { display: flex; align-items: center; gap: .9rem; padding: .75rem .9rem; border-radius: 10px; color: var(--muted); }
.cmdk-list li a .i { color: var(--a1); }
.cmdk-list li a small { margin-left: auto; font-family: var(--mono); font-size: .7rem; color: var(--dim); }
.cmdk-list li.active a, .cmdk-list li a:hover { background: var(--surface-2); color: var(--text); }
.cmdk-empty { padding: 1.5rem; text-align: center; color: var(--dim); font-size: .9rem; }
.cmdk-foot { display: flex; gap: 1rem; padding: .7rem 1.2rem; border-top: 1px solid var(--border); font-size: .74rem; color: var(--dim); }

/* ---------- Privacidad ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin: 2.4rem 0 .8rem; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; display: grid; gap: .4rem; margin-top: .6rem; }
.legal a { color: var(--a1); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Animación de aparición (solo con JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .page-hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 3; }
  .steps, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kbd-btn .kbd-label { display: none; }
}

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem; padding: .7rem;
    background: #0b0d15; border: 1px solid var(--border-strong); border-radius: 22px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: .9rem 1rem; font-size: 1rem; }
  .nav-actions .btn { display: none; }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .nav { top: 10px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: .95rem; }
  .kbd-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .kbd-btn kbd { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 60px); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stat strong { font-size: 1.5rem; }
  .bento > *, .bento .span-3, .bento .span-4 { grid-column: 1 / -1; }
  .stack-grid, .values, .form-grid, .steps, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .meters { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
  .meter { padding: .6rem; }
  .section { padding: 80px 0; }
  .form, .stack { padding: 1.4rem; }
  .fab span { display: none; }
  .fab { width: 56px; padding: 0; justify-content: center; }
  .brand-chip { min-width: 130px; height: 60px; font-size: 1rem; }
  .cta-band { padding: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- Casos de éxito ---- */
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; padding: 2rem; }
.case-tag { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--a1); }
.case h3 { font-size: 1.6rem; margin: .6rem 0 .8rem; }
.case-main .card-link { display: inline-flex; margin-top: 1.4rem; }
.case-facts { display: grid; gap: 1rem; margin: 0; }
.case-facts div { padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.case-facts dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case-facts dd { margin: .35rem 0 0; color: var(--text); font-size: .95rem; }
/* ---- Rejilla de 3 columnas ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-3 .feature { min-height: 300px; display: flex; flex-direction: column; }
@media (max-width: 900px) { .case, .grid-3 { grid-template-columns: 1fr; } }
