/* =============================================================
   romsoftlab · styles.css
   1. Tokens · 2. Base · 3. Utilidades · 4. Componentes
   5. Secciones · 6. Efectos · 7. Responsive
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Paleta "teclado retro": crema + grafito + naranja */
  --bg: #F4F0E8;          /* crema (teclas claras) */
  --bg-1: #EBE5DA;        /* crema profunda, secciones alternas */
  --bg-2: #FBF9F5;        /* superficie de tarjetas */
  --line: #DDD5C7;        /* bordes */
  --key-shadow: #D6CDBD;  /* "canto" inferior de las teclas */
  --ink: #2B2D31;         /* texto principal */
  --mute: #6B6760;        /* texto secundario */
  --charcoal: #3A3D42;    /* teclas oscuras */
  --charcoal-2: #2F3236;
  --accent: #CF4A1C;      /* naranja (ESC / espacio): CTAs y precios */
  --accent-hover: #B93F15;
  --accent-text: #B53F17; /* naranja legible sobre crema */
  --accent-ink: #FFFFFF;
  --amber: #E9B44C;

  --f-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; border-radius: 6px; }

/* ---------- 3. Utilidades ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }

/* ---------- 4. Componentes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 12px;
  font: 600 1rem/1 var(--f-body); border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -10px rgba(207, 74, 28, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(207, 74, 28, .8); background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, .5); }
.btn-ghost:hover { border-color: var(--charcoal); color: var(--charcoal); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-block: 12px; }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(251, 249, 245, .9), rgba(235, 229, 218, .9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  isolation: isolate;
}
/* Borde luminoso que sigue al cursor */
.card[data-glow]::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 0%), rgba(58, 61, 66, .35), transparent 60%);
  opacity: 0; transition: opacity .3s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.card[data-glow]:hover::before { opacity: 1; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 .74rem/1 var(--f-mono); letter-spacing: .02em;
  padding: 6px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-saas { color: var(--accent); border-color: rgba(207, 74, 28, .35); background: rgba(207, 74, 28, .08); }
.tag-plugin { color: var(--charcoal); border-color: rgba(58, 61, 66, .35); background: rgba(58, 61, 66, .08); }
.tag-wp { color: var(--charcoal); border-color: rgba(58, 61, 66, .35); background: rgba(58, 61, 66, .08); }

.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink); font-size: .95rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px;
  background: rgba(207, 74, 28, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3 3 7-7' fill='none' stroke='%23CF4A1C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--charcoal); }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

.kicker { font: 500 .8rem/1 var(--f-mono); color: var(--charcoal); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .8rem/1 var(--f-mono); color: var(--mute);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(235, 229, 218, .6);
}
.dot, .ok { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(207, 74, 28, .15); flex: none; }
.dot { animation: pulse 2s infinite; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 3px 0 #9E3712;
  font-size: .78rem; font-weight: 700;
}
.logo-word b { color: var(--accent); font-weight: 500; }
.logo-sm .logo-mark { width: 28px; height: 28px; font-size: .68rem; }

