/* ═══════════════════════════════════════════════════════════
   Yunta.Lab — Styles
   Theme: dark (default) / light via [data-theme="light"] on <html>
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol { list-style: none; }
html { scroll-behavior: smooth; }

/* ─── Dark theme (default) ───────────────────────────────── */
:root {
  --bg:          #0a211f;
  --ink:         #f2f4f2;
  --sub:         rgba(242,244,242,.62);
  --panel:       #0e2b27;
  --line:        rgba(242,244,242,.12);
  --card:        #10302b;
  --inv:         #f2f4f2;
  --inv-ink:     #0a211f;
  --accent:      #dfff6f;
  --accent-ink:  #0a211f;
  --nav-bg:      rgba(10,33,31,.82);
  --nav-bg-scroll: rgba(10,33,31,.96);
  --nav-border:  rgba(242,244,242,.1);
  --hero-grid:   rgba(242,244,242,.055);
  --hero-glow:   rgba(223,255,111,.18);
  --arm-opacity: .15;
  --glow-process: rgba(223,255,111,.28);
  --grid-process: rgba(10,33,31,.06);
  --step-border: rgba(10,33,31,.15);
  --toggle-bg:   rgba(242,244,242,.1);
  --toggle-icon: #f2f4f2;
  --glow:        rgba(223,255,111,.16);
  --line2:       rgba(242,244,242,.22);
  /* Lima para secciones invertidas (proceso es clara en dark mode):
     oscurecido para que se distinga sobre fondo claro */
  --accent-inv:  #7c9a00;
  --dot-ring:    rgba(10,33,31,.75);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  color-scheme: dark;
}

/* ─── Light theme ────────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #f2f4f2;
  --ink:         #0a211f;
  --sub:         rgba(10,33,31,.6);
  --panel:       #ffffff;
  --line:        rgba(10,33,31,.1);
  --card:        #ffffff;
  --inv:         #0a211f;
  --inv-ink:     #f2f4f2;
  --accent:      #dfff6f;
  --accent-ink:  #0a211f;
  --nav-bg:      rgba(242,244,242,.88);
  --nav-bg-scroll: rgba(242,244,242,.98);
  --nav-border:  rgba(10,33,31,.1);
  --hero-grid:   rgba(10,33,31,.055);
  --hero-glow:   rgba(223,255,111,.42);
  --arm-opacity: .12;
  --glow-process: rgba(223,255,111,.16);
  --grid-process: rgba(242,244,242,.06);
  --step-border: rgba(242,244,242,.18);
  --toggle-bg:   rgba(10,33,31,.08);
  --toggle-icon: #0a211f;
  --glow:        rgba(223,255,111,.30);
  --line2:       rgba(10,33,31,.24);
  /* En light mode la sección invertida es oscura: el lima pleno funciona */
  --accent-inv:  #dfff6f;
  --dot-ring:    rgba(242,244,242,.85);

  color-scheme: light;
}

