/* =========================================================
   NOVASYSTEMS · Sitio principal · v13
   Tema oscuro «órbita» (predeterminado) y tema claro.
   Colores del logo: NOVA grafito, SOFT turquesa y la órbita naranja.
   ========================================================= */

@font-face { font-family: 'Sora'; src: url('assets/fonts/sora.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('assets/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

@font-face { font-family: 'Sora Contorno'; src: url('assets/fonts/sora-600-contorno.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sora Contorno'; src: url('assets/fonts/sora-800-contorno.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

@property --pct { syntax: '<integer>'; inherits: false; initial-value: 0; }
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- Tokens · tema oscuro (predeterminado) ----------
   Las «islas» son pantallas (editor de código, ilustraciones de los servicios)
   que conservan el aspecto oscuro también en el tema claro. */
:root,
:root[data-theme="claro"] :is(.fc-code, .viz) {
  color-scheme: dark;
  --bg: #060a15;
  --bg-1: #0b1121;
  --bg-2: #111a2f;
  --bg-rgb: 6 10 21;
  --fg-rgb: 255 255 255;
  --line-rgb: 160 205 245;
  --stroke: rgb(var(--line-rgb) / .11);
  --stroke-2: rgb(var(--line-rgb) / .19);
  --stroke-3: rgb(var(--line-rgb) / .30);
  --text: #f2f6fb;
  --text-2: #bdc9d7;
  --text-3: #8e9eb2;
  --graphite: #333940;
  --turq: #14d6e6;
  --turq-2: #62f1f9;
  --teal: #10bbcf;
  --petrol: #0a8796;
  --orange: #ff9a2e;
  --orange-2: #ff6c12;
  --orange-ink: #1c1206;
  --turq-rgb: 20 214 230;
  --turq2-rgb: 98 241 249;
  --orange-rgb: 255 154 46;
  --blue-rgb: 52 128 255;
  --shadow-rgb: 0 0 0;
  --shadow-k: 1;
  --surface-rgb: 11 17 30;
  --card-hi-rgb: 20 30 50;
  --card-lo-rgb: 9 14 25;
  --band-rgb: 12 22 40;
  --device-bg: #0f1725;
  --device-bar: #131d2e;
  --chrome-bg: #0d1524;
  --admin-link: #ffab5c;
  --admin-link-hover: #ffc98f;
  --placeholder: #7f90a6;
  --grad: linear-gradient(100deg, #a6f8ff 0%, #45e8f5 18%, #14d6e6 34%, #8ef2f8 48%, #ffd9ad 60%, #ffa142 76%, #ff6c12 100%);
}

/* ---------- Tokens · tema claro ---------- */
:root[data-theme="claro"] {
  color-scheme: light;
  --bg: #f3f6fb;
  --bg-1: #ffffff;
  --bg-2: #e9eff7;
  --bg-rgb: 243 246 251;
  --fg-rgb: 14 36 68;
  --line-rgb: 18 48 88;
  --stroke: rgb(var(--line-rgb) / .12);
  --stroke-2: rgb(var(--line-rgb) / .18);
  --stroke-3: rgb(var(--line-rgb) / .30);
  --text: #09121f;
  --text-2: #37475c;
  --text-3: #53637a;
  --turq: #06b6cc;
  --turq-2: #06707f;
  --teal: #0a8ea2;
  --petrol: #08788a;
  --orange: #c2410c;
  --orange-2: #f26a0c;
  --turq-rgb: 6 182 204;
  --turq2-rgb: 0 150 176;
  --orange-rgb: 247 120 22;
  --blue-rgb: 37 99 235;
  --shadow-rgb: 16 36 66;
  --shadow-k: .3;
  --surface-rgb: 255 255 255;
  --card-hi-rgb: 255 255 255;
  --card-lo-rgb: 248 251 255;
  --band-rgb: 224 235 247;
  --device-bg: #ffffff;
  --device-bar: #eef3f8;
  --chrome-bg: #e8eef5;
  --admin-link: #c2410c;
  --admin-link-hover: #9a3412;
  --placeholder: #6b7a8e;
  --grad: linear-gradient(100deg, #0e7490 0%, #0891b2 20%, #06b6d4 38%, #0284c7 58%, #2563eb 76%, #0891b2 100%);
}

:root {
  --radius: 24px;
  --container: 1240px;
  --pad: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Sora', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; overflow-x: clip; }
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .03; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
html.menu-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 650; letter-spacing: -.03em; line-height: 1.08; color: var(--text); }
p { margin: 0 0 1em; }
em { font-style: normal; }
::selection { background: rgb(var(--orange-rgb) / .35); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-play { fill: currentColor; stroke: none; }
.mono { font-family: var(--mono); }
.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; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--orange); color: var(--orange-ink); font-weight: 700; transition: top .25s; }
.skip-link:focus { top: 16px; }
main { position: relative; z-index: 1; }
.container { width: 100%; max-width: calc(var(--container) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.grad-text { background-image: var(--grad); background-size: 220% 100%; background-position: 0% 50%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: gradShift 9s ease-in-out infinite alternate; }
@keyframes gradShift { to { background-position: 100% 50%; } }
.grad-text .dot { color: var(--orange); -webkit-text-fill-color: var(--orange); text-shadow: 0 0 20px rgb(var(--orange-rgb) / .8); }

/* Luz que sigue al puntero */
.cursor-glow { position: fixed; left: 0; top: 0; z-index: 0; width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgb(var(--turq2-rgb) / .085), rgb(var(--turq2-rgb) / 0)); opacity: 0; transition: opacity .8s; will-change: transform; }
.has-glow .cursor-glow { opacity: 1; }

/* ---------- Botones ---------- */
.btn { --bh: 50px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--bh); padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 600 15px/1 var(--font); letter-spacing: -.005em; white-space: nowrap; cursor: pointer; isolation: isolate; overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s, border-color .3s, color .3s; }
.btn .icon { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover .icon:not(.icon-play) { transform: translate(2px, -2px); }
.btn-primary { background: linear-gradient(180deg, #ffb54f, #ff8d1f); color: var(--orange-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 32px -12px rgba(255, 140, 40, .75), 0 0 0 1px rgba(255, 176, 90, .45); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .6) 48%, transparent 62%); transform: translateX(-130%); transition: transform .9s var(--ease-out); }
.btn-primary:hover::before { transform: translateX(130%); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 20px 44px -12px rgba(255, 140, 40, .9), 0 0 0 1px rgba(255, 196, 120, .7); }
.btn-ghost { background: rgb(var(--fg-rgb) / .045); color: var(--text); border-color: var(--stroke-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgb(var(--fg-rgb) / .09); border-color: var(--stroke-3); }
.btn-ghost .icon-play { width: 14px; height: 14px; color: var(--orange); }
.btn-lg { --bh: 56px; padding: 0 26px; font-size: 15.5px; }
.btn-sm { --bh: 42px; padding: 0 17px; font-size: 14px; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text); transition: color .25s; }
.text-link .icon { color: var(--orange); transition: transform .4s var(--ease-out); }
.text-link:hover { color: var(--orange); }
.text-link:hover .icon { transform: translate(2px, -2px); }
.win-dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b5f; }
.win-dots i:nth-child(2) { background: #ffbd4a; }
.win-dots i:nth-child(3) { background: #3fd0dc; }
.live-dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--turq-2); flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: live 2s ease-out infinite; }
@keyframes live { from { transform: scale(1); opacity: .7; } 70%, to { transform: scale(3.2); opacity: 0; } }

/* ---------- Encabezado ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h); border-bottom: 1px solid transparent; transition: background-color .45s, border-color .45s, transform .6s var(--ease-out); }
.site-header.is-scrolled { background: rgb(var(--bg-rgb) / .74); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border-bottom-color: var(--stroke); }
.site-header.is-hidden { transform: translateY(calc(-100% - 40px)); }
.header-inner { height: 100%; max-width: calc(1320px + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 26px; }
.brand { flex-shrink: 0; display: block; border-radius: 8px; }
.brand img { height: 40px; width: auto; }
.desktop-nav { position: relative; isolation: isolate; margin-left: auto; display: flex; align-items: center; gap: 2px; }
.desktop-nav a { position: relative; padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: color .3s; }
.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--text); }
.nav-indicator { position: absolute; z-index: -1; left: 0; top: 50%; height: 38px; margin-top: -19px; width: var(--w, 0); transform: translateX(var(--x, 0)); opacity: var(--o, 0); border-radius: 999px; background: rgb(var(--fg-rgb) / .065); border: 1px solid var(--stroke); pointer-events: none; transition: transform .55s var(--ease-out), width .55s var(--ease-out), opacity .35s; }
.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-admin { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding-left: 18px; border-left: 1px solid var(--stroke-2); font-size: 13.5px; font-weight: 600; color: var(--admin-link); white-space: nowrap; transition: color .25s; }
.header-admin .icon { width: 15px; height: 15px; }
.header-admin:hover { color: var(--admin-link-hover); }
/* NOVACONTROL: acceso pequeño al panel de control, junto a «Acceso administrativo». */
.header-control { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: -8px; border: 1px solid var(--stroke-2); border-radius: 9px; color: var(--admin-link); transition: color .25s, border-color .25s; }
.header-control .icon { width: 16px; height: 16px; }
.header-control:hover { color: var(--admin-link-hover); border-color: currentColor; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.menu-toggle { display: none; position: relative; width: 46px; height: 46px; margin-left: auto; border-radius: 14px; border: 1px solid var(--stroke-2); background: rgb(var(--fg-rgb) / .04); }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.8px; border-radius: 2px; background: var(--text); transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* Interruptor de tema claro / oscuro */
.theme-toggle { display: none; position: relative; width: 42px; height: 42px; flex-shrink: 0; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--stroke-2); background: rgb(var(--fg-rgb) / .045); color: var(--text); overflow: hidden; transition: border-color .3s, background-color .3s, transform .5s var(--ease-out), box-shadow .4s; }
.con-tema .theme-toggle { display: grid; }
.theme-toggle:hover { border-color: rgb(var(--orange-rgb) / .55); background: rgb(var(--orange-rgb) / .09); box-shadow: 0 0 0 4px rgb(var(--orange-rgb) / .08); }
.theme-toggle:active { transform: scale(.9); }
.theme-toggle .icon { grid-area: 1 / 1; width: 19px; height: 19px; transition: transform .7s var(--ease-out), opacity .35s; }
.ico-sol { color: var(--orange); }
.ico-luna { color: var(--turq-2); opacity: 0; transform: rotate(-120deg) scale(.3); }
:root[data-theme="claro"] .ico-sol { opacity: 0; transform: rotate(120deg) scale(.3); }
:root[data-theme="claro"] .ico-luna { opacity: 1; transform: none; }
.logo-claro { display: none; }
:root[data-theme="claro"] .logo-claro { display: block; }
:root[data-theme="claro"] .logo-oscuro { display: none; }

.mobile-nav { position: fixed; inset: 0; z-index: 55; display: flex; padding: calc(var(--header-h) + 18px) var(--pad) max(28px, env(safe-area-inset-bottom)); overflow-y: auto; background: rgb(var(--bg-rgb) / .94); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-out), visibility 0s linear .45s; }
.mobile-nav.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-out); }
.mobile-nav-inner { width: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; }
.mobile-nav-inner > * { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
.mobile-nav.is-open .mobile-nav-inner > * { opacity: 1; transform: none; }
.mobile-nav-inner > :nth-child(2) { transition-delay: 40ms; }
.mobile-nav-inner > :nth-child(3) { transition-delay: 80ms; }
.mobile-nav-inner > :nth-child(4) { transition-delay: 120ms; }
.mobile-nav-inner > :nth-child(5) { transition-delay: 160ms; }
.mobile-nav-inner > :nth-child(6) { transition-delay: 200ms; }
.mobile-nav-inner > :nth-child(7) { transition-delay: 240ms; }
.mobile-nav-inner > :nth-child(8) { transition-delay: 280ms; }
.mobile-nav-inner > :nth-child(9) { transition-delay: 320ms; }
.mobile-nav-inner > a:not(.btn):not(.mobile-admin) { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--stroke); font: 600 clamp(25px, 7vw, 34px)/1.15 var(--display); letter-spacing: -.025em; }
.mobile-nav-inner > a:not(.btn):not(.mobile-admin) .icon { width: 22px; height: 22px; color: var(--orange); }
.mobile-nav .btn { margin-top: 28px; height: 56px; }
.mobile-admin { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding: 12px; color: var(--orange); font-size: 15px; font-weight: 600; }
.mobile-admin.mobile-control { margin-top: 2px; }

/* ---------- Encabezados de sección ---------- */
.section { position: relative; padding: clamp(76px, 8.6vw, 124px) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 { font-size: clamp(36px, 5.1vw, 66px); letter-spacing: -.04em; line-height: 1.04; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .section-lead { margin-inline: auto; }
.section-head-split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section-head-split .section-lead { max-width: 400px; margin: 0 0 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--turq-2); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, var(--orange), rgb(var(--orange-rgb) / 0)); }
.section-lead { margin: 22px 0 0; max-width: 620px; color: var(--text-2); font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.7; }

/* =========================================================
   INICIO
   ========================================================= */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: calc(var(--header-h) + clamp(24px, 5vh, 64px)) 0 30px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * -10px); }
.aurora { position: absolute; border-radius: 50%; will-change: transform; }
.aurora-1 { width: 980px; height: 980px; left: -360px; top: -420px; background: radial-gradient(closest-side, rgb(var(--turq-rgb) / .5), rgb(var(--turq-rgb) / 0)); animation: drift1 24s ease-in-out infinite alternate; }
.aurora-2 { width: 1100px; height: 1100px; right: -420px; top: -160px; background: radial-gradient(closest-side, rgb(var(--blue-rgb) / .44), rgb(var(--blue-rgb) / 0)); animation: drift2 28s ease-in-out infinite alternate; }
.aurora-3 { width: 700px; height: 700px; right: 14%; bottom: -440px; background: radial-gradient(closest-side, rgb(var(--orange-rgb) / .3), rgb(var(--orange-rgb) / 0)); animation: drift3 32s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(140px, 90px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-120px, 120px) scale(.92); } }
@keyframes drift3 { to { transform: translate(-160px, -90px) scale(1.18); } }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgb(var(--line-rgb) / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--line-rgb) / .07) 1px, transparent 1px); background-size: 64px 64px; background-position: -1px -1px; -webkit-mask-image: radial-gradient(ellipse 75% 65% at 55% 40%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 75% 65% at 55% 40%, #000 15%, transparent 72%); }
.stars { position: absolute; inset: 0; opacity: .55; background-image: radial-gradient(1.2px 1.2px at 8% 18%, #fff, transparent 60%), radial-gradient(1px 1px at 22% 64%, #c6f6fa, transparent 60%), radial-gradient(1.4px 1.4px at 36% 30%, #fff, transparent 60%), radial-gradient(1px 1px at 48% 84%, #fff, transparent 60%), radial-gradient(1.2px 1.2px at 62% 12%, #ffd9a8, transparent 60%), radial-gradient(1px 1px at 74% 72%, #fff, transparent 60%), radial-gradient(1.3px 1.3px at 88% 26%, #c6f6fa, transparent 60%), radial-gradient(1px 1px at 94% 88%, #fff, transparent 60%), radial-gradient(1px 1px at 14% 90%, #fff, transparent 60%), radial-gradient(1.1px 1.1px at 56% 46%, #fff, transparent 60%); animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .25; } }
.hero-grid-lit { background-image: linear-gradient(rgb(var(--turq2-rgb) / .34) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--turq2-rgb) / .34) 1px, transparent 1px); -webkit-mask-image: radial-gradient(230px circle at var(--gx, -400px) var(--gy, -400px), #000 0%, rgba(0, 0, 0, .4) 45%, transparent 72%); mask-image: radial-gradient(230px circle at var(--gx, -400px) var(--gy, -400px), #000 0%, rgba(0, 0, 0, .4) 45%, transparent 72%); opacity: 0; transition: opacity .8s; }
.has-glow .hero-grid-lit { opacity: 1; }
.hero-beams { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: radial-gradient(ellipse 75% 65% at 55% 40%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 75% 65% at 55% 40%, #000 15%, transparent 72%); }
.hero-beams i { position: absolute; display: block; border-radius: 2px; will-change: transform; }
.hero-beams i:nth-child(-n+3) { left: 0; width: 200px; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--turq2-rgb) / .95) 75%, rgb(var(--fg-rgb) / .9)); box-shadow: 0 0 12px rgb(var(--turq2-rgb) / .8); animation: beamX 9s linear infinite; }
.hero-beams i:nth-child(1) { top: calc(64px * 3 - 1px); animation-delay: -1s; }
.hero-beams i:nth-child(2) { top: calc(64px * 7 - 1px); animation-delay: -6s; animation-duration: 12s; }
.hero-beams i:nth-child(3) { top: calc(64px * 11 - 1px); animation-delay: -3.5s; animation-duration: 14s; }
.hero-beams i:nth-child(n+4) { top: 0; width: 1px; height: 190px; background: linear-gradient(180deg, transparent, rgb(var(--orange-rgb) / .9) 75%, rgb(var(--fg-rgb) / .85)); box-shadow: 0 0 12px rgb(var(--orange-rgb) / .7); animation: beamY 11s linear infinite; }
.hero-beams i:nth-child(4) { left: calc(64px * 5 - 1px); animation-delay: -2s; }
.hero-beams i:nth-child(5) { left: calc(64px * 16 - 1px); animation-delay: -7.5s; animation-duration: 13s; }
@keyframes beamX { from { transform: translateX(-220px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes beamY { from { transform: translateY(-200px); } to { transform: translateY(calc(100vh + 60px)); } }

.hero-inner { flex: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 56px); }
.hero-copy { position: relative; z-index: 2; padding: 20px 0; }
[data-intro] { animation: introUp 1.1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 180ms); }
@keyframes introUp { from { opacity: 0; translate: 0 22px; } }
.announce { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin-bottom: 30px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--stroke-2); background: rgb(var(--fg-rgb) / .035); font-size: 13.5px; color: var(--text-2); transition: border-color .3s, background-color .3s, color .3s; }
.announce:hover { border-color: rgb(var(--orange-rgb) / .5); background: rgb(var(--orange-rgb) / .07); color: var(--text); }
.announce-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: rgb(var(--turq-rgb) / .15); color: var(--turq-2); font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.announce-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce-short { display: none; }
.announce .icon { color: var(--orange); transition: transform .4s var(--ease-out); }
.announce:hover .icon { transform: translateX(3px); }
.hero-title { margin: 0 0 28px; font-size: clamp(40px, 5.7vw, 86px); font-weight: 700; line-height: .98; letter-spacing: -.052em; }
.hero-title .line { display: block; overflow: hidden; padding: .02em 0 .1em; margin-bottom: -.1em; }
.hero-title .word { display: inline-block; translate: 0 108%; animation: wordUp 1.2s var(--ease-out) forwards; animation-delay: calc(var(--i) * 85ms + 120ms); }
.hero-title .word.grad-text { animation: wordUp 1.2s var(--ease-out) calc(var(--i) * 85ms + 120ms) forwards, gradShift 9s ease-in-out 1.5s infinite alternate; }
@keyframes wordUp { to { translate: 0 0; } }
.hero-lead { max-width: 560px; margin-bottom: 36px; color: var(--text-2); font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-3); }
.hero-proof .icon { color: var(--turq-2); width: 17px; height: 17px; }

.hero-visual { position: relative; width: 100%; max-width: 660px; aspect-ratio: 1; justify-self: center; animation: visualIn 1.8s var(--ease-out) .25s both; }
@keyframes visualIn { from { opacity: 0; scale: .9; } }
.globe-stage { position: absolute; inset: 0; }
.globe { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe-stage.is-dragging .globe { cursor: grabbing; }
.geo-label { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0; will-change: transform, opacity; }
.geo-label::before { content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 1px; background: linear-gradient(90deg, rgb(var(--orange-rgb) / .9), rgb(var(--orange-rgb) / .35)); transform-origin: 0 0; transform: rotate(-52deg); }
.geo-text { position: absolute; left: 12px; top: -46px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; font: 500 11.5px/1 var(--mono); letter-spacing: .04em; color: var(--text); background: rgb(var(--bg-rgb) / .78); border: 1px solid rgb(var(--orange-rgb) / .5); box-shadow: 0 10px 24px -10px rgb(var(--shadow-rgb) / calc(.8 * var(--shadow-k))); }

.float { position: absolute; z-index: 2; transform: translate3d(calc(var(--mx, 0) * 16px * var(--depth, 1)), calc(var(--my, 0) * 13px * var(--depth, 1)), 0); animation: floatIn 1.3s var(--ease-out) both; }
@keyframes floatIn { from { opacity: 0; scale: .85; } }
.float-code { left: -9%; top: 1%; animation-delay: 1.05s; }
.float-ai { left: 0%; bottom: 3%; animation-delay: 1.3s; }
.float-launch { right: -4%; top: 56%; animation-delay: 1.55s; }
.float-card { border-radius: 18px; background: rgb(var(--surface-rgb) / .74); border: 1px solid var(--stroke-2); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 30px 60px -24px rgb(var(--shadow-rgb) / calc(.8 * var(--shadow-k))), 0 0 46px -20px rgb(var(--turq-rgb) / .55), inset 0 1px 0 rgba(255, 255, 255, .08); animation: bob 7s ease-in-out infinite; }
.float-code .float-card { animation-delay: -1.5s; }
.float-ai .float-card { animation-delay: -3.5s; }
.float-launch .float-card { animation-delay: -5.5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.fc-code { width: 326px; padding-bottom: 14px; }
.fc-head { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--stroke); }
.fc-head .win-dots i { width: 9px; height: 9px; }
.fc-file { font-size: 11.5px; color: var(--text-3); }
.fc-pre { margin: 0; padding: 12px 16px 0; font-size: 12.3px; line-height: 1.78; color: #d6dee6; overflow: hidden; }
.fc-pre code { display: block; font: inherit; white-space: pre; }
.tl { display: block; overflow: hidden; white-space: pre; width: calc(var(--n) * 1ch); box-sizing: content-box; padding-right: 2px; }
.tl-comment { display: inline-block; vertical-align: top; color: #768597; }
[data-typer].is-typing .tl { width: 0; animation: type calc(var(--n) * 30ms) steps(var(--n), end) var(--d) forwards; }
@keyframes type { 0%, 99.9% { box-shadow: inset -2px 0 0 var(--turq-2); } 100% { width: calc(var(--n) * 1ch); box-shadow: inset -2px 0 0 transparent; } }
[data-typer].is-typing .caret { visibility: hidden; animation: caretOn 0s linear 5.05s forwards, blink 1.05s steps(1) infinite; }
@keyframes caretOn { to { visibility: visible; } }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--turq-2); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fc-pre .k { color: #ffb357; }
.fc-pre .f { color: #6fe0ee; }
.fc-pre .s { color: #ffc48a; }

.fc-ai { width: 276px; padding: 14px; }
.fc-ai-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ai-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--turq-2), var(--teal)); color: #0b0f14; box-shadow: 0 6px 16px -6px rgb(var(--turq2-rgb) / .8); }
.ai-avatar .icon { width: 18px; height: 18px; stroke-width: 2; }
.fc-ai-head strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.fc-ai-head small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.fc-ai-head .live-dot { width: 6px; height: 6px; }
.bubble { width: fit-content; max-width: 92%; margin: 0 0 8px; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.bubble-user { margin-left: auto; background: rgb(var(--orange-rgb) / .15); border: 1px solid rgb(var(--orange-rgb) / .32); border-bottom-right-radius: 5px; animation: aiUser 9s var(--ease-out) infinite; }
.bot-row { display: grid; }
.bot-row > .bubble { grid-area: 1 / 1; margin: 0; align-self: start; }
.bubble-typing, .bubble-bot { background: rgb(var(--fg-rgb) / .06); border: 1px solid var(--stroke); border-bottom-left-radius: 5px; }
.bubble-typing { animation: aiTyping 9s infinite; }
.bubble-bot { animation: aiBot 9s var(--ease-out) infinite; }
@keyframes aiUser { 0%, 3% { opacity: 0; translate: 0 8px; } 8%, 93% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
@keyframes aiTyping { 0%, 13% { opacity: 0; } 16%, 31% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes aiBot { 0%, 33% { opacity: 0; translate: 0 6px; } 38%, 93% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
.typing { display: inline-flex; align-items: center; gap: 4px; padding: 3px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); animation: typingDot 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }

.fc-launch { width: 226px; padding: 16px; }
.fc-launch-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.fc-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.fc-pct { font-size: 20px; font-weight: 700; color: var(--text); counter-reset: pct var(--pct); animation: pct 8s var(--ease-in-out) infinite; }
.fc-pct::after { content: counter(pct) "%"; }
@keyframes pct { 0% { --pct: 0; } 50%, 100% { --pct: 100; } }
.fc-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 9px; }
.fc-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.fc-steps i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--stroke-3); color: transparent; }
.fc-steps i .icon { width: 12px; height: 12px; stroke-width: 2.6; }
.fc-steps li:nth-child(1) i { animation: step0 8s infinite; }
.fc-steps li:nth-child(2) i { animation: step1 8s infinite; }
.fc-steps li:nth-child(3) i { animation: step2 8s infinite; }
@keyframes step0 { 0%, 12% { background: transparent; color: transparent; border-color: var(--stroke-3); } 16%, 94% { background: var(--turq-2); color: #0b0f14; border-color: var(--turq-2); } 100% { background: transparent; color: transparent; } }
@keyframes step1 { 0%, 27% { background: transparent; color: transparent; border-color: var(--stroke-3); } 31%, 94% { background: var(--turq-2); color: #0b0f14; border-color: var(--turq-2); } 100% { background: transparent; color: transparent; } }
@keyframes step2 { 0%, 42% { background: transparent; color: transparent; border-color: var(--stroke-3); } 46%, 94% { background: var(--turq-2); color: #0b0f14; border-color: var(--turq-2); } 100% { background: transparent; color: transparent; } }
.fc-bar { height: 6px; border-radius: 99px; background: rgb(var(--fg-rgb) / .08); overflow: hidden; }
.fc-bar i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; animation: bar 8s var(--ease-in-out) infinite; }
@keyframes bar { 0% { transform: scaleX(0); } 50%, 94% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.fc-ok { display: flex; align-items: center; gap: 8px; margin: 13px 0 0; font-size: 12.5px; font-weight: 600; color: var(--orange); animation: okIn 8s infinite; }
.fc-ok .icon { width: 16px; height: 16px; }
@keyframes okIn { 0%, 50% { opacity: 0; translate: 0 4px; } 55%, 94% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }

.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; }
.hero-origin { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 14px; color: var(--text-3); }
.hero-origin .icon { color: var(--orange); width: 16px; height: 16px; }
.hero-origin strong { color: var(--text); font-weight: 600; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); transition: color .3s; }
.scroll-cue:hover { color: var(--text); }
.mouse { width: 22px; height: 34px; display: flex; justify-content: center; padding-top: 6px; border-radius: 12px; border: 1.5px solid var(--stroke-3); }
.mouse i { width: 3px; height: 7px; border-radius: 2px; background: var(--orange); animation: wheel 1.9s var(--ease-in-out) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(11px); opacity: 0; } }
.hero.is-offscreen *, .hero.is-offscreen *::before, .hero.is-offscreen *::after { animation-play-state: paused !important; }

/* ---------- Cinta ---------- */
.marquee { position: relative; z-index: 1; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--stroke); background: linear-gradient(90deg, rgb(var(--turq-rgb) / .1), rgb(var(--blue-rgb) / .06) 50%, rgb(var(--orange-rgb) / .09)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 38px; padding-right: 38px; flex-shrink: 0; }
.marquee span { font: 600 clamp(22px, 3vw, 40px)/1.1 var(--display); letter-spacing: -.025em; white-space: nowrap; color: var(--text); }
.marquee span.outline { font-family: 'Sora Contorno', var(--display); color: transparent; -webkit-text-stroke: 1px rgb(var(--line-rgb) / .55); }
.marquee i { width: 11px; height: 11px; flex-shrink: 0; border-radius: 2px; background: linear-gradient(135deg, var(--orange), var(--orange-2)); transform: rotate(45deg); box-shadow: 0 0 14px rgb(var(--orange-rgb) / .6); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   TARJETAS (efecto foco y relieve)
   ========================================================= */
.card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); background: linear-gradient(90deg, transparent 6%, rgb(var(--turq2-rgb) / .34) 50%, transparent 94%) top / 100% 1px no-repeat, radial-gradient(120% 70% at 0% 0%, rgb(var(--turq-rgb) / .07), transparent 55%), linear-gradient(180deg, rgb(var(--card-hi-rgb) / .62), rgb(var(--card-lo-rgb) / .62)); border: 1px solid var(--stroke); transition: transform .7s var(--ease-out), border-color .4s; }
.card.is-tilting { transition: transform .15s linear, border-color .4s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(460px circle at var(--x, 50%) var(--y, 0%), rgb(var(--turq2-rgb) / .12), transparent 45%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.card::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; background: radial-gradient(300px circle at var(--x, 50%) var(--y, 0%), rgb(var(--orange-rgb) / .75), rgb(var(--turq2-rgb) / .25) 40%, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s; pointer-events: none; }
.card:hover { border-color: var(--stroke-2); }
.card:hover::before, .card:hover::after { opacity: 1; }

/* ---------- 01 Servicios (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc { display: flex; flex-direction: column; }
.svc-custom { grid-column: span 2; flex-direction: row-reverse; }
.svc-custom .viz { flex: 1.15; border-bottom: 0; border-left: 1px solid var(--stroke); }
.svc-custom .svc-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.svc-ai { grid-row: span 2; }
.svc-body { padding: 26px 28px 28px; }
.svc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.svc-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; color: var(--turq-2); background: linear-gradient(140deg, rgb(var(--turq-rgb) / .24), rgb(var(--blue-rgb) / .12)); border: 1px solid rgb(var(--turq2-rgb) / .3); box-shadow: 0 10px 26px -12px rgb(var(--turq-rgb) / .75); }
.svc-num { font-size: 12.5px; color: var(--text-3); letter-spacing: .1em; }
.svc h3 { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.2; margin-bottom: 12px; }
.svc p { color: var(--text-2); font-size: 15.5px; line-height: 1.7; margin-bottom: 22px; }
.svc-tag { display: inline-flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid var(--stroke); width: 100%; font-size: 13px; font-weight: 500; color: var(--orange); }
.svc-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.svc-ai .svc-icon { color: var(--orange); background: linear-gradient(140deg, rgb(var(--orange-rgb) / .26), rgb(var(--orange-rgb) / .08)); border-color: rgb(var(--orange-rgb) / .34); box-shadow: 0 10px 26px -12px rgb(var(--orange-rgb) / .75); }
.svc-web .svc-icon { color: var(--teal); }

.viz { position: relative; overflow: hidden; height: 240px; border-bottom: 1px solid var(--stroke); background: radial-gradient(120% 90% at 50% 0%, rgb(var(--turq-rgb) / .1), transparent 62%), linear-gradient(180deg, rgb(var(--fg-rgb) / .02), transparent); }
.viz::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgb(var(--line-rgb) / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--line-rgb) / .045) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }

/* Panel administrativo */
.viz-admin { height: auto; min-height: 300px; padding: 22px; display: flex; flex-direction: column; }
.va-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.va-search { flex: 1; height: 24px; border-radius: 8px; background: rgb(var(--fg-rgb) / .05); border: 1px solid var(--stroke); }
.va-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--orange-2)); }
.va-body { position: relative; z-index: 1; flex: 1; display: flex; gap: 12px; min-height: 0; }
.va-side { width: 36px; padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; border-radius: 12px; background: rgb(var(--fg-rgb) / .03); border: 1px solid var(--stroke); }
.va-side i { width: 14px; height: 14px; border-radius: 4px; background: rgb(var(--fg-rgb) / .12); }
.va-side i.on { background: var(--turq-2); box-shadow: 0 0 12px rgb(var(--turq2-rgb) / .7); }
.va-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.va-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.va-kpi { display: grid; gap: 7px; padding: 10px 11px; border-radius: 11px; background: rgb(var(--fg-rgb) / .04); border: 1px solid var(--stroke); }
.va-kpi span { width: 55%; height: 5px; border-radius: 3px; background: rgb(var(--fg-rgb) / .16); }
.va-kpi b { font: 600 15px/1 var(--display); letter-spacing: -.02em; color: var(--text); }
.va-kpi em { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--teal), transparent); }
.va-kpi em.up { background: linear-gradient(90deg, var(--turq-2), transparent); }
.va-chart { position: relative; flex: 1; min-height: 110px; border-radius: 12px; background: rgb(var(--fg-rgb) / .03); border: 1px solid var(--stroke); overflow: hidden; }
.va-chart svg { position: absolute; left: 10px; right: 10px; top: 12px; bottom: 8px; width: calc(100% - 20px); height: calc(100% - 20px); overflow: visible; }
.va-line { stroke: var(--turq-2); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgb(var(--turq2-rgb) / .6)); }
.va-area { opacity: 0; }
.va-bars { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 62%; display: flex; align-items: flex-end; gap: 5%; opacity: .55; }
.va-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, rgb(var(--turq-rgb) / .55), rgb(var(--turq-rgb) / .04)); transform-origin: 50% 100%; transform: scaleY(0); }
.is-in .va-line { animation: drawLine 2.4s var(--ease-out) .35s forwards; }
.is-in .va-area { animation: fadeIn 1.4s ease 1.2s forwards; }
.is-in .va-bars i { animation: grow 1.1s var(--ease-out) forwards; }
.is-playing .va-bars i { animation: grow 1.1s var(--ease-out) forwards, breathe 3.6s ease-in-out 1.4s infinite alternate; }
.va-bars i:nth-child(2) { animation-delay: 60ms; } .va-bars i:nth-child(3) { animation-delay: 120ms; } .va-bars i:nth-child(4) { animation-delay: 180ms; } .va-bars i:nth-child(5) { animation-delay: 240ms; }
.va-bars i:nth-child(6) { animation-delay: 300ms; } .va-bars i:nth-child(7) { animation-delay: 360ms; } .va-bars i:nth-child(8) { animation-delay: 420ms; } .va-bars i:nth-child(9) { animation-delay: 480ms; } .va-bars i:nth-child(10) { animation-delay: 540ms; }
.is-playing .va-bars i:nth-child(odd) { animation-delay: 0ms, 1.6s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes grow { to { transform: scaleY(1); } }
@keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(.72); } }

