/* =============================================================
   EspanIA · Agentes de IA para manuales internos
   1. Tokens
   ============================================================= */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Fuentes alojadas en la propia web (sin peticiones a terceros) */
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; 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; }

:root {
  --bg: #04070d;
  --bg-2: #070c16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef3f8;
  --muted: #9aa6b5;
  --dim: #6b7584;

  --cyan: #5fe0e8;
  --sky: #2f97d0;
  --blue: #0a4bb8;
  --silver-a: #a9a9a9;
  --silver-b: #ffffff;
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--sky) 50%, var(--blue) 100%);
  --grad-silver: linear-gradient(100deg, var(--silver-a), var(--silver-b));

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1220px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--bg); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
::selection { background: var(--sky); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: #fff; color: var(--bg); border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--grad); }
.hero .eyebrow::before { display: none; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none;
  box-shadow: 0 0 0 0 rgba(95, 224, 232, .6);
  animation: pulse 2s infinite;
}

/* =============================================================
   4. Typography
   ============================================================= */
.h2 {
  font-family: var(--display);
  font-stretch: 118%;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}
.h-small { font-family: var(--display); font-stretch: 112%; font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: .9rem; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 58ch; }
strong { color: var(--text); font-weight: 700; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .005em;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .3s, border-color .3s;
  will-change: transform;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  color: #fff;
  background: var(--grad);
  background-size: 160% 100%;
  box-shadow: 0 10px 30px -10px rgba(47, 151, 208, .7), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 44px -10px rgba(47, 151, 208, .9), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--text); }
