/* ============================================================
   SVpixelworks — estilo: precisión técnica + calidez editorial
   ============================================================ */

:root {
  --bg: #0e0e10;
  --bg-2: #08080a;
  --paper: #f4efe4;
  --paper-2: #ece3d1;
  --ink: #16140f;
  --cream: #f6f2e9;
  --cream-dim: rgba(246, 242, 233, 0.66);
  --accent: #ff5a2e;
  --accent-dim: #a83a1a;
  --line-dark: rgba(246, 242, 233, 0.14);
  --line-light: rgba(22, 20, 15, 0.14);

  --font-display: "Fraunces", ui-serif, serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

::selection { background: var(--accent); color: #14110e; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

#servicios, #trabajos, #demo, #calculadora, #proceso, #por-que, #faq, #contacto {
  scroll-margin-top: 90px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 1000;
  background: var(--accent);
  color: #14110e;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  border-radius: 3px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 12px; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* subtle grain overlay for texture, avoids the "flat AI gradient" look */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.eyebrow-light { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 3px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #14110e;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(255, 90, 46, 0.55); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-dark);
  padding: 11px 22px;
  font-size: 14px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.header-cta { padding: 9px 18px; font-size: 13px; }
.btn-text {
  padding: 14px 4px;
  color: var(--cream);
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
}
.btn-text:hover { color: var(--accent); border-color: var(--accent); }
.btn-text span { display: inline-block; transition: transform 0.3s var(--ease); }
.btn-text:hover span { transform: translateY(3px); }
.btn-dark {
  background: var(--ink);
  color: var(--cream);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(0,0,0,0.5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 17px; }
.logo-word em { font-style: italic; color: var(--accent); }
.logo-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 3px;
}
.logo-mark span { background: var(--accent); }
.logo-mark span:nth-child(3) { background: var(--cream); }

.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-dim);
  transition: color 0.25s var(--ease);
  position: relative;
}
.main-nav a:hover { color: var(--cream); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--cream); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 110px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--cream-dim);
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 32px; }

.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-chips li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--cream-dim);
  padding: 8px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
}
.trust-chips li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-visual { position: relative; max-width: 100%; }
.chat-mock {
  background: var(--bg-2);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 20px 20px 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.chat-mock-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chat-mock-title { font-family: var(--font-mono); font-size: 12px; color: var(--cream); }
.chat-status { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: #4ade80; }
.chat-body { display: flex; flex-direction: column; gap: 10px; min-height: 210px; }
.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleIn 0.5s var(--ease) forwards;
}
.bubble-in { align-self: flex-start; background: #1c1c1f; color: var(--cream); border-bottom-left-radius: 3px; }
.bubble-out { align-self: flex-end; background: var(--accent); color: #14110e; border-bottom-right-radius: 3px; }
.bubble:nth-child(1) { animation-delay: 0.4s; }
.bubble:nth-child(2) { animation-delay: 1.5s; }
.bubble:nth-child(3) { animation-delay: 2.6s; }
.bubble:nth-child(4) { animation-delay: 3.7s; }
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0); } }
.chat-typing { display: flex; gap: 4px; padding: 4px 2px 0; }
.chat-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--cream-dim); animation: typingPulse 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingPulse { 0%, 60%, 100% { opacity: 0.2; } 30% { opacity: 1; } }

.pixel-grid {
  position: absolute;
  top: -24px; right: -12px;
  width: 120px; height: 120px;
  max-width: 30%;
  z-index: 1;
  background-image: radial-gradient(var(--accent) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Pain / agitación ---------- */
.pain { background: var(--bg-2); padding: 100px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.pain-head {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  color: var(--cream);
  max-width: 18ch;
  margin-bottom: 56px;
}
.pain-list { display: grid; gap: 28px; margin-bottom: 56px; }
.pain-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-dark);
  align-items: baseline;
}
.pain-num { font-family: var(--font-mono); color: var(--accent); font-size: 14px; }
.pain-list p { font-size: 19px; line-height: 1.5; color: var(--cream-dim); max-width: 58ch; }
.pain-close { font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--cream); }