/* ---------- 5. Secciones ---------- */
/* Fondo global */
.spotlight {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(600px circle at var(--mx, 70%) var(--my, 20%), rgba(58, 61, 66, .10), transparent 60%),
    radial-gradient(900px circle at 85% -10%, rgba(58, 61, 66, .14), transparent 60%),
    radial-gradient(700px circle at -10% 40%, rgba(207, 74, 28, .08), transparent 60%);
}
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: -2;
  background-image: linear-gradient(rgba(58, 61, 66, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(58, 61, 66, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

/* Nav */
.nav { position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(244, 240, 232, .92); border-color: var(--line); }
@supports (backdrop-filter: blur(1px)) { .nav.is-scrolled { background: rgba(244, 240, 232, .7); backdrop-filter: blur(14px) saturate(140%); } }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: .95rem; color: var(--mute); }
.nav-links a:not(.btn) { position: relative; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: calc(var(--nav-h) + clamp(48px, 9vw, 110px)) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(2.3rem, 4.3vw, 3.75rem); font-weight: 800; margin: 26px 0 22px; text-wrap: balance; }
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub { color: var(--mute); font-size: clamp(1.02rem, 1.3vw, 1.15rem); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; color: var(--mute); font-size: .92rem; }
.hero-proof strong { font: 700 1.25rem/1 var(--f-display); color: var(--ink); margin-right: 6px; }

/* Mockup del hero */
.hero-visual { position: relative; min-height: 440px; perspective: 1400px; }
.mock-editor, .mock-panel {
  position: absolute; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 40px 80px -30px rgba(58, 61, 66, .25), 0 0 0 1px rgba(255, 255, 255, .5) inset;
}
.mock-editor { inset: 0 12% 22% 0; background: var(--charcoal); border-color: var(--charcoal-2); overflow: hidden; transform: rotateY(8deg) rotateX(4deg); transform-origin: left center; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #4A4E55; background: var(--charcoal-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #55595F; }
.mock-bar i:nth-child(1) { background: #FF5F57; } .mock-bar i:nth-child(2) { background: #FEBC2E; } .mock-bar i:nth-child(3) { background: #28C840; }
.mock-tab { margin-left: 12px; font: 400 .75rem/1 var(--f-mono); color: #CFC8BB; padding: 6px 10px; background: var(--charcoal); border-radius: 6px; }
.mock-code { padding: 20px 18px; font: 400 clamp(.7rem, 1vw, .82rem)/1.85 var(--f-mono); color: #E9E3D8; white-space: pre; overflow: hidden; }
.mock-code .k { color: #F28A5B; } .mock-code .t { color: #9FC7B3; } .mock-code .f { color: #F2C66D; } .mock-code .s { color: #B7D98B; }
.mock-code.is-typing code::after { content: "▍"; color: #F28A5B; animation: blink 1s steps(1) infinite; }
.mock-panel { right: 0; bottom: 0; width: 62%; padding: 18px; background: rgba(251, 249, 245, .92); animation: float 7s ease-in-out infinite; }
@supports (backdrop-filter: blur(1px)) { .mock-panel { background: rgba(251, 249, 245, .75); backdrop-filter: blur(16px); } }
.mock-panel-head { display: flex; justify-content: space-between; align-items: center; font: 500 .78rem/1 var(--f-mono); color: var(--mute); }
.pill { color: var(--accent); background: rgba(207, 74, 28, .12); padding: 5px 8px; border-radius: 999px; }
.mock-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.mock-kpis div { padding: 12px; background: rgba(244, 240, 232, .6); border: 1px solid var(--line); border-radius: 10px; }
.mock-kpis small { display: block; font-size: .72rem; color: var(--mute); }
.mock-kpis b { font: 700 1.35rem/1.3 var(--f-display); white-space: nowrap; }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 84px; }
.mock-chart span { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--accent), rgba(207, 74, 28, .15)); transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.mock-chart span:nth-child(even) { background: linear-gradient(180deg, var(--charcoal), rgba(58, 61, 66, .12)); }
.mock-chart span:nth-child(2) { animation-delay: .08s } .mock-chart span:nth-child(3) { animation-delay: .16s } .mock-chart span:nth-child(4) { animation-delay: .24s }
.mock-chart span:nth-child(5) { animation-delay: .32s } .mock-chart span:nth-child(6) { animation-delay: .4s } .mock-chart span:nth-child(7) { animation-delay: .48s }
.mock-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  font: 500 .75rem/1 var(--f-mono); padding: 10px 14px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(58, 61, 66, .3);
}
.mock-chip-a { left: -4%; bottom: 12%; animation: float 6s ease-in-out infinite reverse; }
.mock-chip-b { right: 4%; top: -4%; color: var(--mute); animation: float 8s ease-in-out infinite; }
.mock-chip-b b { color: var(--charcoal); font-weight: 500; }

/* Marquee stack */
.stack { border-block: 1px solid var(--line); background: rgba(235, 229, 218, .5); padding: 22px 0; overflow: hidden; }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font: 500 .95rem/1 var(--f-mono); color: var(--mute); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "◆"; font-size: .5rem; color: var(--line); }
.stack:hover .marquee-track { animation-play-state: paused; }

/* Secciones genéricas */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(235, 229, 218, .65) 15%, rgba(235, 229, 218, .65) 85%, transparent); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { text-wrap: balance; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head-row > div { flex: 1 1 520px; max-width: 700px; }
.section-lede { color: var(--mute); max-width: 38ch; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; transition: transform .35s var(--ease); }
.service:hover { transform: translateY(-4px); }
.service p { color: var(--mute); font-size: .98rem; }
.service .checks { margin-bottom: 6px; }
.service .link-arrow { margin-top: auto; }
.service-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-emerald { color: var(--accent); background: rgba(207, 74, 28, .1); border: 1px solid rgba(207, 74, 28, .25); }
.ic-cyan { color: var(--charcoal); background: rgba(58, 61, 66, .1); border: 1px solid rgba(58, 61, 66, .25); }
.ic-violet { color: var(--charcoal); background: rgba(58, 61, 66, .1); border: 1px solid rgba(58, 61, 66, .25); }

/* Productos SaaS */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.product { padding: 22px; display: flex; flex-direction: column; gap: 22px; }
.product-featured { border-color: rgba(207, 74, 28, .45); box-shadow: 0 30px 80px -40px rgba(207, 74, 28, .45); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font: 600 .72rem/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink); padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
.product-body { display: grid; gap: 14px; }
.product-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.product-desc { color: var(--mute); font-size: .95rem; }
.price { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); }
.price-main { display: flex; align-items: baseline; gap: 4px; font-family: var(--f-display); }
.price-main .cur { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.price-main .amt { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.price-main .per { font: 400 .9rem var(--f-body); color: var(--mute); }
.price-usd { font: 400 .8rem/1.4 var(--f-mono); color: var(--mute); margin-top: 6px; }
.fx-note { margin-top: 26px; text-align: center; font: 400 .8rem/1.5 var(--f-mono); color: var(--mute); }

/* Previews de productos (UI en CSS) */
.product-preview { height: 172px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); padding: 14px; overflow: hidden; font-size: .78rem; }
.pv-cal-head { display: flex; justify-content: space-between; color: var(--mute); margin-bottom: 10px; }
.pv-cal-head b { color: var(--ink); font-weight: 600; }
.pv-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.pv-cal-grid i { height: 18px; border-radius: 5px; background: #E4DDD0; }
.pv-cal-grid i.on { background: rgba(207, 74, 28, .35); }
.pv-cal-grid i.hot { background: var(--accent); }
.pv-slot { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg-2); border-radius: 8px; color: var(--ink); }
.pv-slot span { font-family: var(--f-mono); color: var(--charcoal); }
.pv-slot em { margin-left: auto; font-style: normal; color: var(--accent); font-size: .7rem; }
.pv-lms-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: var(--bg-2); margin-bottom: 8px; }
.pv-thumb { width: 38px; height: 38px; border-radius: 8px; background: var(--charcoal); flex: none; }
.pv-thumb.t2 { background: var(--accent); }
.pv-lms-row b { display: block; font-weight: 600; font-size: .78rem; }
.pv-lms-row small { color: var(--mute); font-size: .68rem; }
.pv-lms-row em { margin-left: auto; font-style: normal; font-size: .66rem; color: var(--accent); white-space: nowrap; }
.pv-lms-row em.wait { color: var(--amber); }
.pv-lms-pay { display: flex; gap: 6px; }
.pv-lms-pay span { flex: 1; text-align: center; padding: 6px 0; border: 1px solid var(--line); border-radius: 6px; color: var(--mute); font-size: .68rem; }
.pv-q-head { display: flex; justify-content: space-between; color: var(--mute); }
.live { color: #D63B3B; font: 600 .66rem/1 var(--f-mono); display: inline-flex; gap: 6px; align-items: center; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #D63B3B; animation: pulse 1.4s infinite; }
.pv-q-stat { margin: 14px 0 12px; }
.pv-q-stat b { font: 800 2rem/1 var(--f-display); display: block; }
.pv-q-stat small { color: var(--mute); }
.pv-q-bar { height: 8px; border-radius: 99px; background: #E4DDD0; overflow: hidden; }
.pv-q-bar span { display: block; height: 100%; width: 64%; border-radius: inherit; background: linear-gradient(90deg, var(--charcoal), var(--accent)); animation: load 3.5s ease-in-out infinite alternate; }
.pv-q-meta { display: flex; justify-content: space-between; margin-top: 10px; font: 400 .68rem var(--f-mono); color: var(--mute); }

/* Portafolio */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--mute); font: 500 .82rem/1 var(--f-mono); cursor: pointer; transition: all .2s; }
.filter:hover { color: var(--ink); border-color: var(--mute); }
.filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.project { grid-column: span 2; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-1); aspect-ratio: 4 / 3; cursor: default; }
.project:nth-child(1), .project:nth-child(2), .project:nth-child(6), .project:nth-child(7) { grid-column: span 3; aspect-ratio: 16 / 10; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(244, 240, 232, .75) 62%, rgba(244, 240, 232, .98)); pointer-events: none; }
.project-meta { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; display: grid; gap: 10px; justify-items: start; transition: opacity .35s, transform .35s var(--ease); }
.project-meta h3 { font-size: 1.25rem; }
.project-hover {
  position: absolute; inset: 0; z-index: 3; padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: rgba(244, 240, 232, .93); color: var(--ink); font-size: .95rem;
  opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s var(--ease);
}
@supports (backdrop-filter: blur(1px)) { .project-hover { background: rgba(244, 240, 232, .82); backdrop-filter: blur(8px); } }
.ph-label { font: 500 .72rem/1 var(--f-mono); color: var(--charcoal); text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }
.ph-label:first-child { margin-top: 0; }
.project-hover p:not(.ph-label) { color: var(--ink); }
.project-link { position: absolute; z-index: 4; right: 18px; top: 18px; font: 500 .75rem/1 var(--f-mono); padding: 8px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); opacity: 0; transition: opacity .3s; }
.project:hover img, .project:focus-within img, .project.is-open img { transform: scale(1.06); filter: blur(2px); }
.project:hover .project-hover, .project:focus-within .project-hover, .project.is-open .project-hover { opacity: 1; transform: none; }
.project:hover .project-meta, .project:focus-within .project-meta, .project.is-open .project-meta { opacity: 0; }
.project:hover .project-link, .project:focus-within .project-link, .project.is-open .project-link { opacity: 1; }
.project.is-hidden { display: none; }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { padding: 30px 26px; border-top: 2px solid var(--line); position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 48px; background: var(--accent); }
.step-n { font: 500 .85rem/1 var(--f-mono); color: var(--accent); }
.step h3 { margin: 16px 0 10px; }
.step p { color: var(--mute); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-copy h2 { margin-bottom: 18px; text-wrap: balance; }
.contact-copy > p { color: var(--mute); max-width: 46ch; }
.contact-points { display: grid; gap: 12px; margin: 28px 0 34px; }
.contact-points li { display: flex; align-items: center; gap: 12px; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; transition: border-color .2s, color .2s, transform .25s var(--ease); }
.socials a:hover { border-color: var(--charcoal); color: var(--charcoal); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.form { padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font: 500 .8rem/1 var(--f-mono); color: var(--mute); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(244, 240, 232, .7); font-size: 1rem; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #A39D92; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(207, 74, 28, .15); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #D63B3B; }
.form-status { min-height: 1.4em; font-size: .9rem; color: var(--mute); text-align: center; }
.form-status.ok { color: var(--accent); } .form-status.err { color: #C23030; }
.form.is-sending button { opacity: .7; pointer-events: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--mute); font-size: .88rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.to-top:hover { color: var(--accent); }

/* ---------- 6. Efectos ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible, .reveal-all .reveal { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1 !important; transform: none !important; }
.services .reveal:nth-child(2), .products .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .1s; }
.services .reveal:nth-child(3), .products .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .2s; }

@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
@keyframes blink { 50% { opacity: 0 } }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes grow { from { transform: scaleY(0) } to { transform: scaleY(1) } }
@keyframes marquee { to { transform: translateX(-50%) } }
@keyframes load { from { width: 35% } to { width: 88% } }

/* ---------- 6b. Estilo "tecla": cantos inferiores y colores de marca ---------- */
.btn-primary { box-shadow: 0 4px 0 #9E3712, 0 12px 24px -12px rgba(207, 74, 28, .55); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #9E3712, 0 16px 28px -12px rgba(207, 74, 28, .6); }
.btn-ghost { background: var(--bg-2); border-color: var(--line); box-shadow: 0 4px 0 var(--key-shadow); }
.btn-ghost:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--key-shadow); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--key-shadow); }
.btn-primary:active { box-shadow: 0 1px 0 #9E3712; }
.card { background: var(--bg-2); box-shadow: 0 6px 0 var(--key-shadow), 0 24px 40px -28px rgba(58, 61, 66, .35); }
.card[data-glow]::before { background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 0%), rgba(207, 74, 28, .55), transparent 60%); }
.product-featured { border-color: var(--accent); box-shadow: 0 6px 0 #E9B9A6, 0 30px 60px -30px rgba(207, 74, 28, .45); }
.kicker, .link-arrow, .ph-label, .pv-slot em, .price-main .cur, .step-n, .pill { color: var(--accent-text); }
.tag-saas { color: var(--accent-text); }
.tag-plugin { color: #FFFFFF; background: var(--charcoal); border-color: var(--charcoal); }
.tag-wp { color: var(--charcoal); background: var(--bg-2); border-color: #BFB6A6; }
.eyebrow { background: var(--bg-2); box-shadow: 0 3px 0 var(--key-shadow); }
.spotlight {
  background:
    radial-gradient(600px circle at var(--mx, 70%) var(--my, 20%), rgba(207, 74, 28, .07), transparent 60%),
    radial-gradient(900px circle at 85% -10%, rgba(233, 180, 76, .16), transparent 60%),
    radial-gradient(700px circle at -10% 40%, rgba(58, 61, 66, .05), transparent 60%);
}
.stack { background: var(--charcoal); border-color: var(--charcoal-2); }
.marquee-track span { color: #E9E3D8; }
.marquee-track span::after { color: var(--accent); }
.mock-panel { box-shadow: 0 6px 0 var(--key-shadow), 0 40px 70px -30px rgba(58, 61, 66, .4); }
.mock-chip { box-shadow: 0 3px 0 var(--key-shadow), 0 16px 30px -18px rgba(58, 61, 66, .35); }
.mock-chip-b b { color: var(--accent-text); }
.mock-kpis div { background: var(--bg); }
.filter { background: var(--bg-2); box-shadow: 0 3px 0 var(--key-shadow); }
.filter.is-active { background: var(--charcoal); color: #FFFFFF; border-color: var(--charcoal); box-shadow: 0 3px 0 #1F2124; }
.project { box-shadow: 0 6px 0 var(--key-shadow); }
.project-link { color: #FFFFFF; }
.socials a { background: var(--bg-2); box-shadow: 0 4px 0 var(--key-shadow); }
.socials a:hover { border-color: var(--charcoal); color: var(--ink); }
.field input, .field textarea { background: #FFFFFF; }
.footer { background: var(--charcoal); color: #CFC8BB; border-top-color: var(--charcoal-2); }
.footer .logo-word { color: #F4F0E8; }
.to-top:hover { color: #F28A5B; }

/* ---------- 6c. Productos en desarrollo + portafolio 2x2 ---------- */
.products-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; margin: 0 auto; }
.status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font: 600 .72rem/1 var(--f-mono); letter-spacing: .03em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 999px; border: 1px solid;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.status-beta { color: var(--accent-text); border-color: rgba(207, 74, 28, .35); background: rgba(207, 74, 28, .07); }
.status-proto { color: #8A6A1C; border-color: rgba(233, 180, 76, .6); background: rgba(233, 180, 76, .14); }
.price-label { font: 500 .72rem/1 var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.price-main .amt-sm { font-size: 1.9rem; }
.product-ctas { display: grid; gap: 12px; }
.pv-chat { display: flex; flex-direction: column; gap: 8px; }
.pv-msg { align-self: flex-start; max-width: 80%; padding: 8px 11px; border-radius: 12px 12px 12px 3px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); }
.pv-proposal { padding: 8px 10px; border-radius: 10px; background: var(--charcoal); color: #E9E3D8; }
.pv-proposal small { display: block; font: 500 .64rem/1.2 var(--f-mono); color: #CFC8BB; margin-bottom: 6px; }
.pv-proposal-row { display: flex; gap: 6px; align-items: center; font-size: .72rem; }
.pv-proposal-row span { padding: 3px 7px; border-radius: 6px; background: #4A4E55; }
.pv-proposal-row b { margin-left: auto; color: #F28A5B; font-weight: 600; }
.pv-buttons { display: flex; gap: 6px; align-self: flex-end; }
.pv-buttons span { padding: 6px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--accent); color: var(--accent-text); font-weight: 600; font-size: .72rem; }
.pv-q-cmp { display: grid; gap: 10px; margin: 14px 0 6px; }
.pv-q-cmp > div { display: grid; grid-template-columns: minmax(64px, max-content) 1fr 44px; align-items: center; gap: 10px; }
.pv-q-cmp small { color: var(--mute); font-size: .7rem; white-space: nowrap; }
.pv-q-cmp b { font: 700 .9rem var(--f-display); text-align: right; }
.pv-q-cmp .pv-q-bar span { animation: none; background: #BFB6A6; }
.pv-q-cmp .pv-q-bar span.q { background: var(--accent); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.projects-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.projects-2 .project, .projects-2 .project:nth-child(n) { grid-column: auto; aspect-ratio: 16 / 10; }

/* ---------- 6d. Páginas de propuesta (case study) ---------- */
.case-hero { padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(40px, 6vw, 72px); }
.back-link { display: inline-flex; gap: 8px; font: 500 .85rem/1 var(--f-mono); color: var(--mute); margin-bottom: 28px; }
.back-link:hover { color: var(--accent-text); }
.case-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; margin: 20px 0 18px; max-width: 18ch; text-wrap: balance; }
.case-lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--mute); max-width: 62ch; }
.case-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.case-meta span { font: 500 .78rem/1 var(--f-mono); padding: 9px 13px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 3px 0 var(--key-shadow); }
.case-meta b { color: var(--accent-text); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kpi { padding: 22px; }
.kpi b { display: block; font: 800 clamp(2rem, 3.4vw, 2.7rem)/1.1 var(--f-display); letter-spacing: -.02em; }
.kpi b em { font-style: normal; color: var(--accent-text); }
.kpi span { display: block; margin-top: 8px; color: var(--mute); font-size: .92rem; line-height: 1.45; }
.case-section { padding: clamp(56px, 8vw, 96px) 0; }
.case-section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 28px; text-wrap: balance; max-width: 24ch; }
.case-section h2 + .intro { margin-top: -10px; }
.case-section .intro { color: var(--mute); max-width: 64ch; margin-bottom: 32px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.panel { padding: 28px; }
.panel h3 { margin-bottom: 14px; }
.panel p { color: var(--mute); }
.panel .checks { margin-top: 16px; }
.panel-dark { background: var(--charcoal); border-color: var(--charcoal-2); color: #F4F0E8; box-shadow: 0 6px 0 #1F2124; }
.panel-dark p, .panel-dark .checks li { color: #E9E3D8; }
.panel-dark .kicker { color: #F28A5B; }
.principle { font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.25 var(--f-display); letter-spacing: -.02em; }
.principle em { font-style: normal; color: #F28A5B; }
.diagram { padding: clamp(16px, 3vw, 32px); overflow-x: auto; }
.diagram svg { min-width: 760px; width: 100%; height: auto; }
.diagram-caption { margin-top: 18px; font-size: .9rem; color: var(--mute); }
.dg-box { fill: var(--bg-2); stroke: #BFB6A6; stroke-width: 1.5; }
.dg-box-core { fill: var(--charcoal); stroke: var(--charcoal-2); }
.dg-box-accent { fill: #FBE9E1; stroke: var(--accent); }
.dg-box-queue { fill: #FBF1DC; stroke: #E9B44C; }
.dg-t { font: 600 14px var(--f-body); fill: var(--ink); }
.dg-s { font: 400 11.5px var(--f-mono); fill: var(--mute); }
.dg-t-light { font: 700 15px var(--f-body); fill: #F4F0E8; }
.dg-s-light { font: 400 11.5px var(--f-mono); fill: #CFC8BB; }
.dg-line { stroke: #8F877A; stroke-width: 1.6; fill: none; }
.dg-line-accent { stroke: var(--accent); stroke-width: 2; fill: none; }
.dg-line-dash { stroke: #8F877A; stroke-width: 1.4; stroke-dasharray: 5 5; fill: none; }
.dg-label { font: 500 11px var(--f-mono); fill: var(--mute); }
.dg-label-accent { font: 600 11px var(--f-mono); fill: var(--accent-text); }
.dg-lane { font: 700 12px var(--f-mono); fill: var(--accent-text); letter-spacing: .06em; }
.dg-band { fill: rgba(58, 61, 66, .035); stroke: var(--line); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: flow; }
.flow li { padding: 22px; position: relative; }
.flow li::before { counter-increment: flow; content: "0" counter(flow); font: 500 .8rem/1 var(--f-mono); color: var(--accent-text); display: block; margin-bottom: 12px; }
.flow li h3 { font-size: 1.05rem; margin-bottom: 6px; }
.flow li p { color: var(--mute); font-size: .93rem; }
.flow li.is-human { border-color: var(--accent); }
.flow li.is-human::after { content: "Decisión humana"; position: absolute; top: 18px; right: 18px; font: 600 .66rem/1 var(--f-mono); text-transform: uppercase; color: var(--accent-text); background: rgba(207, 74, 28, .08); padding: 5px 8px; border-radius: 999px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); box-shadow: 0 6px 0 var(--key-shadow); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .93rem; }
.cmp th, .cmp td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font: 600 .76rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); background: var(--bg); }
.cmp tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.cmp td { color: var(--mute); }
.cmp td.win { color: var(--ink); font-weight: 600; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.bars { display: grid; gap: 16px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 56px; align-items: center; gap: 14px; }
.bar-row span { font-size: .92rem; color: var(--mute); }
.bar-track { height: 16px; border-radius: 99px; background: var(--bg-1); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: #BFB6A6; width: 0; transition: width 1.2s var(--ease); }
.bar-fill.accent { background: var(--accent); }
.is-visible .bar-fill, .reveal-all .bar-fill { width: var(--w); }
.bar-row b { font: 700 1rem var(--f-display); text-align: right; }
.note { padding: 22px 24px; border-left: 3px solid var(--amber); background: rgba(233, 180, 76, .1); border-radius: 0 12px 12px 0; }
.note h3 { font-size: 1rem; margin-bottom: 10px; }
.note ul { display: grid; gap: 8px; color: var(--mute); font-size: .93rem; list-style: disc; padding-left: 18px; }
.timeline { position: relative; display: grid; gap: 18px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -27px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-2); border: 3px solid var(--accent); }
.tl-item.is-next::before { border-color: #BFB6A6; }
.tl-date { font: 500 .78rem/1 var(--f-mono); color: var(--accent-text); }
.tl-item.is-next .tl-date { color: var(--mute); }
.tl-item h3 { font-size: 1.05rem; margin: 6px 0 4px; }
.tl-item p { color: var(--mute); font-size: .93rem; max-width: 70ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font: 500 .8rem/1 var(--f-mono); padding: 9px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 3px 0 var(--key-shadow); }
code { font: 500 .88em var(--f-mono); background: var(--bg-1); padding: 2px 6px; border-radius: 6px; }
.mock-code code { font: inherit; background: none; padding: 0; border-radius: 0; }
.panel-dark strong { color: #FFFFFF; }
.case-cta { text-align: center; padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 48px); }
.case-cta h2 { margin: 0 auto 14px; max-width: none; }
.case-cta p { color: #E9E3D8; max-width: 56ch; margin: 0 auto 26px; }
.case-cta .hero-ctas { justify-content: center; margin-top: 0; }

/* ---------- 6e. WordPress: contenido del editor y extras ---------- */
.hero-visual-img { min-height: 0; perspective: none; }
.hero-visual-img img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 6px 0 var(--key-shadow), 0 40px 70px -30px rgba(58, 61, 66, .4); }
.mock-code .c { color: #8F958F; font-style: italic; }
.mock-chip-b em { font-style: normal; color: var(--accent-text); }
.mock-chart span:nth-child(n+8) { animation-delay: .56s; }
.hero-show { min-height: 470px; perspective: none; }
.show-browser {
  position: absolute; inset: 0 8% 20% 0; border-radius: 16px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 6px 0 var(--key-shadow), 0 40px 80px -30px rgba(58, 61, 66, .45);
}
.show-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--charcoal); }
.show-bar i { width: 10px; height: 10px; border-radius: 50%; background: #55595F; }
.show-bar i:nth-child(1) { background: #FF5F57; } .show-bar i:nth-child(2) { background: #FEBC2E; } .show-bar i:nth-child(3) { background: #28C840; }
.show-url { margin-left: 10px; flex: 1; max-width: 260px; font: 400 .74rem/1 var(--f-mono); color: #CFC8BB; padding: 7px 12px; background: var(--charcoal-2); border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-shot { position: absolute; inset: 40px 0 0 0; background: var(--bg-1); }
.show-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.show-chat {
  position: absolute; right: 0; bottom: 0; width: 54%; min-width: 250px; border-radius: 18px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 6px 0 var(--key-shadow), 0 40px 70px -28px rgba(58, 61, 66, .5);
  animation: float 7s ease-in-out infinite;
}
.show-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--charcoal); color: #F4F0E8; font: 600 .82rem/1 var(--f-body); }
.show-chat-head .ok { margin-left: auto; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); }
.show-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); flex: none; }
.show-chat-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--bg); font-size: .8rem; line-height: 1.4; }
.show-chat-body > * { opacity: 0; animation: chat-in .5s var(--ease) forwards; }
.chat-msg { max-width: 86%; padding: 8px 11px; border: 1px solid var(--line); }
.chat-msg.in { align-self: flex-start; background: var(--bg-2); border-radius: 12px 12px 12px 3px; }
.chat-msg.out { align-self: flex-end; background: #FBE9E1; border-color: #F0C9B8; border-radius: 12px 12px 3px 12px; }
.chat-ia { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 9px 11px; border-radius: 10px; background: var(--charcoal); color: #E9E3D8; }
.chat-ia small { grid-column: 1 / -1; font: 500 .64rem/1.2 var(--f-mono); color: #CFC8BB; }
.chat-ia b { color: #F28A5B; font-weight: 600; white-space: nowrap; }
.chat-buttons { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.chat-buttons span { padding: 6px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--accent); color: var(--accent-text); font-weight: 600; font-size: .74rem; }
.hero-show .mock-chip-a { left: -3%; bottom: 8%; }
.hero-show .mock-chip-b { right: 2%; top: -4%; }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.reveal-all .show-chat-body > *, .no-anim .show-chat-body > * { opacity: 1; animation: none; }
.ic-wa { display: inline-block; width: 20px; height: 20px; min-width: 20px; aspect-ratio: 1 / 1; flex: 0 0 auto; fill: currentColor; stroke: none; vertical-align: middle; }
.btn .ic-wa { width: 20px; height: 20px; transform: none !important; fill: var(--wa-btn, currentColor); stroke: none; }
.btn.btn-sm .ic-wa { width: 17px; height: 17px; min-width: 17px; }
.link-arrow .ic-wa { width: 18px; height: 18px; min-width: 18px; fill: var(--wa-link, currentColor); }
.contact-wa { margin: 0 0 22px; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa-float-bg, #1FA855); color: #FFFFFF;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .28), 0 16px 30px -10px rgba(31, 168, 85, .6); transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0, 0, 0, .28), 0 20px 34px -10px rgba(31, 168, 85, .7); }
.wa-float:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .28); }
.wa-float .ic-wa { width: 30px; height: 30px; min-width: 30px; fill: var(--wa-float, currentColor); }
.service-icon svg { max-width: 26px; max-height: 26px; }
.service-icon svg[fill]:not([fill="none"]) path { stroke: none; fill: currentColor; }
.status-ok { color: #177A3F; border-color: rgba(31, 168, 85, .45); background: rgba(31, 168, 85, .1); }
.status-plain::before { display: none; }
.logo-img .custom-logo { height: 36px; width: auto; max-width: 220px; object-fit: contain; }
.logo-sm.logo-img .custom-logo { height: 28px; }
.footer .logo-img .custom-logo { filter: none; }
.status-live { color: var(--charcoal); border-color: rgba(58, 61, 66, .35); background: rgba(58, 61, 66, .07); }
.pv-image { padding: 0; }
.pv-image img { width: 100%; height: 100%; object-fit: cover; }
.project { background: var(--bg-1); }
.diagram img { width: 100%; height: auto; border-radius: 10px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content p, .entry-content li { color: var(--mute); max-width: 70ch; }
.entry-content ul, .entry-content ol { padding-left: 22px; display: grid; gap: 8px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a { color: var(--accent-text); text-decoration: underline; }
.entry-content img { border-radius: var(--radius-sm); height: auto; }
.entry-content blockquote { padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 12px 12px 0; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content pre { background: var(--charcoal); color: #E9E3D8; padding: 18px; border-radius: 12px; overflow-x: auto; font: 400 .85rem/1.7 var(--f-mono); }
.entry-content pre code { background: none; padding: 0; }
.entry-content figure.wp-block-table { margin: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); box-shadow: 0 6px 0 var(--key-shadow); }
.entry-content table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .93rem; }
.entry-content th, .entry-content td { text-align: left; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--mute); }
.entry-content thead th { font: 600 .76rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); background: var(--bg); border-bottom: 1px solid var(--line); }
.entry-content td strong { color: var(--ink); }
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content figcaption { padding: 12px 18px; font-size: .88rem; color: var(--mute); }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* ---------- 7. Responsive ---------- */
@media (max-width: 1080px) {
  .services, .products { grid-template-columns: 1fr 1fr; }
  .services > :last-child { grid-column: 1 / -1; }
  .products > :last-child { grid-column: 1 / -1; max-width: 560px; justify-self: center; width: 100%; }
  .products-2 > :last-child { grid-column: auto; max-width: none; }
  .projects { grid-template-columns: 1fr 1fr; }
  .project, .project:nth-child(1), .project:nth-child(2), .project:nth-child(6), .project:nth-child(7) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .project:nth-child(7) { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
}
@media (max-width: 900px) {
  .products-2, .projects-2, .two-col { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; gap: 0; padding: 12px var(--gutter) 24px;
    background: rgba(244, 240, 232, .98); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
  }
  .nav-links.is-open { transform: none; visibility: visible; }
  .nav-links a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.05rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 18px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; max-width: 560px; width: 100%; margin: 0 auto; }
  .hero-show { min-height: 440px; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 680px) {
  .projects-2 .project, .projects-2 .project:nth-child(n) { aspect-ratio: 4 / 3; }
  .bar-row { grid-template-columns: 1fr 48px; }
  .bar-row span { grid-column: 1 / -1; }
  body { font-size: 16px; }
  .services, .products, .projects { grid-template-columns: minmax(0, 1fr); }
  .services > :last-child, .products > :last-child { grid-column: auto; max-width: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-visual { min-height: 330px; }
  .hero-visual { min-height: 360px; }
  .mock-editor { inset: 0 0 34% 0; transform: none; }
  .mock-panel { width: 72%; padding: 14px; }
  .mock-kpis b { font-size: 1.05rem; white-space: nowrap; }
  .mock-chart { height: 60px; }
  .mock-chip-a { display: none; }
  .hero-show { min-height: 420px; }
  .show-browser { inset: 0 0 34% 0; }
  .show-chat { width: 82%; }
  .hero-show .mock-chip-b { right: 0; top: -14px; }
  .mock-code { font-size: .66rem; padding: 14px; }
  .product-featured { margin-top: 10px; }
  .project-hover { padding: 20px; font-size: .9rem; }
  .project:nth-child(7) { aspect-ratio: 4 / 3; }
}

/* Solo efectos intrusivos (loops largos). Hovers y fades se mantienen. */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 90s; }
  .mock-panel, .mock-chip-a, .mock-chip-b, .show-chat { animation: none; }
}