.btn-ghost:hover { border-color: rgba(95,224,232,.5); background: rgba(95,224,232,.06); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Scroll progress */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* Background */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(47,151,208,.13), transparent 65%);
  opacity: 0; transition: opacity .6s;
}
.has-cursor .cursor-glow { opacity: 1; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s, border-color .4s, transform .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(4, 7, 13, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.nav-logo img { width: 150px; height: auto; }
.nav-links { display: none; }
.nav-cta { display: none; }
.nav-burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border-radius: 12px; border: 1px solid var(--line-2); }
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .4s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-links.is-open {
  display: flex; flex-direction: column; gap: .4rem;
  position: fixed; top: 76px; left: 0; right: 0;
  padding: 1.2rem var(--gutter) 2rem;
  background: rgba(4,7,13,.97); border-bottom: 1px solid var(--line);
  animation: dropIn .45s var(--ease-out);
}
.nav-links.is-open a { padding: .8rem 0; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav-links.is-open .nav-cta-mobile { margin-top: 1rem; border: 0; padding: 1rem; }

/* =============================================================
   6. Sections
   ============================================================= */
.section { position: relative; padding-block: clamp(80px, 12vw, 150px); }
.section-head { margin-bottom: clamp(40px, 6vw, 70px); max-width: 820px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  overflow: clip;
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; pointer-events: none; }
.orb-a { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; right: -10vw; top: -8vw; background: radial-gradient(circle, rgba(10,75,184,.55), transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
.orb-b { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; left: -10vw; bottom: -6vw; background: radial-gradient(circle, rgba(95,224,232,.22), transparent 70%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero-copy .eyebrow { padding: .45rem .9rem; border: 1px solid rgba(95,224,232,.25); border-radius: 999px; background: rgba(95,224,232,.06); letter-spacing: .08em; font-size: .72rem; }
.hero-title {
  font-family: var(--display);
  font-stretch: 122%;
  font-weight: 900;
  font-size: clamp(2.3rem, 5.6vw, 4.9rem);
  line-height: .98;
  letter-spacing: -0.035em;
  margin-bottom: 1.6rem;
}
.hero-title .w { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .w > span { display: inline-block; background: var(--grad-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .w > .grad-text { background-image: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: gradShift 6s ease-in-out infinite alternate; }
@keyframes gradShift { to { background-position: 100% 0; } }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 54ch; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }
.hero-trust { display: grid; gap: .55rem; color: var(--muted); font-size: .93rem; }
.hero-trust li { display: flex; align-items: center; gap: .6rem; }
.hero-trust svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; perspective: 1200px; }
.chat {
  position: relative;
  max-width: 470px; margin-inline: auto;
  border-radius: 26px;
  padding: 1px;
  background: conic-gradient(from var(--ang), rgba(95,224,232,.55), rgba(10,75,184,.1) 25%, rgba(255,255,255,.08) 50%, rgba(10,75,184,.1) 75%, rgba(95,224,232,.55));
  animation: spin 8s linear infinite;
  box-shadow: 0 40px 100px -30px rgba(10,75,184,.55), 0 0 0 1px rgba(255,255,255,.03);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out);
}
.chat > * { background: #070d18; }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-radius: 25px 25px 0 0; border-bottom: 1px solid var(--line); }
.chat-avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-stretch: 120%; font-size: .9rem; background: var(--grad); color: #fff; flex: none; }
.chat-name { font-weight: 700; font-size: .93rem; line-height: 1.2; }
.chat-status { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--muted); }
.chat-status .pulse-dot { width: 6px; height: 6px; background: #3ddc84; animation-name: pulseGreen; }
.chat-tag { margin-left: auto; font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-2); padding: .2rem .5rem; border-radius: 6px; }
.chat-body { height: 360px; padding: 1.2rem 1.1rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .75rem; overflow: hidden; }
.msg { max-width: 86%; padding: .75rem .95rem; border-radius: 16px; font-size: .9rem; line-height: 1.5; animation: msgIn .5s var(--ease-out) both; }
.msg-user { align-self: flex-end; background: linear-gradient(135deg, #1460c9, #0a4bb8); color: #fff; border-bottom-right-radius: 5px; }
.msg-bot { align-self: flex-start; background: rgba(255,255,255,.055); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: #dfe7ef; }
.msg-src { display: block; margin-top: .55rem; padding-top: .5rem; border-top: 1px dashed var(--line-2); font-family: var(--mono); font-size: .7rem; color: var(--cyan); }
.typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.chat-input { display: flex; align-items: center; justify-content: space-between; padding: .8rem .8rem .8rem 1.1rem; border-top: 1px solid var(--line); border-radius: 0 0 25px 25px; color: var(--dim); font-size: .88rem; }
.chat-send { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); }
.chat-send svg { width: 16px; height: 16px; fill: #fff; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  padding: .8rem 1rem; border-radius: 16px;
  background: rgba(10, 16, 28, .8); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  font-size: .78rem; line-height: 1.3; color: var(--muted);
  animation: floaty 6s ease-in-out infinite;
}
.fc-1 { left: -6%; bottom: -26px; }
.fc-2 { right: -5%; top: -30px; animation-delay: -3s; }
.fc-num { font-family: var(--display); font-stretch: 120%; font-weight: 900; font-size: 1.5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fc-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(95,224,232,.1); font-size: 1rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 20px; display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: cue 1.8s var(--ease-out) infinite; }

/* ---------- Marquee ---------- */
.marquee { padding: 34px 0 40px; border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.015), transparent); overflow: hidden; }
.marquee-label { text-align: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; gap: 14px; padding-right: 14px; }
.marquee-row span {
  white-space: nowrap; padding: .6rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: .92rem; color: #c8d2dd;
}
.marquee-row span::before { content: "📄"; margin-right: .5rem; filter: grayscale(.2); }

/* ---------- Problem ---------- */
.manifesto {
  font-family: var(--display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 3.3rem); line-height: 1.12; letter-spacing: -.025em;
  max-width: 22ch; margin-bottom: clamp(56px, 8vw, 96px);
}
.manifesto .sw { opacity: .16; transition: opacity .2s; }
.no-scrub .manifesto .sw, .manifesto:not(.is-split) { opacity: 1; }
.problem-grid { display: grid; gap: 18px; margin-bottom: 56px; }
.p-card { padding: 2rem 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.p-num { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(2.8rem, 5vw, 3.8rem); line-height: 1; margin-bottom: 1rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-card h3 { font-size: 1.15rem; margin-bottom: .6rem; font-family: var(--sans); letter-spacing: -.01em; }
.p-card p { color: var(--muted); font-size: .95rem; }
.definition {
  position: relative; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(95,224,232,.07), rgba(10,75,184,.08));
  border: 1px solid rgba(95,224,232,.18);
}
.definition p { color: #c9d3de; font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 75ch; }

/* ---------- How ---------- */
.how-grid { display: grid; gap: 56px; }
.how-intro .lead { margin-bottom: 2rem; }
.steps { position: relative; display: grid; gap: 18px; }
.step-line { position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: var(--line); }
.step-line span { position: absolute; inset: 0; background: var(--grad); transform-origin: 50% 0; transform: scaleY(0); }
.no-js .step-line span, html:not(.js-anim) .step-line span { transform: scaleY(1); }
.step { position: relative; display: flex; gap: 1.3rem; padding: 1.5rem 1.4rem 1.5rem 0; }
.step-n {
  position: relative; z-index: 1; flex: none; width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 500; color: var(--cyan);
  background: #08101d; border: 1px solid rgba(95,224,232,.3);
  box-shadow: 0 0 30px -8px rgba(95,224,232,.4);
}
.step h3 { font-size: 1.25rem; margin: .4rem 0 .5rem; font-family: var(--sans); letter-spacing: -.01em; }
.step p { color: var(--muted); }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; }
.b-card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  padding: 2rem 1.8rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .4s, transform .5s var(--ease-out);
}
.b-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(95,224,232,.12), transparent 60%);
}
.b-card:hover { border-color: rgba(95,224,232,.3); }
.b-card:hover::before { opacity: 1; }
.b-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.3rem; background: rgba(95,224,232,.08); border: 1px solid rgba(95,224,232,.2); }
.b-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.b-card h3 { font-size: 1.2rem; margin-bottom: .55rem; font-family: var(--sans); letter-spacing: -.01em; }
.b-card p { color: var(--muted); font-size: .96rem; }
.b-demo { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.src-chip { font-family: var(--mono); font-size: .72rem; color: var(--cyan); padding: .4rem .7rem; border-radius: 8px; background: rgba(95,224,232,.07); border: 1px dashed rgba(95,224,232,.3); }
.b-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.3rem; }
.b-list li { font-size: .82rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.b-list li::before { content: "✓ "; color: var(--cyan); }
.b-secure { background: linear-gradient(135deg, rgba(10,75,184,.14), rgba(255,255,255,.02)); }

/* ---------- Calculator ---------- */
.calc { background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(10,75,184,.14), transparent 70%); }
.calc-box {
  display: grid; gap: 0;
  border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: rgba(8, 13, 24, .75);
  box-shadow: 0 50px 120px -50px rgba(10,75,184,.6);
}
.calc-form { padding: clamp(1.5rem, 4vw, 2.8rem); display: grid; gap: 1.7rem; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .7rem; }
.field label { font-weight: 600; font-size: .96rem; }
.field output { font-family: var(--mono); font-weight: 500; font-size: 1rem; color: var(--cyan); min-width: 4ch; text-align: right; }
.field-hint { margin-top: .5rem; font-size: .8rem; color: var(--dim); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--cyan), var(--blue)) 0 / var(--p) 100% no-repeat, rgba(255,255,255,.1); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 4px solid var(--sky); box-shadow: 0 0 0 6px rgba(47,151,208,.18); transition: transform .25s var(--ease-bounce); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--sky); box-shadow: 0 0 0 6px rgba(47,151,208,.18); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.field-money label { display: block; margin-bottom: .7rem; }
.money-input { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.04); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.money-input:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(47,151,208,.18); }
.money-input input { flex: 1; min-width: 0; background: transparent; border: 0; padding: .85rem 1rem; font-family: var(--mono); font-size: 1.2rem; outline: none; }
.money-input span { padding-right: 1rem; color: var(--muted); font-family: var(--mono); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .7rem; }
.chips button { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .82rem; font-weight: 600; color: var(--muted); transition: all .3s; }
.chips button:hover, .chips button.is-on { color: #fff; border-color: var(--sky); background: rgba(47,151,208,.18); }

.calc-result {
  padding: clamp(1.5rem, 4vw, 2.8rem);
  background: linear-gradient(160deg, rgba(10,75,184,.22), rgba(95,224,232,.05) 60%, transparent);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1.4rem;
}
.ring-wrap { position: relative; width: min(240px, 70vw); margin: 0 auto .4rem; }
.ring { width: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 12; }
.ring-fg { fill: none; stroke: url(#ringGrad); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 540.35; stroke-dashoffset: 162; transition: stroke-dashoffset .9s var(--ease-out); filter: drop-shadow(0 0 10px rgba(95,224,232,.45)); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num { font-family: var(--display); font-stretch: 122%; font-weight: 900; font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 1; color: #fff; }
.ring-label { margin-top: .4rem; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.res { padding: 1rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.res-label { display: block; font-size: .76rem; color: var(--muted); margin-bottom: .25rem; }
.res-val { display: block; font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
.res-hl { border-color: rgba(95,224,232,.3); background: rgba(95,224,232,.06); }
.res-hl .res-val { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.25); }
.res-equiv { text-align: center; color: #c9d3de; }
.res-note { font-size: .75rem; color: var(--dim); text-align: center; }
.bump { animation: bump .5s var(--ease-out); }

/* ---------- Compare ---------- */
.compare-grid { display: grid; gap: 18px; }
.cmp { padding: 2rem 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); }
.cmp h3 { font-size: 1.25rem; margin-bottom: 1.3rem; font-family: var(--sans); display: flex; align-items: center; gap: .6rem; }
.cmp ul { display: grid; gap: .85rem; }
.cmp li { display: flex; gap: 1rem; font-size: .95rem; }
.cmp li span { font-family: var(--mono); font-size: .8rem; padding-top: .15rem; flex: none; }
.cmp-before { background: rgba(255, 90, 90, .035); border-color: rgba(255,110,110,.16); }
.cmp-before h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; box-shadow: 0 0 12px #ff6b6b; }
.cmp-before li { color: #b9a9ad; }
.cmp-before li span { color: #ff8b8b; }
.cmp-after { background: linear-gradient(135deg, rgba(95,224,232,.07), rgba(10,75,184,.1)); border-color: rgba(95,224,232,.25); }
.cmp-after h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.cmp-after li { color: #d6e2ec; }
.cmp-after li span { color: var(--cyan); }

/* ---------- Sectors ---------- */
.tab-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button { flex: none; padding: .65rem 1.15rem; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: .92rem; color: var(--muted); transition: all .35s var(--ease-out); }
.tab-list button:hover { color: var(--text); border-color: rgba(95,224,232,.4); }
.tab-list button[aria-selected="true"] { color: #fff; border-color: transparent; background: var(--grad); box-shadow: 0 10px 26px -10px rgba(47,151,208,.8); }
.tab-panel { display: grid; gap: 28px; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); animation: panelIn .55s var(--ease-out); }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-family: var(--display); font-stretch: 112%; font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin-bottom: .8rem; }
.tab-panel p { color: var(--muted); }
.q-list { display: grid; gap: 10px; align-content: start; }
.q-list li { padding: .85rem 1.1rem; border-radius: 14px 14px 14px 4px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: .93rem; color: #d4dee8; }
.channels { margin-top: 48px; text-align: center; }
.channels p { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.channels ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.channels li { padding: .55rem 1.05rem; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 600; font-size: .9rem; background: rgba(255,255,255,.025); }

/* ---------- Pilot ---------- */
.pilot-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(2.4rem, 7vw, 5rem) clamp(1.4rem, 5vw, 4rem);
  border-radius: 32px; border: 1px solid rgba(95,224,232,.25);
  background: linear-gradient(160deg, #081429, #050a14 70%);
}
.pilot-glow { position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(ellipse at 50% 100%, rgba(47,151,208,.35), transparent 60%); pointer-events: none; }
.pilot-card > * { position: relative; }
.pilot-card .lead { margin: 0 auto 2rem; }
.pilot-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-bottom: 2.2rem; color: #c9d3de; font-weight: 600; }
.pilot-list li { display: flex; align-items: center; gap: .55rem; }
.pilot-list strong { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: var(--grad); }
.pilot-small { margin-top: 1.2rem; font-size: .82rem; color: var(--dim); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 40px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, background .3s; }
.faq-list details[open] { border-color: rgba(95,224,232,.3); background: rgba(95,224,232,.04); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.3rem; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--cyan); font-weight: 500; transition: transform .4s var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 1.3rem 1.3rem; color: var(--muted); }
.faq-list details p a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
.contact-copy .lead { margin-bottom: 2rem; }
.contact-direct { display: grid; gap: 12px; }
.contact-direct li { display: flex; flex-direction: column; padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.contact-direct span { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.contact-direct a { font-weight: 700; color: var(--text); word-break: break-word; }
.contact-direct a:hover { color: var(--cyan); }
.contact-form { display: grid; gap: 16px; padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: 26px; border: 1px solid var(--line-2); background: rgba(8,13,24,.8); }
.form-row { display: grid; gap: 16px; }
.f { display: grid; gap: .45rem; }
.f label { font-size: .85rem; font-weight: 600; color: #c9d3de; }
.f small { color: var(--dim); font-weight: 500; }
.f input, .f select, .f textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
  outline: none; transition: border-color .3s, box-shadow .3s;
}
.f select option { background: #0b1220; }
.f textarea { resize: vertical; min-height: 110px; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(47,151,208,.18); }
.f input.is-error { border-color: #ff6b6b; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .83rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--sky); flex: none; }
.form-msg { min-height: 1.3em; font-size: .9rem; text-align: center; }
.form-msg.ok { color: #6ee7a8; } .form-msg.err { color: #ff8b8b; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 40px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-big {
  font-family: var(--display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(4rem, 19vw, 17rem); line-height: .85; letter-spacing: -.04em;
  text-transform: uppercase; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 40px; user-select: none;
}
.footer-big .grad-text { background: linear-gradient(180deg, rgba(95,224,232,.45), rgba(10,75,184,0) 85%); -webkit-background-clip: text; background-clip: text; }
.footer-grid { display: grid; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer-grid img { width: 170px; margin-bottom: 1rem; }
.footer-grid p { color: var(--muted); font-size: .92rem; max-width: 40ch; }
.footer-grid nav, .footer-contact { display: grid; gap: .55rem; align-content: start; }
.footer-grid nav a, .footer-contact a { color: var(--muted); font-size: .93rem; transition: color .3s; }
.footer-grid nav a:hover, .footer-contact a:hover { color: var(--cyan); }
.footer-bottom { display: grid; gap: .4rem; padding-top: 22px; font-size: .78rem; color: var(--dim); }

/* =============================================================
   7. Effects
   ============================================================= */
.js-anim [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js-anim [data-reveal].is-in { opacity: 1; transform: none; }
.js-anim .hero-title .w > span { transform: translateY(110%); }
.is-ready .hero-title .w > span { transform: none; transition: transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,224,232,.55); } 70% { box-shadow: 0 0 0 10px rgba(95,224,232,0); } 100% { box-shadow: 0 0 0 0 rgba(95,224,232,0); } }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
@keyframes spin { to { --ang: 360deg; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6vw, 5vw) scale(1.15); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-direct { grid-template-columns: 1fr 1fr; }
  .contact-direct li:last-child { grid-column: span 2; }
}
@media (min-width: 720px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .tab-panel { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .scroll-cue { display: block; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; gap: 2rem; margin-left: auto; font-size: .92rem; font-weight: 600; color: var(--muted); }
  .nav-links a { position: relative; transition: color .3s; }
  .nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
  .nav-links a:hover { color: var(--text); }
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
  .nav-cta-mobile { display: none !important; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-logo img { width: 170px; }

  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 40px; }
  .how-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
  .how-intro { position: sticky; top: 130px; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .b-wide { grid-column: span 2; }
  .calc-box { grid-template-columns: 1.1fr .9fr; }
  .calc-result { border-top: 0; border-left: 1px solid var(--line); }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
  .faq-grid > div:first-child { position: sticky; top: 130px; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
}
@media (min-width: 1280px) {
  .hero-grid { gap: 70px; }
}
@media (max-width: 539px) {
  .fc-1 { left: 0; bottom: -18px; }
  .fc-2 { right: 0; top: -22px; }
  .chat-body { height: 330px; }
  .hero-ctas .btn { width: 100%; }
}

/* =============================================================
   9. Reduced motion (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .float-card, .chat, .marquee-track { animation: none; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee-row[aria-hidden="true"] { display: none; }
  .marquee-row { flex-wrap: wrap; justify-content: center; }
  .hero-net { display: none; }
}

/* =============================================================
   10. Páginas legales
   ============================================================= */
.legal-top { position: sticky; top: 0; z-index: 50; background: rgba(4,7,13,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.legal-top .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.legal-top img { width: 150px; }
.legal-top .btn { padding: .6rem 1.1rem; font-size: .88rem; }
.legal { max-width: 860px; padding-block: clamp(48px, 8vw, 96px); }
.legal h1 { font-family: var(--display); font-stretch: 118%; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .8rem; }
.legal .updated { font-family: var(--mono); font-size: .78rem; color: var(--dim); margin-bottom: 2rem; }
.legal .intro { font-size: 1.08rem; color: #c9d3de; margin-bottom: 2.4rem; }
.legal h2 { font-family: var(--sans); font-size: clamp(1.2rem, 2.2vw, 1.45rem); letter-spacing: -.01em; margin: 2.6rem 0 .9rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.legal h3 { font-family: var(--sans); font-size: 1.05rem; margin: 1.6rem 0 .6rem; letter-spacing: 0; }
.legal p, .legal li { color: #b8c3cf; }
.legal p + p { margin-top: .9rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .45rem; margin: .8rem 0; }
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal .data-box { display: grid; gap: .5rem; padding: 1.3rem 1.4rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); margin: 1rem 0; }
.legal .data-box p { margin: 0; }
.legal .data-box strong { display: inline-block; min-width: 9.5rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: .75rem .9rem; border: 1px solid var(--line); vertical-align: top; color: #b8c3cf; }
.legal th { background: var(--surface-2); color: var(--text); font-weight: 700; }
.legal .toc { padding: 1.2rem 1.4rem; border-radius: var(--radius-sm); border: 1px solid rgba(95,224,232,.2); background: rgba(95,224,232,.04); }
.legal .toc p { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: .5rem; }
.legal .toc ol { list-style: decimal; padding-left: 1.3rem; display: grid; gap: .3rem; }
mark.todo { background: rgba(255, 196, 0, .16); color: #ffd666; padding: 0 .3em; border-radius: 4px; border: 1px dashed rgba(255,214,102,.5); }
.legal-foot { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: .85rem; color: var(--dim); }
.legal-foot .container { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
.legal-foot a:hover, .legal-foot a[aria-current="page"] { color: var(--cyan); }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.footer-legal a { color: var(--dim); transition: color .3s; }
.footer-legal a:hover { color: var(--cyan); }
.check a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.form-legal { font-size: .72rem; line-height: 1.5; color: var(--dim); }
.form-legal strong { color: var(--muted); font-weight: 600; }
.form-legal a { color: var(--cyan); text-decoration: underline; }
@media (min-width: 720px) { .footer-bottom { grid-template-columns: 1fr; } }

/* =============================================================
   11. Panel de cookies
   ============================================================= */
.ck-banner {
  position: fixed; z-index: 300; left: 12px; right: 12px; bottom: 12px;
  max-width: 1040px; margin-inline: auto;
  border-radius: 22px; padding: 1px;
  background: linear-gradient(120deg, rgba(95,224,232,.55), rgba(10,75,184,.35) 45%, rgba(255,255,255,.08));
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.85), 0 0 60px -20px rgba(47,151,208,.45);
  transform: translateY(calc(100% + 30px)); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s;
}
.ck-banner.is-in { transform: none; opacity: 1; }
.ck-banner[hidden], .ck-modal[hidden] { display: none; }
.ck-inner {
  display: grid; gap: 1rem; padding: 1.3rem 1.3rem 1.1rem;
  border-radius: 21px; background: rgba(7, 12, 22, .96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.ck-title { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.02rem; color: var(--text); margin-bottom: .35rem; }
.ck-ico { font-size: 1.15rem; }
.ck-desc { font-size: .87rem; color: var(--muted); line-height: 1.55; }
.ck-desc a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.ck-actions { display: grid; gap: 8px; }
.ck-btn {
  padding: .75rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .88rem;
  transition: transform .3s var(--ease-out), background .3s, border-color .3s, box-shadow .3s;
}
.ck-btn:hover { transform: translateY(-1px); }
.ck-btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); }
.ck-btn-ghost:hover { border-color: rgba(95,224,232,.5); background: rgba(95,224,232,.07); }
.ck-btn-primary { color: #fff; background: var(--grad); box-shadow: 0 10px 26px -10px rgba(47,151,208,.8); }
.ck-link { justify-self: start; font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.ck-link:hover { color: var(--cyan); }

.ck-modal { position: fixed; inset: 0; z-index: 310; display: grid; place-items: center; padding: 16px; }
.ck-backdrop { position: absolute; inset: 0; background: rgba(2,4,8,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.ck-panel {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100svh - 32px); overflow: auto;
  padding: 1.5rem; border-radius: 22px; border: 1px solid var(--line-2);
  background: #070d18; box-shadow: 0 40px 100px -30px rgba(10,75,184,.6);
  transform: translateY(20px) scale(.97); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s;
  outline: none;
}
.ck-modal.is-in .ck-backdrop { opacity: 1; }
.ck-modal.is-in .ck-panel { transform: none; opacity: 1; }
.ck-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .4rem; }
.ck-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 1.3rem; line-height: 1; color: var(--muted); }
.ck-x:hover { color: var(--text); border-color: rgba(95,224,232,.5); }
.ck-panel > .ck-desc { margin-bottom: 1rem; }
.ck-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.ck-row-name { font-weight: 700; font-size: .95rem; }
.ck-row-desc { font-size: .82rem; color: var(--muted); line-height: 1.5; margin-top: .2rem; }
.ck-always { flex: none; font-size: .75rem; font-weight: 700; color: var(--cyan); padding: .3rem .6rem; border-radius: 999px; background: rgba(95,224,232,.08); border: 1px solid rgba(95,224,232,.25); }
.ck-switch { position: relative; flex: none; width: 48px; height: 28px; cursor: pointer; }
.ck-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ck-switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid var(--line-2); transition: background .3s; pointer-events: none; }
.ck-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease-bounce); }
.ck-switch input:checked + span { background: var(--grad); border-color: transparent; }
.ck-switch input:checked + span::after { transform: translateX(20px); }
.ck-switch input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.ck-actions-modal { margin-top: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.ck-fab {
  position: fixed; z-index: 90; left: 16px; bottom: 16px;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.15rem;
  display: grid; place-items: center;
  background: rgba(10,16,28,.85); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.8);
  transform: scale(0); opacity: 0; transition: transform .45s var(--ease-bounce), opacity .3s, border-color .3s;
}
.ck-fab.is-in { transform: scale(1); opacity: 1; }
.ck-fab:hover { border-color: rgba(95,224,232,.5); }

@media (min-width: 720px) {
  .ck-actions { grid-template-columns: repeat(3, auto); justify-content: end; }
  .ck-banner { left: 20px; right: 20px; bottom: 20px; }
}
@media (min-width: 960px) {
  .ck-inner { grid-template-columns: 1fr auto; align-items: center; column-gap: 2rem; padding: 1.4rem 1.6rem 1.2rem; }
  .ck-link { grid-column: 1; }
  .ck-actions:not(.ck-actions-modal) { grid-row: 1 / span 2; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .ck-banner, .ck-panel, .ck-fab { transition: opacity .2s; }
}
@media (max-width: 719px) {
  .ck-inner { padding: 1.1rem 1.1rem .9rem; gap: .8rem; }
  .ck-desc { font-size: .82rem; }
  .ck-actions { grid-template-columns: 1fr; }
  .ck-btn { padding: .7rem .8rem; font-size: .86rem; }
}