/* ─── Base ───────────────────────────────────────────────── */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background .35s, color .35s;
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes glow-pulse {
  0%, 100% { opacity: .55; }
  50%       { opacity: .85; }
}
@keyframes glow-drift-1 {
  0%   { transform: translate(0,    0)    scale(1);    opacity: .18; }
  33%  { transform: translate(-48px, 38px) scale(1.08); opacity: .26; }
  66%  { transform: translate(22px, -26px) scale(.94);  opacity: .14; }
  100% { transform: translate(0,    0)    scale(1);    opacity: .18; }
}
@keyframes glow-drift-2 {
  0%   { transform: translate(0, 0)     scale(1);    opacity: .12; }
  50%  { transform: translate(60px, 40px) scale(1.12); opacity: .20; }
  100% { transform: translate(0, 0)     scale(1);    opacity: .12; }
}
@keyframes draw-arm {
  from { stroke-dashoffset: var(--dlen, 100); }
  to   { stroke-dashoffset: 0; }
}
@keyframes scan-sweep {
  0%   { transform: translateY(0);    opacity: 0; }
  4%   { opacity: 1; }
  92%  { opacity: .75; }
  100% { transform: translateY(88vh); opacity: 0; }
}
@keyframes line-rise {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@keyframes kicker-dot-in {
  0%   { transform: scale(0);   opacity: 0; }
  60%  { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes theme-spin {
  from { transform: rotate(0deg) scale(.7); opacity: 0; }
  to   { transform: rotate(0deg) scale(1);  opacity: 1; }
}

/* ─── Scroll-reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity  .7s cubic-bezier(.22,1,.36,1),
    transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .26s; }
.reveal-d4 { transition-delay: .36s; }
.reveal-d5 { transition-delay: .46s; }

/* ═══ NAV ════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 72px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--nav-border);
  transition: background .3s, border-color .3s;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Logo toggle (theme switch) ── */
.logo-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: -0.06em; /* optical kern: mark → "unta" */
}
.logo-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.logo-mark {
  /* Height matches the cap-height of the 22px wordmark */
  height: 1.15em;
  width:  1.15em;
  font-size: 22px; /* anchor for the em unit */
  display: block;
  transform: rotate(0deg);
  transform-origin: center center;
  transition: transform .65s cubic-bezier(.34, 1.5, .64, 1);
  will-change: transform;
}
[data-theme="light"] .logo-mark {
  transform: rotate(90deg);
}

/* ── Wordmark link ── */
.nav-wordmark-link {
  text-decoration: none;
}
.nav-wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  transition: color .35s;
  display: block;
}
.nav-wordmark span { color: var(--sub); font-weight: 700; transition: color .35s; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--sub);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ── Logo toggle hover hint ── */
.logo-toggle:hover .logo-mark {
  filter: drop-shadow(0 0 5px rgba(223,255,111,.5));
}

.nav-cta {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }

/* ═══ HERO ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg);
  transition: background .35s;
}

/* ── Fondo cinematográfico WebGL (Convergence Field) ── */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: hero-canvas-in 1.4s ease .2s forwards;
}
@keyframes hero-canvas-in {
  to { opacity: 1; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 72% 45%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 72% 45%, #000, transparent 78%);
  pointer-events: none;
  transition: opacity .35s;
}

/* Grain texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.hero-glow {
  position: absolute;
  top: -60px; right: 40px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--hero-glow), transparent 62%);
  pointer-events: none;
  animation: glow-drift-1 14s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute;
  bottom: -80px; right: 30%;
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(223,255,111,.1), transparent 68%);
  pointer-events: none;
  animation: glow-drift-2 10s ease-in-out infinite alternate;
}

.hero-scan {
  position: absolute;
  left: 0; right: 0;
  top: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(223,255,111,.7) 30%, rgba(223,255,111,.9) 50%, rgba(223,255,111,.7) 70%, transparent 100%);
  box-shadow: 0 0 28px rgba(223,255,111,.55), 0 0 70px rgba(223,255,111,.18);
  animation: scan-sweep 2.2s cubic-bezier(.4,0,.6,1) .4s both;
  pointer-events: none;
  z-index: 5;
}

/* ── Large watermark mark ── */
.hero-mark-bg {
  position: absolute;
  right: -6%; bottom: -18%;
  width: 720px; height: 720px;
  pointer-events: none;
  overflow: visible;
}
.hero-mark-bg .arm-1,
.hero-mark-bg .arm-2 {
  stroke: var(--ink);
  stroke-width: 9;
  opacity: var(--arm-opacity);
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: draw-arm 1.4s cubic-bezier(.22,1,.36,1) .3s forwards;
  transition: stroke .35s, opacity .35s;
}
.hero-mark-bg .arm-2 { animation-delay: .5s; }
.hero-mark-bg .arm-lime {
  stroke: var(--accent);
  stroke-width: 9;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw-arm 1.2s cubic-bezier(.22,1,.36,1) .7s forwards;
}

.hero-body {
  padding: 88px 56px 60px;
  position: relative;
  z-index: 1;
  max-width: 980px;
}

/* ── Headline line-reveal ── */
.h-line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
}
.h-line {
  display: block;
  transform: translateY(110%);
  animation: line-rise .9s cubic-bezier(.16,1,.3,1) var(--ld, .3s) forwards;
}

/* ── Kicker ── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  font-family: var(--font-mono);
  transition: color .35s;
}
.kicker-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: kicker-dot-in .6s cubic-bezier(.16,1,.3,1) 1.6s both;
}
.hero .kicker { opacity: 0; animation: fade-up .6s ease .25s forwards; }

.hero-headline {
  font-size: clamp(36px, 8vw, 92px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.035em;
  margin: 26px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  transition: color .35s;
}
.hero-headline .highlight {
  color: var(--accent);
  position: relative;
  display: inline-block;
}
/* Light-mode underline slab behind "también" */
[data-theme="light"] .hero-headline .highlight::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px; bottom: 6px;
  height: 18px;
  background: var(--accent);
  z-index: -1;
}
[data-theme="light"] .hero-headline .highlight { color: var(--ink); }

.hero-sub {
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.55;
  color: var(--sub);
  max-width: 600px;
  margin-top: 30px;
  font-weight: 500;
  transition: color .35s;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-2px); }

.btn-outline {
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 15px 26px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .2s, background .2s, color .35s;
}
.btn-outline:hover { border-color: var(--ink); background: rgba(128,128,128,.06); }

.btn-inv {
  background: var(--inv);
  color: var(--inv-ink);
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s, transform .2s, background .35s, color .35s;
  display: inline-block;
}
.btn-inv:hover { opacity: .88; transform: translateY(-1px); }

/* ── Trust strip ── */
.hero-trust {
  border-top: 1px solid var(--line);
  padding: 22px 56px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  transition: border-color .35s;
  position: relative;
  z-index: 2;
}
.trust-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
  font-family: var(--font-mono);
  letter-spacing: .06em;
  white-space: nowrap;
  transition: color .35s;
}
.trust-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  opacity: .75;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 100px;
  transition: opacity .2s, border-color .2s, color .35s;
}
.trust-tag:hover { opacity: 1; border-color: var(--ink); }

/* ═══ SHARED SECTION ════════════════════════════════════════ */
section { position: relative; overflow: hidden; }

