/* =============================================================
   Benjamín08real — prototipo v2 (catálogo / showcase)
   1. Tokens
   ============================================================= */
:root {
  color-scheme: dark;
  --bg: #0c0915;
  --surface: #14101e;
  --ink: #f5f3fa;
  --ink-2: #c9c3d9;
  --muted: #8f89a5;
  --faint: #5b546f;
  --line: rgba(255,255,255,.09);
  --soft: #1b1628;
  --gray-1: #2c2640;
  --gray-2: #3b3453;
  --gray-3: #5d5578;
  --accent: #9b6bff;
  --accent-2: #b48fff;
  --accent-soft: rgba(155,107,255,.13);
  --on-accent: #ffffff;
  --glow: rgba(124,77,255,.32);

  --display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Etiquetas pequeñas: misma familia que los titulares */
  --mono: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --code: ui-monospace, "Consolas", monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1320px;
  --nav-h: 64px;
  --bar-h: 64px;
  --radius: 14px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--bar-h));
}
body {
  background:
    radial-gradient(900px 520px at 50% -120px, var(--glow), transparent 70%),
    radial-gradient(700px 500px at 100% 40%, rgba(124,77,255,.10), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg); border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Typography
   ============================================================= */
.label {
  font-family: var(--mono);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .01em;
  color: var(--muted);
}
.label-num { color: var(--accent); margin-right: .35em; }
.accent, .dot { color: var(--accent); }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.55; color: var(--ink-2); }

.display {
  font-family: var(--display);
  font-weight: 800;
 
 
  letter-spacing: -.02em;
}
.section-title, .showcase-title, .contact-title, .qv-title, .card-title, .logo, .hero-title, .method strong {
  font-family: var(--display);
  font-weight: 700;
}
/* Titulares: sans geométrica, gruesa y compacta */
.hero-title, .section-title, .showcase-title, .contact-title, .qv-title, .card-title, .cta-title, .method strong {
  letter-spacing: -.03em;
}
.section-title { font-size: clamp(2.1rem, 5vw, 4rem); line-height: .95; letter-spacing: -.02em; max-width: 16ch; }
.section-intro { color: var(--muted); max-width: 46ch; }

/* =============================================================
   5. Components
   ============================================================= */
.logo { font-size: 1.35rem; letter-spacing: -.01em; line-height: 1; }
.logo-num { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 46px; padding: 0 1.35rem;
  border-radius: 999px;
  font-weight: 500; font-size: .93rem; white-space: nowrap;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.btn span { transition: transform .3s var(--ease-out); }
.btn:hover span { transform: translateX(4px); }
.btn--ghost { border: 1px solid var(--line); background: var(--bg); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -12px var(--glow); }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; }