/* ---------- Services ---------- */
.services { background: var(--paper); color: var(--ink); padding: 120px 0; }
.services .eyebrow { color: var(--accent-dim); }
.service {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line-light);
}
.service:first-child { padding-top: 0; }
.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 64px;
  color: var(--paper-2);
  -webkit-text-stroke: 1.5px rgba(22,20,15,0.28);
  color: transparent;
  line-height: 1;
}
.service h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  max-width: 22ch;
  margin-bottom: 20px;
}
.service-text { font-size: 17px; line-height: 1.65; max-width: 62ch; color: rgba(22,20,15,0.78); margin-bottom: 26px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.service-tags li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 7px 12px;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  color: var(--ink);
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--accent-dim);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.service-link span { transition: transform 0.3s var(--ease); }
.service-link:hover { border-color: var(--accent-dim); }
.service-link:hover span { transform: translateX(3px); }
.service-alt { grid-template-columns: 120px 1fr; }
.service-alt .service-num { -webkit-text-stroke-color: rgba(255,90,46,0.55); }

/* ---------- Trabajos realizados ---------- */
.work { background: var(--bg-2); padding: 120px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.work-head { font-size: clamp(28px, 4vw, 44px); color: var(--cream); max-width: 24ch; margin-bottom: 16px; line-height: 1.15; }
.work-sub { font-size: 17px; color: var(--cream-dim); max-width: 58ch; margin-bottom: 14px; }
.work-disclaimer { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: var(--cream-dim); opacity: 0.7; max-width: 62ch; margin-bottom: 56px; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  overflow: hidden;
  padding-bottom: 26px;
}
.work-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.work-media img { width: 100%; height: 100%; object-fit: cover; }

.work-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 20px 24px 10px;
}
.work-card h3 { font-size: 20px; color: var(--cream); margin: 0 24px 12px; line-height: 1.25; }
.work-text { font-size: 14.5px; line-height: 1.6; color: var(--cream-dim); margin: 0 24px 18px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 24px 18px; }
.work-tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  color: var(--cream-dim);
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: auto 24px 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.work-link span { transition: transform 0.3s var(--ease); }
.work-link:hover { border-color: var(--accent); }
.work-link:hover span { transform: translateX(3px); }

/* ---------- Demo interactiva ---------- */
.demo { background: var(--bg-2); padding: 120px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.demo-head { font-size: clamp(28px, 4vw, 44px); color: var(--cream); max-width: 22ch; margin-bottom: 16px; line-height: 1.15; }
.demo-sub { font-size: 17px; color: var(--cream-dim); max-width: 58ch; margin-bottom: 48px; }

.demo-box { max-width: 560px; }
.demo-box .chat-mock { margin-bottom: 18px; }
.demo-chat-body { min-height: 120px; max-height: 320px; overflow-y: auto; }

.demo-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.demo-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream-dim);
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  padding: 9px 13px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.demo-chip:hover, .demo-chip:focus-visible { border-color: var(--accent); color: var(--accent); }
.demo-chip:disabled { opacity: 0.4; cursor: not-allowed; }

.demo-form { display: flex; gap: 10px; }
.demo-form input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  padding: 13px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
}
.demo-form input::placeholder { color: rgba(246,242,233,0.4); }
.demo-form input:focus { outline: none; border-color: var(--accent); }
.demo-send { padding: 13px 22px; font-size: 14px; }
.demo-send:disabled { opacity: 0.5; cursor: not-allowed; }

.demo-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream-dim);
}

/* ---------- Calculadora ---------- */
.calc { background: var(--bg); padding: 120px 0; }
.calc-head { font-size: clamp(28px, 4vw, 44px); color: var(--cream); max-width: 22ch; margin-bottom: 16px; line-height: 1.15; }
.calc-sub { font-size: 17px; color: var(--cream-dim); max-width: 52ch; margin-bottom: 48px; }