/* IA */
.viz-ai { height: 400px; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 26px 22px 20px; background: radial-gradient(90% 70% at 50% 18%, rgb(var(--orange-rgb) / .12), transparent 60%), radial-gradient(120% 90% at 50% 0%, rgb(var(--turq2-rgb) / .1), transparent 62%); }
.ai-core { position: relative; z-index: 1; width: 132px; height: 132px; flex-shrink: 0; display: grid; place-items: center; }
.ai-core .ring { position: absolute; border-radius: 50%; border: 1px solid rgb(var(--turq2-rgb) / .28); }
.ai-core .r1 { inset: 0; border-style: dashed; animation: spin 22s linear infinite; }
.ai-core .r2 { inset: 17px; border-color: rgb(var(--turq-rgb) / .3); border-top-color: var(--teal); animation: spin 11s linear infinite reverse; }
.ai-core .r3 { inset: 34px; border-color: rgb(var(--orange-rgb) / .28); border-left-color: var(--orange); animation: spin 7s linear infinite; }
.ai-core .core { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #0b0f14; background: radial-gradient(circle at 35% 30%, #c6f6fa, #6ee3ec 45%, #0a97a6); box-shadow: 0 0 30px rgb(var(--turq2-rgb) / .6), 0 0 90px rgb(var(--turq-rgb) / .35); animation: corePulse 3.2s ease-in-out infinite; }
.ai-core .core .icon { width: 22px; height: 22px; stroke-width: 2; }
.ai-core .sat { position: absolute; inset: 0; animation: spin 6s linear infinite; }
.ai-core .sat::before { content: ""; position: absolute; top: -4px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 14px var(--orange); }
.ai-core .s2 { inset: 17px; animation-duration: 9s; animation-direction: reverse; }
.ai-core .s2::before { background: var(--teal); box-shadow: 0 0 12px var(--teal); width: 7px; height: 7px; top: -3.5px; margin-left: -3.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes corePulse { 50% { transform: scale(1.08); box-shadow: 0 0 40px rgb(var(--turq2-rgb) / .75), 0 0 110px rgb(var(--turq-rgb) / .45); } }
.ai-chat { position: relative; z-index: 1; width: 100%; display: grid; gap: 8px; }
.m { width: fit-content; max-width: 94%; margin: 0; padding: 9px 12px; border-radius: 13px; font-size: 12.8px; line-height: 1.45; }
.m-user { justify-self: end; background: rgb(var(--orange-rgb) / .14); border: 1px solid rgb(var(--orange-rgb) / .3); border-bottom-right-radius: 4px; }
.m-row { display: grid; }
.m-row > .m { grid-area: 1 / 1; align-self: start; }
.m-ai, .m-typing { background: rgb(var(--fg-rgb) / .055); border: 1px solid var(--stroke); border-bottom-left-radius: 4px; color: var(--text-2); }
.m-ai strong { color: var(--turq-2); font-weight: 600; }
.m-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.m-actions span { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--stroke-2); font-size: 11px; color: var(--text-2); }
.m-actions span:first-child { border-color: rgb(var(--turq2-rgb) / .45); color: var(--turq-2); }
.viz-ai .m-user, .viz-ai .m-ai, .viz-ai .m-typing, .viz-ai .m-actions { opacity: 0; }
.is-playing .m-user { animation: aiUser 10s var(--ease-out) infinite; }
.is-playing .m-typing { animation: aiTyping 10s infinite; }
.is-playing .m-ai { animation: aiBot 10s var(--ease-out) infinite; }
.is-playing .m-actions { animation: aiActions 10s var(--ease-out) infinite; }
@keyframes aiActions { 0%, 44% { opacity: 0; translate: 0 6px; } 50%, 93% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }

/* Web */
.viz-web { padding: 20px 20px 0; container-type: size; }
.vw-bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 13px 13px 0 0; background: rgb(var(--fg-rgb) / .055); border: 1px solid var(--stroke); border-bottom: 0; }
.vw-bar .win-dots i { width: 8px; height: 8px; }
.vw-url { flex: 1; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 7px; background: rgb(var(--shadow-rgb) / calc(.28 * var(--shadow-k))); font-size: 11px; color: var(--text-2); overflow: hidden; }
.vw-url .icon { width: 11px; height: 11px; color: var(--turq-2); }
.vw-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 14ch; border-right: 1.5px solid var(--turq-2); }
.is-playing .vw-type { animation: typeUrl 9s steps(14) infinite, blink 1s steps(1) infinite; }
@keyframes typeUrl { 0% { width: 0; } 16%, 100% { width: 14ch; } }
.vw-page { position: relative; z-index: 1; height: 200px; display: grid; gap: 10px; align-content: start; padding: 12px; border: 1px solid var(--stroke); border-top: 0; background: rgb(var(--fg-rgb) / .02); }
.vw-nav { display: flex; align-items: center; gap: 8px; }
.vw-nav i { width: 18px; height: 18px; border-radius: 6px; background: var(--grad); }
.vw-nav span { width: 30px; height: 5px; border-radius: 3px; background: rgb(var(--fg-rgb) / .16); }
.vw-nav span:first-of-type { margin-left: auto; }
.vw-hero { display: grid; gap: 8px; padding: 12px; border-radius: 11px; background: linear-gradient(120deg, rgb(var(--turq-rgb) / .2), rgb(var(--turq-rgb) / .08)); }
.vw-hero .l1 { width: 72%; height: 9px; border-radius: 4px; background: rgb(var(--fg-rgb) / .6); }
.vw-hero .l2 { width: 46%; height: 6px; border-radius: 3px; background: rgb(var(--fg-rgb) / .22); }
.vw-btn { width: 70px; height: 20px; margin-top: 4px; border-radius: 99px; background: var(--orange); box-shadow: 0 6px 14px -6px rgba(255, 140, 40, .8); }
.vw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vw-cards i { height: 46px; border-radius: 9px; background: rgb(var(--fg-rgb) / .06); border: 1px solid var(--stroke); }
.is-playing .vw-nav { animation: build1 9s var(--ease-out) infinite; }
.is-playing .vw-hero { animation: build2 9s var(--ease-out) infinite; }
.is-playing .vw-cards i { animation: build3 9s var(--ease-out) infinite; }
.is-playing .vw-cards i:nth-child(2) { animation-name: build4; }
.is-playing .vw-cards i:nth-child(3) { animation-name: build5; }
.is-playing .vw-btn { animation: btnPress 9s ease infinite; }
@keyframes build1 { 0%, 17% { opacity: 0; translate: 0 8px; } 22%, 95% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
@keyframes build2 { 0%, 22% { opacity: 0; translate: 0 10px; } 28%, 95% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
@keyframes build3 { 0%, 29% { opacity: 0; scale: .9; } 34%, 95% { opacity: 1; scale: 1; } 100% { opacity: 0; } }
@keyframes build4 { 0%, 32% { opacity: 0; scale: .9; } 37%, 95% { opacity: 1; scale: 1; } 100% { opacity: 0; } }
@keyframes build5 { 0%, 35% { opacity: 0; scale: .9; } 40%, 95% { opacity: 1; scale: 1; } 100% { opacity: 0; } }
@keyframes btnPress { 0%, 60% { transform: scale(1); } 63% { transform: scale(.88); box-shadow: 0 0 0 0 rgb(var(--orange-rgb) / .7); } 70% { transform: scale(1); box-shadow: 0 0 0 12px rgb(var(--orange-rgb) / 0); } 100% { transform: scale(1); } }
.vw-cursor { position: absolute; z-index: 2; left: 17%; top: 49%; width: 18px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M2 1.5v16l4.3-4 2.8 6.4 2.7-1.2-2.8-6.3 6-.3Z' fill='%23fff' stroke='%23051510' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; filter: drop-shadow(0 3px 6px rgb(var(--shadow-rgb) / calc(.5 * var(--shadow-k)))); opacity: 0; }
.is-playing .vw-cursor { animation: cursorMove 9s var(--ease-in-out) infinite; }
@keyframes cursorMove { 0%, 40% { opacity: 0; translate: 61cqw 43cqh; } 44% { opacity: 1; translate: 61cqw 43cqh; } 58% { translate: 0 0; scale: 1; } 61% { scale: .85; } 64% { scale: 1; translate: 0 0; } 90% { opacity: 1; } 96%, 100% { opacity: 0; translate: 0 0; } }

/* Aplicaciones */
.viz-app { display: flex; align-items: flex-end; justify-content: center; padding-top: 22px; }
.phone { position: relative; z-index: 1; width: 196px; height: 218px; padding: 40px 11px 0; display: grid; align-content: start; gap: 8px; border-radius: 32px 32px 0 0; border: 1px solid var(--stroke-3); border-bottom: 0; background: linear-gradient(180deg, rgba(26, 35, 46, .95), rgba(14, 18, 24, .95)); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .025), 0 -10px 40px -10px rgb(var(--turq-rgb) / .25); }
.phone-island { position: absolute; top: 11px; left: 50%; width: 60px; height: 17px; margin-left: -30px; border-radius: 10px; background: #000; }
.phone-time { position: absolute; top: 12px; left: 20px; font-size: 10px; font-weight: 600; color: var(--text-2); }
.notif { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 14px; background: rgb(var(--fg-rgb) / .075); border: 1px solid var(--stroke); opacity: 0; }
.notif b { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--text); }
.notif small { display: block; font-size: 10.5px; color: var(--text-3); }
.ic { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; flex-shrink: 0; font-size: 15px; }
.ic-green { background: rgb(var(--turq-rgb) / .2); color: var(--turq-2); }
.ic-orange { background: rgb(var(--orange-rgb) / .2); color: var(--orange); }
.ic-teal { background: rgb(var(--turq-rgb) / .2); color: var(--teal); }
.is-playing .notif { animation: notif 9s var(--ease-out) infinite; }
.is-playing .n2 { animation-delay: 1.1s; }
.is-playing .n3 { animation-delay: 2.2s; }
@keyframes notif { 0% { opacity: 0; translate: 0 -14px; scale: .95; } 7%, 78% { opacity: 1; translate: 0 0; scale: 1; } 86%, 100% { opacity: 0; translate: 0 8px; scale: .98; } }

/* =========================================================
   02 PORTAFOLIO
   ========================================================= */
.portfolio { padding-top: clamp(60px, 7vw, 100px); }
.portfolio-glow { position: absolute; z-index: -1; left: 50%; top: 380px; width: min(1200px, 120vw); height: 900px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(var(--turq-rgb) / .2), rgb(var(--blue-rgb) / .06) 55%, transparent); pointer-events: none; }
.portfolio-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1180px; margin: 30px auto 0; padding: 22px 26px; border-radius: 20px; background: rgb(var(--fg-rgb) / .035); border: 1px solid var(--stroke); }
.portfolio-cta p { margin: 0; color: var(--text-2); font-size: 16px; }
.portfolio-cta strong { color: var(--text); font-weight: 600; }