.section-inner { padding: clamp(72px, 9vh, 110px) 56px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 40px;
  flex-wrap: wrap;
}
.section-headline {
  font-size: clamp(28px, 4.2vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 22px 0 0;
  max-width: 620px;
  color: var(--ink);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  transition: color .35s;
}
.section-aside {
  font-size: 15px;
  color: var(--sub);
  font-weight: 600;
  max-width: 220px;
  text-align: right;
  transition: color .35s;
}

/* ─── Motif SVG helper ───────────────────────────────────── */
.motif { overflow: visible; display: block; }

/* ═══ DIFFERENTIATOR ════════════════════════════════════════ */
.diff { background: var(--panel); transition: background .35s; }

.diff-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.diff-headline {
  font-size: clamp(26px, 4.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 760px;
  color: var(--ink);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  transition: color .35s;
}
.diff-headline .muted { color: var(--sub); transition: color .35s; }
.diff-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
  color: var(--sub);
  max-width: 300px;
  font-weight: 500;
  margin-top: 10px;
  flex-shrink: 0;
  transition: color .35s;
}

.diff-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.diff-panel {
  border-radius: 24px;
  padding: 40px 44px;
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22,1,.36,1), background .35s, border-color .35s;
}
.diff-panel:hover { transform: translateY(-3px); }

.diff-panel-dark  { background: var(--inv);  color: var(--inv-ink); }
.diff-panel-light { background: var(--bg);   color: var(--ink); border: 1px solid var(--line); }

.diff-panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.diff-panel-result {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.diff-result-line {
  width: 24px; height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.diff-panel-dark  .diff-panel-result { color: rgba(10,33,31,.6); }
.diff-panel-light .diff-panel-result { color: var(--sub); }

/* ═══ SERVICES ══════════════════════════════════════════════ */
.services { background: var(--bg); transition: background .35s; }

/* ── Flat 3-column bento grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Featured spans first 2 columns */
.bento-featured {
  grid-column: span 2;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 26px;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.bento-featured:hover { transform: translateY(-3px); }

.bento-featured-motif {
  position: absolute;
  right: -40px; bottom: -50px;
  pointer-events: none;
}
.bento-featured-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}
.bento-n {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  opacity: .55;
}
.bento-featured-bottom { position: relative; }
.bento-featured h3 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}
.bento-featured p {
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.5;
  margin: 14px 0 22px;
  font-weight: 500;
  max-width: 420px;
  opacity: .82;
}

.tag-list    { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-featured {
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid rgba(10,33,31,.28);
  padding: 7px 14px;
  border-radius: 100px;
  color: var(--accent-ink);
  transition: border-color .2s;
}

/* Legacy aliases kept for safety, grid handles layout now */
.bento-small-stack { display: contents; }
.bento-bottom      { display: contents; }

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s, background .35s;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--ink); }

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.service-card h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  color: var(--ink);
  transition: color .35s;
}
.service-card p {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--sub);
  margin: 0;
  font-weight: 500;
  transition: color .35s;
}
.tag {
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 100px;
  color: var(--ink);
  transition: border-color .2s, color .35s;
}
.tag:hover { border-color: var(--ink); }

.bento-cta-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: border-color .3s, background .35s;
}
.bento-cta-card:hover { border-color: var(--ink); }
.bento-cta-card h4 {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color .35s;
}
.bento-cta-card p {
  font-size: 15px;
  color: var(--sub);
  font-weight: 500;
  margin-top: 6px;
  transition: color .35s;
}

/* ═══ PROCESS ═══════════════════════════════════════════════ */
.process {
  background: var(--inv);
  color: var(--inv-ink);
  transition: background .35s, color .35s;
}

.process-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-process) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-process) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(110% 90% at 28% 32%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(110% 90% at 28% 32%, #000, transparent 76%);
  pointer-events: none;
}
.process-glow {
  position: absolute;
  top: -130px; left: -70px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, var(--glow-process), transparent 62%);
  pointer-events: none;
  opacity: .65;            /* estático: el pulso se asomaba por la diagonal */
}

.process-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 24px;
}
.process-headline {
  font-size: clamp(26px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  color: var(--inv-ink);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  transition: color .35s;
}
.process-sub {
  font-size: 15px;
  font-weight: 600;
  opacity: .6;
  max-width: 240px;
  text-align: right;
  color: var(--inv-ink);
  transition: color .35s;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  position: relative;
  z-index: 1;
}

.process-step {
  padding: 0 36px;
  border-left: 1px solid var(--step-border);
  transition: border-color .35s;
}
.process-step:first-child { padding-left: 0; border-left: none; }

.process-step-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.step-n {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  opacity: .55;
  color: var(--inv-ink);
  transition: color .35s;
}
.step-line { flex: 1; height: 1px; background: var(--step-border); transition: background .35s; }
.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-inv);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--dot-ring), 0 0 10px rgba(223,255,111,.30);
}

.process-step h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--inv-ink);
  transition: color .35s;
}
.process-step p {
  font-size: 16.5px;
  line-height: 1.55;
  opacity: .72;
  margin: 0;
  font-weight: 500;
  color: var(--inv-ink);
  transition: color .35s;
}

/* ═══ POSITIONING ═══════════════════════════════════════════ */
.positioning { background: var(--bg); transition: background .35s; }

.pos-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}