.calc-box {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(22,20,15,0.12);
  border-radius: 4px;
  padding: 40px;
  max-width: 720px;
}

.calc-step { margin-bottom: 30px; }
.calc-step:last-of-type { margin-bottom: 0; }
.calc-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 14px;
}
.calc-label-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper);
  background: var(--ink);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.calc-options { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-opt {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(22,20,15,0.2);
  border-radius: 3px;
  padding: 12px 18px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.calc-opt:hover { border-color: var(--accent-dim); }
.calc-opt.active {
  border-color: var(--accent-dim);
  background: rgba(255, 90, 46, 0.1);
  color: var(--accent-dim);
}

.calc-hint { font-size: 12.5px; color: rgba(22,20,15,0.55); margin-top: 10px; }

.calc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
}
.calc-check input { width: 18px; height: 18px; accent-color: var(--accent-dim); cursor: pointer; }

.calc-result {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid rgba(22,20,15,0.14);
}
.calc-result-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(22,20,15,0.55); margin-bottom: 8px; }
.calc-result-amount { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 38px); color: var(--ink); margin-bottom: 4px; }
.calc-result-mant { font-family: var(--font-mono); font-size: 13.5px; color: var(--accent-dim); min-height: 1em; margin-bottom: 14px; }
.calc-disclaimer { font-size: 12.5px; line-height: 1.5; color: rgba(22,20,15,0.55); max-width: 46ch; margin-bottom: 22px; }
.calc-cta[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ---------- Why us / comparison ---------- */
.why { background: var(--bg); padding: 120px 0; }
.why-head { font-size: clamp(28px, 4vw, 44px); color: var(--cream); max-width: 20ch; margin-bottom: 56px; }

.compare { border-top: 1px solid var(--line-dark); }
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
}
.compare-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding: 22px 20px 22px 0;
}
.compare-col {
  font-size: 16px;
  padding: 22px 20px;
  color: var(--cream-dim);
  border-left: 1px solid var(--line-dark);
}
.compare-col em { font-style: normal; color: var(--accent); font-weight: 700; }
.compare-col-us { color: var(--cream); font-weight: 600; background: rgba(255, 90, 46, 0.07); }
.compare-head { border-bottom: 1px solid var(--line-dark); }
.compare-head .compare-col {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 16px;
  padding-bottom: 16px;
}
.compare-head .compare-col-us { color: var(--accent); }

/* ---------- Process ---------- */
.process { background: var(--paper); color: var(--ink); padding: 120px 0 130px; }
.process .eyebrow { color: var(--accent-dim); }
.process-head { font-size: clamp(28px, 4vw, 44px); max-width: 22ch; margin-bottom: 68px; line-height: 1.15; }
.steps { display: grid; gap: 0; max-width: 780px; }
.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line-light);
  position: relative;
}
.steps li:last-child { border-bottom: 1px solid var(--line-light); }
.step-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--accent);
}
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { font-size: 15.5px; line-height: 1.6; color: rgba(22,20,15,0.72); max-width: 54ch; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); padding: 120px 0; }
.faq-head { font-size: clamp(26px, 3.6vw, 38px); color: var(--cream); max-width: 26ch; margin-bottom: 48px; line-height: 1.2; }
.faq-list { max-width: 820px; border-top: 1px solid var(--line-dark); }
.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--cream);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: opacity 0.2s var(--ease);
}
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p {
  padding: 0 4px 28px;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--cream-dim);
}

/* ---------- CTA final ---------- */
.cta-final { background: var(--accent); color: #14110e; padding: 130px 0; }
.cta-final-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-final h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; margin-bottom: 22px; }
.cta-final p { font-size: 18px; line-height: 1.6; color: rgba(20,17,14,0.78); margin-bottom: 40px; }

