/* ==========================================================
   XZEN STUDIO — estilos compartidos
   Temas: .theme-main (home), .theme-auto, .theme-xim
   ========================================================== */

:root {
  --bg: #0a0c1d;
  --bg-2: #0f1228;
  --surface: #141836;
  --surface-2: #1b2045;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0ff;
  --muted: #a3a8cc;
  --dim: #6f7499;
  --bad: #ff6b81;
  --good: #4fe0b0;

  --a1: #3cc3f0;
  --a2: #4fe0b0;
  --grad: linear-gradient(120deg, var(--a1), var(--a2));

  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

.theme-xim {
  --a1: #f4a6c6;
  --a2: #f6c879;
  --bg: #0d0a16;
  --bg-2: #130f20;
  --surface: #1a1429;
  --surface-2: #231b36;
}

.theme-main {
  --a1: #3cc3f0;
  --a2: #f4a6c6;
}

/* --grad se recalcula por tema para usar los acentos del tema */
.theme-main,
.theme-auto,
.theme-xim { --grad: linear-gradient(120deg, var(--a1), var(--a2)); }

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-2); }
.center { text-align: center; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--a1);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 56px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--grad);
  color: #0a0c1d;
  box-shadow: 0 12px 40px -12px var(--a1);
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 12, 29, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.theme-xim .header.is-scrolled { background: rgba(13, 10, 22, 0.82); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}
.brand__name small {
  display: block;
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 0.92rem; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.nav .btn { padding: 11px 20px; font-size: 0.88rem; color: #0a0c1d; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 170px 0 110px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  pointer-events: none;
}
.hero__glow--1 { background: var(--a1); top: -260px; right: -200px; }
.hero__glow--2 { background: var(--a2); bottom: -360px; left: -260px; opacity: 0.14; }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero p.lead { margin-bottom: 34px; }
.hero__visual { position: relative; }
.hero__visual img {
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero__badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  color: var(--muted);
  animation: float 6s ease-in-out infinite;
}
.hero__badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text);
}
.hero__badge--tl { top: -26px; left: -30px; }
.hero__badge--br { bottom: -26px; right: -20px; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 42px;
  color: var(--dim);
  font-size: 0.88rem;
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--a2);
}