.pos-not-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pos-not-item {
  font-size: clamp(18px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: color .35s;
}
.pos-not-x {
  font-family: var(--font-mono);
  font-size: 14px;
  opacity: .5;
  flex-shrink: 0;
}
.pos-not-text {
  text-decoration: line-through;
  text-decoration-color: var(--line);
  text-decoration-thickness: 2px;
}

.pos-yes-card {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 28px;
  padding: 52px;
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.pos-yes-card:hover { transform: translateY(-4px); }

.pos-yes-motif {
  position: absolute;
  right: -30px; top: -40px;
  pointer-events: none;
}
.pos-yes-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  opacity: .6;
}
.pos-yes-card h2 {
  font-size: clamp(24px, 3.4vw, 50px);
  font-optical-sizing: auto;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 18px 0 0;
  position: relative;
}
.pos-yes-card p {
  font-size: 18px;
  line-height: 1.55;
  margin-top: 20px;
  font-weight: 600;
  max-width: 440px;
  opacity: .82;
  position: relative;
}

/* ═══ CTA / FOOTER ══════════════════════════════════════════ */
.cta-section {
  background: var(--accent);
  color: #0a211f;
  padding: 96px 56px 40px;
  position: relative;
  overflow: hidden;
}
.cta-motif {
  position: absolute;
  right: -80px; top: -120px;
  pointer-events: none;
}
.cta-body {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-headline {
  font-size: clamp(30px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: .95;
  margin: 0;
  max-width: 820px;
  color: #0a211f;
  font-family: var(--font-display);
  font-optical-sizing: auto;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  flex-shrink: 0;
}
.btn-dark {
  background: #0a211f;
  color: var(--accent);
  padding: 18px 34px;
  border-radius: 100px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  transition: opacity .2s, transform .2s;
}
.btn-dark:hover { opacity: .88; transform: translateY(-2px); }
.cta-note {
  font-size: 15px;
  font-weight: 600;
  opacity: .65;
  color: #0a211f;
}

.footer-divider {
  height: 1px;
  background: rgba(10,33,31,.22);
  margin: 64px 0 26px;
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}
.footer-brand svg {
  margin-right: -0.05em;
  font-size: 22px; /* anchor for optical kerning em unit */
  flex-shrink: 0;
}
.footer-wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0a211f;
  line-height: 1;
}
.footer-wordmark span { color: rgba(10,33,31,.5); font-weight: 700; }
.footer-loc { font-size: 14px; font-weight: 600; opacity: .65; color: #0a211f; }

/* Iconos sociales — misma estética que el botón Claro/Oscuro */
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #0a211f;
  background: rgba(10,33,31,.16);
  border: 1.5px solid rgba(10,33,31,.42);
  transition: background .2s, border-color .2s, transform .2s;
  flex-shrink: 0;
}
.footer-social-link:hover {
  background: rgba(10,33,31,.26);
  border-color: rgba(10,33,31,.62);
  transform: translateY(-1px);
}
.footer-social-link:focus-visible {
  outline: 2px solid #0a211f;
  outline-offset: 3px;
}

/* ═══ HAMBURGER + MOBILE NAV ════════════════════════════════ */
.nav-hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--toggle-bg);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--line); }
.nav-hamburger .icon-x  { display: none; }
.nav-hamburger .icon-bars { display: block; }
.nav-hamburger.open .icon-x   { display: block; }
.nav-hamburger.open .icon-bars { display: none; }

.nav-mobile {
  position: fixed;
  top: 72px; left: 0; right: 0;
  z-index: 98;
  background: var(--nav-bg-scroll);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s cubic-bezier(.22,1,.36,1), padding .35s cubic-bezier(.22,1,.36,1);
  padding: 0 24px;
  display: none;
}
.nav-mobile.open {
  max-height: 480px;
  padding: 28px 24px 36px;
}

.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-links a {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s;
}
.nav-mobile-links a:hover { color: var(--accent); }
.nav-mobile-cta {
  display: inline-flex;
  margin-top: 24px;
  font-size: 16px;
}

/* ═══ REDUCED MOTION ════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .h-line { animation: none; transform: none; }
  .hero-scan { display: none; }
  .hero-glow, .hero-glow-2 { animation: none; }
  .kicker-dot { animation: none; }
  .hero .kicker { opacity: 1; animation: none; }
  .reveal { transition: none; }
  .hero-mark-bg .arm-1,
  .hero-mark-bg .arm-2,
  .hero-mark-bg .arm-lime { animation: none; stroke-dashoffset: 0; }
  .faq-item[open] .faq-a { animation: none; }
  .faq-icon::before, .faq-icon::after { transition: none; }
}

/* ═══ RESPONSIVE ════════════════════════════════════════════ */

/* ── Tablet (769px – 1024px) ─────────────────────────────── */
@media (max-width: 1024px) {
  .nav { padding: 0 32px; }
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 14px; }

  .hero-body  { padding: 80px 32px 52px; max-width: 100%; }
  .hero-trust { padding: 22px 32px; }
  .hero-mark-bg { width: 520px; height: 520px; }

  .section-inner { padding: clamp(64px, 7vh, 90px) 32px; }

  .diff-sub { max-width: 240px; }

  /* bento: 2 cols on tablet, featured still spans 2 */
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-featured { grid-column: span 2; }
  .bento-cta-card { grid-column: span 2; }

  .pos-grid { gap: 40px; }
  .pos-yes-card { padding: 40px; }

  .cta-section { padding: 80px 32px 40px; }
  .cta-body { gap: 32px; }
}