/* =========================================================
   02 PORTAFOLIO · CUARTICO, EL PRODUCTO ESTRELLA
   Colores propios de Cuartico (esmeralda y naranja) dentro de la web de NOVASYSTEMS.
   ========================================================= */
.star {
  --c-green: #2fae74; --c-green-2: #1f9d63; --c-mint: #5be3a6; --c-deep: #04261c; --c-orange: #ff9d42;
  --c-rgb: 47 174 116; --c-mint-rgb: 91 227 166;
  --star-bg-1: #06231b; --star-bg-2: #040c10;
  --star-text: #ecfbf3; --star-text-2: #a9cbbc; --star-line: rgb(var(--c-mint-rgb) / .16);
  --wa-bg: #0b141a; --wa-head: #1f2c34; --wa-ink: #e9edef; --wa-muted: #8696a0; --wa-user: #005c4b; --wa-bot: #202c33; --wa-input: #2a3942; --wa-day: #182229; --wa-accent: #00a884;
  --pad-x: clamp(22px, 4vw, 56px);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 64px);
  max-width: 1180px; margin: 0 auto clamp(60px, 7vw, 96px); padding: clamp(28px, 4.4vw, 60px) var(--pad-x) 0;
  border-radius: 34px; color: var(--star-text);
  background: radial-gradient(60% 55% at 82% 26%, rgb(var(--c-rgb) / .34), transparent 68%), radial-gradient(45% 50% at 0% 100%, rgb(var(--orange-rgb) / .14), transparent 70%), radial-gradient(40% 40% at 30% 0%, rgb(var(--turq-rgb) / .1), transparent 70%), linear-gradient(160deg, var(--star-bg-1), var(--star-bg-2));
  box-shadow: 0 70px 130px -55px rgb(var(--shadow-rgb) / calc(.95 * var(--shadow-k))), 0 0 140px -50px rgb(var(--c-rgb) / .55);
}
.star::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--angle), rgb(var(--c-mint-rgb) / .12), rgb(var(--c-mint-rgb) / .9) 16%, rgb(var(--c-rgb) / .18) 34%, rgb(255 157 66 / .95) 56%, rgb(var(--c-mint-rgb) / .12) 78%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.star.is-playing::before { animation: spinAngle 10s linear infinite; }
.star-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.star-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(var(--c-mint-rgb) / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--c-mint-rgb) / .07) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 55% 70% at 76% 42%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 55% 70% at 76% 42%, #000 10%, transparent 75%); }
.star-orbit { position: absolute; left: 75%; top: 44%; border-radius: 50%; border: 1px dashed rgb(var(--c-mint-rgb) / .22); translate: -50% -50%; }
.star.is-playing .star-orbit { animation: spin 46s linear infinite; }
.so-1 { width: 500px; height: 500px; }
.so-2 { width: 690px; height: 690px; border-style: solid !important; border-color: rgb(var(--c-mint-rgb) / .1) !important; }
.star.is-playing .so-2 { animation-duration: 70s; animation-direction: reverse; }
.so-3 { width: 880px; height: 880px; border-style: solid !important; border-color: rgb(255 157 66 / .13) !important; }
.star.is-playing .so-3 { animation-duration: 100s; }
.star-orbit::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--c-mint); box-shadow: 0 0 16px 2px rgb(var(--c-mint-rgb) / .9); }
.so-2::before { top: auto; bottom: -3px; width: 6px; height: 6px; margin-left: -3px; }
.so-3::before { background: var(--c-orange); box-shadow: 0 0 16px 2px rgb(255 157 66 / .85); }