/* Tags & tools */
.tag {
  font-family: var(--mono); font-size: .72rem; color: var(--ink-2);
}
.badge {
  font-family: var(--mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .05em;
  color: #fff; background: var(--accent); padding: .2rem .5rem; border-radius: 4px;
}
.tools { display: flex; flex-wrap: wrap; gap: .35rem; }
.tools li {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .02em;
  padding: .22rem .55rem; border-radius: 999px;
  background: var(--soft); color: var(--ink-2);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  padding-top: 8px;
}
.nav .nav-inner {
  background: rgba(5,3,10,.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding-inline: 1.25rem .5rem;
  box-shadow: 0 18px 40px -20px var(--glow);
}
@supports (backdrop-filter: blur(12px)) {
  .nav .nav-inner { background: rgba(5,3,10,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.nav-inner { height: calc(100% - 8px); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-menu { display: flex; align-items: center; gap: clamp(.9rem, 2.5vw, 2rem); font-size: .92rem; }
.nav-link { position: relative; color: var(--ink-2); transition: color .2s; white-space: nowrap; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-cta {
  padding: .55rem 1.1rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600;
  transition: background-color .3s var(--ease-out);
}
.nav-cta:hover { background: var(--accent-2); }

/* =============================================================
   6. Sections
   ============================================================= */
/* Hero (compact: the catalogue peeks below) */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem); }
.hero-intro { display: flex; align-items: center; gap: .9rem; margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.avatar {
  flex: 0 0 auto; position: relative;
  width: clamp(64px, 7vw, 88px); aspect-ratio: 1; border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-2), #6d3df5);
  box-shadow: 0 10px 30px -10px var(--glow);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.avatar::after {
  content: ""; position: absolute; right: 4%; bottom: 6%;
  width: 14px; height: 14px; border-radius: 50%;
  background: #3ddc84; border: 3px solid var(--bg);
}
.hero-hello { display: grid; gap: .1rem; line-height: 1.3; }
.hero-hello strong { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.hero-hello span { color: var(--muted); font-size: .9rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .2rem .7rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  font-family: var(--display);
  font-weight: 700; font-size: clamp(.95rem, 1.4vw, 1.15rem); letter-spacing: -.01em;
  color: var(--ink);
}
.hero-meta .sep { color: var(--accent); font-weight: 400; }
.hero-title {
  font-weight: 800;
  font-size: clamp(3.2rem, 9.6vw, 9.2rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.hero-line { display: block; width: max-content; max-width: 100%; }
.hero-line--indent { padding-left: .6em; }
.hero-bottom {
  display: grid; gap: 1.75rem;
  margin-top: clamp(1.75rem, 3.5vw, 3rem);
}
.hero-bottom .lead { max-width: 38rem; }
.hero-stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); }
.hero-stats dt { font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--muted); }
.hero-stats dd {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1;
}
.hero-stats div:last-child dd { color: var(--accent); }

/* Discovery bar (sticky filters) */
.discovery {
  position: sticky; top: var(--nav-h); z-index: 50;
  background: rgba(12,9,21,.94);
  border-block: 1px solid var(--line);
}
@supports (backdrop-filter: blur(12px)) {
  .discovery { background: rgba(12,9,21,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.discovery-inner { height: var(--bar-h); display: flex; align-items: center; }
.filters {
  display: flex; gap: .45rem; align-items: center;
  overflow-x: auto; overflow-y: visible;
  scrollbar-width: none;
  padding-block: .4rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .4rem;
  height: 38px; padding: 0 .95rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .88rem; font-weight: 500; color: var(--ink-2); background: var(--bg);
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter-num { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.filter-count {
  font-family: var(--mono); font-size: .66rem; color: var(--muted);
  min-width: 1.4rem; height: 1.25rem; padding: 0 .3rem; border-radius: 999px; background: var(--soft);
  display: inline-grid; place-items: center;
}
.filter-flag {
  font-family: var(--mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent); border: 1px solid currentColor; border-radius: 4px; padding: 0 .3rem; line-height: 1.4;
}
.filter.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.filter.is-active .filter-num { color: rgba(255,255,255,.75); }
.filter.is-active .filter-count { background: rgba(255,255,255,.2); color: var(--on-accent); }
.filter.is-active .filter-flag { color: var(--on-accent); }
.filter.is-active { cursor: default; }
.filter.is-soon {
  cursor: not-allowed; user-select: none;
  color: var(--faint); border-style: dashed; background: transparent;
}
.filter.is-soon:hover { border-color: var(--line); color: var(--faint); }
.filter.is-soon .filter-num { color: var(--faint); }
.soon {
  font-family: var(--mono); font-size: .58rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); background: var(--soft); border-radius: 4px; padding: .05rem .35rem;
}
.filter-sep { flex: 0 0 auto; width: 1px; height: 22px; background: var(--line); margin-inline: .3rem; }

/* Showcase */
.showcase { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(4rem, 8vw, 7rem); }
.showcase-head {
  display: grid; gap: .6rem 2rem; align-items: end;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.showcase-title { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: .95; letter-spacing: -.02em; }
.showcase-desc { color: var(--muted); max-width: 52ch; }
.showcase-count { white-space: nowrap; }

.grid { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-empty { color: var(--muted); padding: 3rem 0; }

/* Card */
.card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s var(--ease-out), transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.card:hover { border-color: rgba(155,107,255,.45); transform: translateY(-3px); box-shadow: 0 18px 40px -24px var(--glow); }
.card.is-hidden { display: none; }
.card.is-entering { animation: cardIn .5s var(--ease-out) both; }
.card-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem 1.2rem 1.25rem; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-num { font-family: var(--mono); font-size: .72rem; color: var(--faint); }
.card:hover .card-num { color: var(--accent); }
.card-title { font-size: clamp(1.35rem, 1.9vw, 1.6rem); line-height: 1; letter-spacing: -.01em; }
.card-desc { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.card .tools { margin-top: auto; padding-top: .35rem; }
.card-open {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: .8rem;
  font-family: var(--mono); font-size: .7rem; color: transparent;
  border-radius: var(--radius);
}
.card-open::before {
  content: "Ver ficha ↗";
  font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--on-accent); background: var(--accent);
  padding: .32rem .6rem; border-radius: 999px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.card:hover .card-open::before, .card-open:focus-visible::before { opacity: 1; transform: none; }
.card-open:focus-visible { outline-offset: -2px; }

.card--featured .card-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

.card--cta {
  grid-column: 1 / -1;
  justify-content: center; gap: .9rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, #6d3df5 0%, #9b6bff 60%, #b48fff 100%); border-color: transparent; color: var(--on-accent);
}
.card--cta:hover { border-color: transparent; }
.card--cta .card-desc { color: rgba(255,255,255,.82); max-width: 46ch; }
.card--cta .label { color: rgba(255,255,255,.7); }
.card--cta .label-num, .card--cta .dot { color: var(--on-accent); }
.card--cta .btn--accent { background: #fff; color: #140d24; box-shadow: none; }
.card--cta .btn { align-self: flex-start; margin-top: .4rem; }
.card--cta .btn--accent:hover { background: #efe8ff; }
.cta-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: .95; letter-spacing: -.02em; max-width: 18ch;
}

/* -------- Visual area (mockups) -------- */
.viz {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.card--featured .viz { aspect-ratio: 16 / 9; padding: clamp(1.2rem, 3vw, 2.5rem); justify-content: center; background: var(--accent-soft); }
.card--featured .mb, .qv-viz .mb { border-radius: 10px; }
.ln { display: block; height: 6px; width: var(--w, 60%); border-radius: 3px; background: var(--gray-1); }
.ln--xl { height: 11px; background: var(--ink); }
.pill { display: block; width: 54px; height: 16px; border-radius: 999px; background: var(--ink); }
.pill--accent { background: var(--accent); }

/* Browser mock */
.mb {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px 10px 0 0;
  box-shadow: 0 20px 40px -26px rgba(0,0,0,.7);
  transition: transform .5s var(--ease-out);
}
.card:hover .mb { transform: translateY(-4px); }
.mb-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mb-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.mb-url { margin-left: 10px; font-family: var(--mono); font-size: .62rem; color: var(--muted); background: var(--soft); padding: 1px 10px; border-radius: 999px; }
.mb-body { padding: 14px 16px 16px; display: grid; gap: 14px; }
.mb-nav { display: flex; justify-content: space-between; align-items: center; }
.mb-nav > .ln { background: var(--ink); height: 8px; }
.mb-links { display: flex; gap: 8px; align-items: center; }
.mb-links .ln { width: 28px; }
.mb-links .pill { width: 40px; height: 12px; }
.mb-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: center; }
.mb-copy { display: grid; gap: 7px; }
.mb-copy .pill { margin-top: 6px; }
.mb-media { aspect-ratio: 4/3; border-radius: 8px; background: radial-gradient(circle at 70% 35%, var(--accent) 0 18%, transparent 19%), var(--soft); }
.mb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mb-row span { height: 34px; border-radius: 6px; background: var(--soft); }
.mb--sm { border-radius: 8px; box-shadow: none; }
.mb--sm .mb-bar { padding: 6px 8px; }
.mb-stack { gap: 7px; padding: 12px; }
.mb-sec { height: 30px; border-radius: 5px; background: var(--soft); margin-top: 4px; }
.mb--sm .mb-row { grid-template-columns: 1fr 1fr; }
.mb--sm .mb-row span { height: 20px; }
.mb-stack .pill { width: 44px; height: 12px; }

/* Landing form */
.mb-form { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.mb-form span { height: 16px; border-radius: 4px; border: 1px solid var(--line); background: var(--soft); }
.pill--wide { width: 100%; height: 18px; }

/* One page scroll hint */
.v-scroll { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 4px; height: 46%; border-radius: 4px; background: var(--line); }
.v-scroll i { position: absolute; left: 0; right: 0; top: 0; height: 30%; border-radius: 4px; background: var(--accent); transition: top .8s var(--ease-out); }
.card:hover .v-scroll i { top: 70%; }

/* Portfolio */
.v-portfolio { display: grid; gap: 12px; }
.pf-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.pf-head > div { display: grid; gap: 6px; }
.pf-head .pill { width: 44px; height: 14px; }
.pf-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 -10px 0 rgba(255,255,255,.12); }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-grid span { aspect-ratio: 1; border-radius: 8px; background: var(--gray-1); transition: transform .4s var(--ease-out); }
.pf-grid span.is-accent { background: var(--accent); }
.card:hover .pf-grid span:nth-child(2) { transform: translateY(-6px); }

/* Sitemap */
.v-sitemap { display: grid; justify-items: center; gap: 22px; position: relative; }
.v-sitemap span { font-family: var(--mono); font-size: clamp(.5rem, 1.6vw, .6rem); padding: .34rem .42rem; background: var(--bg); border: 1px solid var(--ink); border-radius: 6px; white-space: nowrap; position: relative; }
.sm-root { background: var(--ink) !important; color: var(--bg); }
.sm-root::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 11px; background: var(--ink); }
.sm-children { display: flex; gap: 4px; position: relative; max-width: 100%; }
.sm-children::before { content: ""; position: absolute; left: 12%; right: 12%; top: -11px; height: 1px; background: var(--ink); }
.sm-children span::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 11px; background: var(--ink); }
.sm-children span.is-accent { border-color: var(--accent); color: var(--accent); }

/* Assistant widget */
.mb--assist { position: relative; }
.mb--assist .mb-stack { padding-bottom: 46px; }
.assist { position: absolute; right: 10px; bottom: 34px; width: 62%; display: grid; gap: 5px; }
.assist .bubble { font-size: .6rem; padding: .35rem .55rem; box-shadow: 0 8px 18px -12px rgba(0,0,0,.6); }
.assist-btn { position: absolute; right: 10px; bottom: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }

/* Bars */
.v-bars { display: flex; align-items: flex-end; gap: 8%; height: 72%; padding-inline: 4%; border-bottom: 1px solid var(--faint); }
.v-bars span { flex: 1; height: var(--h); background: var(--gray-2); border-radius: 4px 4px 0 0; transition: height .6s var(--ease-out); }
.v-bars .is-accent { background: var(--accent); }
.card:hover .v-bars span { height: calc(var(--h) * 1.06); }
.v-axis { display: flex; justify-content: space-between; margin-top: 10px; }

/* Quadrant */
.v-quad {
  position: relative; height: 100%;
  background:
    linear-gradient(var(--faint), var(--faint)) center / 1px 100% no-repeat,
    linear-gradient(var(--faint), var(--faint)) center / 100% 1px no-repeat;
}
.v-quad i { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink); }
.v-quad i.is-accent { background: var(--accent); border-color: var(--accent); width: 18px; height: 18px; margin: -9px; box-shadow: 0 0 0 6px rgba(155,107,255,.2); }

/* Trend */
.v-trend { width: 100%; height: 75%; }
.v-trend polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.trend-base { stroke: var(--faint); }
.trend-accent { stroke: var(--accent); }
.v-legend { display: flex; gap: 1rem; margin-top: 10px; font-family: var(--mono); font-size: .62rem; color: var(--muted); }
.v-legend i { display: inline-block; width: 10px; height: 2px; background: var(--faint); vertical-align: middle; margin-right: 5px; }
.v-legend i.is-accent { background: var(--accent); }

/* Checklist */
.v-check { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; }
.v-score {
  width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: conic-gradient(var(--accent) 0 72%, var(--line) 72% 100%);
  position: relative;
}
.v-score::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--soft); }
.v-score b, .v-score span { position: relative; line-height: 1; }
.v-score b { font-family: var(--display); font-weight: 800; font-size: 1.6rem; }
.v-score span { font-family: var(--mono); font-size: .55rem; color: var(--muted); }
.v-check ul { display: grid; gap: 10px; }
.v-check li { display: flex; align-items: center; gap: 8px; }
.v-check li i { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--faint); }
.v-check li.is-on i { background: var(--ink); border-color: var(--ink); }
.v-check li.is-warn i { border-color: var(--accent); }

/* Chat */
.v-chat { display: grid; gap: 8px; }
.bubble {
  justify-self: start; max-width: 82%;
  font-size: .72rem; line-height: 1.35; padding: .5rem .7rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px 12px 12px 3px;
}
.bubble--me { justify-self: end; background: var(--ink); color: var(--bg); border-color: var(--ink); border-radius: 12px 12px 3px 12px; }
.bubble--short { padding: .6rem .7rem; }
.v-input { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: .45rem .5rem .45rem .7rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.v-input i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }

/* Compare */
.v-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v-compare > div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .7rem; display: grid; gap: 9px; align-content: start; }
.v-head { font-family: var(--mono); font-size: .58rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.v-compare p { display: flex; align-items: center; gap: 7px; }
.v-compare i { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; }
.v-compare i.yes { background: var(--ink); }
.v-compare i.no { border: 1.5px solid var(--faint); }

/* Posts */
.v-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.post { aspect-ratio: 1; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; transition: transform .4s var(--ease-out); }
.card:hover .post:nth-child(2) { transform: translateY(-6px); }
.post--type { background: var(--ink); border-color: var(--ink); }
.post--type b { font-family: var(--display); font-weight: 800; color: var(--bg); font-size: clamp(1rem, 2vw, 1.4rem); }
.post--type em { color: var(--accent); font-style: normal; }
.post--lines { align-content: center; justify-items: start; gap: 6px; padding: 14%; }
.post--lines .ln { width: var(--w); }
.post--dot i { width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }

/* Slides */
.v-slides { position: relative; height: 100%; }
.slide { position: absolute; inset: 12% 14% 8% 6%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; transition: transform .5s var(--ease-out); }
.slide--3 { transform: translate(16%, -14%) scale(.9); opacity: .6; }
.slide--2 { transform: translate(8%, -7%) scale(.95); opacity: .85; }
.slide--1 { display: grid; align-content: center; gap: 8px; padding: 0 10%; }
.slide--1 i { position: absolute; right: 8%; bottom: 12%; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.card:hover .slide--3 { transform: translate(20%, -18%) scale(.9); }

/* Diff */
.v-diff { display: grid; gap: 8px; font-size: .74rem; line-height: 1.35; }
.v-diff p { padding: .45rem .6rem; border-radius: 6px; }
.v-diff .del { background: var(--bg); color: var(--muted); }
.v-diff .del span { text-decoration: line-through; text-decoration-color: var(--accent); }
.v-diff .add { background: var(--bg); border-left: 3px solid var(--accent); font-weight: 500; }
.v-diff .mute { padding-block: .6rem; }

/* Steps */
.v-steps { display: grid; gap: 1.2rem; }
.v-steps .row { display: flex; align-items: center; gap: 6%; position: relative; }
.v-steps .row::before { content: ""; position: absolute; left: 68px; right: 0; top: 50%; height: 1px; background: var(--faint); }
.v-steps .lbl { flex: 0 0 56px; font-family: var(--mono); font-size: .6rem; text-transform: uppercase; color: var(--muted); }
.v-steps i { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink); }
.v-steps .row--after::before { right: auto; width: calc(36% - 20px); background: var(--ink); }
.v-steps i.is-accent { background: var(--accent); border-color: var(--accent); }

/* Funnel */
.v-funnel { display: grid; gap: 6px; justify-items: start; padding-right: 38%; }
.v-funnel span { position: relative; width: var(--w); height: 22px; border-radius: 5px; background: var(--gray-1); }
.v-funnel span:nth-child(2) { background: var(--gray-2); }
.v-funnel span:nth-child(3) { background: var(--gray-3); }
.v-funnel span.is-accent { background: var(--accent); }
.v-funnel em { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: .58rem; font-style: normal; color: var(--muted); white-space: nowrap; }
.v-funnel span:first-child em { left: auto; right: 8px; color: var(--ink-2); }

/* Timeline */
.v-timeline { display: grid; gap: 10px; }
.v-timeline .track { display: flex; justify-content: space-between; position: relative; }
.v-timeline .track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); }
.v-timeline .track i { position: relative; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink); }
.v-timeline .track i.is-accent { background: var(--accent); border-color: var(--accent); }
.v-timeline .months { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .56rem; color: var(--muted); }
.v-timeline .bars { display: grid; gap: 6px; margin-top: 4px; }
.v-timeline .bars b { display: block; height: 12px; border-radius: 3px; background: var(--gray-2); margin-left: var(--s); width: calc(var(--e) - var(--s)); }
.v-timeline .bars b.is-accent { background: var(--accent); }

/* Calendar */
.v-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.v-cal span { aspect-ratio: 1.3; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); position: relative; }
.v-cal span.h { aspect-ratio: auto; background: none; border: 0; font-family: var(--mono); font-size: .55rem; color: var(--muted); text-align: center; }
.v-cal span.on::after, .v-cal span.acc::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--ink); }
.v-cal span.acc { border-color: var(--accent); }
.v-cal span.acc::after { background: var(--accent); }

/* Kanban */
.v-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 100%; }
.v-kanban > div { background: rgba(255,255,255,.03); border: 1px dashed var(--faint); border-radius: 8px; padding: 7px; display: grid; gap: 6px; align-content: start; }
.v-kanban .k { display: block; height: 22px; border-radius: 5px; background: var(--bg); border: 1px solid var(--line); }
.v-kanban .k.is-accent { border-color: var(--accent); border-left: 3px solid var(--accent); }

/* Flow */
.v-flow { display: flex; align-items: center; justify-content: center; }
.v-flow .node { font-family: var(--mono); font-size: .62rem; padding: .4rem .55rem; background: var(--bg); border: 1px solid var(--ink); border-radius: 6px; white-space: nowrap; }
.v-flow .node--ai { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 500; }
.v-flow .link { flex: 1; max-width: 46px; height: 1px; background: var(--ink); position: relative; }
.v-flow .link::after { content: ""; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left-color: var(--ink); border-right: 0; }
.v-flow--sub { margin-top: 26px; position: relative; }
.v-flow--sub::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 22px; background: var(--ink); }
.v-flow--sub .node { border-style: dashed; }