/* ── Mobile (≤ 768px) ────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile    { display: block; }

  .hero-body  { padding: 52px 20px 36px; }
  .hero-trust { padding: 20px 20px; gap: 16px; }
  .hero-mark-bg { width: 300px; height: 300px; right: -8%; bottom: -2%; opacity: .5; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { width: 100%; justify-content: center; }

  .section-inner { padding: 72px 20px; }

  .diff-header  { flex-direction: column; gap: 20px; }
  .diff-sub     { max-width: 100%; }
  .diff-panels  { grid-template-columns: 1fr; }
  .diff-panel   { padding: 32px 28px; }

  .section-header { margin-bottom: 36px; }
  .section-aside  { text-align: left; max-width: 100%; }
  .bento-grid     { grid-template-columns: 1fr; }
  .bento-featured { grid-column: span 1; min-height: auto; padding: 32px; }
  .bento-cta-card { grid-column: span 1; flex-direction: column; align-items: flex-start; padding: 28px 24px; }

  .process-header { flex-direction: column; gap: 12px; }
  .process-sub    { text-align: left; max-width: 100%; }
  .process-steps  { grid-template-columns: 1fr; gap: 32px; }
  .process-step   { padding: 0; border-left: none; border-top: 1px solid var(--step-border); padding-top: 28px; }
  .process-step:first-child { border-top: none; padding-top: 0; }

  .pos-grid     { grid-template-columns: 1fr; gap: 32px; }
  .pos-yes-card { padding: 32px 28px; }

  .cta-section  { padding: 64px 20px 36px; }
  .cta-body     { flex-direction: column; align-items: flex-start; }
  .cta-actions  { align-items: flex-start; width: 100%; }
  .btn-dark     { width: 100%; text-align: center; }

  .footer-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Small phones (≤ 480px) ──────────────────────────────── */
@media (max-width: 480px) {
  .hero-body  { padding: 44px 16px 32px; }
  .hero-trust { padding: 18px 16px; }
  .trust-tags { gap: 8px; }
  .trust-tag  { font-size: 12px; padding: 6px 12px; }

  .section-inner { padding: 56px 16px; }

  .diff-panel   { padding: 28px 20px; }
  .bento-featured { padding: 24px; }
  .service-card   { padding: 24px 22px; }
  .bento-cta-card { padding: 24px 20px; }

  .process-step { padding-top: 24px; }

  .pos-yes-card { padding: 28px 22px; }

  .cta-section  { padding: 52px 16px 32px; }
  .btn-dark     { font-size: 16px; padding: 15px 24px; }

  .nav { padding: 0 16px; }
  .nav-wordmark { font-size: 19px; }
}

/* ═══════════════════════════════════════════════════════════
   UnicornUX v4.0 Upgrades
   ═══════════════════════════════════════════════════════════ */

/* ─── Cursor Glow (dark mode premium — tech justified) ───── */
.cursor-glow {
  position: fixed;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223,255,111,.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: opacity .5s ease;
  opacity: 0;
  will-change: left, top;
}
[data-theme="light"] .cursor-glow { display: none; }
@media (hover: none) { .cursor-glow { display: none; } }

/* ─── Hero Glass Chips (Tipo H) ─────────────────────────── */
@keyframes chip-in {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

.hero-chips {
  position: absolute;
  top: 190px;
  right: 8%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3;
  pointer-events: none;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  background: rgba(242,244,242,.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(242,244,242,.13);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(242,244,242,.8);
  font-family: var(--font-mono);
  letter-spacing: .04em;
  opacity: 0;
  animation: chip-in .7s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: 1.1s;
  white-space: nowrap;
}
.hero-chip--2 { animation-delay: 1.35s; }
.hero-chip--3 { animation-delay: 1.6s; }

.hero-chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(223,255,111,.7);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
.hero-chip-dot--b {
  background: #7dd3fc;
  box-shadow: 0 0 8px rgba(125,211,252,.55);
  animation-delay: -.8s;
}
.hero-chip-dot--w {
  background: rgba(242,244,242,.5);
  box-shadow: none;
  animation: none;
}

/* Chips en light mode — colores adaptados al fondo claro */
[data-theme="light"] .hero-chip {
  background: rgba(10,33,31,.07);
  border-color: rgba(10,33,31,.16);
  color: rgba(10,33,31,.80);
}
[data-theme="light"] .hero-chip-dot--w {
  background: rgba(10,33,31,.45);
}

@media (max-width: 1100px) { .hero-chips { right: 4%; } }
@media (max-width: 900px)  { .hero-chips { display: none; } }

/* ─── Metrics — Stat Cards (Tipo F) ─────────────────────── */
.metrics {
  background: var(--panel);
  border-top:    1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .35s, border-color .35s;
}

.metrics-inner {
  display: flex;
  align-items: stretch;
  padding: 0 56px;
}

.stat-card {
  flex: 1;
  padding: 52px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--line);
  transition: border-color .35s;
}
.stat-card:last-child { border-right: none; }

.stat-top {
  display: flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  transition: color .35s;
}
.stat-num--zero { color: var(--ink); }

/* Sufijos: un solo tamaño y color para las 4 tarjetas (consistencia) */
.stat-suf {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.stat-desc {
  font-size: 14px;
  font-weight: 600;
  color: var(--sub);
  line-height: 1.45;
  max-width: 24ch;
  transition: color .35s;
}

/* Sin hover en números: las stat cards no son interactivas */

@media (max-width: 1024px) {
  .metrics-inner { padding: 0 32px; }
  .stat-card { padding: 44px 28px; }
}
@media (max-width: 768px) {
  .metrics-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 20px;
  }
  .stat-card { border-right: none; border-bottom: 1px solid var(--line); padding: 36px 20px; }
  .stat-card:nth-child(1),
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(odd)  { border-right: 1px solid var(--line); }
  .stat-card:nth-child(3),
  .stat-card:nth-child(4) { border-bottom: none; }
}
@media (max-width: 480px) {
  .stat-num  { font-size: 36px; }
  .stat-suf  { font-size: 20px; }
  .stat-card { padding: 28px 16px; }
}

/* ─── Service Card IA — dark glass variant ───────────────── */
.service-card-ia {
  background: linear-gradient(145deg, var(--card) 0%, rgba(8, 24, 22, .98) 100%);
  border-color: rgba(223,255,111,.14);
  position: relative;
  overflow: hidden;
}
.service-card-ia::after {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(223,255,111,.07), transparent 70%);
  pointer-events: none;
  transition: opacity .35s;
}
.service-card-ia:hover {
  border-color: rgba(223,255,111,.32) !important;
  box-shadow: 0 8px 40px rgba(223,255,111,.05);
}
.service-card-ia:hover::after { opacity: 1.5; }