.star-copy { position: relative; z-index: 1; align-self: center; padding-bottom: clamp(24px, 4vw, 52px); }
.star-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.star-badge { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px; border-radius: 99px; background: linear-gradient(135deg, #ffbf66, #ff8a1f); color: #1c1206; font: 700 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 10px 28px -10px rgb(255 140 40 / .85), inset 0 1px 0 rgb(255 255 255 / .5); }
.star-badge .icon { width: 15px; height: 15px; fill: currentColor; stroke-width: 1.2; }
.star-badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .7) 50%, transparent 70%); transform: translateX(-130%); }
.star.is-playing .star-badge::after { animation: shine 4.2s var(--ease-in-out) 1s infinite; }
@keyframes shine { 55%, 100% { transform: translateX(130%); } }
.star-live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; border: 1px solid rgb(var(--c-mint-rgb) / .38); background: rgb(var(--c-mint-rgb) / .07); color: var(--c-mint); font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.star-live .live-dot { background: var(--c-mint); }
.star-logo { margin: 0 0 20px; }
.star-logo img { height: clamp(46px, 4.6vw, 60px); width: auto; }
.star-title { margin: 0 0 16px; font-size: clamp(29px, 3.3vw, 46px); font-weight: 700; line-height: 1.06; letter-spacing: -.04em; color: var(--star-text); }
.star-title span { display: block; padding-bottom: .06em; background: linear-gradient(95deg, #7cf2bd, var(--c-mint) 30%, #c9f7de 55%, var(--c-orange) 88%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.star.is-playing .star-title span { animation: gradShift 8s ease-in-out infinite alternate; }
.star-lead { max-width: 530px; margin: 0 0 26px; color: var(--star-text-2); font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.72; }
.star-features { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.star-features li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; line-height: 1.35; color: var(--star-text); }
.star-features .icon { width: 32px; height: 32px; padding: 7px; flex-shrink: 0; border-radius: 10px; color: var(--c-mint); background: linear-gradient(140deg, rgb(var(--c-rgb) / .3), rgb(var(--c-rgb) / .08)); border: 1px solid rgb(var(--c-mint-rgb) / .26); box-shadow: 0 8px 20px -10px rgb(var(--c-rgb) / .9); }
.star-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.btn-star { background: linear-gradient(180deg, #4bdc97, #23a567); color: #03241a; box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 14px 34px -12px rgb(var(--c-rgb) / .95), 0 0 0 1px rgb(var(--c-mint-rgb) / .5); }
.btn-star::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 25%, rgb(255 255 255 / .6) 48%, transparent 62%); transform: translateX(-130%); transition: transform .9s var(--ease-out); }
.btn-star:hover::before { transform: translateX(130%); }
.btn-star:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), 0 20px 44px -12px rgb(var(--c-rgb) / 1), 0 0 0 1px rgb(var(--c-mint-rgb) / .8); }
.star .btn-ghost { color: var(--star-text); border-color: rgb(var(--c-mint-rgb) / .32); background: rgb(var(--c-mint-rgb) / .06); }
.star .btn-ghost:hover { border-color: rgb(var(--c-mint-rgb) / .6); background: rgb(var(--c-mint-rgb) / .12); }
.star .btn-ghost .icon { color: var(--c-mint); }
.star-fine { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--star-text-2); }
.star-fine li { display: inline-flex; align-items: center; gap: 8px; }
.star-fine li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c-mint); box-shadow: 0 0 8px var(--c-mint); }
.star :focus-visible { outline-color: var(--c-orange); }

/* Teléfono con la demo de WhatsApp */
.star-visual { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.star-stage { position: relative; width: 300px; height: 600px; perspective: 1400px; }
.wa-phone { position: absolute; inset: 0; padding: 10px; border-radius: 48px; background: linear-gradient(150deg, #34404d, #0b0f14 50%, #1b232c); box-shadow: 0 60px 110px -40px rgb(0 0 0 / .85), 0 0 0 1px rgb(0 0 0 / .6), inset 0 0 0 1.5px rgb(255 255 255 / .16), 0 0 90px -20px rgb(var(--c-rgb) / .55); transform: rotateY(calc(var(--ry, 0) * 1deg)) rotateX(calc(var(--rx, 0) * 1deg)); transition: transform .8s var(--ease-out); transform-style: preserve-3d; }
.wa-island { position: absolute; z-index: 3; top: 21px; left: 50%; width: 90px; height: 26px; margin-left: -45px; border-radius: 20px; background: #000; }
.wa-screen { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 38px; background: var(--wa-bg); color: var(--wa-ink); font-family: var(--font); }
.wa-status { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 12px 26px 0 32px; background: var(--wa-head); font: 600 13px/1 var(--font); color: var(--wa-ink); }
.wa-sig { display: inline-flex; align-items: flex-end; gap: 2px; }
.wa-sig i { width: 3px; border-radius: 1px; background: currentColor; }
.wa-sig i:nth-child(1) { height: 5px; } .wa-sig i:nth-child(2) { height: 7px; } .wa-sig i:nth-child(3) { height: 9px; }
.wa-sig b { position: relative; width: 21px; height: 10px; margin-left: 6px; border-radius: 3px; border: 1.3px solid currentColor; }
.wa-sig b::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; border-radius: 1px; background: currentColor; }
.wa-head { display: flex; align-items: center; gap: 9px; padding: 8px 12px 10px 8px; background: var(--wa-head); border-bottom: 1px solid rgb(0 0 0 / .08); }
.wa-back { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--wa-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wa-avatar { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.wa-avatar img { width: 21px; height: auto; }
.wa-who { min-width: 0; line-height: 1.25; }
.wa-who b { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--wa-ink); }
.wa-who small { display: block; font-size: 11.5px; color: var(--wa-accent); }
.wa-verified { width: 15px; height: 15px; flex-shrink: 0; }
.wa-verified path:first-child { fill: #25d366; }
.wa-verified .ok { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wa-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px 10px 12px; overflow: hidden; background-color: var(--wa-bg); background-image: radial-gradient(rgb(var(--c-mint-rgb) / .07) 1px, transparent 1.4px); background-size: 16px 16px; }
.wa-day { align-self: center; margin-bottom: 2px; padding: 4px 10px; border-radius: 8px; background: var(--wa-day); color: var(--wa-muted); font-size: 11px; box-shadow: 0 1px .5px rgb(0 0 0 / .12); }
.bub { position: relative; flex-shrink: 0; max-width: 86%; padding: 6px 9px 7px 10px; border-radius: 10px; font-size: 12.6px; line-height: 1.42; color: var(--wa-ink); box-shadow: 0 1px .5px rgb(0 0 0 / .14); overflow-wrap: anywhere; animation: bubIn .5s var(--ease-out) both; }
.bub.user { align-self: flex-end; background: var(--wa-user); border-top-right-radius: 3px; }
.bub.bot { align-self: flex-start; background: var(--wa-bot); border-top-left-radius: 3px; }
.bub b { font-weight: 700; }
.bub .rule { display: inline-block; max-width: 100%; overflow: hidden; vertical-align: middle; font-size: 9px; letter-spacing: -1px; white-space: nowrap; color: var(--wa-muted); opacity: .7; }
.bub .bar { font-size: 10px; letter-spacing: -1px; }
.bub .warn { display: inline-block; margin-top: 3px; font-weight: 600; color: #e67e22; }
.bub s { opacity: .6; }
.bub .t { float: right; position: relative; top: 5px; margin-left: 10px; font-size: 10px; line-height: 1.4; white-space: nowrap; color: var(--wa-muted); }
.bub .tick { font-style: normal; letter-spacing: -2.5px; color: #53bdeb; }
.bub .typing { display: inline-flex; gap: 4px; padding: 5px 3px; }
.bub .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--wa-muted); animation: typingDot 1.2s ease-in-out infinite; }
.bub .typing i:nth-child(2) { animation-delay: .15s; }
.bub .typing i:nth-child(3) { animation-delay: .3s; }
.receipt { width: 150px; margin-bottom: 4px; padding: 10px 11px; border-radius: 6px; background: #fdfdfb; color: #2c2c2c; font: 600 9px/1.3 var(--mono); letter-spacing: .04em; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.receipt i { display: block; height: 4px; margin-top: 5px; border-radius: 2px; background: #d9d9d4; }
.receipt i.m { width: 70%; } .receipt i.s { width: 45%; }
.receipt .tot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 6px; border-top: 1px dashed #bbb; font-size: 10px; }
@keyframes bubIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.wa-input { display: flex; align-items: center; gap: 7px; padding: 7px 9px 18px; background: var(--wa-head); }
.wa-box { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; padding: 0 14px; border-radius: 20px; background: var(--wa-input); color: var(--wa-muted); font-size: 13px; white-space: nowrap; overflow: hidden; }
.wa-box.on { color: var(--wa-ink); }
.wa-box.on::after { content: ""; flex-shrink: 0; width: 1.5px; height: 16px; margin-left: 1px; background: var(--wa-accent); animation: blink 1s steps(1) infinite; }
.wa-mic { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--wa-accent); }
.wa-mic svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Tarjetas flotantes alrededor del teléfono */
.star-float { position: absolute; z-index: 4; padding: 13px 15px; border-radius: 18px; color: var(--star-text); background: linear-gradient(160deg, rgb(255 255 255 / .16), rgb(255 255 255 / .05)); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16), 0 28px 54px -22px rgb(0 0 0 / .75); transform: translate3d(calc(var(--mx, 0) * 18px * var(--depth, 1)), calc(var(--my, 0) * 14px * var(--depth, 1)), 0); transition: transform .9s var(--ease-out); }
.star.is-playing .star-float { animation: bob 7s ease-in-out infinite; }
.sf-libre { top: 54px; right: -138px; width: 196px; animation-delay: -1.2s !important; }
.sf-libre > small { display: block; font: 600 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--star-text-2); }
.sf-libre strong { display: block; margin: 6px 0 9px; font: 800 25px/1 var(--display); letter-spacing: -.03em; color: var(--star-text); font-variant-numeric: tabular-nums; }
.sf-bar { display: block; height: 7px; overflow: hidden; border-radius: 99px; background: rgb(255 255 255 / .14); }
.sf-bar i { display: block; width: 64%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c-mint), var(--c-green)); box-shadow: 0 0 12px rgb(var(--c-mint-rgb) / .8); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.3s var(--ease-out) .5s; }
.star.is-lit .sf-bar i { transform: none; }
.sf-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 11.5px; color: var(--star-text-2); }
.sf-voz { top: 150px; left: -150px; display: flex; align-items: center; gap: 11px; animation-delay: -3.4s !important; }
.sf-tile { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--c-mint), var(--c-green)); color: var(--c-deep); box-shadow: 0 8px 20px -8px rgb(var(--c-rgb) / .9); }
.sf-tile .icon { width: 19px; height: 19px; stroke-width: 2.1; }
.sf-voz b, .sf-meta b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.sf-voz small, .sf-meta small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--star-text-2); }
.sf-ok { width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--c-mint); color: var(--c-deep); }
.sf-ok .icon { width: 13px; height: 13px; stroke-width: 3; }
.sf-meta { bottom: 148px; right: -132px; display: flex; align-items: center; gap: 12px; animation-delay: -5.2s !important; }
.sf-ring { width: 46px; height: 46px; flex-shrink: 0; transform: rotate(-90deg); }
.sf-ring circle { fill: none; stroke-width: 5; }
.sf-ring .bg { stroke: rgb(255 255 255 / .16); }
.sf-ring .fg { stroke: var(--c-orange); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease-out) .7s; filter: drop-shadow(0 0 4px rgb(255 157 66 / .7)); }
.star.is-lit .sf-ring .fg { stroke-dashoffset: 84; }
.star-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 26px 0 30px; }
.star-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--star-text-2); background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.star-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-orange); box-shadow: 0 0 8px var(--c-orange); }
.star-scenes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.star-scenes:empty { display: none; }
.star-scenes span { padding: 5px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 500; color: var(--star-text-2); border: 1px solid rgb(var(--c-mint-rgb) / .18); transition: color .35s, background-color .35s, border-color .35s, box-shadow .35s; }
.star-scenes span.on { color: var(--c-deep); background: var(--c-mint); border-color: var(--c-mint); box-shadow: 0 0 18px -4px rgb(var(--c-mint-rgb) / .9); }

