/* ============================================================
   RENKISO · 連基礎
   Plataformas de servicios para empresas que no pueden equivocarse
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-2: #0e0e10;
  --bg-3: #131316;
  --bg-card: #111114;
  --bg-card-hover: #16161a;
  --line: #1b1b1f;
  --line-2: #26262c;
  --line-3: #34343c;

  --text: #ededed;
  --text-2: #8a8a90;
  --text-3: #55555c;
  --text-4: #36363c;

  --accent: #4a9eff;
  --accent-2: #6fb1ff;
  --accent-dim: rgba(74, 158, 255, 0.12);
  --accent-line: rgba(74, 158, 255, 0.28);

  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-jp: "Noto Serif JP", "Source Han Serif", "Hiragino Mincho ProN", serif;

  --tracking-eyebrow: 0.16em;
  --tracking-tight: -0.03em;
  --tracking-tighter: -0.045em;

  --container: 1180px;
  --container-narrow: 880px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: 8rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--accent); color: #000; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ---------- Grain / texture overlay (very subtle) ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

/* ---------- Custom cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: #fff;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  border-color: rgba(74, 158, 255, 0.6);
  background: rgba(74, 158, 255, 0.08);
}
.cursor-ring.is-text {
  width: 12px; height: 28px;
  border-radius: 2px;
  border-color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 900px), (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, [data-cursor] { cursor: none; }
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
}
.container-narrow { max-width: var(--container-narrow); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 10, 11, 0.85);
}
body.menu-open .site-header {
  background: rgba(10, 10, 11, 0.98);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.brand .brand-kanji {
  font-family: var(--f-jp);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.brand:hover .brand-kanji { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-2);
  transition: color 0.18s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text) !important;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: all 0.2s ease;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent) !important; background: var(--accent-dim); }

/* ---------- Mobile nav (hamburger + drawer) ---------- */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}
.nav-burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav-burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 5px)); }
.nav-burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 5px)); }
.nav-burger.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 11, 0.96);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 5rem 2rem 4rem;
  gap: 0.5rem;
}
.nav-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer a {
  font-size: 1.65rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 0.6rem 0;
  text-decoration: none;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.2s ease;
}
.nav-drawer.is-open a {
  opacity: 1;
  transform: translateY(0);
}
.nav-drawer.is-open a:nth-child(1) { transition-delay: 0.05s; }
.nav-drawer.is-open a:nth-child(2) { transition-delay: 0.1s; }
.nav-drawer.is-open a:nth-child(3) { transition-delay: 0.15s; }
.nav-drawer.is-open a:nth-child(4) { transition-delay: 0.2s; }
.nav-drawer.is-open a:nth-child(5) { transition-delay: 0.25s; }
.nav-drawer.is-open a:nth-child(6) { transition-delay: 0.3s; }
.nav-drawer a:hover { color: var(--accent); }
.nav-drawer .drawer-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.eyebrow.no-dot::before { display: none; }
.eyebrow .index {
  color: var(--accent);
  font-weight: 500;
}

h1, h2, h3 {
  font-weight: 200;
  letter-spacing: var(--tracking-tight);
  line-height: 1.04;
  color: var(--text);
}
h1 {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  letter-spacing: var(--tracking-tighter);
  line-height: 0.98;
  font-weight: 200;
}
h1 em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--f-jp);
  font-weight: 400;
}
h2 {
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  font-weight: 200;
  line-height: 1.05;
}
h2 .accent { color: var(--accent); }
h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}

p { color: var(--text-2); max-width: 60ch; }
p.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--text); max-width: 38ch; font-weight: 300; }
p.body-l { font-size: 1.0625rem; line-height: 1.65; color: var(--text-2); max-width: 56ch; }

.mono { font-family: var(--f-mono); }
.jp { font-family: var(--f-jp); }

/* ---------- Word reveal ---------- */
.split .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.split .word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.9s var(--ease-out), opacity 0.7s ease-out;
  transition-delay: calc(var(--i, 0) * 0.045s);
}
.split.is-in .word > span {
  transform: translateY(0);
  opacity: 1;
}

/* generic fade reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* SVG forensic line draw */
.draw-line path,
.draw-line line,
.draw-line polyline {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.draw-line.is-in path,
.draw-line.is-in line,
.draw-line.is-in polyline {
  stroke-dashoffset: 0;
}

/* ---------- Section scaffold ---------- */
section {
  position: relative;
  padding: var(--section-pad) 0;
}
section + section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}
.section-head .lead { margin-top: 0.5rem; }