[data-theme="light"] .service-card-ia {
  background: var(--card);
  border-color: var(--line);
}
[data-theme="light"] .service-card-ia::after { display: none; }
[data-theme="light"] .service-card-ia:hover { border-color: var(--ink) !important; box-shadow: none; }

/* ─── Process Milestone upgrade (Tipo I) ─────────────────── */
.milestone-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--inv-ink);  /* adapta: oscuro en fondo claro, claro en fondo oscuro */
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: .55;
}

.process-milestone:not(:first-child) {
  transition: border-color .35s, padding-left .35s;
}
.process-milestone:not(:first-child):hover {
  border-left-color: var(--accent-inv);
}
/* Hover idéntico en los 3 pasos (incluido el 01, que no tiene borde) */
.process-milestone:hover .step-n {
  color: var(--accent-inv);
  opacity: 1;
}

@media (max-width: 768px) {
  .process-milestone { padding-top: 28px !important; }
  .process-milestone .milestone-tag { display: none; }
}

/* ─── FAQ (AEO) ──────────────────────────────────────────── */
.faq { background: var(--bg); transition: background .35s; }

.faq-list {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
  transition: border-color .3s, background .35s;
}
.faq-item:hover { border-color: var(--accent); }
.faq-item[open] { border-color: var(--accent); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  color: var(--ink);
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 18px;
}

.faq-q {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 800;
  font-size: clamp(16px, 1.9vw, 21px);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.faq-icon {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.faq-a {
  padding: 0 28px 26px;
  max-width: 720px;
}
.faq-a p {
  color: var(--sub);
  font-size: clamp(14.5px, 1.6vw, 16.5px);
  line-height: 1.65;
  transition: color .35s;
}

/* Reveal de apertura (respeta reduced-motion vía media query existente) */
.faq-item[open] .faq-a { animation: faq-open .35s ease both; }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .faq-item summary { padding: 20px 20px; gap: 16px; }
  .faq-a { padding: 0 20px 22px; }
}

/* ─── Testimonial (Tipo J) ───────────────────────────────── */
.testimonial-section {
  background: var(--panel);
  transition: background .35s;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 60px 64px;
  position: relative;
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
  transition:
    transform .35s cubic-bezier(.22,1,.36,1),
    border-color .3s,
    background .35s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242,244,242,.26);
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 40%, var(--accent) 60%, transparent 100%);
  opacity: .45;
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 100px;
  line-height: .75;
  color: var(--accent);
  opacity: .28;
  font-weight: 800;
  display: block;
  margin-bottom: -12px;
  user-select: none;
}

.testimonial-text {
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-family: var(--font-display);
  margin: 0 0 40px;
  font-style: normal;
  transition: color .35s;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  transition: border-color .35s;
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
  transition: background .35s, border-color .35s;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: color .35s;
}
.testimonial-company {
  font-size: 12px;
  font-weight: 600;
  color: var(--sub);
  font-family: var(--font-mono);
  letter-spacing: .03em;
  margin-top: 3px;
  transition: color .35s;
}

@media (max-width: 768px) {
  .testimonial-card { padding: 40px 32px; }
  .testimonial-quote-mark { font-size: 72px; }
}
@media (max-width: 480px) {
  .testimonial-card { padding: 32px 22px; border-radius: 20px; }
  .testimonial-text { font-size: 18px; }
}

/* ═══════════════════════════════════════════════════════════
   Fixes v2 — 8 observaciones
   ═══════════════════════════════════════════════════════════ */