/* Cinta de mensajes de ejemplo */
.star-ticker { grid-column: 1 / -1; display: grid; gap: 10px; margin: 0 calc(-1 * var(--pad-x)); padding: 20px 0 24px; overflow: hidden; border-top: 1px solid rgb(var(--c-mint-rgb) / .14); background: rgb(0 0 0 / .14); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.star-ticker-track { display: flex; gap: 10px; width: max-content; }
.star.is-playing .star-ticker-track { animation: marquee 64s linear infinite; }
.star.is-playing .is-reverse .star-ticker-track { animation-direction: reverse; animation-duration: 74s; }
.star-ticker span { flex-shrink: 0; padding: 8px 15px; border-radius: 14px 14px 14px 4px; font-size: 13.5px; white-space: nowrap; color: var(--star-text); background: rgb(var(--c-mint-rgb) / .07); border: 1px solid rgb(var(--c-mint-rgb) / .15); }
.star-ticker .is-reverse span { border-radius: 14px 14px 4px 14px; background: rgb(255 157 66 / .07); border-color: rgb(255 157 66 / .16); }
.star-ticker span::before { content: "«"; margin-right: 2px; color: var(--c-mint); }
.star-ticker span::after { content: "»"; margin-left: 2px; color: var(--c-mint); }
.star-ticker .is-reverse span::before, .star-ticker .is-reverse span::after { color: var(--c-orange); }

/* =========================================================
   03 PRODUCTOS
   ========================================================= */
.products { overflow: hidden; background: radial-gradient(70% 60% at 80% 35%, rgb(var(--turq-rgb) / .18), transparent 65%), radial-gradient(40% 40% at 10% 80%, rgb(var(--blue-rgb) / .1), transparent 70%), linear-gradient(180deg, transparent, rgb(var(--band-rgb) / .55) 25%, rgb(var(--band-rgb) / .55) 75%, transparent); }
.products-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orbit-line { position: absolute; border-radius: 50%; border: 1px solid rgb(var(--turq2-rgb) / .09); }
.orbit-line.o1 { width: 1300px; height: 520px; right: -420px; top: 90px; transform: rotate(-16deg); }
.orbit-line.o2 { width: 900px; height: 340px; right: -180px; top: 220px; transform: rotate(-16deg); border-color: rgb(var(--orange-rgb) / .1); }
.products-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 84px); align-items: center; }
.products-copy h2 { font-size: clamp(36px, 3.9vw, 56px); letter-spacing: -.04em; line-height: 1.04; }
.check-list { list-style: none; margin: 28px 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.check-list li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px 8px 11px; border-radius: 99px; background: rgb(var(--fg-rgb) / .04); border: 1px solid var(--stroke); font-size: 14px; color: var(--text-2); }
.check-list .icon { color: var(--turq-2); width: 16px; height: 16px; stroke-width: 2.2; }
.showcase { position: relative; perspective: 1700px; }
.showcase-inner { position: relative; padding: 18px 44px 64px 0; transform-style: preserve-3d; transform: rotateX(calc(var(--sp, 0) * 18deg)) rotateY(calc(var(--sp, 0) * -12deg)) scale(calc(1 - var(--sp, 0) * .06)); transform-origin: 50% 60%; }
.device-browser { margin: 0; overflow: hidden; border-radius: 16px; background: var(--device-bg); border: 1px solid var(--stroke-2); box-shadow: 0 60px 110px -35px rgb(var(--shadow-rgb) / calc(.9 * var(--shadow-k))), 0 0 90px -30px rgb(var(--turq2-rgb) / .35); }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; background: var(--device-bar); border-bottom: 1px solid var(--stroke); }
.browser-bar .win-dots i { width: 9px; height: 9px; }
.browser-url { flex: 1; max-width: 360px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 7px; height: 26px; padding: 0 12px; border-radius: 8px; background: rgb(var(--fg-rgb) / .06); font: 500 11.5px/1 var(--mono); color: var(--text-2); white-space: nowrap; overflow: hidden; }
.browser-url .icon { width: 12px; height: 12px; color: var(--turq-2); }
.device-browser img { width: 100%; height: auto; }
.device-phone { position: absolute; right: 0; bottom: 0; width: 29%; margin: 0; transform: translateZ(70px); }
.phone-frame { position: relative; padding: 7px; border-radius: 34px; background: linear-gradient(150deg, #2a3644, #0e1318 60%); box-shadow: 0 40px 80px -20px rgb(var(--shadow-rgb) / calc(.95 * var(--shadow-k))), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.phone-frame img { width: 100%; height: auto; padding-top: 24px; border-radius: 28px; background: #fff; aspect-ratio: 585 / 1290; object-fit: cover; object-position: top; }
.phone-frame .phone-island { top: 13px; width: 30%; margin-left: -15%; height: 12px; z-index: 1; }
.showcase-badge { position: absolute; top: 0; left: 26px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgb(var(--bg-rgb) / .86); border: 1px solid rgb(var(--turq2-rgb) / .45); font: 600 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--turq-2); transform: translateZ(40px); box-shadow: 0 10px 30px -10px rgb(var(--shadow-rgb) / calc(.8 * var(--shadow-k))); }
.showcase-chip { position: absolute; left: -22px; bottom: 96px; display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border-radius: 14px; background: linear-gradient(180deg, #ffb45a, #ff9433); color: var(--orange-ink); font-size: 14px; font-weight: 700; transform: translateZ(90px); box-shadow: 0 22px 44px -14px rgba(255, 140, 40, .7); animation: bob 6s ease-in-out infinite; }
.showcase-chip .icon { width: 18px; height: 18px; stroke-width: 2; }
.models { margin-top: clamp(70px, 9vw, 120px); }
.models-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 26px; }
.soon-badge { padding: 7px 12px; border-radius: 8px; background: rgb(var(--orange-rgb) / .12); border: 1px solid rgb(var(--orange-rgb) / .35); color: var(--orange); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.models-title { margin: 0; font: 600 clamp(21px, 2.3vw, 29px)/1.25 var(--display); letter-spacing: -.02em; }
.models-title span { color: var(--text-3); }
.models-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.model-card { padding: 28px; border-radius: 20px; }
.model-card > span { font-size: 12.5px; letter-spacing: .1em; color: var(--orange); }
.model-card h3 { font-size: 20px; margin: 16px 0 8px; }
.model-card p { margin: 0; font-size: 15px; color: var(--text-2); }
.models-note { margin: 22px 0 0; font-size: 13.5px; color: var(--text-3); }

/* =========================================================
   04 PROCESO
   ========================================================= */
.timeline { position: relative; }
.timeline-track { position: absolute; left: 29px; right: calc((100% - 84px) / 4 - 29px); top: 28px; height: 2px; border-radius: 2px; background: var(--stroke-2); overflow: hidden; }
.timeline-track i { display: block; width: 100%; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--tp, 0)); box-shadow: 0 0 14px rgb(var(--turq2-rgb) / .7); }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.step-node { position: relative; z-index: 1; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; font-size: 23px; color: var(--text-3); background: var(--bg-1); border: 1px solid var(--stroke-2); transition: color .6s var(--ease-out), background .6s var(--ease-out), border-color .6s, box-shadow .6s var(--ease-out), transform .6s var(--ease-out); }
.step.is-active .step-node { color: var(--orange-ink); background: linear-gradient(135deg, #ffbd6a, #ff8a1c); border-color: transparent; box-shadow: 0 0 0 7px rgb(var(--orange-rgb) / .12), 0 14px 34px -10px rgba(255, 140, 40, .75); transform: translateY(-3px); }
.step-num { display: block; margin: 28px 0 10px; font-size: 12.5px; letter-spacing: .14em; color: var(--orange); }
.step h3 { font-size: 22px; margin-bottom: 12px; }
.step p { color: var(--text-2); font-size: 15.5px; margin-bottom: 18px; }
.step-chip { display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 99px; border: 1px dashed var(--stroke-3); font-size: 12.5px; color: var(--text-3); transition: color .5s, border-color .5s, background .5s; }
.step.is-active .step-chip { border-style: solid; border-color: rgb(var(--turq2-rgb) / .45); background: rgb(var(--turq-rgb) / .08); color: var(--turq-2); }

/* =========================================================
   05 COMPROMISO
   ========================================================= */
.commit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.commit { padding: 28px; }
.commit-lead { grid-column: span 2; grid-row: span 2; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.commit-lead .viz { height: auto; border-bottom: 0; border-right: 1px solid var(--stroke); }
.commit-lead .commit-body { padding: clamp(28px, 3.4vw, 46px); display: flex; flex-direction: column; justify-content: center; }
.commit-lead p { font-size: 16.5px; }
.commit-lead h3 { font-size: clamp(24px, 2.3vw, 30px); }
.commit-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 14px; font-size: 22px; color: var(--turq-2); background: linear-gradient(140deg, rgb(var(--turq-rgb) / .24), rgb(var(--blue-rgb) / .12)); border: 1px solid rgb(var(--turq2-rgb) / .3); box-shadow: 0 10px 26px -12px rgb(var(--turq-rgb) / .75); }
.commit h3 { font-size: 20px; line-height: 1.22; margin-bottom: 10px; }
.commit p { margin: 0; color: var(--text-2); font-size: 15.3px; line-height: 1.68; }
.viz-doc { display: grid; place-items: center; padding: 30px; min-height: 340px; background: radial-gradient(80% 70% at 50% 40%, rgb(var(--orange-rgb) / .1), transparent 65%), radial-gradient(120% 90% at 50% 0%, rgb(var(--turq-rgb) / .1), transparent 62%); }
.doc { position: relative; z-index: 1; width: min(100%, 320px); padding: 22px; border-radius: 16px; background: linear-gradient(180deg, rgba(30, 40, 52, .95), rgba(18, 24, 32, .95)); border: 1px solid var(--stroke-2); box-shadow: 0 30px 60px -24px rgb(var(--shadow-rgb) / calc(.85 * var(--shadow-k))); rotate: -2.5deg; }
.doc-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--stroke); font-size: 11.5px; letter-spacing: .06em; color: var(--text-2); }
.doc-logo { width: 22px; height: 22px; border-radius: 7px; background: url("assets/img/favicon-32.png") center / 18px no-repeat, rgb(var(--fg-rgb) / .06); }
.doc-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.doc-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.doc-list i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--stroke-3); color: transparent; transition: background .4s var(--ease-out), color .4s, border-color .4s, transform .4s var(--ease-out); transition-delay: calc(var(--s) * 260ms + 500ms); }
.doc-list i .icon { width: 12px; height: 12px; stroke-width: 2.8; }
.is-in .doc-list i { background: var(--turq-2); border-color: var(--turq-2); color: #0b0f14; transform: scale(1.06); }
.doc-sign { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--stroke-2); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.sig svg { width: 120px; height: 36px; fill: none; stroke: #eef2f6; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.is-in .sig svg { animation: sign 2s var(--ease-in-out) 2s forwards; }
@keyframes sign { to { stroke-dashoffset: 0; } }

/* =========================================================
   06 PREGUNTAS
   ========================================================= */
.faq-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 36px); }
.faq-intro h2 { font-size: clamp(32px, 3.7vw, 50px); letter-spacing: -.04em; line-height: 1.05; }
.faq-intro .text-link { margin-top: 30px; }
.faq-list { display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: rgb(var(--fg-rgb) / .03); border: 1px solid var(--stroke); transition: background-color .4s, border-color .4s; }
.faq details:hover { border-color: var(--stroke-2); }
.faq details[open]:not(.is-closing) { background: rgb(var(--turq-rgb) / .06); border-color: rgb(var(--turq2-rgb) / .3); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 22px 21px 24px; cursor: pointer; list-style: none; font: 600 16.5px/1.45 var(--display); letter-spacing: -.012em; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--stroke-2); transition: transform .55s var(--ease-out), background-color .3s, border-color .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -.9px 0 0 -6px; border-radius: 2px; background: var(--orange); transition: transform .55s var(--ease-out); }
.faq-icon::after { transform: rotate(90deg); }
.faq details[open]:not(.is-closing) .faq-icon { transform: rotate(180deg); background: rgb(var(--orange-rgb) / .12); border-color: rgb(var(--orange-rgb) / .4); }
.faq details[open]:not(.is-closing) .faq-icon::after { transform: rotate(0deg); }
.faq-a { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 24px 24px; color: var(--text-2); font-size: 16px; line-height: 1.75; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { padding-top: clamp(40px, 5vw, 70px); }
.contact-glow { position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at 25% 55%, rgb(var(--turq-rgb) / .22), transparent 70%), radial-gradient(35% 45% at 78% 60%, rgb(var(--orange-rgb) / .16), transparent 70%), radial-gradient(30% 40% at 55% 20%, rgb(var(--blue-rgb) / .12), transparent 70%); }
.contact-card { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 76px); padding: clamp(26px, 5vw, 64px); border-radius: 32px; background: linear-gradient(180deg, rgb(var(--card-hi-rgb) / .92), rgb(var(--card-lo-rgb) / .94)); box-shadow: 0 60px 120px -50px rgb(var(--shadow-rgb) / calc(.9 * var(--shadow-k))); }
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--angle), rgb(var(--turq2-rgb) / .08), rgb(var(--turq2-rgb) / .75) 18%, rgb(var(--turq-rgb) / .15) 36%, rgb(var(--orange-rgb) / .85) 58%, rgb(var(--turq2-rgb) / .08) 80%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.contact-card.is-playing::before { animation: spinAngle 9s linear infinite; }
@keyframes spinAngle { to { --angle: 360deg; } }
.contact-intro h2 { font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -.04em; line-height: 1.04; }
.contact-links { display: grid; gap: 12px; margin: 34px 0 22px; }
.contact-link { display: flex; align-items: center; gap: 16px; padding: 15px 18px; border-radius: 18px; background: rgb(var(--fg-rgb) / .035); border: 1px solid var(--stroke); transition: transform .5s var(--ease-out), border-color .3s, background-color .3s; }
.contact-link:hover { transform: translateX(4px); border-color: rgb(var(--orange-rgb) / .45); background: rgb(var(--orange-rgb) / .06); }
.cl-icon { width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0; border-radius: 14px; font-size: 21px; color: var(--turq-2); background: linear-gradient(140deg, rgb(var(--turq-rgb) / .24), rgb(var(--blue-rgb) / .12)); border: 1px solid rgb(var(--turq2-rgb) / .3); }
.contact-link > span:nth-child(2) { min-width: 0; font: 600 clamp(16px, 1.55vw, 19px)/1.3 var(--display); letter-spacing: -.015em; overflow-wrap: anywhere; }
.contact-link small { display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.cl-arrow { margin-left: auto; font-size: 20px; color: var(--orange); }
.location { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--text-3); }
.location .icon { color: var(--orange); }
.project-form h3 { font-size: 25px; margin-bottom: 6px; }
.form-intro { margin-bottom: 24px; color: var(--text-3); font-size: 14.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 16px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field > span { font-weight: 400; color: var(--text-3); }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 52px; margin-top: 8px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--stroke-2); background: rgb(var(--bg-rgb) / .6); color: var(--text); font: 400 16px/1.4 var(--font); transition: border-color .3s, box-shadow .3s, background-color .3s; }
.field textarea { resize: vertical; min-height: 120px; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9e37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.field select option { background: var(--bg-1); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--stroke-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--turq-2); background-color: rgb(var(--bg-rgb) / .85); box-shadow: 0 0 0 3px rgb(var(--turq2-rgb) / .35); }
.project-form .btn { margin-top: 6px; }
.form-note { margin: 14px 0 0; font-size: 12.8px; line-height: 1.6; color: var(--text-3); }
#form-status { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: rgb(var(--turq-rgb) / .1); border: 1px solid rgb(var(--turq2-rgb) / .32); color: var(--turq-2); font-size: 14px; animation: introUp .6s var(--ease-out); }
#form-status a { color: var(--orange); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   PIE
   ========================================================= */
.site-footer { position: relative; z-index: 1; overflow: hidden; padding-top: clamp(70px, 8vw, 110px); border-top: 1px solid var(--stroke); background: linear-gradient(180deg, transparent, rgb(var(--turq-rgb) / .05)); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .65fr) minmax(0, .65fr) minmax(0, 1fr); gap: 40px; }
.footer-brand img { width: 310px; max-width: 100%; height: auto; }
.footer-brand p { max-width: 380px; margin: 18px 0 0; font-size: 14.5px; color: var(--text-3); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-title { margin: 0 0 6px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.footer-col a { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--text-2); transition: color .25s; }
.footer-col a .icon { color: var(--turq-2); }
.footer-col a:hover { color: var(--text); }
.footer-giant { margin: clamp(46px, 7vw, 90px) 0 -.2em; text-align: center; line-height: .8; user-select: none; pointer-events: none; }
.footer-giant span { display: inline-block; font: 800 clamp(42px, 11.3vw, 175px)/.8 'Sora Contorno', var(--display); letter-spacing: -.035em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgb(var(--line-rgb) / .16); background: linear-gradient(180deg, rgb(var(--turq2-rgb) / .16), rgb(var(--turq2-rgb) / 0) 78%); -webkit-background-clip: text; background-clip: text; }
.footer-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: max(26px, env(safe-area-inset-bottom)); border-top: 1px solid var(--stroke); font-size: 13.5px; color: var(--text-3); }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); transition: color .25s; }
.to-top:hover { color: var(--orange); }

/* Botón flotante de WhatsApp */
.wa-float { visibility: hidden; position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 17px; border-radius: 99px; background: linear-gradient(135deg, #6ee3ec, #0fb3c2); color: #0b0f14; font-size: 15px; font-weight: 700; box-shadow: 0 18px 40px -14px rgb(var(--turq-rgb) / .8), inset 0 1px 0 rgba(255, 255, 255, .4); opacity: 0; transform: translateY(140%); pointer-events: none; transition: transform .7s var(--ease-out), opacity .4s, box-shadow .3s, visibility 0s linear .7s; }
.wa-float.is-visible { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: transform .7s var(--ease-out), opacity .4s, box-shadow .3s, visibility 0s; }
.wa-float:hover { box-shadow: 0 24px 50px -14px rgb(var(--turq-rgb) / .95), inset 0 1px 0 rgba(255, 255, 255, .45); }
.wa-float .icon { position: relative; width: 24px; height: 24px; stroke-width: 2.1; }
.wa-ring { position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgb(var(--turq2-rgb) / .7); animation: waRing 2.6s var(--ease-out) infinite; }
@keyframes waRing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.35, 1.6); opacity: 0; } }
.menu-open .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }

