/* =============================================================
   CG Partners · styles.css
   1. Fuentes y tokens   2. Base   3. Utilidades   4. Botones
   5. Splash   6. Menú   7. Hero   8. Secciones   9. Chatbot
   10. Legal   11. Responsive   12. Movimiento reducido
   ============================================================= */

/* ---------- 1. Fuentes (autoalojadas) y tokens ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #08080A;
  --ink-2: #101015;
  --ink-3: #18181F;
  --paper: #F4F3EF;
  --white: #FFFFFF;
  --muted-l: #5C5C66;
  --muted-d: #A4A4B0;
  --line-l: rgba(8, 8, 10, .10);
  --line-d: rgba(255, 255, 255, .10);

  --accent: #7B5CFF;
  --accent-2: #B9A8FF;
  --accent-3: #4B2FE0;
  --grad: linear-gradient(100deg, #C9BCFF 0%, #8F74FF 45%, #5B3CF5 100%);
  --error: #D14343;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 24px;
  --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. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-feature-settings: "ss01", "cv11";
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
em { font-style: italic; }

/* ---------- 3. Utilidades ---------- */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1rem; background: var(--white); color: var(--ink);
  border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-3);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
[data-theme="dark"] .eyebrow { color: var(--accent-2); }
.eyebrow-num { order: -1; font-variant-numeric: tabular-nums; padding: .15rem .45rem; border-radius: 6px; border: 1px solid currentColor; letter-spacing: .04em; font-size: 11px; line-height: 1.2; }
.eyebrow:has(.eyebrow-num)::before { order: 0; }