/* Prompt */
.v-prompt { background: #07050d; border: 1px solid var(--line); color: #e6e1f5; border-radius: 10px; padding: .9rem 1rem; font-family: var(--code); font-size: .68rem; line-height: 1.75; }
.v-prompt .k { color: var(--accent); margin-right: .4em; }
.v-prompt .cursor i { display: inline-block; width: 7px; height: 12px; background: var(--accent); vertical-align: -2px; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }

/* About + method */
.section { padding-block: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.about-grid { display: grid; gap: 2rem 4rem; }
.about-head { display: grid; gap: 1.25rem; align-content: start; }
.about-body { display: grid; gap: 1.1rem; max-width: 40rem; color: var(--ink-2); }
.about-body .lead { color: var(--ink); }
.about-place { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.pin { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.interests { display: flex; flex-wrap: wrap; gap: .45rem; }
.interests li {
  font-size: .85rem; font-weight: 500; color: var(--ink);
  padding: .35rem .8rem; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(155,107,255,.25);
}
.xp { margin-top: 1rem; }
.xp h3 { margin-bottom: .6rem; }
.xp-list { border-top: 1px solid var(--line); }
.xp-list li {
  display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; align-items: center;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.xp-years { grid-column: 1 / -1; font-size: .8rem; font-weight: 600; color: var(--accent-2); }
.xp-role { display: grid; gap: .15rem; }
.xp-role strong { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.xp-role span { color: var(--muted); font-size: .92rem; }
.xp-badge {
  font-size: .72rem; font-weight: 600; color: #3ddc84;
  padding: .2rem .6rem; border-radius: 999px; border: 1px solid rgba(61,220,132,.35); background: rgba(61,220,132,.08);
}
.method { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); margin-top: 1rem; }
.method li { display: grid; gap: .35rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.method-num { font-family: var(--mono); font-size: .75rem; color: var(--accent); }
.method strong { font-size: 1.5rem; line-height: 1; }
.method span:last-child { color: var(--muted); font-size: .93rem; }

/* Contact */
.contact { background: linear-gradient(180deg, transparent, rgba(124,77,255,.08) 40%, transparent); }
.contact-grid { display: grid; gap: 3rem; }
.contact-head { display: grid; gap: 1.25rem; align-content: start; }
.contact-title { font-size: clamp(2.8rem, 7vw, 6rem); line-height: .9; letter-spacing: -.03em; }
.channels { border-top: 1px solid var(--line); margin-top: .5rem; }
.channels a {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  transition: color .2s, padding .3s var(--ease-out);
}
.channels a:hover { color: var(--accent); padding-left: .4rem; }
.channels a span:nth-child(2) { font-weight: 500; }
.contact-form {
  display: grid; gap: 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.field-row { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field span { font-size: .82rem; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: .75rem .9rem; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--accent); }
.contact-form .btn { justify-self: start; }
.form-note { font-size: .85rem; color: var(--muted); min-height: 1.3em; }
.form-note.is-ok { color: #34c759; }
.form-note.is-error { color: #ff6b61; }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.contact-form .btn:disabled { opacity: .6; cursor: progress; }
.contact-form { position: relative; }

/* Footer */
.footer { padding-block: 2.25rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }

/* Quick view (dialog) */
.qv {
  width: min(980px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  margin: auto; padding: 0; border: 0; border-radius: 18px;
  background: var(--bg); color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 60px -20px var(--glow);
  overflow: auto; overscroll-behavior: contain;
}
.qv::backdrop { background: rgba(5,3,10,.72); }
.qv[open] { animation: qvIn .45s var(--ease-out) both; }
.qv[open]::backdrop { animation: fadeIn .3s ease both; }
.qv-inner { position: relative; display: grid; }
.qv-close {
  position: absolute; top: .9rem; right: .9rem; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line);
  font-size: .9rem; transition: border-color .2s;
}
.qv-close:hover { border-color: var(--ink); }
.qv-viz .viz { aspect-ratio: 16 / 8; border-bottom: 1px solid var(--line); padding: 1.6rem; }
.qv-viz .viz--browser-lg { background: var(--accent-soft); }
.qv-content { padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1rem; }
.qv-content .card-top { justify-content: flex-start; gap: 1rem; padding-right: 3rem; }
.qv-title { font-size: clamp(2rem, 4vw, 3rem); line-height: .95; letter-spacing: -.02em; }
.qv-desc { color: var(--ink-2); font-size: 1.02rem; max-width: 60ch; }
.qv-cols { display: grid; gap: 1.5rem; padding-block: .5rem; border-block: 1px solid var(--line); padding-top: 1.25rem; padding-bottom: 1.25rem; }
.qv-cols h3 { margin-bottom: .75rem; }
.qv-list { display: grid; gap: .55rem; }
.qv-list li { display: flex; gap: .6rem; font-size: .93rem; }
.qv-list li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--accent); }
.qv-steps { display: grid; gap: .55rem; counter-reset: st; }
.qv-steps li { display: flex; gap: .7rem; font-size: .93rem; counter-increment: st; }
.qv-steps li::before { content: "0" counter(st); font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: .2em; }
.qv-ideal h3 { margin-bottom: .75rem; }
.qv-list--ideal li::before { background: var(--ink-2); }
.qv-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }

/* =============================================================
   7. Effects
   ============================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

.hero-line { animation: rise 1s var(--ease-out) both; }
.hero-line:nth-child(2) { animation-delay: .08s; }
.hero-line:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(.25em); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes qvIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (max-width: 539px) {
  .hero-title { font-size: 17.5vw; }
  .hero-line--indent { padding-left: .35em; }
  .nav-link[href="#soluciones"] { display: none; }
  .nav .nav-inner { padding-inline: 1rem .4rem; }
  .logo { font-size: 1.15rem; }
  .nav-menu { gap: .8rem; font-size: .88rem; }
  .nav-cta { padding: .5rem .95rem; }
  .qv { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .qv-viz .viz { aspect-ratio: 16 / 10; padding: 1.1rem; }
  .qv-actions .btn { flex: 1 1 100%; }
  .card--featured .viz, .qv-viz .viz--browser-lg { aspect-ratio: auto; }
  .mb-row span { height: 22px; }
}
@media (min-width: 540px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card--featured { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 540px) and (max-width: 959px) {
  .grid[data-filter="creador"] .card--cta { grid-column: auto; }
}
@media (min-width: 720px) {
  .hero-bottom { grid-template-columns: 1fr auto; align-items: end; }
  .showcase-head { grid-template-columns: 1fr auto; }
  .showcase-desc { grid-column: 1; }
  .showcase-count { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
  .method { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
  .qv-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .card--featured { grid-column: span 2; grid-row: span 2; }
  .grid[data-filter="todos"] .card--cta { grid-column: span 2; }
  .card--featured .viz { aspect-ratio: auto; flex: 1; min-height: 340px; }
  .card--featured .card-body { flex: 0 0 auto; padding: 1.4rem 1.6rem 1.6rem; }
  .about-grid { grid-template-columns: 5fr 6fr; }
  .about-body { justify-self: end; }
  .method { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); margin-top: 2rem; }
  .method li { padding-right: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .qv-inner { grid-template-columns: 1fr 1.1fr; }
  .qv-viz { border-right: 1px solid var(--line); background: var(--soft); display: flex; }
  .qv-viz .viz { aspect-ratio: auto; flex: 1; border-bottom: 0; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .v-prompt .cursor i { animation: none; }
}

/* Imágenes de servicios (tarjetas). Pegar al final de styles.css */
.viz-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .6s var(--ease-out, cubic-bezier(.2,.7,.2,1));
}
.viz:has(> .viz-img) { padding: 0; background: #0E0E0E; }
.viz:has(> .viz-img) > :not(.viz-img) { display: none; }
.card:hover .viz-img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .viz-img { transition: none; } .card:hover .viz-img { transform: none; } }
/* En móvil/tablet la tarjeta destacada pierde su altura (aspect-ratio:auto); se la devolvemos */
@media (max-width: 959px) { .card--featured .viz:has(> .viz-img) { aspect-ratio: 16 / 10; } }
.qv-viz .viz:has(> .viz-img) { min-height: 220px; }
.card--featured .viz-img { object-position: 60% 55%; }
/* Metodología en 3 pasos */
@media (min-width: 960px) { .method { grid-template-columns: repeat(3, 1fr); } }
/* Categorías "Próximamente" ocultas hasta lanzarlas (borrar estas reglas para mostrarlas) */
.filter.is-soon, .filter-sep { display: none; }
/* Nota de la ficha (p. ej. servicio en beta) */
.qv-note { margin-top: .75rem; padding: .7rem .9rem; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); color: var(--ink, #f5f3fa); font-size: .9rem; line-height: 1.45; }
/* Titular largo de portada */
.hero-title--long { font-size: clamp(2.6rem, 7.4vw, 7rem); }
.hero-title--long .hero-line:nth-child(4) { animation-delay: .24s; }
@media (max-width: 539px) { .hero-title--long { font-size: 12.4vw; } }