/* Section kanji watermark — big background glyph */
.kanji-watermark {
  position: absolute;
  font-family: var(--f-jp);
  font-weight: 500;
  color: var(--text);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  line-height: 0.9;
  z-index: 0;
  transform: translateZ(0);
}
.kanji-watermark.tr {
  top: 8%;
  right: -3%;
  font-size: clamp(18rem, 36vw, 36rem);
}
.kanji-watermark.bl {
  bottom: -10%;
  left: -5%;
  font-size: clamp(20rem, 40vw, 40rem);
}
.kanji-watermark.center {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(22rem, 50vw, 52rem);
}

/* Section forensic frame: index + vertical hairline */
.section-frame {
  position: absolute;
  top: var(--section-pad);
  left: var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  z-index: 3;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.section-frame .frame-id { color: var(--accent); }
.section-frame .frame-tick {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
@media (max-width: 1380px) { .section-frame { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 0.875rem 1.5rem;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.18s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: #06121f;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-secondary {
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); transform: translateY(-1px); }
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- HERO ---------- */
.hero {
  padding-top: 8rem;
  padding-bottom: 8rem;
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 820px) {
  :root { --section-pad: 4rem; }
  .hero { padding-top: 4rem; padding-bottom: 4rem; min-height: 0; }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: clamp(72px, 8vw, 110px) clamp(72px, 8vw, 110px);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  top: 15%; left: -10%;
  background: radial-gradient(circle, rgba(74, 158, 255, 0.08), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 2.5rem;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-dim); }
  50% { box-shadow: 0 0 0 8px rgba(74, 158, 255, 0.04); }
}
.hero-eyebrow .jp { font-family: var(--f-jp); letter-spacing: 0.08em; }
.hero h1 { max-width: 18ch; margin-bottom: 2rem; }
.hero-sub {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 52ch;
  margin-bottom: 2.75rem;
  font-weight: 300;
}
.hero-sub strong { color: var(--text); font-weight: 400; }

.hero-meta {
  position: absolute;
  bottom: clamp(2rem, 5vw, 4rem);
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  pointer-events: none;
  z-index: 2;
}
.hero-meta .meta-block { display: flex; flex-direction: column; gap: 0.35rem; }
.hero-meta .meta-block .v { color: var(--text); font-weight: 400; }
.hero-meta .meta-block .l { color: var(--text-3); }
@media (max-width: 720px) { .hero-meta { display: none; } }

/* Hero kanji watermark */
.hero-kanji {
  position: absolute;
  font-family: var(--f-jp);
  font-weight: 500;
  color: var(--text);
  font-size: clamp(28rem, 60vw, 60rem);
  opacity: 0.025;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ---------- Contexto / Modelo Dual ---------- */
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  position: relative;
  z-index: 2;
}
.split-section .label-col .eyebrow { margin-bottom: 1rem; }
.split-section .label-col h2 { max-width: 12ch; }
.split-section .label-col .glyph {
  font-family: var(--f-jp);
  font-size: clamp(6rem, 12vw, 11rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 0.9;
  margin-top: 2rem;
  display: inline-block;
}
.split-section .label-col .glyph-meaning {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 0.65rem;
}
.split-section .body-col { padding-top: 0.5rem; }
.split-section .body-col p + p { margin-top: 1.25rem; }

@media (max-width: 820px) {
  .split-section { grid-template-columns: 1fr; gap: 2rem; }
  .split-section .label-col .glyph { font-size: 8rem; margin-top: 1rem; }
}

/* ---------- Tesis points (key technical principles) ---------- */
.tesis-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.tesis-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.tesis-list .num {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.tesis-list .body { color: var(--text); font-size: 1.0625rem; line-height: 1.55; }
.tesis-list .body strong { color: var(--text); font-weight: 500; }
.tesis-list .body span.dim { color: var(--text-2); font-weight: 300; }

/* ---------- Servicios ---------- */
.servicios {
  position: relative;
}
.servicios-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.servicios-head .left { max-width: 32ch; }
.servicios-head .left h2 { margin-bottom: 0.75rem; }
.servicios-head .right {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: right;
}
.servicios-head .right .count { color: var(--accent); }

/* VARIANT A: minimal grid — 3 + 2 layout for the 5 cards */
.servicios.va-minimal .services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.servicios.va-minimal .service-card:nth-child(1),
.servicios.va-minimal .service-card:nth-child(2),
.servicios.va-minimal .service-card:nth-child(3) {
  grid-column: span 2;
}
.servicios.va-minimal .service-card:nth-child(4),
.servicios.va-minimal .service-card:nth-child(5) {
  grid-column: span 3;
}
@media (max-width: 820px) {
  .servicios.va-minimal .services-grid { grid-template-columns: 1fr; }
  .servicios.va-minimal .service-card:nth-child(n) { grid-column: span 1; }
}
.servicios.va-minimal .service-card {
  background: var(--bg);
  padding: 2rem 1.75rem;
  position: relative;
  transition: background 0.25s ease;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.servicios.va-minimal .service-card:hover { background: var(--bg-card); }
.servicios.va-minimal .service-card .num {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
  display: block;
}
.servicios.va-minimal .service-card .tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  display: block;
}
.servicios.va-minimal .service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}
.servicios.va-minimal .service-card p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.55;
}
.servicios.va-minimal .service-card .specs {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-top: auto;
  padding-top: 1.25rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}
.servicios.va-minimal .service-card:hover .specs { opacity: 1; transform: translateY(0); }

/* VARIANT B: dossier list */
.servicios.va-dossier .services-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.servicios.va-dossier .service-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 0.85fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background 0.25s ease, padding 0.25s ease;
  position: relative;
}
.servicios.va-dossier .service-card:hover { background: linear-gradient(to right, var(--bg-card), transparent 80%); padding-left: 1rem; }
.servicios.va-dossier .service-card .num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.14em;
}
.servicios.va-dossier .service-card .tag {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.servicios.va-dossier .service-card h3 {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.servicios.va-dossier .service-card h3 .meta {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 0.4rem;
}
.servicios.va-dossier .service-card p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 920px) {
  .servicios.va-dossier .service-card {
    grid-template-columns: 40px 1fr;
    gap: 1rem 1.25rem;
  }
  .servicios.va-dossier .service-card .tag { grid-column: 2; }
  .servicios.va-dossier .service-card h3 { grid-column: 2; }
  .servicios.va-dossier .service-card p { grid-column: 2; }
}

/* VARIANT C: bento */
.servicios.va-bento .services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 2;
}
.servicios.va-bento .service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.servicios.va-bento .service-card:hover { border-color: var(--line-3); transform: translateY(-2px); }
.servicios.va-bento .service-card:nth-child(1) { grid-column: span 4; }
.servicios.va-bento .service-card:nth-child(2) { grid-column: span 2; }
.servicios.va-bento .service-card:nth-child(3) { grid-column: span 2; }
.servicios.va-bento .service-card:nth-child(4) { grid-column: span 2; }
.servicios.va-bento .service-card:nth-child(5) { grid-column: span 2; }
.servicios.va-bento .service-card .num {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 0.85rem;
}
.servicios.va-bento .service-card .tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.servicios.va-bento .service-card h3 { font-size: 1.0625rem; margin-bottom: 0.65rem; }
.servicios.va-bento .service-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.55; }
.servicios.va-bento .service-card .glyph-bg {
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  font-family: var(--f-jp);
  font-size: 9rem;
  color: var(--text);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
}
@media (max-width: 900px) {
  .servicios.va-bento .services-grid { grid-template-columns: 1fr; }
  .servicios.va-bento .service-card:nth-child(n) { grid-column: span 1; }
}