/* ── Fix 1: Nav smart scroll (transparent ↓ / solid ↑) ─── */
.nav {
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s;
}
.nav--scrolled-down {
  background: rgba(10,33,31,.22) !important;
  border-bottom-color: transparent !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
.nav--scrolled-up {
  background: var(--nav-bg-scroll) !important;
  border-bottom-color: var(--nav-border) !important;
}
[data-theme="light"] .nav--scrolled-down {
  background: rgba(242,244,242,.22) !important;
}
[data-theme="light"] .nav--scrolled-up {
  background: var(--nav-bg-scroll) !important;
}

/* ── Fix 2: Nav CTA wiggle ────────────────────────────────── */
@keyframes nav-cta-wiggle {
  0%, 76%, 100% { transform: translateY(0) rotate(0); }
  78%  { transform: translateY(-2px) rotate(-4deg); box-shadow: 0 6px 22px rgba(223,255,111,.28); }
  81%  { transform: translateY(-2px) rotate(4deg); }
  84%  { transform: translateY(-2px) rotate(-3deg); }
  87%  { transform: translateY(-2px) rotate(2deg); }
  90%  { transform: translateY(-1px) rotate(0); }
  94%  { transform: translateY(0); }
}
.nav-cta {
  animation: nav-cta-wiggle 6s ease-in-out infinite;
  animation-delay: 4s;
  transform-origin: center center;
}
.nav-cta:hover { animation: none; }

/* ── Fix 3: Mobile nav — full screen overlay ────────────── */
@media (max-width: 768px) {
  .nav-mobile {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    max-height: none !important;
    height: 100% !important;
    padding: 100px 32px 48px !important;
    background: var(--bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0 !important;
    overflow: hidden !important;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .35s ease, transform .35s cubic-bezier(.22,1,.36,1) !important;
    z-index: 97;
  }
  .nav-mobile.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    max-height: none !important;
    padding: 100px 32px 48px !important;
  }

  /* Watermark logo */
  .nav-mobile-watermark {
    position: absolute;
    width: 72vw;
    right: -18vw;
    top: 50%;
    transform: translateY(-50%);
    opacity: .06;
    pointer-events: none;
    color: var(--ink);
    transition: color .35s;
  }

  /* Bigger links for full screen */
  .nav-mobile-links a {
    font-size: 30px !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .nav-mobile-cta {
    margin-top: 40px !important;
    font-size: 17px !important;
  }
  .nav-mobile.open .nav-mobile-cta {
    animation: nav-cta-wiggle 6s ease-in-out infinite;
    animation-delay: 2s;
    transform-origin: center center;
  }
  .nav-mobile.open .nav-mobile-cta:hover { animation: none; }
}

/* ── Fix 4: Tags/bullets dentro del cajón ─────────────────── */
.service-card { overflow: hidden; }
.bento-cta-card { overflow: hidden; }

/* Ensure tag-list never overflows its card */
.tag-list { overflow: hidden; }

/* Trust tags stay contained in hero strip */
.hero-trust { overflow: hidden; }
.trust-tags  { overflow: visible; }

/* ── Fix 5: Process step icons ───────────────────────────── */
.process-icon {
  /* --inv-ink inverts correctly: dark on white (dark-mode), white on dark (light-mode) */
  color: var(--inv-ink);
  margin-bottom: 18px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .75;
}
.process-icon svg {
  width: 36px; height: 36px;
  transition: color .35s, opacity .35s;
}
.process-step:hover .process-icon { opacity: 1; }

@media (max-width: 768px) {
  .process-icon { margin-bottom: 12px; }
}

/* ── Fix 6: Light mode contrast — diff-panel-dark ─────────── */
[data-theme="light"] .diff-panel-dark .diff-panel-result {
  color: rgba(242,244,242,.7);
}

/* ── Fix 7: Metrics suffix ──────────────────────────────── */
/* Light mode: lima oscurecida para legibilidad sobre claro */
[data-theme="light"] .stat-suf { color: #5b8000; }

/* ── Fix 8: Footer wordmark — match nav (logo = Y) ─────────── */
/* .footer-wordmark now shows "unta.lab" (HTML already updated) */
/* gap/kerning is handled in .footer-brand block above */

/* ═══════════════════════════════════════════════════════════
   Enhancements v3 — footer toggle, step-dot, diagonal cuts
   ═══════════════════════════════════════════════════════════ */

/* ── Footer theme toggle button ─────────────────────────── */
.footer-theme-btn {
  background: rgba(10,33,31,.12);
  border: 1.5px solid rgba(10,33,31,.22);
  border-radius: 100px;
  padding: 9px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0a211f;
  font-family: var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.footer-theme-btn:hover { background: rgba(10,33,31,.22); transform: translateY(-1px); }
.footer-theme-btn:focus-visible {
  outline: 2px solid #0a211f;
  outline-offset: 3px;
}
/* Sun shown in light mode (click to go dark), Moon in dark mode (click to go light) */
.footer-theme-btn .ft-icon-sun  { display: none; }
.footer-theme-btn .ft-icon-moon { display: block; }
.footer-theme-btn .ft-label-dark  { display: inline; }
.footer-theme-btn .ft-label-light { display: none; }
[data-theme="light"] .footer-theme-btn .ft-icon-moon { display: none; }
[data-theme="light"] .footer-theme-btn .ft-icon-sun  { display: block; }
[data-theme="light"] .footer-theme-btn .ft-label-dark  { display: none; }
[data-theme="light"] .footer-theme-btn .ft-label-light { display: inline; }

/* ── Diagonal section cuts ───────────────────────────────── */
/*
  "/" cut at section bottom: right side higher
    polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%)
  "\" cut at section bottom: left side higher
    polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 56px))
  padding-bottom compensates the clipped area so content stays clear
*/
/* Hero → métricas: transición plana (sin diagonal, no corta el logo) */
.hero           { clip-path: none; padding-bottom: 0; }
/* Métricas: sin diagonal — fondo = body, la tarjeta contenida hace el contraste */
.metrics        { clip-path: none; }
.diff           { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%); padding-bottom: 56px; }
/* Menos aire tras "resultado real": el clip ya aporta 56px abajo */
.diff .section-inner { padding-bottom: clamp(24px, 4vh, 48px); }
.services       { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 56px)); padding-bottom: 56px; }
.process        { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%); padding-bottom: 56px; }
.positioning    { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 56px)); padding-bottom: 56px; }
.testimonial-section { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%); padding-bottom: 56px; }