/* ---------- Logo animado de fondo (configurable en contenido.js → logoFondo) ---------- */
.bg-logo { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; display: flex; align-items: center; justify-content: flex-end; padding-inline: 2vw; }
.bg-logo--centro { justify-content: center; }
.bg-logo--izquierda { justify-content: flex-start; }
.bg-logo-mark {
  position: relative; display: block; flex: none;
  width: var(--bl-size, 78%); max-width: 1500px; aspect-ratio: 1600 / 1016;
  margin-right: -6%;
  will-change: translate, rotate;
}
.bg-logo--centro .bg-logo-mark { margin-right: 0; }
.bg-logo--izquierda .bg-logo-mark { margin: 0 0 0 -6%; }
.bg-logo-mark i {
  position: absolute; inset: 0;
  -webkit-mask: var(--bl-img) center / contain no-repeat;
  mask: var(--bl-img) center / contain no-repeat;
}
.bg-logo-base { background: var(--bl-color, #fff); opacity: var(--bl-op, .07); }
.bg-logo-glow {
  opacity: 0;
  background: linear-gradient(105deg, transparent 38%, var(--bl-glow) 46%, #FFFFFF 50%, var(--bl-glow) 54%, transparent 62%) 0 0 / 300% 100% no-repeat;
}
/* Entrada: el monograma aparece desenfocado y se asienta */
.bg-logo.is-animated .bg-logo-mark { opacity: 0; transform: scale(1.08); filter: blur(18px); transition: opacity 2.2s var(--ease-out), transform 2.6s var(--ease-out), filter 2s var(--ease-out); }
.bg-logo.is-animated.is-in .bg-logo-mark { opacity: 1; transform: none; filter: none; }
/* Destello que recorre el logo cada pocos segundos */
.bg-logo.is-animated.is-in .bg-logo-glow { opacity: calc(var(--bl-op, .07) * 3.2); animation: blSweep 7.5s 1.2s var(--ease-soft) infinite; }
.bg-logo.is-animated .bg-logo-base { animation: blBreath 9s ease-in-out infinite; }
@keyframes blSweep { 0% { background-position: 120% 0; } 55%, 100% { background-position: -20% 0; } }
@keyframes blBreath { 50% { opacity: calc(var(--bl-op, .07) * 1.6); } }
.hero .bg-logo { z-index: 0; }
.section > .bg-logo ~ .wrap, .hero > .wrap { position: relative; z-index: 1; }

.sec-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.6vw, 4.7rem);
  line-height: 1.0;
  letter-spacing: -0.012em;
  margin-top: 1.1rem;
  max-width: 17ch;
}
.sec-title em, .hero-title em, .footer-claim em {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.section--paper .sec-title em, .section--white .sec-title em {
  background: linear-gradient(100deg, #6A4BFF 0%, #4B2FE0 60%, #2E1A9C 100%);
  -webkit-background-clip: text; background-clip: text;
}
.sec-intro { margin-top: 1.3rem; max-width: 56ch; font-size: clamp(1.02rem, 1.3vw, 1.16rem); color: var(--muted-l); }
[data-theme="dark"] .sec-intro { color: var(--muted-d); }
.sec-head { margin-bottom: clamp(2.6rem, 5vw, 4.2rem); }
.sec-head--center { text-align: center; }
.sec-head--center .sec-title, .sec-head--center .sec-intro { margin-inline: auto; }

.section { position: relative; padding: clamp(5rem, 11vw, 9rem) 0; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }
.section--dark { background: var(--ink); color: var(--paper); }

/* ---------- 4. Botones ---------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--bh); padding: 0 1.5rem;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  transition: transform .45s var(--ease-out), background-color .3s, color .3s, box-shadow .45s var(--ease-out), border-color .3s;
  white-space: nowrap;
  position: relative;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-accent {
  color: var(--white);
  background: linear-gradient(135deg, #8F74FF, #5B3CF5);
  box-shadow: 0 10px 30px -10px rgba(123, 92, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-accent:hover { box-shadow: 0 16px 40px -10px rgba(123, 92, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .3); transform: translateY(-2px); }
.btn-ghost { color: inherit; border: 1px solid currentColor; border-color: rgba(127, 127, 140, .35); background: transparent; }
.btn-ghost:hover { border-color: currentColor; transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #22222B; transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: .55; cursor: default; pointer-events: none; }

/* ---------- 5. Splash (pantalla de carga) ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 2rem;
  background: var(--ink);
  transition: clip-path 1s var(--ease-out), opacity .6s;
  clip-path: inset(0 0 0 0);
  /* Red de seguridad: se oculta sola a los 4.5 s aunque falle el JS */
  animation: splashSafety .01s 4.5s forwards;
}
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); visibility: hidden; } }
.splash.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
html:not(.js) .splash { display: none; }
.splash-card {
  position: relative; overflow: hidden;
  width: 200px; height: 140px; padding: 14px 18px;
  border-radius: 34px; background: var(--white);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px -20px rgba(123, 92, 255, .7);
  animation: logoIn 1.1s var(--ease-out) both;
}
.splash-card img { width: 100%; height: 100%; object-fit: contain; }
.splash-sweep {
  position: absolute; inset: -20%;
  background: linear-gradient(105deg, transparent 40%, rgba(123, 92, 255, .35) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: sweep 1.1s .5s var(--ease-soft) both;
}
.splash-bar { width: 120px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.splash-bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; animation: bar 1.4s .2s var(--ease-out) both; }
@keyframes logoIn { from { opacity: 0; transform: scale(.82); filter: blur(14px); } }
@keyframes sweep { to { transform: translateX(100%); } }
@keyframes bar { from { transform: scaleX(0); } }

/* ---------- 6. Menú: pastilla de cristal ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: .35rem;
  width: 100%; max-width: 560px; justify-content: space-between;
  padding: 6px 6px 6px 8px;
  border-radius: 999px;
  background: rgba(250, 250, 248, .9);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 12px 40px -14px rgba(8, 8, 10, .45), 0 1px 0 rgba(255,255,255,.6) inset, 0 0 0 1px rgba(8,8,10,.04);
  transition: padding .5s var(--ease-out), gap .5s var(--ease-out), transform .5s var(--ease-out), box-shadow .5s, max-width .6s var(--ease-out);
  animation: navIn 1.1s var(--ease-out) both;
  animation-delay: var(--nav-delay, .2s);
  color: var(--ink);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .nav-pill {
    background: rgba(250, 250, 248, .66);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
  }
}
.js .nav-pill { --nav-delay: 1.5s; }
@keyframes navIn { from { opacity: 0; transform: translateY(-140%) scale(.92); } }
/* El logo (PNG con fondo blanco) va sobre su propia pastilla blanca */
.nav-logo { display: grid; place-items: center; flex: none; height: 44px; padding: 0 .85rem; border-radius: 999px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(8,8,10,.06), 0 4px 14px -6px rgba(8,8,10,.25); transition: height .5s var(--ease-out), padding .5s var(--ease-out); }
.nav-logo img { width: auto; height: 34px; transition: height .5s var(--ease-out); }
.nav.is-compact .nav-logo { height: 38px; padding: 0 .7rem; }
.nav-list { display: contents; }
.nav-links a small { margin-right: .35rem; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--accent-3); opacity: .75; font-variant-numeric: tabular-nums; }
.nav-links { display: none; position: relative; align-items: center; }
.nav-links a {
  position: relative; z-index: 1;
  padding: .6rem .95rem; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: #3A3A44; white-space: nowrap;
  transition: color .3s, padding .5s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-indicator {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px; background: rgba(8, 8, 10, .065);
  opacity: 0;
  transition: transform .6s var(--ease-out), width .6s var(--ease-out), opacity .3s;
}
.nav-indicator::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; width: 16px; height: 3px; margin-left: -8px;
  border-radius: 3px; background: var(--grad);
  box-shadow: 0 0 10px rgba(123, 92, 255, .8);
}
.nav-indicator.is-on { opacity: 1; }
.nav-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  height: 44px; padding: 0 1.1rem;
  border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: height .5s var(--ease-out), padding .5s var(--ease-out), background .3s;
  margin-left: auto;
}
.nav-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .4s var(--ease-out); }
.nav-cta:hover { background: #24242E; }
.nav-cta:hover svg { transform: translateX(3px); }
.nav-burger {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-content: center; gap: 6px;
  background: rgba(8, 8, 10, .06);
}
.nav-burger i { display: block; width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .5s var(--ease-out); }
.nav-burger[aria-expanded="true"] i:first-of-type { transform: translateY(3.8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] i:last-of-type { transform: translateY(-3.8px) rotate(-45deg); }
html:not(.js) .nav-burger { display: none; }
html:not(.js) .nav-links { display: flex; overflow-x: auto; }

/* Compacto al hacer scroll */
.nav.is-compact .nav-pill { padding: 4px 4px 4px 5px; transform: translateY(-4px); box-shadow: 0 16px 50px -16px rgba(8, 8, 10, .5), 0 0 0 1px rgba(8,8,10,.06); }
.nav.is-compact .nav-logo img { height: 29px; }
.nav.is-compact .nav-cta { height: 38px; padding: 0 .95rem; }
.nav.is-compact .nav-burger { width: 38px; height: 38px; }

/* Menú móvil a pantalla completa */
.mmenu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: center; gap: 2.4rem;
  padding: 110px 28px 40px;
  background: radial-gradient(80% 60% at 80% 10%, rgba(123, 92, 255, .35), transparent 70%), var(--ink);
  color: var(--paper);
  clip-path: circle(0% at calc(100% - 40px) 40px);
  visibility: hidden;
  transition: clip-path .8s var(--ease-out), visibility 0s .8s;
}
.mmenu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition: clip-path .8s var(--ease-out), visibility 0s; }
.mmenu { overflow-y: auto; }
.mmenu nav { display: flex; flex-direction: column; }
.mmenu nav a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .45rem 0; border-bottom: 1px solid var(--line-d);
  font-family: var(--serif); font-size: clamp(1.9rem, 8.6vw, 3rem); line-height: 1.1;
  opacity: 0; transform: translateY(30px);
  transition: opacity .5s, transform .7s var(--ease-out);
}
.mmenu nav a small { font-family: var(--sans); font-size: 12px; color: var(--accent-2); letter-spacing: .1em; }
.mmenu.is-open nav a { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i, 0) * .07s); }
.mmenu-cta { opacity: 0; transform: translateY(20px); transition: opacity .5s .55s, transform .7s .55s var(--ease-out); align-self: flex-start; }
.mmenu.is-open .mmenu-cta { opacity: 1; transform: none; }
body.menu-open { overflow: hidden; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; overflow: clip;
  min-height: 100vh; min-height: 100svh;
  padding: 120px 0 90px;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center;
}
.mesh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mesh i {
  position: absolute; border-radius: 50%;
  filter: blur(70px);
  translate: calc(var(--mx, 0) * var(--k, 40px)) calc(var(--my, 0) * var(--k, 40px));
  will-change: transform, translate;
}
.mesh .b1 { --k: 70px; width: 62vmax; height: 62vmax; right: -22vmax; top: -30vmax; background: radial-gradient(circle, rgba(123, 92, 255, .75), rgba(123, 92, 255, 0) 65%); animation: drift1 18s ease-in-out infinite alternate; }
.mesh .b2 { --k: -50px; width: 55vmax; height: 55vmax; left: -25vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(75, 47, 224, .65), rgba(75, 47, 224, 0) 65%); animation: drift2 22s ease-in-out infinite alternate; }
.mesh .b3 { --k: 110px; width: 28vmax; height: 28vmax; left: 38%; top: 30%; background: radial-gradient(circle, rgba(185, 168, 255, .32), rgba(185, 168, 255, 0) 65%); animation: drift3 16s ease-in-out infinite alternate; }
.mesh .b4 { --k: -30px; width: 40vmax; height: 40vmax; left: 10%; top: -12vmax; background: radial-gradient(circle, rgba(8, 8, 10, .9), rgba(8, 8, 10, 0) 65%); }
.mesh::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--px, 70%) var(--py, 40%), rgba(185, 168, 255, .16), transparent 70%);
}
@keyframes drift1 { to { transform: translate(-8vw, 10vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(10vw, -8vh) scale(1.15); } }
@keyframes drift3 { to { transform: translate(-12vw, 6vh) scale(.85); } }
.mesh--soft { opacity: .6; }

.neural {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .7; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 30%, transparent 80%);
}
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid { display: grid; gap: 3.2rem; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .95rem .45rem .7rem; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: #DCD8EC;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.chip-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent); }
.chip-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent-2); animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  line-height: .96; letter-spacing: -0.018em;
  margin-top: 1.5rem; max-width: 12ch;
}
.hero-sub { margin-top: 1.6rem; max-width: 50ch; font-size: clamp(1.04rem, 1.35vw, 1.2rem); color: #BDBBC9; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-ctas .btn-ghost { color: var(--paper); }
.hero-perks { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem; font-size: 14px; color: #CFCCDB; }
.hero-perks li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-perks svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(123, 92, 255, .25); fill: none; stroke: var(--accent-2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Titular letra a letra */
.hero-title .w { display: inline-block; white-space: nowrap; }
.hero-title .ch {
  display: inline-block;
  opacity: 0; transform: translateY(.45em) rotate(5deg); filter: blur(10px);
  transition: opacity .7s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--i) * 24ms);
}
.is-loaded .hero-title .ch { opacity: 1; transform: none; filter: none; }
.hero-title.is-split em .ch { color: var(--accent-2); }

/* Entrada del resto del hero */
.js .hero .chip, .js .hero-sub, .js .hero-ctas, .js .hero-perks, .js .stage {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  animation: heroSafety .01s 5s forwards;
}
@keyframes heroSafety { to { opacity: 1; transform: none; } }
.is-loaded .hero .chip { opacity: 1; transform: none; transition-delay: .05s; }
.is-loaded .hero-sub { opacity: 1; transform: none; transition-delay: .7s; }
.is-loaded .hero-ctas { opacity: 1; transform: none; transition-delay: .85s; }
.is-loaded .hero-perks { opacity: 1; transform: none; transition-delay: 1s; }
.is-loaded .stage { opacity: 1; transform: none; transition-delay: .4s; }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; margin-left: -12px; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--paper); animation: hint 2s var(--ease-soft) infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---- Escenario: web construyéndose sola ---- */
.stage { position: relative; padding: 2.6rem 0 3.6rem; max-width: 640px; margin-inline: auto; width: 100%; }
.ai-chip {
  position: absolute; top: 0; left: 0; z-index: 4;
  display: inline-flex; align-items: center; gap: .55rem; max-width: 100%;
  padding: .4rem .85rem .4rem .45rem; border-radius: 999px;
  font-size: 12.5px; color: #E7E4F3;
  background: rgba(20, 18, 32, .75); border: 1px solid rgba(185, 168, 255, .25);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ai-spark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); flex: none; }