/* ---------- Cómo trabajamos ---------- */
.proceso {
  position: relative;
}
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}
.proceso-step {
  position: relative;
  padding: 2.25rem 2rem;
  border-left: 1px solid var(--line);
}
.proceso-step:first-child { border-left: none; padding-left: 0; }
.proceso-step .step-id {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.proceso-step .step-id::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--accent-line), transparent);
}
.proceso-step h3 {
  font-size: 1.375rem;
  font-weight: 300;
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
  line-height: 1.2;
}
.proceso-step p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.proceso-step .step-meta {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.proceso-step .step-meta .row { display: flex; justify-content: space-between; gap: 1rem; }
.proceso-step .step-meta .row .v { color: var(--text); }

/* Process connector line (SVG-like via pseudo) */
.proceso-connector {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-2) 12%, var(--line-2) 88%, transparent);
  margin: 0 auto;
  width: 100%;
  position: relative;
  margin-bottom: 1.5rem;
}
.proceso-connector svg { display: block; width: 100%; height: 80px; }

@media (max-width: 900px) {
  .proceso-grid { grid-template-columns: 1fr; }
  .proceso-step { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-right: 0; }
  .proceso-step:first-child { border-top: none; }
}

/* ---------- Casos ---------- */
.casos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}
.caso-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 320px;
}
.caso-card:hover { border-color: var(--line-3); background: var(--bg-card-hover); }
.caso-card .caso-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.9rem;
}
.caso-card .caso-meta .tag { color: var(--accent); }
.caso-card h3 { font-size: 1.5rem; font-weight: 300; letter-spacing: -0.015em; line-height: 1.15; }
.caso-card p { font-size: 0.92rem; color: var(--text-2); line-height: 1.6; }
.caso-card .caso-stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.caso-card .stat .v {
  font-family: var(--f-mono);
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
  display: block;
}
.caso-card .stat .l {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ---------- Acerca de ---------- */
.acerca {
  position: relative;
  overflow: hidden;
}
.acerca-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.acerca-body h2 { margin-bottom: 1.75rem; max-width: 14ch; }
.acerca-body p { font-size: 1.0625rem; line-height: 1.65; color: var(--text-2); max-width: 50ch; }
.acerca-body p + p { margin-top: 1.25rem; }

.kanji-stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.kanji-cell {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.kanji-cell:hover { border-color: var(--accent-line); background: var(--bg-card-hover); }
.kanji-cell .glyph {
  font-family: var(--f-jp);
  font-size: clamp(4.5rem, 9vw, 7rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  transition: color 0.3s ease;
}
.kanji-cell:hover .glyph { color: var(--accent); }
.kanji-cell .romaji {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.kanji-cell .meaning {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.4;
  max-width: 16ch;
}

@media (max-width: 820px) {
  .acerca-grid { grid-template-columns: 1fr; }
  .kanji-stage { gap: 0.65rem; }
  .kanji-cell { padding: 1rem 0.5rem; }
}

/* ---------- Contacto ---------- */
.contacto {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contacto-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 4rem 0 2rem;
}
.contacto h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  max-width: 16ch;
  margin: 0 auto;
}
.contacto p {
  color: var(--text-2);
  max-width: 48ch;
  margin: 0 auto;
  font-size: 1.0625rem;
}
.contacto-email {
  margin-top: 1.5rem;
  font-family: var(--f-mono);
  font-size: 1.125rem;
  color: var(--text);
  padding: 1rem 1.75rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.contacto-email:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-1px);
}
.contacto-email .arrow { transition: transform 0.25s var(--ease-out); }
.contacto-email:hover .arrow { transform: translate(3px, -3px); }
.contacto-meta {
  margin-top: 2.5rem;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contacto-meta .item { display: flex; flex-direction: column; gap: 0.35rem; align-items: center; }
.contacto-meta .item .v { color: var(--text); }

/* Decorative kanji for contacto */
.contacto-bg-kanji {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-jp);
  font-size: clamp(22rem, 50vw, 50rem);
  color: var(--text);
  opacity: 0.025;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
  font-weight: 500;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-brand .wordmark {
  font-size: 2.25rem;
  font-weight: 200;
  letter-spacing: -0.025em;
  color: var(--text);
}
.footer-brand .wordmark .jp { font-family: var(--f-jp); margin-left: 0.6rem; color: var(--accent); }
.footer-brand .tagline {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-meta .v { color: var(--text); }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

/* ---------- Forensic SVG lines (between sections) ---------- */
.forensic-divider {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 0;
}
.forensic-divider::before {
  content: "";
  position: absolute;
  top: -2px; left: 12%;
  width: 80px; height: 5px;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 12px var(--accent-dim);
}

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background: rgba(15, 15, 18, 0.95);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 1.25rem;
  z-index: 9000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  display: none;
  font-family: var(--f-sans);
  color: var(--text);
}
.tweaks-panel.is-open { display: block; }
.tweaks-panel .tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.tweaks-panel .tweaks-close {
  color: var(--text-2);
  font-size: 1.1rem;
  line-height: 1;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}
.tweaks-panel .tweaks-close:hover { background: var(--bg-card); color: var(--text); }
.tweaks-panel .tweak-group { margin-bottom: 1.15rem; }
.tweaks-panel .tweak-group:last-child { margin-bottom: 0; }
.tweaks-panel .tweak-label {
  font-size: 0.72rem;
  color: var(--text-2);
  margin-bottom: 0.55rem;
  letter-spacing: -0.005em;
}
.tweaks-panel .tweak-options {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px;
}
.tweaks-panel .tweak-options button {
  flex: 1;
  padding: 0.45rem 0.5rem;
  font-size: 0.74rem;
  color: var(--text-2);
  border-radius: 4px;
  transition: background 0.18s ease, color 0.18s ease;
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
}
.tweaks-panel .tweak-options button.is-active {
  background: var(--accent-dim);
  color: var(--accent);
}
.tweaks-panel .tweak-options button:hover:not(.is-active) {
  background: var(--bg-card);
  color: var(--text);
}
.tweaks-panel .tweak-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.tweaks-panel .toggle-switch {
  width: 32px; height: 18px;
  background: var(--line-2);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.tweaks-panel .toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--text);
  border-radius: 50%;
  transition: transform 0.2s var(--ease-out);
}
.tweaks-panel .toggle-switch.is-on { background: var(--accent); }
.tweaks-panel .toggle-switch.is-on::after { transform: translateX(14px); background: #000; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .split .word > span { transform: none !important; opacity: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .draw-line path, .draw-line line, .draw-line polyline { stroke-dashoffset: 0 !important; }
}

/* ---------- Print ---------- */
@media print {
  .cursor-dot, .cursor-ring, .tweaks-panel, .hero-glow, .hero-grid { display: none !important; }
}