/* Luz ambiental fija: da color al fondo mientras se desplaza la página */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(36% 32% at 4% 28%, rgb(var(--turq-rgb) / .1), transparent 70%), radial-gradient(34% 30% at 98% 58%, rgb(var(--blue-rgb) / .13), transparent 70%), radial-gradient(30% 26% at 58% 106%, rgb(var(--orange-rgb) / .08), transparent 70%); }
/* Trama de puntos en algunas secciones */
.services::before, .commitments::before, .process::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgb(var(--line-rgb) / .26) 1px, transparent 1.3px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 34%, #000 8%, transparent 74%); mask-image: radial-gradient(ellipse 60% 55% at 50% 34%, #000 8%, transparent 74%); }
.process::before { -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 60%, #000 8%, transparent 74%); mask-image: radial-gradient(ellipse 70% 50% at 50% 60%, #000 8%, transparent 74%); }
.inline-link { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: rgb(var(--orange-rgb) / .6); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color .25s; }
.inline-link:hover { color: var(--orange); }
.footer-brand .logo-claro { width: 310px; max-width: 100%; height: auto; }

/* =========================================================
   APARICIÓN AL DESPLAZARSE
   ========================================================= */
@media (scripting: enabled) {
  [data-reveal] { opacity: 0; translate: 0 34px; }
  html:not(.js) [data-reveal], html:not(.js) [data-split] { animation: failsafe .8s var(--ease-out) 2.5s forwards; }
  .js [data-reveal] { transition: opacity 1s var(--ease-out), translate 1.15s var(--ease-out), transform .7s var(--ease-out), border-color .4s, background-color .4s; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms, 0ms; }
  .js [data-reveal].is-in { opacity: 1; translate: 0 0; }
  .js .card[data-reveal].is-tilting { transition: opacity 1s var(--ease-out), translate 1.15s var(--ease-out), transform .15s linear, border-color .4s; }
  [data-split] { opacity: 0; }
  .js [data-split].is-split { opacity: 1; }
}
@keyframes failsafe { to { opacity: 1; translate: 0 0; } }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em 0 .14em; margin: -.04em 0 -.14em; }
.split-word > * { display: inline-block; translate: 0 112%; transition: translate 1.1s var(--ease-out); transition-delay: calc(var(--w, 0) * 42ms + 60ms); }
.is-in .split-word > * { translate: 0 0; }
.split-word > .grad-text { padding-right: .04em; animation: none; background-position: 35% 50%; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1320px) {
  .float-launch { right: -1%; }
  .float-code { left: -6%; }
}
@media (max-width: 1240px) {
  .header-admin { padding-left: 14px; }
  .desktop-nav a { padding: 9px 11px; }
  .header-inner { gap: 18px; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .fc-code { transform: scale(.8); transform-origin: 0 0; }
  .fc-ai { transform: scale(.82); transform-origin: 0 100%; }
  .fc-launch { transform: scale(.82); transform-origin: 100% 0; }
  .float-ai { left: -8%; bottom: 0; }
  .float-launch { right: -2%; top: 52%; }
}
@media (max-width: 1140px) {
  .desktop-nav, .header-actions { display: none; }
  .menu-toggle { display: block; }
  .float-code { left: -2%; }
  .float-launch { right: -2%; }
}
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-custom { grid-column: span 2; }
  .svc-ai { grid-row: span 2; }
  .commit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commit-lead { grid-column: span 2; grid-row: auto; }
  .commit-grid > .commit:last-child { grid-column: span 2; }
  .fc-code { width: 300px; }
  .fc-pre { font-size: 11.3px; }
}
@media (max-width: 960px) {
  .products-grid { grid-template-columns: 1fr; }
  .showcase { max-width: 720px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .brand img { height: 34px; }
  .hero { min-height: 0; padding-bottom: 20px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { max-width: 560px; margin-top: -10px; }
  .hero-foot { padding-top: 6px; }
  .contact-card { grid-template-columns: 1fr; }
  .section-head-split { display: block; }
  .section-head-split .section-lead { margin-top: 22px; }
  .timeline-track { left: 28px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto; }
  .timeline-track i { transform-origin: 50% 0; transform: scaleY(var(--tp, 0)); }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 22px; align-items: start; }
  .step-node { grid-row: span 4; }
  .step-num { margin: 4px 0 8px; }
  .step > :not(.step-node) { grid-column: 2; }
  .step-chip { justify-self: start; }
  .portfolio-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .bento, .commit-grid, .models-grid { grid-template-columns: 1fr; }
  .svc-custom, .commit-lead, .commit-grid > .commit:last-child { grid-column: auto; }
  .svc-ai { grid-row: auto; }
  .svc-custom { flex-direction: column; }
  .svc-custom .viz { flex: none; border-left: 0; border-bottom: 1px solid var(--stroke); }
  .commit-lead { grid-template-columns: 1fr; }
  .commit-lead .viz { border-right: 0; border-bottom: 1px solid var(--stroke); min-height: 300px; }
  .commit-lead .commit-body { padding: 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .float-card { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(var(--surface-rgb) / .92); }
  .fc-code { width: 270px; }
  .fc-pre { font-size: 10.3px; padding: 10px 12px 0; }
  .fc-ai { width: 238px; }
  .fc-launch { width: 196px; padding: 13px; }
  .showcase-inner { padding-right: 26px; }
  .showcase-chip { left: -8px; bottom: 70px; font-size: 13px; padding: 9px 14px; }
}
@media (max-width: 560px) {
  .hero-title { font-size: clamp(38px, 11.4vw, 56px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-proof { flex-direction: column; gap: 8px; }
  .announce-text { font-size: 13px; }
  .announce-long { display: none; }
  .announce-short { display: inline; }
  .float-code, .float-launch { display: none; }
  .float-ai { left: auto; right: -1%; bottom: 0; }
  .fc-ai { width: 212px; padding: 11px; }
  .hero-visual { width: 108%; max-width: none; margin-left: -4%; margin-top: 4px; }
  .bubble { font-size: 12px; padding: 8px 10px; }
  .fc-launch { width: 168px; }
  .fc-steps li { font-size: 12px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .scroll-cue { display: none; }
  .svc-body, .commit { padding: 24px 22px; }
  .viz { height: 220px; }
  .viz-ai { height: 330px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .contact-card { border-radius: 26px; padding: 26px 18px; }
  .contact-link { padding: 13px 14px; gap: 13px; }
  .cl-icon { width: 40px; height: 40px; font-size: 19px; }
  .cl-arrow { display: none; }
  .contact-link > span:nth-child(2) { font-size: 15.5px; }
  .wa-float { width: 52px; height: 52px; }
  .device-phone { width: 32%; }
  .browser-url { font-size: 10px; }
}

/* ---------- Responsivo: piezas nuevas de la v13 ---------- */
@media (max-width: 1140px) {
  .header-inner { gap: 12px; }
  .con-tema .theme-toggle { margin-left: auto; width: 46px; height: 46px; border-radius: 14px; }
  .con-tema .menu-toggle { margin-left: 0; }
}
@media (max-width: 1100px) {
  .star { grid-template-columns: minmax(0, 1fr); }
  .star-copy { max-width: 640px; padding-bottom: 8px; }
  .star-visual { padding-top: 34px; }
  .star-orbit { left: 50%; top: 66%; }
  .star-bg::before { -webkit-mask-image: radial-gradient(ellipse 70% 45% at 50% 66%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 45% at 50% 66%, #000 10%, transparent 75%); }
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .sf-libre { right: -100px; }
  .sf-voz { left: -110px; }
  .sf-meta { right: -104px; }
}
@media (max-width: 560px) {
  .star { border-radius: 26px; }
  .star-kicker { margin-bottom: 20px; }
  .star-features { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .star-actions .btn { flex: 1 1 100%; }
  .star-stage { width: 262px; height: 524px; }
  .wa-phone { border-radius: 42px; padding: 8px; }
  .wa-screen { border-radius: 34px; }
  .wa-island { top: 17px; width: 78px; height: 23px; margin-left: -39px; }
  .bub { font-size: 11.6px; }
  .star-float { padding: 10px 12px; border-radius: 15px; }
  .star-stage { margin: 66px 0 56px; }
  .sf-libre { top: -58px; right: -12px; width: 158px; }
  .sf-libre > small { font-size: 9px; letter-spacing: .06em; }
  .sf-libre strong { font-size: 20px; }
  .sf-row { font-size: 10.5px; }
  .sf-voz { display: none; }
  .sf-tile { width: 32px; height: 32px; border-radius: 10px; }
  .sf-meta { bottom: -50px; right: auto; left: -12px; gap: 9px; }
  .sf-ring { width: 38px; height: 38px; }
  .sf-voz b, .sf-meta b { font-size: 12px; }
  .sf-voz small, .sf-meta small { font-size: 10.5px; }
  .star-orbit { top: 64%; }
  .so-1 { width: 380px; height: 380px; }
  .so-2 { width: 520px; height: 520px; }
  .so-3 { width: 660px; height: 660px; }
  .star-ticker span { font-size: 12.5px; padding: 7px 12px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
@media (max-width: 380px) {
  .star-stage { width: 240px; height: 480px; }
  .sf-libre { right: -8px; width: 146px; }
  .sf-meta { left: -8px; }
}

/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal], [data-split], .split-word > *, .hero-title .word, [data-intro], .float, .hero-visual { opacity: 1 !important; translate: none !important; scale: none !important; }
  .marquee-track { animation: none !important; }
  .tl, [data-typer].is-typing .tl { width: calc(var(--n) * 1ch) !important; animation: none !important; }
  .bubble-user, .bubble-bot, .viz-ai .m-user, .viz-ai .m-ai, .viz-ai .m-actions, .notif, .fc-ok, .vw-nav, .vw-hero, .vw-cards i, .va-area { opacity: 1 !important; translate: none !important; scale: none !important; animation: none !important; }
  .bubble-typing, .m-typing, .vw-cursor { display: none !important; }
  .fc-steps i { background: var(--turq-2) !important; color: #0b0f14 !important; border-color: var(--turq-2) !important; animation: none !important; }
  .fc-bar i { transform: none !important; opacity: 1 !important; animation: none !important; }
  .fc-pct { --pct: 100; animation: none !important; }
  .va-line { stroke-dashoffset: 0 !important; animation: none !important; }
  .va-bars i { transform: none !important; animation: none !important; }
  .sig svg { stroke-dashoffset: 0 !important; }
  .showcase-inner { transform: none !important; }
  .card, .btn { transform: none !important; }
  .hero-beams, .hero-grid-lit { display: none; }
  .star-float, .wa-phone { transform: none !important; }
  .bub { animation: none !important; }
  .sf-bar i { transform: none !important; }
  .sf-ring .fg { stroke-dashoffset: 84 !important; }
}

/* =========================================================
   TEMA CLARO · ajustes que no cubren los tokens
   ========================================================= */
:root[data-theme="claro"] body::after { opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0.1 0 0 0 0 0.2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="claro"] ::selection { background: rgb(var(--orange-rgb) / .28); color: var(--text); }
:root[data-theme="claro"] .grad-text .dot { color: #f26a0c; -webkit-text-fill-color: #f26a0c; text-shadow: 0 0 18px rgb(247 120 22 / .35); }
:root[data-theme="claro"] .live-dot { background: var(--turq); }
:root[data-theme="claro"] .ambient { background: radial-gradient(36% 32% at 4% 28%, rgb(var(--turq-rgb) / .1), transparent 70%), radial-gradient(34% 30% at 98% 58%, rgb(var(--blue-rgb) / .07), transparent 70%), radial-gradient(30% 26% at 58% 106%, rgb(var(--orange-rgb) / .08), transparent 70%); }

/* Encabezado */
:root[data-theme="claro"] .site-header.is-scrolled { background: rgb(255 255 255 / .8); box-shadow: 0 10px 30px -24px rgb(16 36 66 / .35); }
:root[data-theme="claro"] .theme-toggle { background: #fff; box-shadow: 0 6px 16px -10px rgb(16 36 66 / .35); }
:root[data-theme="claro"] .menu-toggle { background: #fff; }

/* Inicio */
:root[data-theme="claro"] .aurora-1 { background: radial-gradient(closest-side, rgb(6 182 212 / .26), rgb(6 182 212 / 0)); }
:root[data-theme="claro"] .aurora-2 { background: radial-gradient(closest-side, rgb(59 130 246 / .18), rgb(59 130 246 / 0)); }
:root[data-theme="claro"] .aurora-3 { background: radial-gradient(closest-side, rgb(251 146 60 / .22), rgb(251 146 60 / 0)); }
:root[data-theme="claro"] .stars { opacity: .7; background-image: radial-gradient(1.6px 1.6px at 8% 18%, rgb(6 182 212 / .8), transparent 60%), radial-gradient(1.4px 1.4px at 22% 64%, rgb(37 99 235 / .5), transparent 60%), radial-gradient(1.8px 1.8px at 36% 30%, rgb(6 182 212 / .7), transparent 60%), radial-gradient(1.4px 1.4px at 48% 84%, rgb(247 120 22 / .6), transparent 60%), radial-gradient(1.6px 1.6px at 62% 12%, rgb(247 120 22 / .7), transparent 60%), radial-gradient(1.4px 1.4px at 74% 72%, rgb(6 182 212 / .7), transparent 60%), radial-gradient(1.7px 1.7px at 88% 26%, rgb(37 99 235 / .5), transparent 60%), radial-gradient(1.4px 1.4px at 94% 88%, rgb(6 182 212 / .7), transparent 60%), radial-gradient(1.4px 1.4px at 14% 90%, rgb(247 120 22 / .5), transparent 60%), radial-gradient(1.5px 1.5px at 56% 46%, rgb(6 182 212 / .6), transparent 60%); }
:root[data-theme="claro"] .hero-beams i:nth-child(-n+3) { background: linear-gradient(90deg, transparent, rgb(6 182 212 / .9) 80%, rgb(8 145 178)); box-shadow: 0 0 10px rgb(6 182 212 / .55); }
:root[data-theme="claro"] .hero-beams i:nth-child(n+4) { background: linear-gradient(180deg, transparent, rgb(247 120 22 / .85) 80%, rgb(234 88 12)); box-shadow: 0 0 10px rgb(247 120 22 / .45); }
:root[data-theme="claro"] .hero-grid-lit { background-image: linear-gradient(rgb(6 182 212 / .4) 1px, transparent 1px), linear-gradient(90deg, rgb(6 182 212 / .4) 1px, transparent 1px); }
:root[data-theme="claro"] .btn-ghost { background: rgb(255 255 255 / .75); box-shadow: 0 8px 20px -14px rgb(16 36 66 / .35); }
:root[data-theme="claro"] .btn-ghost:hover { background: #fff; }
:root[data-theme="claro"] .announce { background: rgb(255 255 255 / .7); }
:root[data-theme="claro"] .float-card { box-shadow: 0 26px 54px -28px rgb(16 36 66 / .4), inset 0 1px 0 rgb(255 255 255 / .9); }
:root[data-theme="claro"] .fc-code { background: rgb(10 16 30 / .94); border-color: rgb(10 16 30 / .5); box-shadow: 0 30px 60px -26px rgb(16 36 66 / .55); }
:root[data-theme="claro"] .fc-launch { --turq-2: #14c3d6; }
:root[data-theme="claro"] .ai-avatar { background: linear-gradient(135deg, #7df0f7, #10bcd0); box-shadow: 0 6px 16px -6px rgb(6 182 212 / .7); }
:root[data-theme="claro"] .fc-launch .fc-steps li, :root[data-theme="claro"] .fc-ai .bubble { color: var(--text); }
:root[data-theme="claro"] .geo-text { background: rgb(255 255 255 / .9); }

/* Tarjetas y secciones */
:root[data-theme="claro"] .card { background: linear-gradient(90deg, transparent 6%, rgb(6 182 212 / .45) 50%, transparent 94%) top / 100% 1px no-repeat, radial-gradient(120% 70% at 0% 0%, rgb(var(--turq-rgb) / .07), transparent 55%), linear-gradient(180deg, rgb(255 255 255 / .96), rgb(248 251 255 / .86)); box-shadow: 0 1px 2px rgb(16 36 66 / .05), 0 26px 50px -32px rgb(16 36 66 / .32); }
:root[data-theme="claro"] .card:hover { border-color: rgb(var(--turq2-rgb) / .35); }
:root[data-theme="claro"] .viz { background-color: var(--bg-1); }
:root[data-theme="claro"] .svc-custom .viz { border-left-color: transparent; }
:root[data-theme="claro"] .marquee { background: linear-gradient(90deg, rgb(6 182 212 / .1), rgb(59 130 246 / .06) 50%, rgb(251 146 60 / .12)); }
:root[data-theme="claro"] .check-list li, :root[data-theme="claro"] .portfolio-cta, :root[data-theme="claro"] .faq details, :root[data-theme="claro"] .contact-link { background: rgb(255 255 255 / .78); }
:root[data-theme="claro"] .faq details[open]:not(.is-closing) { background: rgb(236 250 252 / .9); }
:root[data-theme="claro"] .step-node { background: #fff; box-shadow: 0 8px 20px -12px rgb(16 36 66 / .35); }
:root[data-theme="claro"] .browser-url { background: #fff; }
:root[data-theme="claro"] .device-browser { box-shadow: 0 50px 90px -42px rgb(16 36 66 / .45), 0 0 90px -34px rgb(6 182 212 / .45); }
:root[data-theme="claro"] .showcase-badge { box-shadow: 0 10px 26px -12px rgb(16 36 66 / .35); }
:root[data-theme="claro"] .contact-card { box-shadow: 0 40px 90px -50px rgb(16 36 66 / .4); }
:root[data-theme="claro"] .field input, :root[data-theme="claro"] .field select, :root[data-theme="claro"] .field textarea { background-color: #fff; }
:root[data-theme="claro"] .field input:focus, :root[data-theme="claro"] .field select:focus, :root[data-theme="claro"] .field textarea:focus { background-color: #fff; box-shadow: 0 0 0 3px rgb(6 182 212 / .28); }
:root[data-theme="claro"] .footer-giant span { -webkit-text-stroke: 1px rgb(var(--line-rgb) / .16); background: linear-gradient(180deg, rgb(6 182 212 / .22), rgb(6 182 212 / 0) 78%); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="claro"] .site-footer { background: linear-gradient(180deg, transparent, rgb(6 182 212 / .07)); }

/* Cuartico en el tema claro */
:root[data-theme="claro"] .star {
  --star-bg-1: #ffffff; --star-bg-2: #e8f6ee;
  --star-text: #05281d; --star-text-2: #3d5d51;
  --wa-bg: #efeae2; --wa-head: #f6f7f5; --wa-ink: #111b21; --wa-muted: #667781; --wa-user: #d9fdd3; --wa-bot: #ffffff; --wa-input: #ffffff; --wa-day: #ffffff; --wa-accent: #00a884;
  background: radial-gradient(60% 55% at 82% 26%, rgb(var(--c-rgb) / .22), transparent 68%), radial-gradient(45% 50% at 0% 100%, rgb(251 146 60 / .14), transparent 70%), radial-gradient(40% 40% at 30% 0%, rgb(6 182 212 / .1), transparent 70%), linear-gradient(160deg, var(--star-bg-1), var(--star-bg-2));
  box-shadow: 0 50px 100px -60px rgb(16 36 66 / .45), 0 0 110px -50px rgb(var(--c-rgb) / .45);
}
:root[data-theme="claro"] .star-live { color: #0d7a4c; border-color: rgb(var(--c-rgb) / .4); background: rgb(var(--c-rgb) / .08); }
:root[data-theme="claro"] .star-live .live-dot { background: var(--c-green); }
:root[data-theme="claro"] .star-title span { background-image: linear-gradient(95deg, #0f7f4b, #1fae6c 40%, #0d9a84 70%, #128a52 100%); }
:root[data-theme="claro"] .star-features .icon { color: #12824f; background: linear-gradient(140deg, rgb(var(--c-rgb) / .2), rgb(var(--c-rgb) / .06)); border-color: rgb(var(--c-rgb) / .28); box-shadow: 0 8px 18px -12px rgb(var(--c-rgb) / .8); }
:root[data-theme="claro"] .star .btn-ghost { background: rgb(255 255 255 / .75); border-color: rgb(var(--c-rgb) / .38); }
:root[data-theme="claro"] .star .btn-ghost .icon { color: #12824f; }
:root[data-theme="claro"] .star-fine li::before { background: var(--c-green); box-shadow: none; }
:root[data-theme="claro"] .star-bg::before { background-image: linear-gradient(rgb(var(--c-rgb) / .1) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--c-rgb) / .1) 1px, transparent 1px); }
:root[data-theme="claro"] .star-orbit { border-color: rgb(var(--c-rgb) / .3); }
:root[data-theme="claro"] .so-2 { border-color: rgb(var(--c-rgb) / .16) !important; }
:root[data-theme="claro"] .so-3 { border-color: rgb(247 120 22 / .2) !important; }
:root[data-theme="claro"] .star-orbit::before { background: var(--c-green); box-shadow: 0 0 12px rgb(var(--c-rgb) / .8); }
:root[data-theme="claro"] .so-3::before { background: #f5821f; box-shadow: 0 0 12px rgb(245 130 31 / .7); }
:root[data-theme="claro"] .wa-phone { box-shadow: 0 60px 110px -50px rgb(16 36 66 / .55), 0 0 0 1px rgb(0 0 0 / .5), inset 0 0 0 1.5px rgb(255 255 255 / .16), 0 0 80px -30px rgb(var(--c-rgb) / .5); }
:root[data-theme="claro"] .wa-chat { background-image: radial-gradient(rgb(0 0 0 / .045) 1px, transparent 1.4px); }
:root[data-theme="claro"] .star-float { color: var(--star-text); background: rgb(255 255 255 / .86); box-shadow: inset 0 0 0 1px rgb(16 36 66 / .07), 0 26px 50px -26px rgb(16 36 66 / .38); }
:root[data-theme="claro"] .sf-bar, :root[data-theme="claro"] .sf-ring .bg { background: rgb(var(--c-rgb) / .14); stroke: rgb(var(--c-rgb) / .16); }
:root[data-theme="claro"] .sf-ring .fg { stroke: #f5821f; }
:root[data-theme="claro"] .star-tag { background: rgb(255 255 255 / .8); box-shadow: inset 0 0 0 1px rgb(16 36 66 / .08); }
:root[data-theme="claro"] .star-scenes span { border-color: rgb(var(--c-rgb) / .28); }
:root[data-theme="claro"] .star-scenes span.on { color: #fff; background: var(--c-green-2); border-color: var(--c-green-2); box-shadow: 0 6px 16px -6px rgb(var(--c-rgb) / .8); }
:root[data-theme="claro"] .star-ticker { background: rgb(var(--c-rgb) / .06); border-top-color: rgb(var(--c-rgb) / .16); }
:root[data-theme="claro"] .star-ticker span { background: #fff; border-color: rgb(var(--c-rgb) / .2); box-shadow: 0 6px 14px -12px rgb(16 36 66 / .4); }
:root[data-theme="claro"] .star-ticker .is-reverse span { background: #fff; border-color: rgb(247 120 22 / .22); }
:root[data-theme="claro"] .star-ticker span::before, :root[data-theme="claro"] .star-ticker span::after { color: #12824f; }
:root[data-theme="claro"] .star-ticker .is-reverse span::before, :root[data-theme="claro"] .star-ticker .is-reverse span::after { color: #d9650b; }
@media (max-width: 760px) {
  :root[data-theme="claro"] .float-card:not(.fc-code) { background: rgb(255 255 255 / .94); }
}

/* =========================================================
   CAMBIO DE TEMA · revelado circular (View Transitions)
   ========================================================= */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
.cambiando-tema, .cambiando-tema *, .cambiando-tema *::before, .cambiando-tema *::after { transition: none !important; }

/* =========================================================
   v16 · ANIMACIONES CON GSAP Y GLOBO 3D CON THREE.JS
   (assets/js/motion.js y assets/js/hero3d.js; sin ellos, el sitio se ve como antes)
   ========================================================= */
@property --gx { syntax: '<number>'; inherits: true; initial-value: .35; }
@keyframes gxShift { from { --gx: 0; } to { --gx: 1; } }
@keyframes heroFailsafe { from { opacity: 0; } to { opacity: 1; } }

/* Entrada del inicio: la dirige GSAP. Si motion.js no llega, todo aparece solo a los 3 s. */
.gsap-hero .hero-title .word { translate: none; animation: none; }
.gsap-hero .hero-title .word.grad-text { animation: gradShift 9s ease-in-out 1.5s infinite alternate; }
.gsap-hero [data-intro], .gsap-hero .hero-title, .gsap-hero .float, .gsap-hero .hero-visual { animation: heroFailsafe .9s var(--ease-out) 3s both; }
.gsap-hero.gsap-live [data-intro], .gsap-hero.gsap-live .hero-title, .gsap-hero.gsap-live .float, .gsap-hero.gsap-live .hero-visual { animation: none; }

/* Letras sueltas y degradado letra por letra */
.hc, .st-char, .st-word, .lc { display: inline-block; }
.st-line, .st-line-mask { display: block; }
.st-line-mask { overflow: hidden; padding: .1em 0 .18em; margin: -.1em 0 -.18em; }
.gsap-split .dot { display: inline-block; }
.gw { position: relative; }
.gchar { background-image: var(--grad); background-size: calc(var(--gw) * 2.2) 100%; background-position: calc(var(--gw) * -1.2 * var(--gx, .35) - var(--ox)) 50%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding: .1em .08em .14em 0; margin: -.1em -.08em -.14em 0; }
.gsap-live .hero-title .word.grad-text.is-chars { background: none; animation: gxShift 9s ease-in-out 1.5s infinite alternate both; }
.gsap-split .grad-text { background: none; animation: none; }

/* Títulos: aparecen al partirse en letras; si algo falla, aparecen solos a los 4 s. */
.gsap-on [data-split].gsap-split { opacity: 1; }
.gsap-on [data-split]:not(.gsap-split) { animation: failsafe .8s var(--ease-out) 4s forwards; }

/* Tarjetas que entran en 3D: mientras GSAP las mueve, sin transiciones de CSS que estorben. */
.gsap-on .card.gsap-owned[data-reveal] { opacity: 1; translate: none; transition: border-color .4s, background-color .4s; }

/* Las tarjetas flotantes entran (--iy, --is) y salen (--fx, --fy, --fr) con estas variables, que anima GSAP */
.gsap-on .float { translate: var(--fx, 0px) calc(var(--fy, 0px) + var(--iy, 0px)); rotate: var(--fr, 0deg); scale: var(--is, 1); }

/* Globo de partículas en 3D */
.hero-webgl { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero-webgl.is-ready { opacity: 1; }
.globe-3d .globe-stage .globe { opacity: 0; }
.globe-stage.is-emblem .globe { cursor: default; }

/* El contenedor del inicio sirve de espaciador al fijarlo (GSAP lo vuelve flex): el inicio ocupa todo el ancho igual */
.hero-pin > .hero { width: 100%; }

/* Firma bajo el emblema (solo en escritorio, al desplazarse) */
.hero-lockup { position: absolute; left: 0; right: 0; top: 72%; z-index: 2; display: grid; justify-items: center; gap: 12px; padding: 0 var(--pad); text-align: center; pointer-events: none; opacity: 0; visibility: hidden; }
.hero-lockup-name { display: block; overflow: hidden; padding: .06em 0 .12em; margin-right: -.2em; font: 700 clamp(30px, 3.3vw, 50px)/1 var(--display); letter-spacing: .2em; color: var(--text); }
.hero-lockup-name b { font-weight: inherit; color: var(--turq-2); }
.hero-lockup-line { font-size: clamp(14px, 1.05vw, 16px); color: var(--text-2); }
.hero-lockup-line strong { color: var(--text); font-weight: 600; }

/* =====================================================================
   v17 · Proyectos en vivo: RUNAGUA, On·Her y GANA FACIL RD
   - Sin JavaScript, con menos movimiento y en celulares: una tarjeta por proyecto.
   - En computadora, motion.js fija el escenario (.pj-on) y pasa de un proyecto a otro al desplazarse.
   - Las tarjetas son oscuras en los dos temas: cada una lleva los colores de su marca.
   ===================================================================== */
.projects-glow { position: absolute; left: 0; right: 0; top: 0; height: 70%; pointer-events: none; background: radial-gradient(42% 48% at 50% 8%, rgb(var(--turq-rgb) / .10), rgb(var(--turq-rgb) / 0) 72%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 240px); mask-image: linear-gradient(to bottom, transparent, #000 240px); }

/* Colores de cada proyecto, tomados de su web */
.pj-runagua { --pj-bg: #020205; --pj-1: #00bbeb; --pj-2: #08df90; --pj-3: #c3f907; --pj-rgb1: 0 187 235; --pj-rgb2: 8 223 144; --pj-rgb3: 195 249 7; --pj-hi: #d4ff5a; --pj-ink: #04110a; --pj-cta: linear-gradient(100deg, #1cc8f2, #0ae39a 58%, #c3f907); }
.pj-onher { --pj-bg: #1b1015; --pj-1: #e27aa6; --pj-2: #97254b; --pj-3: #f3b6cc; --pj-rgb1: 226 122 166; --pj-rgb2: 151 37 75; --pj-rgb3: 243 182 204; --pj-hi: #f6c3d6; --pj-ink: #2a0d1a; --pj-cta: linear-gradient(180deg, #f09dc0, #e27aa6); }
.pj-ganafacil { --pj-bg: #080808; --pj-1: #f4ca65; --pj-2: #eab643; --pj-3: #ffe6a3; --pj-rgb1: 244 202 101; --pj-rgb2: 234 182 67; --pj-rgb3: 255 230 163; --pj-hi: #ffe39a; --pj-ink: #1a1204; --pj-cta: linear-gradient(180deg, #f8d67f, #eab643); }

.pj-pin { padding: 0 var(--pad); }
.pj-stage { position: relative; max-width: var(--container); margin: 0 auto; }
.pj-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(22px, 3vw, 36px); }
.pj { position: relative; isolation: isolate; overflow: hidden; border-radius: clamp(22px, 2.4vw, 32px); background: var(--pj-bg); color: #fff; box-shadow: 0 44px 90px -54px rgb(var(--shadow-rgb) / calc(.95 * var(--shadow-k))), inset 0 0 0 1px rgb(255 255 255 / .08); }
.pj-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(55% 60% at 82% 30%, rgb(var(--pj-rgb1) / .24), rgb(var(--pj-rgb1) / 0) 72%),
    radial-gradient(46% 56% at 66% 98%, rgb(var(--pj-rgb2) / .20), rgb(var(--pj-rgb2) / 0) 72%),
    radial-gradient(40% 46% at 4% 0%, rgb(var(--pj-rgb3) / .11), rgb(var(--pj-rgb3) / 0) 72%),
    var(--pj-bg); }
.pj-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 62% at 72% 44%, #000, transparent 74%); mask-image: radial-gradient(70% 62% at 72% 44%, #000, transparent 74%); }
.pj-giant { position: absolute; left: -.04em; bottom: -.16em; font: 800 clamp(84px, 17vw, 270px)/.8 'Sora Contorno', var(--display); letter-spacing: -.035em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgb(var(--pj-rgb1) / .22); background: linear-gradient(180deg, rgb(var(--pj-rgb1) / .12), rgb(var(--pj-rgb1) / 0) 82%); -webkit-background-clip: text; background-clip: text; -webkit-user-select: none; user-select: none; }

.pj-card:focus { outline: none; }
.pj-card:focus-visible { outline: 2px solid var(--pj-hi); outline-offset: -8px; border-radius: inherit; }
.pj-card { position: relative; display: grid; grid-template-areas: "head" "visual" "body"; gap: 28px; padding: clamp(26px, 4vw, 46px) clamp(20px, 4vw, 48px) clamp(30px, 4vw, 48px); }
.pj-head { grid-area: head; min-width: 0; }
.pj-visual { grid-area: visual; position: relative; min-width: 0; perspective: 1600px; padding: 0 6% 12% 0; }
.pj-body { grid-area: body; min-width: 0; }

.pj-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 18px; font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--pj-hi); }
.pj-n { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 99px; border: 1px solid rgb(var(--pj-rgb1) / .45); color: #fff; letter-spacing: .06em; }
.pj-title { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; font: 700 clamp(30px, 4.1vw, 50px)/1 var(--display); letter-spacing: -.035em; color: #fff; }
.pj-logo { width: clamp(50px, 5vw, 66px); height: auto; border-radius: 50%; flex-shrink: 0; filter: drop-shadow(0 10px 24px rgb(var(--pj-rgb1) / .35)); }
.pj-wordmark { width: clamp(176px, 17vw, 232px); height: auto; }
.pj-ganafacil .pj-title { font-size: clamp(26px, 2.9vw, 42px); }
@media (min-width: 400px) { .pj-ganafacil .pj-title span { white-space: nowrap; } }
.pj-desc { margin: 0; max-width: 46ch; color: rgb(255 255 255 / .76); font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.62; }
.pj-feats { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.pj-feats li { display: flex; align-items: flex-start; gap: 12px; color: rgb(255 255 255 / .88); font-size: 15px; line-height: 1.5; }
.pj-feats .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--pj-1); flex-shrink: 0; }
.pj-note { margin: -10px 0 22px; font-size: 13px; color: rgb(255 255 255 / .6); }
.pj-cta { background: var(--pj-cta); color: var(--pj-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 16px 36px -16px rgb(var(--pj-rgb1) / .75); }
.pj-cta { transition: translate .5s var(--ease-out), box-shadow .35s var(--ease-out); }
.pj-cta:hover { translate: 0 -2px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 22px 44px -16px rgb(var(--pj-rgb1) / .9); }
.pj-cta:hover .icon { transform: translate(2px, -2px); }
.pj-cta:focus-visible { outline-color: var(--pj-hi); }

/* Navegador y celular con cada web */
.pj-tilt, .pj-float { position: relative; transform-style: preserve-3d; }
.pj-browser { margin: 0; overflow: hidden; border-radius: 14px; background: #0c0f15; border: 1px solid rgb(255 255 255 / .12); box-shadow: 0 50px 100px -44px rgb(0 0 0 / .95), 0 0 90px -34px rgb(var(--pj-rgb1) / .5); }
.pj-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; background: rgb(255 255 255 / .035); border-bottom: 1px solid rgb(255 255 255 / .07); }
.pj-bar .win-dots i { width: 9px; height: 9px; }
.pj-url { flex: 1; min-width: 0; max-width: 300px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 22px; margin: 0 auto; padding: 0 10px; border-radius: 8px; background: rgb(255 255 255 / .06); font: 500 11.5px/1 var(--font); color: rgb(255 255 255 / .74); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-url .icon { width: 11px; height: 11px; color: var(--pj-1); }
.pj-live { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pj-hi); }
.pj-live .live-dot, :root[data-theme="claro"] .pj-live .live-dot { width: 6px; height: 6px; background: var(--pj-3); }
.pj-view { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--pj-bg); }
.pj-shot { width: 100%; height: auto; }
.pj-frame { position: absolute; left: 0; top: 0; opacity: 0; }
.pj-frame.is-first { position: relative; opacity: 1; }
.pj-phone { position: absolute; right: -5%; bottom: -14%; z-index: 2; width: 24%; margin: 0; transform: translateZ(70px); }
.pj-phone-frame { position: relative; padding: 4.5%; border-radius: 16% / 7.4%; background: linear-gradient(150deg, #454b57, #101217 52%, #23262d); box-shadow: 0 40px 70px -26px rgb(0 0 0 / .95), inset 0 0 0 1px rgb(255 255 255 / .18), 0 0 60px -24px rgb(var(--pj-rgb1) / .55); }
.pj-phone .pj-view { aspect-ratio: 390 / 844; border-radius: 12.5% / 5.8%; }
.pj-island { position: absolute; z-index: 2; top: 3.6%; left: 50%; width: 30%; aspect-ratio: 3.4; margin-left: -15%; border-radius: 99px; background: #000; }
.pj-chip { position: absolute; z-index: 3; transform: translateZ(110px); pointer-events: none; }
.pj-chip > span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 13px; background: rgb(12 14 20 / .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgb(var(--pj-rgb1) / .4); color: #fff; font: 600 12.5px/1.2 var(--font); white-space: nowrap; box-shadow: 0 18px 40px -16px rgb(0 0 0 / .9); animation: bob 6s ease-in-out infinite; }
.pj-chip .icon { width: 16px; height: 16px; color: var(--pj-1); }
.pj-chip-a { left: -3%; top: 16%; }
.pj-chip-b { left: 6%; bottom: -5%; }
.pj-chip-b > span { animation-delay: -3s; }
.pj-cursor { position: absolute; left: 0; top: 0; z-index: 3; display: none; width: 26px; height: 26px; pointer-events: none; }
.pj-cursor svg { width: 100%; height: 100%; fill: #fff; stroke: #111; stroke-width: 1.3; stroke-linejoin: round; filter: drop-shadow(0 4px 8px rgb(0 0 0 / .6)); }
.pj-tap { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--pj-1); opacity: 0; }

/* Accesos a cada proyecto */
.pj-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 clamp(22px, 3vw, 30px); }
.pj-nav a { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--stroke-2); background: rgb(var(--fg-rgb) / .04); font: 600 14px/1 var(--font); color: var(--text-2); transition: color .3s, border-color .3s, background-color .3s; }
.pj-nav a .mono { font-size: 11.5px; color: var(--orange); }
.pj-nav a:hover { color: var(--text); border-color: var(--stroke-3); background: rgb(var(--fg-rgb) / .07); }
.pj-nav-bar, .pj-hud, .pj-ring { display: none; }

.projects-cta { margin-top: clamp(36px, 5vw, 60px); }
.projects-note { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--text-3); }

@media (max-width: 420px) {
  .pj-cta { max-width: 100%; height: auto; min-height: var(--bh); padding-block: 12px; white-space: normal; text-align: left; line-height: 1.3; }
}
@media (max-width: 560px) {
  .pj-chip-b { display: none; }
  .pj-chip > span { padding: 7px 10px; font-size: 11.5px; }
  .pj-chip-a { left: -2%; top: 30%; }
  .pj-bar { height: 28px; padding: 0 9px; gap: 8px; }
  .pj-live { display: none; }
}

@media (min-width: 900px) {
  .pj-card { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "head visual" "body visual"; column-gap: clamp(34px, 4vw, 64px); row-gap: 26px; align-items: center; }
  .pj-head { align-self: end; }
  .pj-body { align-self: start; }
  .pj-visual { padding: 5% 7% 11% 0; }
  .pj:nth-child(even) .pj-card { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "visual head" "visual body"; }
}

/* Sin la coreografía de GSAP: al pasar el ratón, la web se recorre sola dentro de su pantalla. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .projects:not(.pj-anim) .pj-scroll { transition: transform 1.4s var(--ease-in-out); }
  .projects:not(.pj-anim) :is(.pj-browser, .pj-phone):hover .pj-scroll { transform: translateY(calc((var(--f) - 1) * 100%)); transition: transform 9s cubic-bezier(.4, 0, .6, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .pj-chip > span, .pj-live .live-dot::after { animation: none; }
}

/* En computadora, con GSAP: escenario fijo y un proyecto tras otro */
.projects.pj-on .pj-pin-wrap > .pj-pin { width: 100%; }
.projects.pj-on .pj-pin { display: flex; height: 100vh; padding: 12px var(--pad); }
.projects.pj-on .pj-stage { flex: 1; width: 100%; max-width: 1400px; height: 100%; overflow: hidden; isolation: isolate; border-radius: 32px; background: #04060b; box-shadow: 0 0 0 1px rgb(255 255 255 / .07), 0 50px 120px -60px rgb(var(--shadow-rgb) / calc(.9 * var(--shadow-k))); }
.projects.pj-on .pj-list { position: absolute; inset: 0; display: block; }
.projects.pj-on .pj { position: absolute; inset: 0; border-radius: 0; box-shadow: none; }
.projects.pj-on .pj-card, .projects.pj-on .pj:nth-child(even) .pj-card { height: 100%; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); grid-template-areas: "head visual" "body visual"; align-content: center; column-gap: clamp(40px, 4.4vw, 80px); row-gap: 22px; padding: calc(var(--header-h) + 8px) clamp(40px, 5vw, 84px) 104px; }
.projects.pj-on .pj-visual { padding: 3% 6% 9% 0; }
.projects.pj-on .pj-cursor { display: block; opacity: 0; }
.projects.pj-on .pj-giant { font-size: clamp(120px, 15vw, 250px); }
.projects.pj-on .pj-nav { position: absolute; z-index: 6; left: clamp(40px, 5vw, 84px); bottom: 30px; justify-content: flex-start; gap: 30px; margin: 0; }
.projects.pj-on .pj-nav a { min-height: 0; padding: 0 0 12px; border: 0; border-radius: 0; background: none; color: rgb(255 255 255 / .5); font-size: 13.5px; }
.projects.pj-on .pj-nav a .mono { color: rgb(255 255 255 / .62); transition: color .3s; }
.projects.pj-on .pj-nav a:hover, .projects.pj-on .pj-nav a[aria-current] { color: #fff; }
.projects.pj-on .pj-nav a[aria-current] .mono { color: var(--pj-now, var(--orange)); }
.projects.pj-on .pj-nav-bar { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; border-radius: 2px; background: rgb(255 255 255 / .14); }
.projects.pj-on .pj-nav-bar b { display: block; height: 100%; background: var(--pj-now, #fff); transform-origin: 0 50%; transform: scaleX(0); }
.projects.pj-on .pj-hud { display: block; position: absolute; z-index: 6; right: clamp(40px, 5vw, 84px); bottom: 32px; font-size: 13px; letter-spacing: .14em; color: rgb(255 255 255 / .5); }
.projects.pj-on .pj-count b { display: inline-block; min-width: 2ch; color: #fff; font-weight: 600; }
.projects.pj-on .pj-count b.is-flip { animation: pjFlip .45s var(--ease-out); }
@keyframes pjFlip { from { transform: translateY(70%); opacity: 0; } }
.projects.pj-on .pj-ring { display: block; position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.pj-ring circle { fill: none; stroke: #fff; stroke-width: 2; opacity: 0; }
@media (max-height: 760px) {
  .projects.pj-on .pj-card, .projects.pj-on .pj:nth-child(even) .pj-card { row-gap: 16px; padding-bottom: 92px; }
  .projects.pj-on .pj-title { margin-bottom: 12px; font-size: clamp(28px, 3.4vw, 40px); }
  .projects.pj-on .pj-ganafacil .pj-title { font-size: clamp(24px, 2.6vw, 34px); }
  .projects.pj-on .pj-meta { margin-bottom: 12px; }
  .projects.pj-on .pj-feats { gap: 8px; margin-bottom: 18px; }
  .projects.pj-on .pj-feats li { font-size: 14px; }
  .projects.pj-on .pj-desc { font-size: 15px; }
}

/* Tema claro: el escenario y las tarjetas siguen oscuros; solo cambia el borde. */
:root[data-theme="claro"] .pj { box-shadow: 0 40px 80px -52px rgb(16 36 66 / .55), inset 0 0 0 1px rgb(255 255 255 / .06); }
:root[data-theme="claro"] .projects.pj-on .pj-stage { box-shadow: 0 40px 100px -60px rgb(16 36 66 / .6); }

/* Cabecera (v17): con «Proyectos» en el menú no cabía todo entre 1141 y 1400 px (el botón de tema quedaba fuera
   de la pantalla). Por debajo de 1440 px, «Acceso administrativo» queda solo con su ícono; el nombre sigue
   disponible para lectores de pantalla y al pasar el ratón. */
@media (min-width: 1141px) and (max-width: 1439px) {
  .header-admin { gap: 0; padding-left: 14px; }
  .header-admin span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .header-admin .icon { width: 17px; height: 17px; }
}
@media (min-width: 1141px) and (max-width: 1200px) {
  .desktop-nav a { padding: 9px 9px; }
  .header-inner, .header-actions { gap: 14px; }
}

/* =========================================================
   v25 · Acceso a facturación electrónica en la cabecera
   «Entrar» abre un menú: portal e-CF de los negocios (destacado), administración y panel de control.
   ========================================================= */
.nav-ecf { display: inline-flex !important; align-items: center; gap: 7px; }
.nav-new { padding: 3px 7px; border-radius: 999px; background: rgb(var(--orange-rgb) / .16); color: var(--orange); font: 700 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.header-login { position: relative; }
button.header-admin { border: 0; border-left: 1px solid var(--stroke-2); background: none; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; }
.header-admin .chev { width: 13px !important; height: 13px !important; transition: transform .25s; }
.header-admin[aria-expanded="true"] .chev { transform: rotate(180deg); }
.login-menu { position: absolute; top: calc(100% + 14px); right: -8px; z-index: 60; width: 300px; padding: 8px; border: 1px solid var(--stroke-2); border-radius: 16px; background: var(--bg-2, #0d1626); box-shadow: 0 24px 60px -20px rgb(0 0 0 / .6); }
.login-menu[hidden] { display: none; }
.login-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: background-color .2s, color .2s; }
.login-menu a:hover, .login-menu a:focus-visible { background: rgb(var(--fg-rgb) / .06); color: var(--text); }
.login-menu a .icon { width: 17px; height: 17px; color: var(--admin-link); flex: none; }
.login-menu .login-main { align-items: flex-start; margin-bottom: 6px; padding: 12px; background: rgb(var(--turq-rgb) / .1); border: 1px solid rgb(var(--turq-rgb) / .25); }
.login-menu .login-main:hover { background: rgb(var(--turq-rgb) / .16); }
.login-main b { display: block; font-size: 14.5px; color: var(--text); }
.login-main small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--text-2); }
.login-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgb(var(--turq-rgb) / .18); flex: none; }
.login-ico .icon { color: var(--turq-2) !important; }
:root[data-theme="claro"] .login-menu { background: #fff; box-shadow: 0 24px 60px -24px rgb(16 36 66 / .35); }
.mobile-ecf { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; padding: 14px; border-radius: 14px; border: 1px solid rgb(var(--turq-rgb) / .35); background: rgb(var(--turq-rgb) / .1); color: var(--turq-2); font-size: 16px; font-weight: 700; }
.mobile-ecf .icon { width: 19px; height: 19px; }
.announce-ecf .announce-badge { background: rgb(var(--orange-rgb) / .16); color: var(--orange); }
/* «Entrar» siempre con texto: es corto. */
@media (min-width: 1141px) and (max-width: 1439px) {
  .header-admin { gap: 7px; }
  .header-admin span { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  .header-admin .icon { width: 15px; height: 15px; }
}
@media (min-width: 1141px) and (max-width: 1300px) {
  .nav-new { display: none; }
  .desktop-nav a { padding: 9px 9px; }
  .header-inner, .header-actions { gap: 14px; }
}
/* Con «Factura electrónica» en el menú no cabe todo por debajo de 1500 px: «Proceso» y «Preguntas» quedan
   en el menú móvil y en la página (se llega bajando), no en la barra. */
@media (min-width: 1141px) and (max-width: 1499px) {
  .desktop-nav .nav-opt { display: none; }
}
@media (min-width: 1141px) and (max-width: 1340px) { .nav-new { display: none; } }
@media (min-width: 1141px) and (max-width: 1200px) {
  .desktop-nav a { padding: 9px 7px; }
  .header-admin .chev { display: none; }
}
.mobile-nav-inner > * { flex-shrink: 0; }
.mobile-nav-inner > a.mobile-ecf.mobile-ecf { justify-content: center; gap: 9px; padding: 14px; border: 1px solid rgb(var(--turq-rgb) / .35); font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.25; letter-spacing: 0; color: var(--turq-2); }
.mobile-nav-inner > a.mobile-ecf.mobile-ecf .icon { width: 19px; height: 19px; color: var(--turq-2); }