/* ---------- Home: selector de ramas ---------- */
.home-hero { text-align: center; }
.home-hero .hero__logo {
  width: min(520px, 86%);
  margin: 0 auto 36px;
}
.home-hero .lead { margin: 0 auto 50px; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}
.branch {
  position: relative;
  border-radius: 26px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.branch::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.branch--auto::before { background: radial-gradient(circle at 85% 0%, #3cc3f0, transparent 60%); }
.branch--xim::before { background: radial-gradient(circle at 85% 0%, #f4a6c6, transparent 60%); }
.branch:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.branch:hover::before { opacity: 0.32; }
.branch > * { position: relative; }
.branch__tag {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.branch--auto .branch__tag { color: #3cc3f0; }
.branch--xim .branch__tag { color: #f4a6c6; }
.branch h3 { font-size: 1.9rem; }
.branch p { color: var(--muted); }
.branch ul { list-style: none; padding: 0; margin: 8px 0 28px; }
.branch li { padding: 7px 0 7px 28px; position: relative; color: var(--text); font-size: 0.97rem; }
.branch li::before { content: "→"; position: absolute; left: 0; color: var(--dim); }
.branch .btn { margin-top: auto; align-self: flex-start; }
.branch--auto .btn { background: linear-gradient(120deg, #3cc3f0, #4fe0b0); color: #0a0c1d; }
.branch--xim .btn { background: linear-gradient(120deg, #f4a6c6, #f6c879); color: #160f1f; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 22%, transparent), color-mix(in srgb, var(--a2) 22%, transparent));
  border: 1px solid var(--line-strong);
  color: var(--a1);
}
.card__icon svg { width: 26px; height: 26px; }

/* ---------- Antes / Después: tabla ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.compare__col { padding: 40px; }
.compare__col--before { background: rgba(255, 107, 129, 0.05); }
.compare__col--after {
  background: linear-gradient(160deg, color-mix(in srgb, var(--a1) 12%, transparent), color-mix(in srgb, var(--a2) 8%, transparent));
  border-left: 1px solid var(--line);
}
.compare__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 26px;
}
.pill {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.compare__col--before .pill { background: rgba(255, 107, 129, 0.14); color: var(--bad); }
.compare__col--after .pill { background: color-mix(in srgb, var(--a2) 18%, transparent); color: var(--a2); }
.compare ul { list-style: none; padding: 0; margin: 0; }
.compare li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.98rem;
}
.compare li:last-child { border-bottom: 0; }
.compare li::before {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}
.compare__col--before li { color: var(--muted); }
.compare__col--before li::before { content: "✕"; background: rgba(255, 107, 129, 0.14); color: var(--bad); }
.compare__col--after li::before { content: "✓"; background: color-mix(in srgb, var(--a2) 20%, transparent); color: var(--a2); }

/* ---------- Antes / Después: deslizador ---------- */
.ba {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  user-select: none;
  --pos: 50%;
  aspect-ratio: 16 / 10;
  background: var(--surface);
}
.ba__pane {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.ba__pane--after { clip-path: inset(0 0 0 var(--pos)); }
.ba__label {
  position: absolute;
  top: 18px;
  z-index: 3;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.ba__label--before { left: 18px; background: rgba(255, 107, 129, 0.2); color: #ffd2d9; }
.ba__label--after { right: 18px; background: color-mix(in srgb, var(--a2) 28%, transparent); color: #fff; }
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  z-index: 4;
  pointer-events: none;
}
.ba__handle::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #0a0c1d;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  margin: 0;
}
.ba-caption { text-align: center; color: var(--dim); font-size: 0.88rem; margin-top: 16px; }

/* Chat mock (automatizaciones) */
.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
  max-width: 520px;
  font-size: 0.9rem;
}
.ba__pane--before .chat { margin-right: auto; }
.ba__pane--after .chat { margin-left: auto; }
.chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: auto;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.88rem;
}
.ba__pane--before .chat__head { margin-top: 36px; }
.ba__pane--after .chat__head { margin-top: 36px; }
.chat__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}
.chat__head small { display: block; color: var(--dim); font-weight: 400; font-size: 0.75rem; }
.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.4;
  position: relative;
}
.msg time { display: block; font-size: 0.68rem; color: var(--dim); margin-top: 4px; text-align: right; }
.msg--in { background: var(--surface-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--out { background: #1f5c4b; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg--out time { color: #a6d9c9; }
.msg--sys {
  align-self: center;
  font-size: 0.74rem;
  color: var(--bad);
  background: rgba(255, 107, 129, 0.1);
  border-radius: 999px;
  padding: 6px 14px;
}
.msg--ok { color: var(--good); background: rgba(79, 224, 176, 0.1); }
.ba__pane--before { background: #10111f; }
.ba__pane--after { background: linear-gradient(160deg, #0f1a2e, #0d1f22); }

/* Feed mock (contenido) */
.feed {
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 40px;
}
.feed__profile { text-align: center; font-size: 0.82rem; color: var(--muted); }
.feed__avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid var(--line-strong);
}
.feed__stats { display: flex; justify-content: center; gap: 16px; margin-top: 10px; }
.feed__stats b { display: block; color: var(--text); font-family: var(--font-head); font-size: 1.05rem; }
.feed__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; max-width: 380px; justify-self: center; }
.feed__grid i { aspect-ratio: 4 / 5; border-radius: 6px; display: block; position: relative; overflow: hidden; }
.ba__pane--before.feed-pane { background: #121118; }
.ba__pane--before .feed__avatar { background: #3a3a44; }
.ba__pane--before .feed__grid i:nth-child(1) { background: #4b4f3a; }
.ba__pane--before .feed__grid i:nth-child(2) { background: #6e3434; }
.ba__pane--before .feed__grid i:nth-child(3) { background: #2f3b55; }
.ba__pane--before .feed__grid i:nth-child(4) { background: #5c5c5c; }
.ba__pane--before .feed__grid i:nth-child(5) { background: #7a6a2f; }
.ba__pane--before .feed__grid i:nth-child(6) { background: #2d2d2d; }
.ba__pane--before .feed__grid i::after {
  content: "";
  position: absolute;
  inset: 30% 15%;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
}
.ba__pane--after.feed-pane { background: linear-gradient(160deg, #1d1326, #22182a); }
.ba__pane--after .feed__avatar { background: linear-gradient(135deg, #f4a6c6, #f6c879); border-color: #f4a6c6; }
.ba__pane--after .feed__grid i:nth-child(odd) { background: linear-gradient(160deg, #f4a6c6, #a8638a); }
.ba__pane--after .feed__grid i:nth-child(even) { background: linear-gradient(160deg, #f6c879, #b07d3a); }
.ba__pane--after .feed__grid i:nth-child(3n) { background: linear-gradient(160deg, #3b2a4a, #1a1424); }
.ba__pane--after .feed__grid i::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 12%;
  height: 10%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
}
.ba__pane--after .feed__grid i::after {
  content: "▶";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Estadísticas ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.stat { background: var(--surface); padding: 34px 26px; }
.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1;
  margin-bottom: 10px;
}
.stat p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Casos ---------- */
.case {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 26px;
}
.case__info { padding: 44px; }
.case__info .eyebrow { margin-bottom: 12px; }
.case__info h3 { font-size: 1.6rem; }
.case__info p { color: var(--muted); }
.case__list { list-style: none; padding: 0; margin: 20px 0 0; }
.case__list li { padding: 8px 0 8px 30px; position: relative; font-size: 0.96rem; }
.case__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 14px;
  height: 2px;
  background: var(--grad);
}
.case__results {
  background: linear-gradient(160deg, color-mix(in srgb, var(--a1) 10%, var(--surface)), var(--surface-2));
  border-left: 1px solid var(--line);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-content: center;
}
.case__results .stat__num { font-size: 2.3rem; }
.case__results p { color: var(--muted); font-size: 0.88rem; margin: 0; }
.case__note { grid-column: 1 / -1; font-size: 0.78rem !important; color: var(--dim) !important; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  display: block;
  margin-bottom: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Stack ---------- */
.stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.stack span {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Para quién ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fit .card h3 { display: flex; align-items: center; gap: 10px; }
.fit ul { margin: 14px 0 0; padding: 0; list-style: none; }
.fit li { padding: 8px 0; color: var(--muted); border-bottom: 1px dashed var(--line); font-size: 0.96rem; }
.fit li:last-child { border: 0; }
.fit .card--yes { border-color: color-mix(in srgb, var(--a2) 40%, transparent); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--a1); font-size: 1.4rem; line-height: 1; transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 14px 0 0; }

/* ---------- CTA + formulario ---------- */
.cta {
  position: relative;
  border-radius: 32px;
  padding: 70px 60px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.cta::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--a1);
  filter: blur(140px);
  opacity: 0.16;
  top: -300px;
  left: -200px;
  pointer-events: none;
}
.cta > * { position: relative; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { margin-bottom: 12px; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  transition: color 0.2s;
}
.contact-list a:hover { color: var(--text); }
.contact-list svg { width: 20px; height: 20px; color: var(--a1); flex: none; }

.form { display: grid; gap: 14px; }
.form label { font-size: 0.85rem; color: var(--muted); display: grid; gap: 6px; }
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.2s;
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--a1); }
.form .btn { width: 100%; margin-top: 6px; }
.form__note { font-size: 0.78rem; color: var(--dim); text-align: center; margin: 4px 0 0; }

/* ---------- Ximena: bio ---------- */
.bio {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.bio__portrait {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(244, 166, 198, 0.55), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(246, 200, 121, 0.45), transparent 50%),
    var(--surface-2);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.bio__portrait img { width: 46%; opacity: 0.9; }
.bio__portrait span {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 40px;
  color: var(--dim);
  font-size: 0.88rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a:hover { color: var(--text); }
.footer img { height: 30px; width: auto; opacity: 0.85; }

/* Botón flotante WhatsApp */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 40px -10px rgba(37, 211, 102, 0.7);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__badge { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__layout, .bio, .cta { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin: 30px auto 0; }
  .grid--3, .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: 1fr; }
  .case__results { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .container { padding: 0 16px; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 24px;
    background: rgba(10, 12, 29, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }
  .theme-xim .nav { background: rgba(13, 10, 22, 0.97); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border: 0; }
  .nav.is-open { transform: none; }
  .nav-toggle { display: block; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 130px 0 80px; min-height: auto; }
  .split, .grid--2, .grid--3, .grid--4, .steps, .fit, .compare { grid-template-columns: 1fr; }
  .compare__col--after { border-left: 0; border-top: 1px solid var(--line); }
  .compare__col, .case__info, .case__results { padding: 28px 22px; }
  .branch { padding: 30px 24px; min-height: 0; }
  .cta { padding: 44px 22px; gap: 34px; border-radius: 24px; }
  .hero__badge--tl { left: -6px; }
  .hero__badge--br { right: -6px; }

  /* En móvil el comparador se muestra apilado: primero antes, luego después */
  .ba { aspect-ratio: auto; display: flex; flex-direction: column; }
  .ba__pane { position: relative; inset: auto; padding: 56px 14px 20px; }
  .ba__pane--after { clip-path: none; border-top: 2px solid var(--line-strong); }
  .ba__label--after { right: auto; left: 18px; }
  .ba__handle, .ba__range { display: none; }
  .ba-caption { display: none; }
  .ba__pane--before .chat__head, .ba__pane--after .chat__head { margin-top: 0; margin-bottom: 8px; }
  .chat { font-size: 0.8rem; max-width: 100%; }
  .feed { grid-template-columns: 1fr; gap: 16px; margin-top: 46px; }
  .feed__avatar { width: 58px; height: 58px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .case__results { grid-template-columns: 1fr; }
}