/* ---------- Artículo / guía ---------- */
.article-hero { padding: 76px 0 72px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--cream-dim); margin-bottom: 32px; }
.breadcrumb a { color: var(--cream-dim); }
.breadcrumb a:hover { color: var(--accent); }
.article-hero h1 { font-size: clamp(32px, 5.5vw, 56px); line-height: 1.08; color: var(--cream); max-width: 20ch; margin-bottom: 22px; }
.article-dek { font-size: 18px; line-height: 1.6; color: var(--cream-dim); max-width: 58ch; margin-bottom: 22px; }
.article-meta { font-family: var(--font-mono); font-size: 12px; color: var(--cream-dim); letter-spacing: 0.03em; }

.article-body { background: var(--paper); color: var(--ink); padding: 80px 0 100px; }
.article-content { max-width: 680px; }
.article-content h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin: 56px 0 20px;
  line-height: 1.2;
}
.article-content h2:first-child { margin-top: 0; }
.article-content p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(22,20,15,0.82);
  margin-bottom: 20px;
}
.article-content strong { color: var(--ink); font-weight: 700; }

.framework-box {
  background: var(--ink);
  color: var(--cream);
  border-radius: 4px;
  padding: 36px;
  margin: 32px 0 40px;
}
.framework-box p.framework-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.framework-list { display: grid; gap: 20px; }
.framework-list li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: baseline; }
.framework-num { font-family: var(--font-mono); color: var(--accent); font-size: 14px; }
.framework-list p { color: var(--cream); font-size: 16px; line-height: 1.55; margin: 0; }

.impact-list { counter-reset: impact; margin: 8px 0 40px; border-top: 1px solid rgba(22,20,15,0.14); }
.impact-list li {
  counter-increment: impact;
  padding: 22px 0;
  border-bottom: 1px solid rgba(22,20,15,0.14);
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
}
.impact-list li::before {
  content: counter(impact);
  font-family: var(--font-mono);
  color: var(--accent-dim);
  font-size: 15px;
}
.impact-list h3 { font-size: 17px; margin: 0 0 6px; color: var(--ink); }
.impact-list p { font-size: 15px; line-height: 1.6; color: rgba(22,20,15,0.75); margin: 0; }

.mistake-list { margin: 8px 0 40px; }
.mistake-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 16px;
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(22,20,15,0.82);
}
.mistake-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--accent-dim);
  font-weight: 700;
  font-family: var(--font-mono);
}

.article-cta {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid rgba(22,20,15,0.16);
  border-radius: 4px;
}
.article-cta p { margin-bottom: 20px; }
.article-cta .btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); padding: 64px 0 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer-contact a { font-weight: 700; color: var(--cream); }
.footer-contact a:hover { color: var(--accent); }
.footer-contact span { color: var(--cream-dim); font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 14px; }
.footer-nav a { color: var(--cream-dim); }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { padding: 22px 0 28px; font-family: var(--font-mono); font-size: 12px; color: var(--cream-dim); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(0,0,0,0.5);
  z-index: 90;
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .work-grid { grid-template-columns: 1fr; gap: 24px; }
  .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px 28px 24px;
    gap: 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .main-nav.nav-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 56px 0 72px; }
  .service, .service-alt { grid-template-columns: 1fr; gap: 16px; }
  .service-num { font-size: 42px; }
  .pain-list li { grid-template-columns: 40px 1fr; }
  .compare-row { grid-template-columns: 0.85fr 1fr 1fr; }
  .compare-label { font-size: 10.5px; padding: 16px 8px 16px 0; }
  .compare-col { font-size: 12.5px; padding: 16px 10px; line-height: 1.35; }
  .compare-head .compare-col { font-size: 10px; padding: 12px 10px; }
  .steps li { grid-template-columns: 40px 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-final { padding: 90px 0; }
  .faq-head { max-width: 100%; }
  .faq-item summary { padding: 20px 0; font-size: 16px; }
  .calc-box { padding: 24px; }
  .calc-opt { flex: 1 1 auto; text-align: center; padding: 12px 10px; font-size: 13px; }
  .btn { white-space: normal; text-align: center; }
  .framework-box, .article-cta { padding: 22px; }
  .impact-list li, .framework-list li { grid-template-columns: 26px 1fr; }
}