.ai-spark svg { width: 13px; height: 13px; fill: var(--white); }
.stage.is-run:not(.s-done) .ai-spark svg { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-status { font-weight: 600; white-space: nowrap; }
.ai-target { color: #9D99B3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-status::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 3px; vertical-align: -2px; background: currentColor; animation: caret 1s steps(1) infinite; }
.stage.s-done .ai-status::after { display: none; }
@keyframes caret { 50% { opacity: 0; } }

.laptop { position: relative; width: 92%; }
.laptop-lid {
  padding: 9px 9px 11px; border-radius: 16px 16px 6px 6px;
  background: linear-gradient(160deg, #26262F, #121217);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.4), 0 30px 120px -40px rgba(123, 92, 255, .55);
}
.screen {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10.4; border-radius: 6px;
  background: #F6F3EC; color: #1C1A17;
  container-type: inline-size;
}
.bbar { display: flex; align-items: center; gap: 4px; height: 7.5cqi; max-height: 22px; min-height: 14px; padding: 0 8px; background: #E9E5DC; border-bottom: 1px solid rgba(0,0,0,.06); }
.bbar i { width: 6px; height: 6px; border-radius: 50%; background: #CFC9BD; }
.bbar span { margin: 0 auto; padding: 1px 12px; border-radius: 6px; background: rgba(255,255,255,.8); font-size: clamp(7px, 1.7cqi, 11px); color: #77716A; }
.laptop-base { position: relative; height: 13px; width: 112%; margin-left: -6%; border-radius: 2px 2px 14px 14px; background: linear-gradient(#34343E, #15151A); box-shadow: 0 20px 40px -10px rgba(0,0,0,.8); }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; margin-left: -8%; border-radius: 0 0 8px 8px; background: #0D0D11; }

.phone {
  position: absolute; right: 0; bottom: 2.2rem; z-index: 3;
  width: 26%; aspect-ratio: 9 / 19;
  padding: 5px; border-radius: 24px;
  background: linear-gradient(160deg, #2C2C36, #111116);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 70px -20px rgba(0,0,0,.9), 0 0 60px -20px rgba(123, 92, 255, .6);
}
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 19px; background: #F6F3EC; color: #1C1A17; container-type: inline-size; }
.notch { position: absolute; top: 5px; left: 50%; width: 32%; height: 8px; margin-left: -16%; border-radius: 6px; background: #111116; z-index: 2; }

/* Mini web dentro de las pantallas */
.mini { font-size: 2.15cqi; padding: 2.1em 2.6em; }
.mini > *, .mini .m-copy > *, .mini .m-nav > *, .mini .m-cards > * {
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out), background-color .6s, border-color .6s, color .5s, box-shadow .6s;
  transition-delay: calc(var(--d, 0) * 70ms);
}
.mini em { font-style: normal; transition: opacity .5s calc(var(--d, 0) * 70ms + .2s); }
.m-nav { display: flex; align-items: center; gap: 1.6em; }
.m-nav i { width: 3.6em; height: .55em; border-radius: 1em; background: #CFC6B8; border: 1px solid transparent; }
.m-logo { width: 1.7em; height: 1.7em; border-radius: 50%; background: #1C1A17; border: 1px solid transparent; margin-right: auto; }
.m-btn { width: 7.5em; height: 2.2em; border-radius: 2em; background: var(--accent); border: 1px solid transparent; margin-left: 1em; }
.m-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.4em; align-items: center; margin-top: 2.6em; }
.m-copy { display: flex; flex-direction: column; gap: .75em; align-items: flex-start; }
.m-kicker { font-size: .95em; color: var(--accent-3); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: 1px solid transparent; }
.m-h { font-family: var(--serif); font-size: 3.1em; line-height: .98; letter-spacing: -.01em; border: 1px solid transparent; }
.m-p { width: 92%; height: .7em; border-radius: 1em; background: #D9D1C3; border: 1px solid transparent; }
.m-p--s { width: 64%; }
.m-cta { display: inline-flex; align-items: center; padding: .9em 1.5em; margin-top: .6em; border-radius: 3em; background: #1C1A17; color: #F6F3EC; font-size: 1em; font-weight: 600; border: 1px solid transparent; }
.m-img { position: relative; overflow: hidden; aspect-ratio: 4 / 4.6; border-radius: 1.2em; background: linear-gradient(160deg, #E7DCCB, #BFA98A); border: 1px solid transparent; }
.loaf { position: absolute; left: 14%; right: 14%; bottom: 18%; height: 42%; border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%; background: radial-gradient(120% 90% at 40% 20%, #D9A86B, #9A6434 70%); box-shadow: 0 1.2em 1.6em -0.6em rgba(60, 35, 10, .5); transition: opacity .6s .5s, transform .8s .5s var(--ease-out); }
.loaf::before, .loaf::after { content: ""; position: absolute; top: 28%; width: 16%; height: 8%; border-radius: 1em; background: rgba(255, 236, 200, .55); transform: rotate(-24deg); left: 30%; }
.loaf::after { left: 56%; }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2em; margin-top: 2.4em; }
.m-card { height: 5.6em; padding: 1em; border-radius: 1em; background: #FFFFFF; border: 1px solid rgba(0,0,0,.05); display: flex; flex-direction: column; justify-content: flex-end; gap: .5em; }
.m-card span { width: 60%; height: .7em; border-radius: 1em; background: #1C1A17; }
.m-card i { width: 85%; height: .5em; border-radius: 1em; background: #DDD5C8; }
.mini--phone { font-size: 6.4cqi; padding: 2.6em 1.3em 1em; display: flex; flex-direction: column; gap: .8em; }
.mini--phone .m-nav { gap: 0; }
.mini--phone .m-burger { width: 2em; height: 1.2em; border-radius: .3em; background: linear-gradient(#1C1A17 0 2px, transparent 2px 5px, #1C1A17 5px 7px, transparent 7px) center / 100% 7px no-repeat; border: 1px solid transparent; }
.mini--phone .m-img { aspect-ratio: 4 / 3.2; }
.mini--phone .m-h { font-size: 2em; }
.mini--phone .m-p { height: .5em; }
.mini--phone .m-cta { align-self: flex-start; padding: .7em 1.2em; font-size: .85em; margin-top: .2em; }
.mini--phone .m-card { height: 4.2em; }

.scan {
  position: absolute; left: 0; right: 0; top: -30%; height: 30%; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(123, 92, 255, .18) 70%, rgba(123, 92, 255, .7) 99%, transparent);
}
.m-cursor { position: absolute; left: 70%; top: 70%; z-index: 4; width: 4.2cqi; min-width: 12px; opacity: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.m-cursor svg { width: 100%; fill: #111; stroke: #fff; stroke-width: 1.4; }

/* Fases de la animación (las pone main.js) */
.stage.is-run .mini [style*="--d"] { opacity: 0; transform: scale(.94); }
.stage.is-run .mini em { opacity: 0; }
.stage.is-run .loaf { opacity: 0; transform: translateY(20%) scale(.9); }
.stage.is-run.s-wire .laptop .mini [style*="--d"] {
  opacity: 1; transform: none;
  background-color: transparent; color: transparent; box-shadow: none;
  border: 1px dashed rgba(91, 60, 245, .55);
}
.stage.is-run.s-wire .laptop .screen { background-image: linear-gradient(rgba(91,60,245,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(91,60,245,.07) 1px, transparent 1px); background-size: 6cqi 6cqi; background-color: #F7F6FB; }
.stage.is-run.s-wire .laptop .screen, .stage.is-run .laptop .screen { transition: background-color .8s; }
.stage.is-run.s-paint .laptop .mini [style*="--d"] { opacity: 1; transform: none; }
.stage.is-run.s-paint .laptop .screen { background-image: none; background-color: #F6F3EC; }
.stage.is-run.s-paint .laptop .mini em { opacity: 1; }
.stage.is-run.s-paint .laptop .loaf { opacity: 1; transform: none; }
.stage.is-run.s-paint .laptop .scan { animation: scan 1.8s var(--ease-soft) forwards; }
@keyframes scan { 0% { top: -30%; opacity: 1; } 90% { opacity: 1; } 100% { top: 110%; opacity: 0; } }

.stage .mini { transition: opacity .5s var(--ease-out); }
.stage.s-reset .mini { opacity: 0; }
.stage.s-reset .mini *, .stage.s-reset .mini *::before, .stage.s-reset .mini *::after { transition: none !important; }
.stage.is-run .phone { opacity: 0; transform: translateY(30px) rotate(4deg); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
.stage.is-run.s-phone .phone { opacity: 1; transform: none; }
.stage.is-run.s-phone .phone .mini [style*="--d"] { opacity: 1; transform: none; }
.stage.is-run.s-phone .phone .mini em { opacity: 1; }
.stage.is-run.s-phone .phone .loaf { opacity: 1; transform: none; }
.stage.is-run.s-done .m-cursor { animation: cursorGo 1.8s var(--ease-out) forwards; }
.stage.is-run.s-done .laptop .m-cta { animation: ctaClick 1.8s forwards; }
@keyframes cursorGo { 0% { opacity: 0; left: 70%; top: 85%; } 20% { opacity: 1; } 65% { left: 13%; top: 64%; transform: scale(1); } 75% { transform: scale(.8); } 85%, 100% { left: 13%; top: 64%; transform: scale(1); opacity: 1; } }
@keyframes ctaClick { 0%, 68% { box-shadow: 0 0 0 0 rgba(123, 92, 255, 0); } 78% { box-shadow: 0 0 0 .6em rgba(123, 92, 255, .45); } 100% { box-shadow: 0 0 0 1.4em rgba(123, 92, 255, 0); } }

.stage-steps { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: .4rem 1.1rem; flex-wrap: wrap; font-size: 12.5px; color: #8E8AA3; }
.stage-steps li { display: inline-flex; align-items: center; gap: .45rem; transition: color .4s; }
.stage-steps i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); position: relative; transition: background .4s, border-color .4s, box-shadow .4s; }
.stage-steps li.is-on { color: var(--paper); }
.stage-steps li.is-on i { background: var(--accent); border-color: var(--accent-2); box-shadow: 0 0 12px rgba(123, 92, 255, .9); }
.stage:not(.is-run) .stage-steps li { color: var(--paper); }
.stage:not(.is-run) .stage-steps i { background: var(--accent); border-color: var(--accent-2); }

/* ---------- 8. Secciones ---------- */
/* Reveals al hacer scroll */
/* Usa «translate» (no «transform») para no pisar el tilt ni los hover */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease-out) var(--rd, 0s), translate 1.1s var(--ease-out) var(--rd, 0s), transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s, background .4s; }
.js .reveal.is-visible { opacity: 1; translate: none; }
/* Red de seguridad: un .reveal con data-split nunca se queda invisible */
.reveal[data-split] { opacity: 1; transform: none; translate: none; }
.split-word { display: inline-block; opacity: 0; transform: translateY(.55em); filter: blur(6px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out), filter .8s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.is-in .split-word { opacity: 1; transform: none; filter: none; }
.sec-title em .split-word, .footer-claim em .split-word { background: inherit; -webkit-background-clip: text; background-clip: text; }

/* Por qué una web */
.why-grid { display: grid; gap: 1.1rem; perspective: 1200px; }
.why-card {
  position: relative; padding: 1.8rem 1.7rem 1.9rem;
  border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line-l);
  box-shadow: 0 1px 0 rgba(8,8,10,.02), 0 20px 50px -30px rgba(8, 8, 10, .25);
  transform-style: preserve-3d;
}
.why-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.2rem; }
.why-badge { font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: .35rem .75rem; border-radius: 999px; background: rgba(8,8,10,.05); color: #44444E; }
.why-meter { display: flex; gap: 4px; }
.why-meter i { width: 18px; height: 6px; border-radius: 3px; background: rgba(8,8,10,.1); }
.why--mal .why-meter i:nth-child(1) { background: #8A8A94; }
.why--regular .why-meter i:nth-child(-n+2) { background: #8A8A94; }
.why--bien .why-meter i { background: var(--accent); box-shadow: 0 0 10px rgba(123, 92, 255, .6); }
.why-card h3 { font-family: var(--serif); font-size: clamp(1.8rem, 2.6vw, 2.2rem); line-height: 1.02; }
.why-card > p { margin-top: .9rem; color: var(--muted-l); }
.why-card ul { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-l); display: grid; gap: .55rem; font-size: 14.5px; }
.why-card li { display: flex; gap: .65rem; align-items: center; }
.why-card li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: rgba(8,8,10,.07) center / 10px no-repeat; }
.why--mal li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 2.5l5 5M7.5 2.5l-5 5' stroke='%235C5C66' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.why--regular li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 5h5' stroke='%235C5C66' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.why--bien { background: var(--ink); color: var(--paper); border-color: transparent; box-shadow: 0 30px 70px -30px rgba(91, 60, 245, .7); overflow: hidden; }
.why--bien::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(90% 70% at 100% 0%, rgba(123, 92, 255, .45), transparent 60%); }
.why--bien > * { position: relative; }
.why--bien .why-badge { background: rgba(123, 92, 255, .22); color: var(--accent-2); }
.why--bien .why-meter i { background: var(--accent); }
.why--bien > p { color: var(--muted-d); }
.why--bien ul { border-color: var(--line-d); }
.why--bien li::before { background-color: rgba(123, 92, 255, .3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.2 5.2l1.8 1.8 3.8-4' stroke='%23C9BCFF' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; margin-top: clamp(3.5rem, 7vw, 5.5rem); padding-top: 2.6rem; border-top: 1px solid var(--line-l); }
.stat dt { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.stat dt span { font-variant-numeric: tabular-nums; }
.stat dd { margin-top: .5rem; font-size: 14.5px; color: var(--muted-l); max-width: 22ch; }

/* Trabajos */
.halo { position: absolute; inset: -10% -10% auto; height: 70%; pointer-events: none; background: radial-gradient(45% 50% at 50% 30%, rgba(123, 92, 255, .22), transparent 75%); filter: blur(40px); }
.works { display: grid; gap: 1.4rem; }
.work {
  position: relative; display: flex; flex-direction: column;
  padding: 1rem; border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line-d);
}
.work--premium { background: linear-gradient(180deg, rgba(123, 92, 255, .14), rgba(255,255,255,.015) 60%); border-color: rgba(185, 168, 255, .3); }
.work-device { border-radius: 18px; background: #17171E; border: 1px solid rgba(255,255,255,.1); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); transform-style: preserve-3d; }
.wd-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.wd-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.wd-bar span { margin: 0 auto; padding-right: 40px; font-size: 12px; color: #8E8AA3; }
.wd-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: #0E0E13; }
.wd-screen img { position: absolute; top: 0; left: 0; width: 100%; height: auto; transform: translateY(0); transition: transform 7s cubic-bezier(.45, 0, .2, 1); }
.work:hover .wd-screen img, .work:focus-within .wd-screen img { transform: translateY(calc(var(--shift, 0px) * -1)); transition-duration: calc(var(--dur, 6) * 1s); }
.wd-screen.is-auto img { animation: autoScroll calc(var(--dur, 6) * 2s + 3s) ease-in-out infinite; }
@keyframes autoScroll { 0%, 12% { transform: translateY(0); } 50%, 62% { transform: translateY(calc(var(--shift, 0px) * -1)); } 100% { transform: translateY(0); } }
.wd-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; background: #0E0E13; }
.wd-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; pointer-events: none; background: rgba(8,8,10,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='white'/%3E%3C/svg%3E") center / 26px no-repeat; backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.wd-screen.is-paused .wd-play { opacity: 1; }
.wd-screen.is-paused video[controls] ~ .wd-play { display: none; }
.wd-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.2rem; text-align: center;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(123, 92, 255, .22), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 28px;
}
.wd-placeholder strong { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: #E5E1F5; }
.wd-ph-lines { display: grid; gap: 8px; justify-items: center; }
.wd-ph-lines i { display: block; height: 8px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(185,168,255,.35), rgba(255,255,255,.06)); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.wd-ph-lines i:nth-child(1) { width: 140px; } .wd-ph-lines i:nth-child(2) { width: 90px; } .wd-ph-lines i:nth-child(3) { width: 116px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.work-body { padding: 1.6rem .8rem .8rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.work-level span { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line-d); color: #CFCCDB; }
.work--premium .work-level span { border-color: rgba(185,168,255,.5); color: var(--accent-2); background: rgba(123,92,255,.12); }
.work-body h3 { font-family: var(--serif); font-size: clamp(2.1rem, 3.4vw, 2.9rem); line-height: 1; }
.work-body > p { color: var(--muted-d); max-width: 46ch; }
.work-sub { font-size: 13px; color: var(--accent-2); }
.ticks { display: grid; gap: .5rem; margin: .3rem 0 1rem; font-size: 14.5px; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; color: #DAD7E6; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgba(123, 92, 255, .25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.2 5.2l1.8 1.8 3.8-4' stroke='%23C9BCFF' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.work-body .btn { margin-top: auto; align-self: flex-start; color: var(--paper); }

/* Qué incluye */
.features {
  --sx: -999px; --sy: -999px;
  display: grid; gap: 1px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(380px circle at var(--sx) var(--sy), rgba(123, 92, 255, .8), var(--line-l) 70%);
  border: 1px solid var(--line-l);
}
.feat { position: relative; padding: 2rem 1.6rem 2.1rem; background: var(--white); transition: background .4s; }
/* La celda no se oculta (es el fondo de la rejilla): se revela su contenido */
.js .feat.reveal { opacity: 1; translate: none; }
.feat > * { transition: opacity .8s var(--ease-out) var(--rd, 0s), translate 1s var(--ease-out) var(--rd, 0s), background .4s, transform .6s var(--ease-bounce), box-shadow .4s; }
.js .feat.reveal:not(.is-visible) > * { opacity: 0; translate: 0 16px; }
.feat::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(123, 92, 255, .09), transparent 70%); }
.feat:hover::before { opacity: 1; }
.feat-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line-l); margin-bottom: 1.6rem; transition: background .4s, transform .6s var(--ease-bounce), box-shadow .4s; }
.feat-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.feat-ico svg * { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-out), stroke .3s; transition-delay: calc(var(--rd, 0s) + .25s); }
.js .feat.reveal:not(.is-visible) .feat-ico svg * { stroke-dashoffset: 1; }
.feat:hover .feat-ico { background: var(--ink); transform: rotate(-6deg) scale(1.06); box-shadow: 0 12px 30px -10px rgba(91, 60, 245, .7); }
.feat:hover .feat-ico svg { stroke: var(--white); }
.feat:hover .feat-ico svg * { animation: redraw 1s var(--ease-out); }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.feat h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.feat p { margin-top: .45rem; font-size: 14.5px; color: var(--muted-l); }

/* Cómo trabajamos */
.process { display: grid; gap: 1rem; }
.timeline { position: relative; padding-left: 3.4rem; }
.tl-line { position: absolute; left: 17px; top: 18px; bottom: 30px; width: 2px; background: var(--line-d); border-radius: 2px; }
.tl-line i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, var(--accent-2), var(--accent) 60%, var(--accent-3)); transform-origin: top; transform: scaleY(var(--p, 1)); box-shadow: 0 0 14px rgba(123, 92, 255, .7); }
.js .tl-line i { transform: scaleY(var(--p, 0)); }
.step { position: relative; padding-bottom: 3.2rem; transition: opacity .6s; }
.step:last-child { padding-bottom: 0; }
.js .step { opacity: .38; }
.js .step.is-active { opacity: 1; }
.step-dot { position: absolute; left: -3.4rem; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); border: 1.5px solid rgba(255,255,255,.2); transition: background .5s, border-color .5s, box-shadow .5s, transform .6s var(--ease-bounce); }
.step-num { position: absolute; left: -3.4rem; top: 0; width: 36px; height: 36px; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted-d); transition: color .4s; }
.step.is-active .step-dot, html:not(.js) .step-dot { background: var(--accent); border-color: var(--accent-2); box-shadow: 0 0 0 6px rgba(123, 92, 255, .16), 0 0 24px rgba(123, 92, 255, .8); transform: scale(1.05); }
.step.is-active .step-num { color: var(--white); }
.step-time { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.step h3 { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; margin-top: .5rem; }
.step p:not(.step-time) { margin-top: .7rem; color: var(--muted-d); max-width: 48ch; }

/* Precios */
.price-step { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.1rem; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #44444E; }
.price-step::after { content: ""; flex: 1; height: 1px; background: var(--line-l); }
.plans { display: grid; gap: 1rem; margin-bottom: 3rem; }
.plan, .care-opt {
  position: relative; text-align: left; width: 100%;
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.7rem 1.6rem 1.8rem;
  border-radius: var(--radius); background: var(--white); color: var(--ink);
  border: 1px solid var(--line-l);
  box-shadow: 0 20px 50px -34px rgba(8, 8, 10, .3);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.plan:hover, .care-opt:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(8, 8, 10, .4); }
.plan[aria-checked="true"], .care-opt[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 60px -30px rgba(91, 60, 245, .45); }
.plan-head { display: flex; flex-direction: column; gap: .15rem; padding-right: 2rem; }
.plan-name { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.plan-detail { font-size: 13.5px; color: var(--muted-l); }
.plan-price { display: flex; align-items: baseline; gap: .35rem; font-family: var(--serif); }
.plan-price small { font-family: var(--sans); font-size: 13px; color: var(--muted-l); }
.plan-price b { font-weight: 400; font-size: clamp(3.4rem, 5vw, 4.2rem); line-height: .9; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 2rem; }
.plan-price--text b { font-size: clamp(2.6rem, 4vw, 3.2rem); font-style: italic; }
.plan-iva, .care-iva {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem;
  margin-top: -.55rem; padding: .22rem .6rem; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; font-style: normal; letter-spacing: .03em;
  color: var(--accent-3); background: rgba(123, 92, 255, .1);
}
.plan-iva::before, .care-iva::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.plan--featured .plan-iva { color: var(--accent-2); background: rgba(123, 92, 255, .22); }
.care-iva { margin: 0 0 0 .5rem; vertical-align: middle; }
.plan-desc, .care-desc { font-size: 14.5px; color: var(--muted-l); }
.plan-list, .care-list { display: grid; gap: .45rem; padding-top: 1rem; border-top: 1px solid var(--line-l); font-size: 14px; }
.plan-list span, .care-list span { display: flex; gap: .55rem; align-items: center; }
.plan-list span::before, .care-list span::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: rgba(123, 92, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.2 5.2l1.8 1.8 3.8-4' stroke='%234B2FE0' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.plan-radio { position: absolute; top: 1.5rem; right: 1.4rem; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(8,8,10,.2); transition: background .3s, border-color .3s; }
.plan-radio::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--white); transform: scale(0); transition: transform .4s var(--ease-bounce); }
[aria-checked="true"] > .plan-radio { background: var(--accent); border-color: var(--accent); }
[aria-checked="true"] > .plan-radio::after { transform: scale(1); }

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plan--featured { background: var(--ink); color: var(--paper); border-color: transparent; isolation: isolate; }
.plan--featured::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ang), var(--accent-2), transparent 25%, transparent 55%, var(--accent) 80%, var(--accent-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rotateBorder 6s linear infinite;
}
.plan--featured::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: radial-gradient(90% 60% at 100% 0%, rgba(123, 92, 255, .4), transparent 60%), var(--ink); }
@keyframes rotateBorder { to { --ang: 360deg; } }
.plan--featured .plan-detail, .plan--featured .plan-desc, .plan--featured .plan-price small { color: var(--muted-d); }
.plan--featured .plan-list { border-color: var(--line-d); }
.plan--featured .plan-list span::before { background-color: rgba(123, 92, 255, .3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.2 5.2l1.8 1.8 3.8-4' stroke='%23C9BCFF' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan--featured .plan-radio { border-color: rgba(255,255,255,.3); }
.plan--featured[aria-checked="true"] { box-shadow: 0 0 0 1px var(--accent), 0 40px 80px -30px rgba(91, 60, 245, .8); }
.plan-badge { align-self: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; background: var(--grad); color: var(--white); box-shadow: 0 6px 20px -6px rgba(123, 92, 255, .9); }

.care { display: grid; gap: 1rem; }
.care-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-right: 2.2rem; flex-wrap: wrap; }
.care-name { font-family: var(--serif); font-size: 1.8rem; line-height: 1; }
.care-price { font-size: 14px; color: var(--muted-l); white-space: nowrap; }
.care-price b { font-family: var(--serif); font-weight: 400; font-size: 2.3rem; color: var(--ink); }

.summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem;
  margin-top: 2rem; padding: 1.2rem 1.2rem 1.2rem 1.6rem;
  border-radius: 28px; background: var(--ink); color: var(--paper);
  box-shadow: 0 30px 60px -30px rgba(8,8,10,.6);
}
.summary-info { display: flex; flex-direction: column; gap: .15rem; }
.summary-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.summary-info strong { font-weight: 600; font-size: 1.02rem; }
.summary-total { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; margin-right: auto; transition: transform .5s var(--ease-bounce), color .3s; }
.summary-total span { font-size: .6em; color: var(--muted-d); }
.summary-total.bump { animation: bump .6s var(--ease-bounce); }
@keyframes bump { 40% { transform: scale(1.07); color: var(--accent-2); } }
.summary .btn-dark { background: var(--white); color: var(--ink); }
.summary .btn-dark:hover { background: #EDEBFF; }
.price-note { margin-top: 1.3rem; text-align: center; font-size: 13.5px; color: var(--muted-l); }

/* Dudas */
.faq-grid { display: grid; gap: 1rem; }
.faq-head .btn { margin-top: 1.8rem; }
.faq-head .btn svg { fill: currentColor; stroke: none; }
.qa { border-bottom: 1px solid var(--line-l); }
.qa:first-child { border-top: 1px solid var(--line-l); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.45rem 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.15;
  transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-3); }
.qa summary i { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-l); transition: transform .5s var(--ease-out), background .3s, border-color .3s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease-out); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--white); }
.qa-a { overflow: hidden; }
.qa-a p { padding: 0 3.5rem 1.6rem 0; color: var(--muted-l); max-width: 62ch; }

/* Contacto */
.contact { overflow: clip; }
.contact-grid { display: grid; gap: 3rem; align-items: start; }
.sec-title--xl { font-size: clamp(3rem, 7.6vw, 6.4rem); }
.contact-btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.contact-btns .btn-ghost { color: var(--paper); }
.contact-btns svg { fill: none; }
.contact-meta { display: grid; gap: 1.8rem; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line-d); }
.meta-title { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); margin-bottom: .8rem; }
.meta-text { color: #DAD7E6; }
.zones { display: flex; flex-wrap: wrap; gap: .45rem; }
.zones li { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line-d); font-size: 13.5px; color: #DAD7E6; background: rgba(255,255,255,.03); transition: border-color .3s, background .3s; }
.zones li:hover { border-color: rgba(185, 168, 255, .5); background: rgba(123, 92, 255, .12); }

.form {
  position: relative; display: grid; gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 30px; background: var(--white); color: var(--ink);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08), 0 0 80px -30px rgba(123, 92, 255, .5);
}
.form h3 { font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1; }
.form-sub { margin-top: -.4rem; font-size: 14.5px; color: var(--muted-l); }
.field-row { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; font-weight: 600; color: #33333C; padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  border-radius: 14px; border: 1px solid transparent; background: #F2F1EE;
  font-size: 15px; outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; background: #F2F1EE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%2308080A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 1rem center / 12px no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--white); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(123, 92, 255, .15); }
.field-err { display: none; font-style: normal; font-size: 12.5px; color: var(--error); }
.is-invalid .field-err, .field-err--check.is-shown { display: block; }
.is-invalid input, .is-invalid select { border-color: var(--error); background: #FFF6F6; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .1rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; padding: .6rem .95rem; border-radius: 999px; background: #F2F1EE; border: 1px solid transparent; font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.chips input:checked + span { background: var(--ink); color: var(--white); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: 14px; color: #44444E; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.check a { text-decoration: underline; text-underline-offset: 3px; color: var(--accent-3); }
.form-msg { font-size: 14px; color: var(--accent-3); min-height: 1.2em; }

/* Footer */
.footer { background: var(--ink); color: var(--paper); padding: clamp(4rem, 8vw, 6rem) 0 2rem; border-top: 1px solid var(--line-d); }
.footer-top { display: grid; gap: 2.4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-d); }
.footer-brand { display: grid; gap: 1.4rem; max-width: 42ch; }
.footer-brand p { color: var(--muted-d); font-size: 15px; }
.footer-logo { display: inline-block; width: 170px; height: 115px; padding: 10px 14px; border-radius: 26px; background: var(--white); box-shadow: 0 20px 50px -20px rgba(123, 92, 255, .6); transition: transform .6s var(--ease-bounce); }
.footer-logo:hover { transform: rotate(-4deg) scale(1.04); }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-claim { font-family: var(--serif); font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1; max-width: 14ch; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding: 2.6rem 0; }
.footer-cols nav { display: flex; flex-direction: column; gap: .5rem; font-size: 14.5px; }
.footer-cols nav a { color: #CFCCDB; width: fit-content; transition: color .3s; }
.footer-cols nav a:hover { color: var(--white); }
.footer-copy { padding-top: 1.6rem; border-top: 1px solid var(--line-d); font-size: 13px; color: var(--muted-d); }

/* ---------- 9. Chatbot ---------- */
.cgbot { --cb-accent: #7B5CFF; --cb-accent-2: #B9A8FF; --cb-bg: #0E0E12; --cb-text: #F4F3EF; position: fixed; right: 18px; bottom: 18px; z-index: 70; font-family: var(--sans); }
.cb-launch {
  position: relative; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white);
  box-shadow: 0 16px 40px -10px rgba(8,8,10,.6), 0 0 0 1px rgba(8,8,10,.06);
  transition: transform .5s var(--ease-bounce), box-shadow .4s;
  animation: launchIn .9s 2.2s var(--ease-bounce) both;
}
@keyframes launchIn { from { opacity: 0; transform: scale(.4) translateY(30px); } }
.cb-launch:hover { transform: scale(1.07); }
.cb-launch img { width: 48px; height: 34px; object-fit: contain; }
.cb-launch::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; padding: 2px; background: conic-gradient(from var(--ang), var(--cb-accent-2), transparent 40%, var(--cb-accent) 75%, var(--cb-accent-2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rotateBorder 4s linear infinite; }
.cb-launch .cb-ai { position: absolute; right: -2px; top: -2px; padding: 2px 6px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: .06em; border: 2px solid var(--white); }
.cb-tease {
  position: absolute; right: 76px; bottom: 12px; white-space: nowrap;
  padding: .6rem .95rem; border-radius: 16px 16px 4px 16px;
  background: var(--white); color: var(--ink); font-size: 14px; font-weight: 500;
  box-shadow: 0 14px 40px -12px rgba(8,8,10,.5);
  opacity: 0; transform: translateX(10px); pointer-events: none;
  transition: opacity .5s, transform .6s var(--ease-out);
}
.cb-tease.is-on { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.cgbot.is-open .cb-tease { opacity: 0; pointer-events: none; }

.cb-panel {
  position: fixed; right: 18px; bottom: 96px;
  width: min(390px, calc(100vw - 24px)); height: min(620px, calc(100svh - 120px));
  display: flex; flex-direction: column;
  border-radius: 26px; overflow: hidden;
  background: var(--cb-bg); color: var(--cb-text);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.85), 0 0 80px -30px rgba(123, 92, 255, .5);
  transform-origin: bottom right;
  opacity: 0; transform: translateY(16px) scale(.94); visibility: hidden; pointer-events: none;
  transition: opacity .35s, transform .55s var(--ease-out), visibility 0s .55s;
}
.cgbot.is-open .cb-panel { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .35s, transform .55s var(--ease-out), visibility 0s; }
.cb-head { position: relative; display: flex; align-items: center; gap: .8rem; padding: 1rem 1rem 1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); background: radial-gradient(120% 140% at 0% 0%, rgba(123, 92, 255, .35), transparent 60%); }
.cb-avatar { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.cb-avatar img { width: 32px; height: 22px; object-fit: contain; }
.cb-avatar::after { content: ""; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #3DDC97; border: 2px solid var(--cb-bg); }
.cb-title { display: flex; flex-direction: column; min-width: 0; }
.cb-title strong { font-size: 15px; font-weight: 600; }
.cb-title span { font-size: 12px; color: var(--muted-d); }
.cb-close { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); transition: background .3s; }
.cb-close:hover { background: rgba(255,255,255,.14); }
.cb-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.cb-body { flex: 1; overflow-y: auto; padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: .7rem; overscroll-behavior: contain; scrollbar-width: thin; }
.cb-msg { max-width: 86%; padding: .7rem .95rem; border-radius: 18px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; animation: msgIn .45s var(--ease-out) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.cb-msg--bot { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); border-bottom-left-radius: 6px; }
.cb-msg--user { align-self: flex-end; background: linear-gradient(135deg, var(--cb-accent), #5B3CF5); color: var(--white); border-bottom-right-radius: 6px; }
.cb-msg--error { border-color: rgba(209, 67, 67, .4); }
.cb-msg.is-streaming::after { content: ""; display: inline-block; width: 6px; height: 14px; margin-left: 2px; vertical-align: -2px; border-radius: 1px; background: var(--cb-accent-2); animation: caret .8s steps(1) infinite; }
.cb-wa { display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start; margin-top: -.2rem; padding: .65rem 1rem; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; animation: msgIn .5s var(--ease-out) both; transition: transform .4s var(--ease-out); }
.cb-wa:hover { transform: translateY(-2px); }
.cb-wa svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.cb-sugs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
.cb-sug { padding: .5rem .85rem; border-radius: 999px; font-size: 13.5px; color: var(--cb-text); border: 1px solid rgba(185, 168, 255, .35); background: rgba(123, 92, 255, .1); transition: background .3s, border-color .3s, transform .3s var(--ease-out); animation: msgIn .5s var(--ease-out) both; animation-delay: calc(var(--i) * 80ms + .2s); }
.cb-sug:hover { background: rgba(123, 92, 255, .28); border-color: var(--cb-accent-2); transform: translateY(-2px); }
.cb-think { align-self: flex-start; display: inline-flex; align-items: center; gap: .6rem; padding: .7rem .95rem; border-radius: 18px; border-bottom-left-radius: 6px; background: rgba(255,255,255,.06); font-size: 13px; color: var(--muted-d); animation: msgIn .3s var(--ease-out) both; }
.cb-dots { display: inline-flex; gap: 4px; }
.cb-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--cb-accent-2); animation: dot 1.2s ease-in-out infinite; }
.cb-dots i:nth-child(2) { animation-delay: .15s; } .cb-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }
.cb-think span:last-child { background: linear-gradient(90deg, var(--muted-d) 30%, var(--white) 50%, var(--muted-d) 70%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; }
.cb-foot { padding: .75rem .8rem .7rem; border-top: 1px solid rgba(255,255,255,.08); }
.cb-form { display: flex; align-items: flex-end; gap: .5rem; padding: .35rem .35rem .35rem .9rem; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: border-color .3s; }
.cb-form:focus-within { border-color: rgba(185, 168, 255, .6); }
.cb-form textarea { flex: 1; min-height: 40px; max-height: 120px; padding: .55rem 0; border: 0; background: none; resize: none; outline: none; font-size: 15px; color: var(--cb-text); line-height: 1.4; }
.cb-form textarea::placeholder { color: #8E8AA3; }
.cb-send { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cb-accent); color: var(--white); transition: transform .3s var(--ease-out), opacity .3s; }
.cb-send:disabled { opacity: .4; cursor: default; }
.cb-send:not(:disabled):hover { transform: scale(1.08); }
.cb-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cb-note { display: flex; justify-content: space-between; gap: 1rem; margin-top: .45rem; padding: 0 .4rem; font-size: 11px; color: #77748A; }

/* ---------- 10. Páginas legales ---------- */
.legal-page { position: relative; overflow: clip; padding: 140px 0 6rem; background: var(--paper); }
.legal-page .bg-logo { align-items: flex-start; padding-top: 110px; }
.legal-page .wrap { max-width: 780px; }
.legal-page h1 { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 4.4rem); margin-top: 1rem; }
.legal-page .updated { margin-top: .6rem; color: var(--muted-l); font-size: 14px; }
.legal-page h2 { font-family: var(--serif); font-size: 1.8rem; margin: 2.6rem 0 .8rem; }
.legal-page p, .legal-page li { color: #33333C; }
.legal-page p + p { margin-top: .8rem; }
.legal-page ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .4rem; }
.legal-page a { color: var(--accent-3); text-decoration: underline; text-underline-offset: 3px; }
.legal-page .box { margin-top: 2rem; padding: 1.2rem 1.4rem; border-radius: 18px; background: var(--white); border: 1px solid var(--line-l); }
.legal-page .table-scroll { overflow-x: auto; overflow-y: visible; }
.legal-page table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; margin-top: .6rem; }
.legal-page th, .legal-page td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line-l); vertical-align: top; }
.legal-page th { font-weight: 600; }
.legal-page .pending { background: #FFF3C4; padding: 0 .3rem; border-radius: 4px; }
.legal-page code { font-size: 13px; background: rgba(8,8,10,.06); padding: .1rem .35rem; border-radius: 4px; }
.nav--legal .nav-pill { max-width: 520px; }
.js .nav--legal .nav-pill { --nav-delay: .1s; }
.nav--legal .btn-back { display: inline-flex; align-items: center; gap: .4rem; height: 44px; padding: 0 1.1rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; }
.footer--legal { padding: 2rem 0; }
.footer--legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 13.5px; color: var(--muted-d); }
.footer--legal a { color: #CFCCDB; }

/* ---------- 11. Responsive ---------- */
@media (min-width: 540px) {
  .stats { gap: 2.4rem 2rem; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .contact-meta { grid-template-columns: 1.3fr 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .care { grid-template-columns: 1fr 1fr; }
  .stage { padding-bottom: 3.2rem; }
}
@media (min-width: 960px) {
  /* Menú con las 7 secciones numeradas siempre a la vista (debajo de 960 px: menú de pantalla completa) */
  .nav-pill { width: auto; max-width: calc(100vw - 24px); gap: .25rem; justify-content: flex-start; }
  .nav-links { display: flex; margin: 0 .1rem; }
  .nav-links a { padding: .55rem .6rem; font-size: 13px; }
  .nav.is-compact .nav-links a { padding: .45rem .55rem; }
  .nav-cta { display: none; }
  .nav--legal .btn-back { margin-left: auto; }
  .nav--legal .nav-pill { max-width: calc(100vw - 24px); }
  .nav-burger { display: none; }
  .mmenu { display: none; }
  .hero { padding-top: 140px; }
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 3rem; }
  .stage { margin: 0; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why--bien { top: -14px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .works { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .process { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
  .process-head { position: sticky; top: 130px; }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan--featured { top: -12px; }
  .faq-grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; }
  .faq-head { position: sticky; top: 130px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; align-items: end; }
  .footer-claim { justify-self: end; text-align: right; }
}
@media (min-width: 1280px) {
  .hero-grid { grid-template-columns: 1fr 1.02fr; gap: 4.5rem; }
  /* Pantalla grande: enlaces más holgados y vuelve el botón «Pide tu boceto» */
  .nav-pill { max-width: 1220px; gap: .4rem; }
  .nav-links a { padding: .6rem .85rem; font-size: 14px; }
  .nav.is-compact .nav-links a { padding: .5rem .7rem; }
  .nav-cta { display: inline-flex; }
}
@media (max-width: 539px) {
  .hero { padding-top: 104px; }
  .hero-title { font-size: clamp(2.7rem, 12.4vw, 3.6rem); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .nav-cta { padding: 0 .95rem; }
  .ai-target { display: none; }
  .stage-steps { font-size: 11.5px; gap: .35rem .8rem; }
  .why-top { margin-bottom: 1.6rem; }
  .summary { padding: 1.2rem; }
  .summary .btn { width: 100%; }
  .qa-a p { padding-right: 0; }
  .cgbot { right: 14px; bottom: 14px; }
  .cb-panel { right: 0; bottom: 0; left: 0; top: 0; width: 100%; height: 100%; height: 100svh; border-radius: 0; border: 0; }
  .cgbot.is-open .cb-launch { opacity: 0; pointer-events: none; }
  .cb-tease { display: none; }
}
@media (hover: none) {
  .plan:hover, .care-opt:hover { transform: none; }
}

/* ---------- 12. Movimiento reducido (solo lo intrusivo) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .neural { opacity: .35; }
  .chip-dot::after, .scroll-hint span { animation: none; }
  .wd-screen.is-auto img { animation: none; }
}
