/* ==========================================================================
   Capix Design System — estética obsidiana + carmesí + cromo, acabado "Apple"
   ========================================================================== */
:root {
  --bg: #050506;
  --bg-2: #0b0b0e;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #f5f5f7;
  --ink-2: #c9c9d1;
  --mut: #8e8e99;
  --accent: #ff2a3d;
  --accent-2: #ff7a59;
  --accent-rgb: 255, 42, 61;
  --nav-bg: rgba(10, 10, 13, .62);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --r: 28px;
  --r-sm: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --surface: rgba(0, 0, 0, .035);
  --surface-2: rgba(0, 0, 0, .06);
  --line: rgba(0, 0, 0, .09);
  --line-2: rgba(0, 0, 0, .17);
  --ink: #1d1d1f;
  --ink-2: #424245;
  --mut: #6e6e73;
  --nav-bg: rgba(255, 255, 255, .7);
  --shadow: 0 30px 80px -35px rgba(0, 0, 0, .35);
  color-scheme: light;
}
[data-dept="web"]       { --accent: #ff2a3d; --accent-2: #ff8a5c; --accent-rgb: 255, 42, 61; }
[data-dept="tech"]      { --accent: #ff4d2e; --accent-2: #ffb02e; --accent-rgb: 255, 77, 46; }
[data-dept="solutions"] { --accent: #ff2d6f; --accent-2: #b266ff; --accent-rgb: 255, 45, 111; }
[data-dept="cloud"]     { --accent: #ff2a3d; --accent-2: #6fc8ff; --accent-rgb: 255, 42, 61; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.04; }
p { margin: 0; }
::selection { background: rgba(var(--accent-rgb), .35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.grad {
  background: linear-gradient(100deg, var(--ink) 20%, var(--accent-2) 60%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chrome-text {
  background: linear-gradient(180deg, #fff 0%, #b9bcc4 45%, #7d818c 55%, #e8eaee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] .chrome-text { background: linear-gradient(180deg, #2b2b30, #6e6e78 55%, #1d1d1f); -webkit-background-clip: text; background-clip: text; }

/* ---------- Fondo ambiental ---------- */
.ambient { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: var(--bg); }
.ambient i {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; will-change: transform;
  animation: drift 24s var(--ease) infinite alternate;
}
.ambient i:nth-child(1) { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: radial-gradient(circle, rgba(var(--accent-rgb), .55), transparent 65%); }
.ambient i:nth-child(2) { width: 46vw; height: 46vw; right: -14vw; top: 20vh; background: radial-gradient(circle, var(--accent-2), transparent 65%); opacity: .22; animation-duration: 31s; animation-delay: -8s; }
.ambient i:nth-child(3) { width: 40vw; height: 40vw; left: 28vw; bottom: -22vw; background: radial-gradient(circle, rgba(var(--accent-rgb), .4), transparent 65%); opacity: .3; animation-duration: 38s; animation-delay: -15s; }
:root[data-theme="light"] .ambient i { opacity: .16; }
@keyframes drift { to { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.noise {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100;
  width: min(1120px, 100% - 24px); height: 58px; padding: 0 10px 0 16px;
  display: flex; align-items: center; gap: 8px; border-radius: 999px;
  background: var(--nav-bg); border: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.nav.scrolled { box-shadow: 0 14px 50px -20px rgba(0, 0, 0, .7); border-color: var(--line-2); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand small { font-weight: 500; color: var(--mut); letter-spacing: .02em; font-size: .78em; }
.nav-links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav-links a, .nav-links button.lnk {
  padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: .92rem; background: none; border: 0; transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links button.lnk:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.iconbtn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); transition: background .2s, transform .3s var(--ease);
}
.iconbtn:hover { background: var(--surface-2); transform: scale(1.06); }
.iconbtn svg { width: 18px; height: 18px; }
.kbd { font-family: var(--mono); font-size: .72rem; color: var(--mut); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }
.menu-btn { display: none; }
.dd { position: relative; }
.dd-panel {
  position: absolute; right: 0; top: calc(100% + 14px); width: 300px; padding: 8px; border-radius: 22px;
  background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: .25s var(--ease);
}
.dd.open .dd-panel { opacity: 1; transform: none; pointer-events: auto; }
.dd-panel a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; }
.dd-panel a:hover { background: var(--surface-2); }
.dd-panel .mark { width: 34px; height: 34px; flex: none; }
.dd-panel b { display: block; font-size: .95rem; line-height: 1.2; }
.dd-panel span { color: var(--mut); font-size: .8rem; line-height: 1.2; display: block; }

/* ---------- Botones ---------- */
.btn {
  --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 26px;
  border-radius: 999px; font-weight: 600; font-size: 1rem; border: 1px solid transparent; position: relative; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s, background .3s; will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg.arr { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 10px 40px -8px rgba(var(--accent-rgb), .7); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 40px -12px rgba(var(--accent-rgb), .8); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding: 140px 0 80px; display: flex; align-items: center; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); font-size: .82rem; color: var(--ink-2); font-weight: 500; letter-spacing: .01em;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .7); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 6.6rem); margin: 26px 0 24px; letter-spacing: -.045em; line-height: .98; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero h1 .w > span { display: inline-block; }
.js .hero h1 .w > span { transform: translateY(110%); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes rise { to { transform: none; } }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; color: var(--mut); font-size: .85rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent); }

.stage { position: relative; aspect-ratio: 1; width: min(100%, 560px); margin-inline: auto; perspective: 1100px; }
.stage .ring, .stage .ring2 { position: absolute; inset: 4%; border-radius: 50%; }
.stage .ring { background: conic-gradient(from 0deg, transparent 0 55%, rgba(var(--accent-rgb), .9) 80%, transparent 100%); animation: spin 9s linear infinite; -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 68.2%, transparent 69%); mask: radial-gradient(circle, transparent 66%, #000 67%, #000 68.2%, transparent 69%); }
.stage .ring2 { inset: -2%; border: 1px dashed var(--line-2); animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage .glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .5), transparent 68%); filter: blur(46px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .7; } }
.stage .tilt { position: absolute; inset: 11%; transform-style: preserve-3d; transition: transform .25s ease-out; }
.stage .tilt .mark { width: 100%; height: 100%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.stage .chip {
  position: absolute; padding: 8px 14px; border-radius: 14px; font-size: .78rem; font-weight: 600; white-space: nowrap;
  background: var(--nav-bg); border: 1px solid var(--line-2); backdrop-filter: blur(14px); box-shadow: var(--shadow);
  transform: translateZ(60px); animation: float 6s ease-in-out infinite;
}
.stage .chip b { color: var(--accent); }
.stage .c1 { left: -2%; top: 18%; }
.stage .c2 { right: -3%; top: 40%; animation-delay: -2s; }
.stage .c3 { left: 8%; bottom: 8%; animation-delay: -4s; }
.stage .tile { position: absolute; inset: 9%; border-radius: 23%; background: linear-gradient(160deg, #2c2d31, #0a0a0c); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 50px 90px -30px #000; }
.stage.has-tile .tilt { inset: 21%; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Secciones ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 12vw, 150px) 0; }
.sec-head { max-width: 780px; margin-bottom: clamp(36px, 6vw, 70px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .kicker { color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; display: block; }
.sec-head h2 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); letter-spacing: -.04em; }
.sec-head p { margin-top: 20px; color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; width: max-content; gap: 54px; animation: marq 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font-size: clamp(1.1rem, 2.4vw, 1.7rem); font-weight: 600; letter-spacing: -.02em; color: var(--mut); white-space: nowrap; display: inline-flex; align-items: center; gap: 54px; }
.marquee span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@keyframes marq { to { transform: translateX(-50%); } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 38px); transition: transform .5s var(--ease), border-color .3s, background .3s; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .16), transparent 45%);
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); margin: 18px 0 12px; letter-spacing: -.03em; }
.card p { color: var(--ink-2); }
.card .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(var(--accent-rgb), .25), rgba(var(--accent-rgb), .05)); border: 1px solid rgba(var(--accent-rgb), .35); color: var(--accent); }
.card .ico svg { width: 26px; height: 26px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.card .big { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: .76rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); }
.notice { border-color: rgba(var(--accent-rgb), .35); background: linear-gradient(135deg, rgba(var(--accent-rgb), .1), transparent 60%); }

/* Pasos (sticky) */
.steps { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.steps .sticky { position: sticky; top: 110px; }
.rail { display: flex; flex-direction: column; gap: 14px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: .5s var(--ease); opacity: .5; }
.step.on { opacity: 1; border-color: rgba(var(--accent-rgb), .45); background: linear-gradient(135deg, rgba(var(--accent-rgb), .1), var(--surface) 60%); transform: translateX(6px); }
.step .n { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.step h3 { font-size: 1.5rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); }
html:not(.js) .step { opacity: 1; }

/* Estadísticas / CTA / footer */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stat { padding: 30px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -.05em; line-height: 1; }
.stat span { color: var(--mut); font-size: .95rem; }
.cta-card {
  text-align: center; padding: clamp(50px, 9vw, 120px) 24px; border-radius: 40px; position: relative; overflow: hidden; border: 1px solid var(--line-2);
  background: radial-gradient(ellipse 70% 90% at 50% 120%, rgba(var(--accent-rgb), .35), transparent 70%), var(--surface);
}
.cta-card h2 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -.045em; margin-bottom: 18px; }
.cta-card p { color: var(--ink-2); max-width: 34em; margin: 0 auto 34px; font-size: 1.15rem; }
.cta-card .cta-row { justify-content: center; }
footer.foot { border-top: 1px solid var(--line); padding: 60px 0 40px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.foot h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin-bottom: 16px; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--ink-2); transition: color .2s; }
.foot ul a:hover { color: var(--accent); }
.foot .legal { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--mut); font-size: .88rem; }

/* ---------- Command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 300; display: grid; place-items: start center; padding-top: 14vh; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.palette.open { opacity: 1; pointer-events: auto; }
.pal-box { width: min(640px, 100% - 28px); border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -20px #000; overflow: hidden; transform: translateY(-10px) scale(.98); transition: transform .3s var(--ease); }
.palette.open .pal-box { transform: none; }
.pal-box input { width: 100%; padding: 22px 24px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 1.15rem; outline: none; }
.pal-list { max-height: 50vh; overflow: auto; padding: 8px; }
.pal-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; cursor: pointer; }
.pal-item .mark { width: 28px; height: 28px; flex: none; }
.pal-item .gl { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--accent); flex: none; }
.pal-item .gl svg { width: 16px; height: 16px; }
.pal-item small { margin-left: auto; color: var(--mut); font-size: .78rem; }
.pal-item[aria-selected="true"] { background: var(--surface-2); }
.pal-empty { padding: 28px; text-align: center; color: var(--mut); }
.pal-foot { padding: 10px 18px; border-top: 1px solid var(--line); display: flex; gap: 16px; color: var(--mut); font-size: .78rem; }
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; opacity: 0; z-index: 400; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .92rem; transition: .4s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Revelado ---------- */
.js .rv { opacity: 0; transform: translateY(34px) scale(.985); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.scrub .sw { opacity: .18; transition: opacity .25s; }
.scrub .sw.lit { opacity: 1; }
html:not(.js) .scrub .sw { opacity: 1; }
.manifesto { font-size: clamp(1.9rem, 4.6vw, 3.8rem); letter-spacing: -.035em; line-height: 1.12; font-weight: 700; max-width: 22em; }

/* ---------- Módulos específicos ---------- */
/* Ecosistema (matriz) */
.eco { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: stretch; }
.eco-tabs { display: grid; gap: 10px; align-content: start; }
.eco-tab { display: flex; gap: 16px; align-items: center; text-align: left; padding: 18px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: .4s var(--ease); width: 100%; }
.eco-tab .mark { width: 44px; height: 44px; flex: none; opacity: .6; transition: .4s; }
.eco-tab b { display: block; font-size: 1.15rem; letter-spacing: -.02em; }
.eco-tab span { color: var(--mut); font-size: .88rem; }
.eco-tab[aria-selected="true"] { background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), var(--surface)); border-color: rgba(var(--accent-rgb), .5); transform: translateX(8px); }
.eco-tab[aria-selected="true"] .mark { opacity: 1; transform: scale(1.1) rotate(-4deg); }
.eco-panel { position: relative; border-radius: 34px; border: 1px solid var(--line-2); background: radial-gradient(ellipse at 70% 0%, rgba(var(--accent-rgb), .22), transparent 60%), var(--surface); padding: clamp(26px, 4vw, 50px); min-height: 460px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.eco-panel[hidden] { display: none; }
.eco-panel .bgmark { position: absolute; right: -8%; top: -6%; width: 62%; opacity: .16; transform: rotate(8deg); }
.eco-panel h3 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.eco-panel p { color: var(--ink-2); max-width: 30em; margin: 14px 0 26px; font-size: 1.1rem; }
.eco-panel .url { font-family: var(--mono); font-size: .85rem; color: var(--accent); margin-bottom: 10px; }
.eco-panel .mini { position: absolute; left: clamp(26px, 4vw, 50px); top: clamp(26px, 4vw, 50px); display: flex; gap: 8px; }
.eco-panel .mini i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }

/* Órbita */
.orbit { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin: auto; }
.orbit .core { position: absolute; inset: 31%; z-index: 2; }
.orbit .core .mark { width: 100%; height: 100%; }
.orbit .path { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed var(--line-2); }
.orbit .path.p2 { inset: 22%; }
.orbit .spin { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.orbit .node { position: absolute; width: 22%; aspect-ratio: 1; margin: -11%; left: var(--x); top: var(--y); display: grid; place-items: center; text-align: center; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .06); font-size: .78rem; font-weight: 700; }
.orbit .node > div { animation: spin 40s linear infinite reverse; display: grid; place-items: center; gap: 2px; }
.orbit .node svg { width: 20px; height: 20px; color: var(--accent); }

/* Navegador (web) */
.browser { border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: var(--shadow); }
.browser .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .browser .bar i:nth-child(2) { background: #febc2e; } .browser .bar i:nth-child(3) { background: #28c840; }
.browser .bar span { margin-left: 12px; flex: 1; padding: 5px 14px; border-radius: 999px; background: var(--surface-2); font-size: .78rem; color: var(--mut); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 24px 30px; margin-inline: calc(50% - 50vw); padding-inline: max(24px, calc(50vw - 600px)); scrollbar-width: none; cursor: grab; }
.work-rail::-webkit-scrollbar { display: none; }
.work-rail.drag { cursor: grabbing; scroll-snap-type: none; }
.work { flex: 0 0 min(440px, 82vw); scroll-snap-align: start; }
.work .shot { aspect-ratio: 16/10; background: var(--surface-2) center/cover; position: relative; overflow: hidden; }
.work .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work:hover .shot img { transform: scale(1.06); }
.work .shot.ph { display: grid; place-items: center; background: linear-gradient(135deg, rgba(var(--accent-rgb), .3), rgba(var(--accent-rgb), .04)); }
.work .shot.ph .mark { width: 40%; opacity: .5; }
.work .info { padding: 20px 22px 24px; }
.work h3 { font-size: 1.3rem; margin-bottom: 6px; letter-spacing: -.02em; }
.work p { color: var(--ink-2); font-size: .95rem; }
.work .live { position: absolute; top: 14px; left: 14px; padding: 4px 11px; border-radius: 999px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px); font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: #fff; display: inline-flex; gap: 7px; align-items: center; }
.work .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #28c840; }
.lang-demo { text-align: center; padding: clamp(30px, 5vw, 60px) 20px; }
.flags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 34px; }
.flag { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); transition: .3s var(--ease); font-size: .92rem; }
.flag[aria-pressed="true"] { background: var(--ink); color: var(--bg); transform: scale(1.06); }
.lang-out { font-size: clamp(1.9rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -.035em; min-height: 2.3em; transition: opacity .25s, transform .25s; }
.lang-out.sw { opacity: 0; transform: translateY(10px); }
.lang-sub { color: var(--mut); margin-top: 10px; font-family: var(--mono); font-size: .85rem; }
.ring-wrap { display: grid; place-items: center; }
.ring-svg { width: 190px; height: 190px; transform: rotate(-90deg); }
.ring-svg circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring-svg .bg { stroke: var(--line-2); }
.ring-svg .fg { stroke: url(#ringg); stroke-dasharray: 534; stroke-dashoffset: 534; transition: stroke-dashoffset 2s var(--ease); }
.ring-num { position: absolute; font-size: 3.2rem; font-weight: 700; letter-spacing: -.05em; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); font-size: .8rem; font-weight: 600; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #28c840; }

/* Configurador (tech) */
.rig { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.opts { display: grid; gap: 22px; }
.opt h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin-bottom: 12px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chipbtn { padding: 12px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; transition: .3s var(--ease); }
.chipbtn:hover { transform: translateY(-2px); }
.chipbtn[aria-pressed="true"] { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), .8); }
.spec { position: sticky; top: 100px; align-self: start; }
.spec pre { margin: 0; font-family: var(--mono); font-size: .88rem; color: var(--ink-2); white-space: pre-wrap; line-height: 1.9; min-height: 11em; }
.spec .hl { color: var(--accent-2); }
.term { background: #08080a; border-radius: 20px; border: 1px solid var(--line-2); overflow: hidden; font-family: var(--mono); font-size: .82rem; color: #d7d7de; box-shadow: var(--shadow); }
.term .bar { padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #8e8e99; display: flex; gap: 8px; align-items: center; }
.term .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a40; }
.term .body { padding: 18px 20px; display: grid; gap: 12px; }
.meter { display: grid; grid-template-columns: 52px 1fr 54px; gap: 12px; align-items: center; }
.meter .trk { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter .trk i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .9s var(--ease); }
.okline { color: #5fe08a; }

/* Automatización (solutions) */
.flow { position: relative; border-radius: 34px; border: 1px solid var(--line-2); background: var(--surface); padding: clamp(20px, 4vw, 40px); overflow: hidden; }
.flow svg { width: 100%; height: auto; }
.flow .edge { fill: none; stroke: var(--line-2); stroke-width: 2; }
.flow .pulse { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 14 300; animation: dash 3.2s linear infinite; filter: drop-shadow(0 0 6px var(--accent)); }
@keyframes dash { from { stroke-dashoffset: 314; } to { stroke-dashoffset: 0; } }
.flow .nodeg rect { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1.5; }
.flow .nodeg text { fill: var(--ink); font-family: var(--font); font-weight: 700; font-size: 15px; text-anchor: middle; }
.flow .nodeg text.s { fill: var(--mut); font-weight: 500; font-size: 11px; }
.flow .nodeg.hot rect { stroke: var(--accent); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.field { display: grid; gap: 10px; margin-bottom: 26px; }
.field label { display: flex; justify-content: space-between; font-weight: 600; }
.field label output { color: var(--accent); font-family: var(--mono); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--line-2) var(--p, 50%)); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 4px 16px rgba(0, 0, 0, .5); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; cursor: grab; }
.result { text-align: center; padding: 36px; border-radius: 28px; background: linear-gradient(145deg, rgba(var(--accent-rgb), .18), transparent), var(--surface); border: 1px solid rgba(var(--accent-rgb), .35); }
.result b { display: block; font-size: clamp(2.8rem, 6vw, 4.6rem); letter-spacing: -.05em; line-height: 1; }
.result small { display: block; color: var(--mut); margin-top: 14px; }

/* Cloud */
.dash { border-radius: 30px; border: 1px solid var(--line-2); background: #08080a; padding: 26px; box-shadow: var(--shadow); color: #e8e8ee; }
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.dash-top span { font-family: var(--mono); font-size: .8rem; color: #8e8e99; }
.dash canvas { width: 100%; height: 190px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.dash-kpis div { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.dash-kpis small { color: #8e8e99; display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.dash-kpis b { font-size: 1.5rem; letter-spacing: -.03em; font-family: var(--mono); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.tbl th, .tbl td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl thead th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); background: var(--surface-2); }
.tbl td:nth-child(2) { color: var(--mut); }
.tbl td:nth-child(3) { color: var(--ink); font-weight: 600; background: linear-gradient(90deg, rgba(var(--accent-rgb), .1), transparent); }
.tbl td:first-child { font-weight: 600; }

/* Contacto */
.compose { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 70px); align-items: start; }
.form { display: grid; gap: 14px; padding: clamp(22px, 3vw, 36px); border-radius: 30px; background: var(--surface); border: 1px solid var(--line-2); }
.form label { font-weight: 600; font-size: .9rem; display: grid; gap: 8px; }
.form input, .form textarea { width: 100%; padding: 15px 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }
.form textarea { min-height: 130px; resize: vertical; }
.hint { color: var(--mut); font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .steps, .eco, .rig, .calc, .compose, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; text-align: left; }
  .stage { width: min(420px, 100%); order: -1; }
  .steps .sticky, .spec { position: static; }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { position: fixed; inset: 82px 12px auto; flex-direction: column; align-items: stretch; padding: 12px; border-radius: 28px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: .3s var(--ease); margin: 0; }
  .nav.menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a, .nav-links button.lnk { padding: 14px 16px; font-size: 1.05rem; text-align: left; }
  .menu-btn { display: grid; margin-left: auto; }
  .nav .actions { margin-left: auto; }
  .dd-panel { position: fixed; left: 12px; right: 12px; top: 82px; width: auto; }
  .dd-txt { display: none; }
  .dash-kpis { grid-template-columns: 1fr; }
  .tbl th, .tbl td { padding: 14px; font-size: .88rem; }
  .eco-tab[aria-selected="true"] { transform: none; }
}
@media (max-width: 560px) { body { font-size: 16px; } .wrap { width: calc(100% - 32px); } .foot-grid { grid-template-columns: 1fr; } .stage .chip { display: none; } .kbd { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rv, .js .hero h1 .w > span { opacity: 1; transform: none; }
}
/* ==========================================================================
   Extras: botón subir, puntos de sección, FAB, paneles, accesibilidad, FAQ, módulos
   ========================================================================== */
.cx-glow { position: fixed; left: 0; top: 0; width: 400px; height: 400px; border-radius: 50%; pointer-events: none; z-index: -1; background: radial-gradient(circle, rgba(var(--accent-rgb), .14), transparent 65%); will-change: transform; }
.nav { transition: transform .4s var(--ease), background .3s, box-shadow .3s, border-color .3s; }
.nav.hide { transform: translate(-50%, -140%); }
.cx-top { position: fixed; right: 18px; bottom: 82px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; background: var(--nav-bg); border: 1px solid var(--line); backdrop-filter: blur(14px); display: grid; place-items: center; opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: .35s var(--ease); }
.cx-top.show { opacity: 1; transform: none; pointer-events: auto; }
.cx-top svg { position: absolute; inset: 0; width: 44px; height: 44px; transform: rotate(-90deg); }
.cx-top circle { fill: none; stroke-width: 2.5; } .cx-top .bg { stroke: var(--line-2); } .cx-top .fg { stroke: var(--accent); stroke-dasharray: 119.4; stroke-dashoffset: 119.4; stroke-linecap: round; }
.cx-dots { position: fixed; right: 14px; top: 50%; translate: 0 -50%; z-index: 80; display: grid; gap: 4px; }
.cx-dots a { display: grid; place-items: center; width: 22px; height: 22px; }
.cx-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: .3s var(--ease); }
.cx-dots a:hover i, .cx-dots a.on i { background: var(--accent); transform: scale(1.7); }
@media (max-width: 1100px) { .cx-dots { display: none; } }
.cx-rip { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .35); transform: scale(0); animation: rip .65s ease-out forwards; pointer-events: none; z-index: -1; }
@keyframes rip { to { transform: scale(2.6); opacity: 0; } }
.btn { overflow: hidden; }
.cx-tip { position: fixed; z-index: 400; translate: -50% -100%; padding: 6px 12px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: .78rem; font-weight: 600; pointer-events: none; }
.cx-fab { position: fixed; right: 18px; bottom: 18px; z-index: 95; }
.cx-main { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 14px 40px -10px rgba(var(--accent-rgb), .8); transition: transform .4s var(--ease); border: 0; }
.cx-main .i { width: 22px; height: 22px; } .cx-fab.open .cx-main { transform: rotate(135deg) scale(1.05); }
.cx-menu { position: absolute; right: 0; bottom: 64px; width: 230px; padding: 8px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px) scale(.96); transform-origin: 100% 100%; pointer-events: none; transition: .3s var(--ease); }
.cx-fab.open .cx-menu { opacity: 1; transform: none; pointer-events: auto; }
.cx-menu a, .cx-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 14px; font-size: .92rem; color: var(--ink-2); text-align: left; background: none; border: 0; }
.cx-menu a:hover, .cx-menu button:hover { background: var(--surface-2); color: var(--ink); } .cx-menu .i { color: var(--accent); }
.cx-menu [hidden] { display: none; }
.cx-panel { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 18px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s; }
.cx-panel.open { opacity: 1; }
.cx-box { position: relative; width: min(480px, 100%); max-height: 90vh; overflow: auto; padding: 28px; border-radius: 28px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -20px #000; transform: translateY(14px) scale(.97); transition: transform .35s var(--ease); }
.cx-panel.open .cx-box { transform: none; }
.cx-box h3 { font-size: 1.5rem; margin-bottom: 6px; } .cx-box h4 { margin: 20px 0 10px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.cx-sub { color: var(--mut); font-size: .92rem; } .cx-x { position: absolute; right: 16px; top: 16px; }
.cx-swatches { display: flex; gap: 10px; } .cx-sw { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--bg-2); outline: 1px solid var(--line-2); transition: transform .25s var(--ease); } .cx-sw:hover { transform: scale(1.15); }
.cx-list { display: grid; gap: 4px; } .cx-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; } .cx-chip { padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: .9rem; transition: .2s; } .cx-chip:hover { border-color: var(--accent); } .cx-chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.cx-f { display: grid; gap: 6px; margin: 18px 0; font-weight: 600; font-size: .9rem; } .cx-f input { padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; }
.switch { border: 0; padding: 0; }
body.cx-leave { opacity: 0; transition: opacity .22s; }
.cx-mx { position: fixed; inset: 0; z-index: 500; pointer-events: none; background: transparent; }
/* accesibilidad */
.a11y-large { font-size: 118%; } .a11y-large body { font-size: 1.12rem; }
.a11y-contrast { --ink: #fff; --ink-2: #fff; --mut: #e8e8e8; --line: rgba(255,255,255,.4); --line-2: rgba(255,255,255,.65); } .a11y-contrast[data-theme="light"] { --ink: #000; --ink-2: #000; --mut: #222; --line: rgba(0,0,0,.45); --line-2: rgba(0,0,0,.7); }
.a11y-calm *, .a11y-calm *::before, .a11y-calm *::after { animation: none !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } .a11y-calm .rv, .a11y-calm .hero h1 .w > span { opacity: 1 !important; transform: none !important; } .a11y-calm .cx-glow { display: none; }
.a11y-links a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.a11y-dys { --font: "Atkinson Hyperlegible", "Verdana", "Segoe UI", sans-serif; } .a11y-dys body { letter-spacing: .02em; word-spacing: .08em; line-height: 1.75; }
/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; transition: border-color .3s; } .faq-item.open { border-color: rgba(var(--accent-rgb), .45); }
.faq-q { width: 100%; padding: 20px 24px; display: flex; justify-content: space-between; gap: 18px; text-align: left; font-weight: 600; font-size: 1.05rem; background: none; border: 0; }
.faq-q::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--accent); transition: transform .3s var(--ease); } .faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); } .faq-a p { padding: 0 24px 22px; color: var(--ink-2); }
.faq-search { width: 100%; max-width: 860px; margin: 0 auto 18px; display: block; padding: 14px 20px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; }
/* utilidades de módulos */
.mod { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); padding: clamp(22px, 3vw, 36px); }
.mod h3 { font-size: 1.5rem; margin-bottom: 8px; } .mod .sub { color: var(--mut); margin-bottom: 20px; }
.mod .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.mod .out { padding: 22px; border-radius: 22px; background: linear-gradient(145deg, rgba(var(--accent-rgb), .14), transparent), var(--surface); border: 1px solid rgba(var(--accent-rgb), .3); }
.mod .out b.big { display: block; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.04em; line-height: 1; }
.mod .out small { color: var(--mut); display: block; margin-top: 8px; }
.mod label.fld { display: grid; gap: 8px; margin-bottom: 18px; font-weight: 600; font-size: .92rem; } .mod label.fld output { float: right; color: var(--accent); font-family: var(--mono); }
.mod select, .mod input[type=text], .mod input[type=number], .mod input[type=email], .mod textarea { width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; }
.mod .opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mod .opt { padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; transition: .2s; } .mod .opt:hover { border-color: var(--accent); } .mod .opt[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.mod pre, .code { background: #08080a; color: #d7d7de; padding: 18px 20px; border-radius: 18px; font-family: var(--mono); font-size: .82rem; line-height: 1.7; overflow: auto; white-space: pre-wrap; border: 1px solid var(--line-2); margin: 0; }
.mod .bar { height: 10px; border-radius: 5px; background: var(--line-2); overflow: hidden; } .mod .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0; transition: width .6s var(--ease); }
.mod .kv { display: grid; gap: 4px; } .mod .kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .mod .kv b { font-family: var(--mono); font-weight: 500; }
.mod canvas { width: 100%; display: block; }
.tabsx { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; } .tabsx button { padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); } .tabsx button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pillrow { display: flex; flex-wrap: wrap; gap: 8px; } .ok { color: #2ee59d; } .warn { color: #ffb020; } .bad { color: #ff5470; }
.grid-a { display: grid; gap: 16px; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.chk { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; } .chk input { accent-color: var(--accent); width: 20px; height: 20px; }
.score { font-size: 3rem; font-weight: 700; letter-spacing: -.04em; }
.tbl-s { width: 100%; border-collapse: collapse; } .tbl-s th, .tbl-s td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; } .tbl-s th { color: var(--mut); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.rack { display: grid; gap: 2px; background: #08080a; padding: 10px; border-radius: 16px; border: 1px solid var(--line-2); max-height: 420px; overflow: auto; } .rack .u { display: flex; justify-content: space-between; align-items: center; padding: 3px 10px; font-family: var(--mono); font-size: .72rem; color: #8e8e99; border: 1px dashed rgba(255,255,255,.08); border-radius: 4px; min-height: 18px; } .rack .u.f { background: linear-gradient(90deg, rgba(var(--accent-rgb), .25), rgba(var(--accent-rgb), .08)); color: #fff; border: 1px solid rgba(var(--accent-rgb), .5); }
.frame { margin: auto; border: 1px solid var(--line-2); background: #000; overflow: hidden; transition: width .4s var(--ease), border-radius .4s; box-shadow: var(--shadow); }
.frame iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.frame.phone { width: 390px; height: 720px; border-radius: 44px; border: 10px solid #111; } .frame.tablet { width: 768px; height: 640px; border-radius: 28px; border: 10px solid #111; } .frame.desk { width: 100%; height: 640px; border-radius: 16px; }
@media (max-width: 980px) { .mod .row2, .g3, .g4 { grid-template-columns: 1fr; } .cx-top { bottom: 80px; right: 14px; } .cx-fab { right: 14px; bottom: 14px; } .frame.tablet, .frame.phone { max-width: 100%; } }
@media print { .nav, .cx-fab, .cx-top, .cx-dots, .ambient, .grid-bg, .noise, .progress, .cx-glow, .scroll-hint { display: none !important; } body { background: #fff; color: #000; } .js .rv { opacity: 1 !important; transform: none !important; } }

/* materiales del logo */
.m-chrome{--grad:url(#g-chrome);--m1:#f4f5f7;--m2:#8c9099;--m3:#d9dce1;--edge:#1a1b1e;--hi:#ffffff;--nose:#26272b}
.m-crimson{--grad:url(#g-crimson);--m1:#ff6b6b;--m2:#a3151c;--m3:#e0383f;--edge:#2a0508;--hi:#ffb4b4;--nose:#3a0a0e}
.m-onyx{--grad:url(#g-onyx);--m1:#9a9ea8;--m2:#2a2c31;--m3:#6a6e78;--edge:#050506;--hi:#cdeedb;--nose:#0c0d0f}
svg.i{width:1.2em;height:1.2em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