/* Remove diagonals on mobile — too tight */
@media (max-width: 768px) {
  .hero, .metrics, .diff, .services,
  .process, .positioning, .testimonial-section {
    clip-path: none;
    padding-bottom: 0;
  }
}

/* === MÓDULO CONVERGENCIA (#diferenciador) ════════════════════ */
/* Altura normal, sin pin: el SVG se dibuja una vez al entrar al viewport */
.conv { position: relative; }
.conv-sticky {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(28px, 5vh, 60px);
}
.conv-sticky .diff-header { margin-bottom: 0; }
.conv-stage { position: relative; width: min(94%, 860px); margin: 0 auto; }
.conv-stage svg { width: 100%; height: auto; overflow: visible; }
.conv-lbl {
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 800;
  letter-spacing: -.02em;
  fill: var(--sub);
}
.conv-lbl-res { fill: var(--accent); }
.conv-arm {
  fill: none;
  stroke-linecap: round;
  stroke: var(--ink);
  transition: stroke .35s;
}
.conv-arm-go {
  stroke: var(--accent);
  filter: drop-shadow(0 0 14px var(--glow));
}
#convSpark { fill: var(--accent); }
.conv-msg {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: clamp(20px, 3.4vw, 38px);
  line-height: 1.1;
  max-width: 22ch;
  margin: 30px auto 0;
  color: var(--ink);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.conv-msg .conv-lime { color: var(--accent); }
.conv-msg.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .conv-msg { transition: none; }
}

/* === MÓDULO MÉTRICAS · tarjeta contenida (mockup v6) ══════════ */
.metrics {
  background: var(--bg);
  padding: clamp(36px, 5vh, 56px) clamp(20px, 4vw, 56px);
  border-top: none;
  border-bottom: none;
}
.metrics-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
@media (min-width: 820px) {
  .metrics-inner { grid-template-columns: repeat(4, 1fr); }
}
.metrics-inner .stat-card {
  border: none;
  background: var(--panel);
  padding: 30px 26px;
  gap: 10px;
}
/* Sin hover: las stat cards no son clicables (affordance honesta) */
/* Números con ancho de cifra fijo: el count-up no "baila" */
.stat-num { font-variant-numeric: tabular-nums; }

/* === MÓDULO BENTO SPOTLIGHT (#servicios) ═════════════════════ */
@media (hover: hover) {
  .service-card { --mx: 50%; --my: 50%; position: relative; overflow: hidden; }
  .service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(340px circle at var(--mx) var(--my), var(--glow), transparent 65%);
    opacity: 0;
    transition: opacity .4s ease;
  }
  .service-card:hover::before { opacity: 1; }
  /* El contenido vive por encima del glow */
  .service-card > * { position: relative; z-index: 1; }
  /* Tags con hover escalonado */
  .service-card:hover .tag { border-color: var(--line2); }
  .service-card:hover .tag:nth-child(2) { transition-delay: .05s; }
  .service-card:hover .tag:nth-child(3) { transition-delay: .10s; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card::before { transition: none; }
}

/* === MÓDULO MARQUEE DE SECTORES (CTA) ════════════════════════ */
.cta-marquee {
  margin-top: 56px;
  border-top: 1px solid rgba(10,33,31,.16);
  border-bottom: 1px solid rgba(10,33,31,.16);
  padding: 16px 0;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.cta-marquee-in {
  display: inline-block;
  animation: cta-mq 26s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(10,33,31,.5);
}
.cta-marquee-in em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-ink);
  margin: 0 24px;
}
@keyframes cta-mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .cta-marquee-in { animation: none; }
}

/* === POSICIONAMIENTO · aparición escalonada por scroll ════════ */
.pos-step {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .55s cubic-bezier(.2,.6,.2,1), transform .55s cubic-bezier(.2,.6,.2,1);
}
.pos-step.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .pos-step { opacity: 1; transform: none; transition: none; }
}

/* === MÓDULO PROCESO · pasos aparecen secuencialmente ═════════ */
.proc-step {
  /* Aparición sutil: nace transparente y gana contraste, sin movimiento */
  opacity: 0;
  transition: opacity .7s ease;
}
.proc-step.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .proc-step { opacity: 1; transition: none; }
}
