/* Alliance Capital · Dark fintech premium */

:root {
  --accent: #4F6DF5;
  --accent-hover: #7EA3FF;
  --accent-deep: #2546C7;
  --accent-contrast: #0A0F1E;
  --accent-2: #10B981;
  --accent-glow: rgba(79,109,245,0.28);

  --emerald: #10B981;
  --royal: #4F6DF5;
  --plum: #A45BC7;
  --amber: #F59E0B;

  --bg: #0A0F1E;
  --surface: #121832;
  --surface-raised: #1A2341;
  --border: #253057;
  --border-strong: #38466E;

  --text: #F8FAFC;
  --text-strong: #FFFFFF;
  --text-muted: #9AA3B8;
  --text-faint: #6B7490;

  --whatsapp: #25D366;

  --font-display: "Instrument Serif", ui-serif, Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  --step--1: clamp(0.83rem, 0.79rem + 0.2vw, 0.94rem);
  --step-0: clamp(1.00rem, 0.95rem + 0.3vw, 1.13rem);
  --step-1: clamp(1.20rem, 1.12rem + 0.4vw, 1.42rem);
  --step-2: clamp(1.44rem, 1.32rem + 0.6vw, 1.80rem);
  --step-3: clamp(1.73rem, 1.55rem + 0.9vw, 2.27rem);
  --step-4: clamp(2.07rem, 1.82rem + 1.3vw, 2.86rem);
  --step-5: clamp(2.49rem, 2.13rem + 1.8vw, 3.61rem);
  --step-6: clamp(2.99rem, 2.49rem + 2.5vw, 4.55rem);
  --step-7: clamp(3.58rem, 2.90rem + 3.4vw, 5.73rem);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 999px;

  --shadow: 0 12px 30px -12px rgba(0,0,0,0.55);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,0.65), 0 8px 20px -8px rgba(0,0,0,0.4);
  --shadow-royal: 0 20px 50px -20px rgba(79,109,245,0.45);
  --shadow-inner: inset 0 1px 0 rgba(255,255,255,0.03);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*, *::before, *::after { min-width: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg); color: var(--text);
  font-size: var(--step-0); line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0;
  background:
    radial-gradient(1400px 900px at 10% -20%, rgba(79,109,245,0.14), transparent 55%),
    radial-gradient(1100px 800px at 100% 10%, rgba(16,185,129,0.08), transparent 55%),
    radial-gradient(900px 700px at 50% 100%, rgba(79,109,245,0.06), transparent 60%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: ""; position: fixed; inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%234F6DF5" stroke-width="0.3" opacity="0.05"/></svg>');
  background-size: 60px 60px; pointer-events: none; z-index: 0; opacity: 0.5;
}

img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -0.015em; color: var(--text-strong);
}
h1 { font-size: var(--step-6); }
h2 { font-size: var(--step-5); }
h3 { font-size: var(--step-3); font-weight: 500; }
h4 { font-size: var(--step-2); font-weight: 500; }
p { color: var(--text); }
a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--step--1); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid rgba(79,109,245,0.3);
  border-radius: var(--radius-full);
  background: rgba(79,109,245,0.08);
  backdrop-filter: blur(6px); font-family: var(--font-body);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}

.container {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-inline: var(--gutter); position: relative; z-index: 1;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: var(--radius-full);
  font-weight: 600; font-size: var(--step-0);
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.35s var(--ease-out);
  white-space: nowrap; text-align: center; position: relative;
  font-family: var(--font-body);
}
.btn svg { transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent) 50%, var(--accent-deep));
  color: var(--text-strong);
  box-shadow: var(--shadow-royal), var(--shadow-inner);
  font-weight: 600;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -20px rgba(79,109,245,0.65); }
.btn-ghost {
  background: rgba(255,255,255,0.03); color: var(--text);
  border-color: var(--border-strong); backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-emerald {
  background: rgba(16,185,129,0.12); color: var(--emerald);
  border-color: rgba(16,185,129,0.35);
}
.btn-emerald:hover { background: rgba(16,185,129,0.22); }

/* HEADER */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(10,15,30,0.88);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: nowrap; }
.nav-logo { display: inline-flex; align-items: center; height: 42px; flex-shrink: 0; }
.nav-logo img { height: 42px; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { font-size: var(--step--1); color: var(--text-muted); transition: color 0.2s; font-weight: 500; line-height: 1; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta > * { height: 40px; box-sizing: border-box; }
.nav-tel {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-weight: 600;
  padding: 0 16px; border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  transition: all 0.2s; background: rgba(255,255,255,0.02);
  white-space: nowrap; font-variant-numeric: tabular-nums;
  line-height: 1; font-size: var(--step--1);
}
.nav-tel:hover { border-color: var(--accent); color: var(--accent); }
.nav-tel svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.nav-tel span { display: inline-block; line-height: 1; }
.nav-cta .btn { padding: 0 20px; height: 40px; font-size: var(--step--1); line-height: 1; }
.nav-burger {
  display: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  border-radius: 10px; width: 40px; height: 40px; padding: 0;
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-burger svg { width: 20px; height: 20px; color: var(--text); }
@media (max-width: 1050px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 780px) { .nav-tel { display: none; } }
@media (max-width: 560px) { .nav-cta .btn-primary { display: none; } }

/* HERO */
.hero { position: relative; padding: 160px 0 100px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 85% 20%, rgba(79,109,245,0.22), transparent 60%),
    radial-gradient(500px 350px at 15% 80%, rgba(16,185,129,0.14), transparent 60%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 60px; align-items: center;
}
.hero h1 {
  font-size: var(--step-7); margin: 24px 0;
  letter-spacing: -0.025em; line-height: 1.02;
}
.hero h1 em {
  color: var(--accent); font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: var(--step-1); color: var(--text-muted);
  max-width: 560px; margin-bottom: 36px; line-height: 1.55;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-trust {
  display: flex; gap: 44px; padding-top: 32px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.hero-trust-item .num {
  font-family: var(--font-display); font-size: var(--step-4);
  font-weight: 500; color: var(--accent);
  font-variant-numeric: tabular-nums; display: block; line-height: 1;
}
.hero-trust-item .lbl { color: var(--text-muted); font-size: var(--step--1); margin-top: 6px; display: block; }

/* Hero card · Instant pre-qualification */
.hero-card {
  background: linear-gradient(160deg, var(--surface-raised) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-lg), var(--shadow-inner);
  position: relative; overflow: hidden; backdrop-filter: blur(20px);
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 220px at 100% 0%, rgba(79,109,245,0.22), transparent 60%);
  pointer-events: none;
}
.hero-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,109,245,0.6), transparent);
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; position: relative; }
.hero-card-head .tag { font-size: var(--step--1); color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--step--1); color: var(--emerald);
  padding: 4px 10px; border-radius: var(--radius-full);
  background: rgba(16,185,129,0.12);
}
.status-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 8px var(--emerald);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse { 50% { transform: scale(1.4); opacity: 0.6; } }
.card-title { font-family: var(--font-display); font-size: var(--step-3); font-weight: 500; margin-bottom: 8px; position: relative; }
.card-desc { color: var(--text-muted); font-size: var(--step--1); margin-bottom: 24px; position: relative; }
.card-rows {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); margin-bottom: 24px; position: relative;
}
.card-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--step--1); }
.card-row .k { color: var(--text-muted); }
.card-row .v { color: var(--text-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.card-row .v.good { color: var(--emerald); }
.card-form { display: flex; flex-direction: column; gap: 12px; position: relative; }
.card-form input, .card-form select {
  background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 14px 16px;
  color: var(--text); font-size: var(--step-0); outline: none; transition: all 0.2s;
}
.card-form input:focus, .card-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,109,245,0.18);
}
.card-form button {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent) 60%, var(--accent-deep));
  color: var(--text-strong); border: none;
  padding: 15px 16px; border-radius: var(--radius);
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  font-size: var(--step-0); box-shadow: var(--shadow-royal);
}
.card-form button:hover { transform: translateY(-1px); }
.card-note { font-size: 12px; color: var(--text-faint); text-align: center; margin-top: 4px; }
@media (max-width: 960px) {
  .hero { padding: 130px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-trust { gap: 24px; }
}

/* TRUST BAR */
.trust-bar {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(18,24,50,0.5); backdrop-filter: blur(20px);
}
.trust-bar-inner { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.trust-bar-label { font-size: var(--step--1); color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; max-width: 200px; }
.trust-bar-items { display: flex; gap: 42px; flex-wrap: wrap; align-items: center; }
.trust-item {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-weight: 500;
  font-size: var(--step--1); letter-spacing: 0.03em;
}
.trust-item svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
@media (max-width: 700px) {
  .trust-bar-inner { grid-template-columns: 1fr; gap: 20px; }
  .trust-bar-items { gap: 24px; }
}

/* SECTIONS */
section.block { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 780px; margin-bottom: 64px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 20px; }
.section-head p { color: var(--text-muted); font-size: var(--step-1); line-height: 1.55; }

/* AI PLATFORM BLOCK (differentiator unique to this proposal) */
.ai-block {
  padding: clamp(80px, 11vw, 140px) 0;
  background: linear-gradient(180deg, transparent, rgba(18,24,50,0.5));
  position: relative; overflow: hidden;
}
.ai-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.ai-copy h2 { margin-bottom: 24px; }
.ai-copy > p { color: var(--text-muted); font-size: var(--step-1); line-height: 1.6; margin-bottom: 24px; }
.ai-features { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.ai-feat { display: flex; align-items: flex-start; gap: 16px; }
.ai-feat-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79,109,245,0.2), rgba(79,109,245,0.05));
  border: 1px solid rgba(79,109,245,0.35);
  color: var(--accent);
}
.ai-feat-ico svg { width: 22px; height: 22px; }
.ai-feat-body strong { display: block; color: var(--text-strong); font-weight: 600; margin-bottom: 4px; }
.ai-feat-body span { color: var(--text-muted); font-size: var(--step--1); }

.ai-visual {
  background: linear-gradient(160deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 30px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.ai-visual::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.ai-chat {
  background: var(--bg); border-radius: var(--radius-lg);
  padding: 20px; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.ai-msg {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: var(--step--1); line-height: 1.5;
  max-width: 85%; animation: popIn 0.6s var(--ease-out);
}
.ai-msg.bot {
  background: var(--surface-raised); color: var(--text);
  align-self: flex-start; border-top-left-radius: 4px;
}
.ai-msg.user {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--text-strong);
  align-self: flex-end; border-top-right-radius: 4px;
}
.ai-msg.typing { background: var(--surface-raised); align-self: flex-start; max-width: 60px; padding: 14px 16px; }
.ai-msg.typing span {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted); margin: 0 2px;
  animation: blink 1.4s infinite;
}
.ai-msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity: 0.3; } 40% { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ai-result {
  margin-top: 20px; padding: 16px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 14px;
}
.ai-result-ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--emerald); color: var(--accent-contrast);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ai-result-ico svg { width: 18px; height: 18px; }
.ai-result-text strong { display: block; color: var(--text-strong); font-weight: 600; }
.ai-result-text span { color: var(--text-muted); font-size: var(--step--1); }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; gap: 40px; } }

/* PILLARS */
.pilares-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pilar {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 34px; position: relative;
  transition: all 0.4s var(--ease-out); overflow: hidden;
  box-shadow: var(--shadow-inner);
}
.pilar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4; transition: opacity 0.3s;
}
.pilar:hover { border-color: var(--border-strong); transform: translateY(-6px); box-shadow: var(--shadow); }
.pilar:hover::before { opacity: 1; }
.pilar-num {
  font-family: var(--font-display); font-size: var(--step-7);
  color: var(--accent); opacity: 0.45;
  font-weight: 400; line-height: 0.9;
  margin-bottom: 24px; letter-spacing: -0.03em;
}
.pilar h3 { font-size: var(--step-2); margin-bottom: 14px; }
.pilar p { color: var(--text-muted); font-size: var(--step-0); }
@media (max-width: 900px) { .pilares-grid { grid-template-columns: 1fr; } }

/* PRODUCTS (6) */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.prod {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
  transition: all 0.4s var(--ease-out); position: relative; overflow: hidden;
  box-shadow: var(--shadow-inner);
}
.prod::after {
  content: ""; position: absolute; bottom: -50%; right: -50%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.prod:hover { border-color: rgba(79,109,245,0.4); transform: translateY(-4px); box-shadow: var(--shadow); }
.prod:hover::after { opacity: 1; }
.prod-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.prod-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79,109,245,0.18), rgba(79,109,245,0.05));
  border: 1px solid rgba(79,109,245,0.3);
  border-radius: 14px; color: var(--accent);
}
.prod-icon svg { width: 26px; height: 26px; }
.prod-range {
  text-align: right; font-family: var(--font-display);
  font-size: var(--step-1); color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.prod-range small { display: block; font-size: 11px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; font-family: var(--font-body); }
.prod h3 { font-size: var(--step-2); margin: 0; }
.prod p { color: var(--text-muted); font-size: var(--step-0); }
.prod-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.prod-list li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--step--1); color: var(--text-muted); }
.prod-list li::before {
  content: ""; width: 14px; height: 14px; flex-shrink: 0; margin-top: 4px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234F6DF5" stroke-width="3"><path d="M20 6L9 17l-5-5"/></svg>') no-repeat center/contain;
}
.prod-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600;
  font-size: var(--step--1); padding-top: 12px;
}
.prod-cta svg { transition: transform 0.3s; }
.prod:hover .prod-cta svg { transform: translateX(4px); }
@media (max-width: 900px) { .prod-grid { grid-template-columns: 1fr; } }

/* METRICS */
.metricas {
  position: relative; padding: 90px 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-raised) 100%);
  border-block: 1px solid var(--border); overflow: hidden;
}
.metricas::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 50% 50%, rgba(79,109,245,0.12), transparent 60%);
  pointer-events: none;
}
.metricas-head { text-align: center; margin-bottom: 60px; position: relative; z-index: 1; }
.metricas-head .eyebrow { margin: 0 auto 20px; }
.metricas-head h2 { font-size: var(--step-4); max-width: 640px; margin: 0 auto; }
.metricas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; z-index: 1; }
.met { text-align: center; padding: 30px 20px; border-right: 1px solid var(--border); }
.met:last-child { border-right: none; }
.met .n {
  font-family: var(--font-display); font-size: var(--step-7);
  color: var(--accent); line-height: 0.9; font-weight: 400;
  font-variant-numeric: tabular-nums; display: block;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent) 60%, var(--accent-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.met .l { color: var(--text-muted); font-size: var(--step--1); margin-top: 14px; letter-spacing: 0.05em; text-transform: uppercase; display: block; }
@media (max-width: 800px) {
  .metricas-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .met { border-right: none; border-bottom: 1px solid var(--border); padding: 24px 10px; }
  .met:nth-last-child(-n+2) { border-bottom: none; }
}

/* PROCESS */
.proceso { background: linear-gradient(180deg, transparent, rgba(18,24,50,0.4)); }
.proceso-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.proceso-steps::before {
  content: ""; position: absolute;
  top: 32px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
}
.step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; position: relative; }
.step-num {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: var(--step-2);
  color: var(--accent); margin-bottom: 26px;
  position: relative; z-index: 2;
  box-shadow: 0 0 0 6px var(--bg), 0 12px 30px -8px rgba(0,0,0,0.4);
}
.step h3 { font-size: var(--step-1); margin-bottom: 12px; }
.step p { color: var(--text-muted); font-size: var(--step--1); }
@media (max-width: 900px) {
  .proceso-steps { grid-template-columns: 1fr; gap: 40px; }
  .proceso-steps::before { display: none; }
}

/* TESTIMONIALS */
.testis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.testi {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; display: flex; flex-direction: column;
  gap: 24px; position: relative; box-shadow: var(--shadow-inner);
}
.testi::before {
  content: ""; position: absolute; top: 0; left: 40px; right: 40px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}
.testi-quote {
  font-family: var(--font-display); font-size: var(--step-2);
  line-height: 1.35; color: var(--text-strong);
  letter-spacing: -0.01em; font-weight: 400; flex: 1;
}
.testi-quote::before {
  content: "\201C"; font-family: var(--font-display);
  font-size: 4em; color: var(--accent);
  line-height: 0.5; vertical-align: -0.3em;
  margin-right: 8px; opacity: 0.55;
}
.testi-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border); gap: 20px;
}
.testi-person { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 500;
  color: var(--text-strong); font-size: var(--step-1);
  box-shadow: 0 0 0 3px rgba(79,109,245,0.15), inset 0 1px 2px rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.testi-avatar.a1 { background: linear-gradient(135deg, var(--accent-hover), var(--accent-deep)); }
.testi-avatar.a2 { background: linear-gradient(135deg, #34D399, #059669); }
.testi-avatar.a3 { background: linear-gradient(135deg, #C084FC, #7C3AED); }
.testi-avatar.a4 { background: linear-gradient(135deg, #FBBF24, #D97706); }
.testi-person .n { font-weight: 600; color: var(--text-strong); font-size: var(--step-0); }
.testi-person .r { font-size: var(--step--1); color: var(--text-muted); }
.testi-stars { display: flex; gap: 2px; margin-top: 4px; }
.testi-stars svg { width: 12px; height: 12px; color: var(--amber); }
.testi-metric { text-align: right; flex-shrink: 0; }
.testi-metric .num {
  font-family: var(--font-display); color: var(--emerald);
  font-size: var(--step-3); line-height: 1;
  font-variant-numeric: tabular-nums; display: block; font-weight: 500;
}
.testi-metric .lbl { font-size: 11px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 900px) { .testis-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 4px; }
.faq { border-bottom: 1px solid var(--border); padding: 26px 0; cursor: pointer; }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; font-family: var(--font-display);
  font-size: var(--step-1); color: var(--text-strong);
  font-weight: 500; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--accent); font-size: var(--step-3);
  font-weight: 300; transition: transform 0.3s; line-height: 0.6;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-muted); margin-top: 14px; font-size: var(--step-0); line-height: 1.6; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 30px; } }

/* CTA FINAL */
.cta-final { padding: 110px 0; text-align: center; }
.cta-box {
  background:
    radial-gradient(700px 500px at 50% 0%, rgba(79,109,245,0.22), transparent 65%),
    linear-gradient(180deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(60px, 9vw, 110px) clamp(30px, 5vw, 80px);
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-box::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.cta-box h2 { margin-bottom: 20px; font-size: var(--step-6); }
.cta-box p { color: var(--text-muted); font-size: var(--step-1); max-width: 640px; margin: 0 auto 40px; line-height: 1.6; }
.cta-box-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-box-meta {
  display: flex; gap: 32px; justify-content: center;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.cta-box-meta div { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: var(--step--1); }
.cta-box-meta svg { width: 16px; height: 16px; color: var(--accent); }

/* FOOTER */
footer {
  background: #060916; border-top: 1px solid var(--border);
  padding: 80px 0 30px; position: relative;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.foot-brand img { height: 46px; margin-bottom: 20px; }
.foot-brand p { color: var(--text-muted); font-size: var(--step--1); max-width: 280px; line-height: 1.6; margin-bottom: 20px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-muted); transition: all 0.2s;
}
.foot-social a:hover { background: rgba(79,109,245,0.12); border-color: var(--accent); color: var(--accent); }
.foot-social svg { width: 18px; height: 18px; }
.foot-col h5 { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; font-weight: 600; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.foot-col a { color: var(--text-muted); font-size: var(--step-0); transition: color 0.2s; }
.foot-col a:hover { color: var(--accent); }
.foot-col.contact li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: var(--step-0); }
.foot-col.contact svg { width: 16px; height: 16px; color: var(--accent); }
.foot-bottom {
  padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--step--1); color: var(--text-faint);
  flex-wrap: wrap; gap: 16px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr; } }

/* Floating chat/call button */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 16px;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent) 60%, var(--accent-deep));
  color: var(--text-strong); border-radius: var(--radius-full);
  box-shadow: 0 20px 50px -12px rgba(79,109,245,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  font-weight: 600; transition: all 0.3s var(--ease-out); text-decoration: none;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float svg { width: 24px; height: 24px; }
.wa-float .lbl { font-size: var(--step--1); }
.wa-float::before {
  content: ""; position: absolute; inset: -4px;
  border-radius: var(--radius-full); background: var(--accent);
  opacity: 0.4; z-index: -1;
  animation: wa-pulse 2.5s var(--ease-out) infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 700px) { .wa-float .lbl { display: none; } .wa-float { padding: 14px; } }

/* REVEAL — safe by default */
.js .reveal { opacity: 0; transform: translateY(28px); transition: all 0.9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ==== EXTRAS V2: idioma toggle, bloques con imagen, industrias ==== */

.lang-toggle {
  display: inline-flex; align-items: center;
  padding: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  gap: 2px; height: 40px; box-sizing: border-box;
}
.lang-toggle button {
  background: transparent; border: none; color: var(--text-muted);
  height: 32px; padding: 0 14px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  cursor: pointer; transition: all 0.2s; font-family: var(--font-body);
  line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.lang-toggle button.active {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-deep));
  color: var(--text-strong); box-shadow: 0 4px 12px -4px rgba(79,109,245,0.6);
}
.lang-toggle button:not(.active):hover { color: var(--text); }
@media (max-width: 560px) { .lang-toggle button { padding: 0 10px; font-size: 11px; } }

/* Hero image fondo */
.hero-bg img.hero-ambient {
  position: absolute; top: 0; right: 0;
  width: 60%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.26;
  filter: contrast(1.05) saturate(0.95);
  mask-image: linear-gradient(90deg, transparent, black 30%, black 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 30%, black 100%);
}
@media (max-width: 960px) {
  .hero-bg img.hero-ambient { opacity: 0.12; width: 100%; mask: none; -webkit-mask: none; }
}

/* Caso de éxito con imagen */
.story-block { padding: clamp(80px, 11vw, 130px) 0; }
.story-block-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 70px; align-items: center;
}
.story-block-media {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-2deg);
  transition: transform 0.5s var(--ease-out);
}
.story-block-media:hover { transform: perspective(1000px) rotateY(0deg); }
.story-block-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}
.story-block-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,15,30,0.75) 100%);
  pointer-events: none;
}
.story-block-badge {
  position: absolute; top: 24px; right: 24px; z-index: 3;
  padding: 14px 18px;
  background: rgba(79,109,245,0.95);
  color: var(--text-strong);
  border-radius: var(--radius); font-weight: 600;
  font-family: var(--font-display); font-size: var(--step-2);
  box-shadow: var(--shadow-royal);
  display: flex; flex-direction: column; align-items: flex-end;
  line-height: 1;
}
.story-block-badge small {
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.8; margin-top: 5px;
}
.story-block-tag {
  position: absolute; bottom: 24px; left: 24px; z-index: 3;
  color: var(--text-strong); font-size: var(--step--1);
  padding: 8px 14px;
  background: rgba(10,15,30,0.75); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
}
.story-block-copy h2 { margin-bottom: 24px; }
.story-block-copy > p { color: var(--text-muted); font-size: var(--step-1); line-height: 1.6; margin-bottom: 18px; }
.story-block-copy .signature {
  display: flex; align-items: center; gap: 14px;
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.story-block-copy .signature .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-deep));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-strong); font-family: var(--font-display);
  font-weight: 500; font-size: var(--step-1);
  box-shadow: 0 0 0 3px rgba(79,109,245,0.15);
}
.story-block-copy .signature .n { font-weight: 600; color: var(--text-strong); }
.story-block-copy .signature .r { font-size: var(--step--1); color: var(--text-muted); }
@media (max-width: 900px) {
  .story-block-grid { grid-template-columns: 1fr; gap: 50px; }
  .story-block-media { transform: none; }
}

/* Industries we serve · grid con imágenes */
.industries { padding: clamp(80px, 11vw, 130px) 0; background: linear-gradient(180deg, transparent, rgba(18,24,50,0.4)); }
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 22px;
  text-align: center; transition: all 0.3s var(--ease-out);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  position: relative; overflow: hidden;
}
.industry:hover { transform: translateY(-4px); border-color: var(--accent); }
.industry-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79,109,245,0.18), rgba(79,109,245,0.05));
  border: 1px solid rgba(79,109,245,0.3);
  border-radius: 14px; color: var(--accent);
}
.industry-icon svg { width: 26px; height: 26px; }
.industry h4 { font-family: var(--font-display); font-size: var(--step-1); margin: 0; font-weight: 500; }
.industry p { color: var(--text-muted); font-size: var(--step--1); margin: 0; line-height: 1.4; }
@media (max-width: 900px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .industries-grid { grid-template-columns: 1fr; } }

/* Dashboard mockup section */
.dashboard-block { padding: clamp(80px, 11vw, 130px) 0; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.dashboard-visual {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.dashboard-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dashboard-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(10,15,30,0.4));
  pointer-events: none;
}
.dashboard-copy h2 { margin-bottom: 24px; }
.dashboard-copy > p { color: var(--text-muted); font-size: var(--step-1); line-height: 1.6; margin-bottom: 24px; }
.dashboard-features { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.dashboard-feat {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; background: rgba(79,109,245,0.05);
  border: 1px solid rgba(79,109,245,0.15);
  border-radius: var(--radius);
}
.dashboard-feat-ico {
  width: 36px; height: 36px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-deep));
  color: var(--text-strong);
}
.dashboard-feat-ico svg { width: 18px; height: 18px; }
.dashboard-feat-text strong { display: block; color: var(--text-strong); font-weight: 600; margin-bottom: 2px; }
.dashboard-feat-text span { color: var(--text-muted); font-size: var(--step--1); }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ============== V3 FIXES ============== */

/* Fix selector idioma — más integrado, menos luminoso */
.lang-toggle {
  background: rgba(79,109,245,0.08);
  border: 1px solid rgba(79,109,245,0.25);
}
.lang-toggle button {
  color: var(--text-faint);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-toggle button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  box-shadow: 0 2px 10px -2px rgba(79,109,245,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Fix hero: h1 más balanceado, imagen con mejor máscara */
.hero h1 { font-size: clamp(2.4rem, 1.9rem + 2.2vw, 4.3rem); line-height: 1.04; }
.hero-sub { font-size: var(--step-0); max-width: 540px; }
@media (min-width: 960px) { .hero-sub { font-size: var(--step-1); } }

/* Imagen del hero: máscara más fuerte en el lado izquierdo + overlay */
.hero-bg img.hero-ambient {
  width: 55%; opacity: 0.22;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 20%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.85) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 20%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.85) 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(10,15,30,0.95) 35%, rgba(10,15,30,0.5) 60%, rgba(10,15,30,0.3) 100%);
  z-index: 1; pointer-events: none;
}
@media (max-width: 960px) {
  .hero-bg img.hero-ambient { opacity: 0.1; }
  .hero-bg::before { background: linear-gradient(180deg, rgba(10,15,30,0.9) 30%, rgba(10,15,30,0.75)); }
}

/* H2 de section-head más razonable en mobile */
.section-head h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); }
.metricas-head h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem); }
.cta-box h2 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 3.2rem); }

/* Dashboard image aspecto más razonable */
.dashboard-visual {
  max-height: 500px;
  aspect-ratio: 16/11;
}

/* Story block media no gigantesca */
.story-block-media { max-height: 560px; }

/* Industries: cards más compactas */
.industry { padding: 24px 18px; }
.industry h4 { font-size: var(--step-0); }
.industry p { font-size: 12px; }

/* ============== CHAT WIDGET PROPIO · DANIA Smart Assistant ============== */

.ally-launcher {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 95;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent) 60%, var(--accent-deep));
  border: none;
  cursor: pointer;
  box-shadow: 0 20px 50px -12px rgba(79,109,245,0.55), inset 0 1px 0 rgba(255,255,255,0.3);
  display: inline-flex; align-items: center; justify-content: center;
  color: #ffffff;
  transition: all 0.3s var(--ease-out);
}
.ally-launcher svg { width: 28px; height: 28px; }
.ally-launcher:hover { transform: translateY(-3px) scale(1.05); }
.ally-launcher::before {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%; background: var(--accent);
  opacity: 0.35; z-index: -1;
  animation: wa-pulse 2.5s var(--ease-out) infinite;
}
.ally-launcher.hidden { opacity: 0; pointer-events: none; transform: scale(0.6); }
.ally-launcher .ally-badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: var(--emerald);
  border: 2px solid var(--bg);
  border-radius: 50%;
  font-size: 10px; font-weight: 700;
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  animation: pulse 2s infinite;
}

.ally-panel {
  position: fixed;
  bottom: 100px; right: 24px;
  z-index: 96;
  width: min(380px, calc(100vw - 32px));
  max-height: min(600px, calc(100vh - 140px));
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 10px 25px -10px rgba(79,109,245,0.3);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.6) translateY(20px); opacity: 0;
  pointer-events: none;
  transition: all 0.35s var(--ease-out);
}
.ally-panel.open { transform: none; opacity: 1; pointer-events: auto; }

.ally-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
}
.ally-head-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px; font-weight: 500;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
}
.ally-head-avatar::after {
  content: ""; position: absolute; bottom: 2px; right: 2px;
  width: 10px; height: 10px; background: var(--emerald);
  border: 2px solid var(--accent-deep); border-radius: 50%;
}
.ally-head-info { flex: 1; }
.ally-head-info strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.ally-head-info small { display: block; font-size: 12px; opacity: 0.85; }
.ally-close {
  background: rgba(255,255,255,0.15); border: none;
  color: #ffffff;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.ally-close:hover { background: rgba(255,255,255,0.25); }
.ally-close svg { width: 16px; height: 16px; }

.ally-body {
  flex: 1; overflow-y: auto;
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg);
}
.ally-body::-webkit-scrollbar { width: 6px; }
.ally-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.ally-bubble {
  padding: 11px 15px; border-radius: 16px;
  font-size: 14px; line-height: 1.5;
  max-width: 85%;
  animation: popIn 0.35s var(--ease-out);
}
.ally-bubble.bot {
  background: var(--surface-raised); color: var(--text);
  align-self: flex-start; border-top-left-radius: 4px;
  border: 1px solid var(--border);
}
.ally-bubble.user {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  align-self: flex-end; border-top-right-radius: 4px;
}
.ally-bubble.typing {
  background: var(--surface-raised); align-self: flex-start;
  max-width: 60px; padding: 14px 16px;
  border: 1px solid var(--border);
}
.ally-bubble.typing span {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted); margin: 0 2px;
  animation: blink 1.4s infinite;
}
.ally-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.ally-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

.ally-quick {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.ally-quick button {
  background: rgba(79,109,245,0.08);
  color: var(--accent);
  border: 1px solid rgba(79,109,245,0.3);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.ally-quick button:hover { background: rgba(79,109,245,0.2); transform: translateY(-1px); }

.ally-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px;
  background: var(--surface);
}
.ally-foot input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text); font-size: 14px;
  outline: none; transition: all 0.2s;
  font-family: var(--font-body);
}
.ally-foot input:focus { border-color: var(--accent); }
.ally-foot button {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  border: none; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.ally-foot button:hover { transform: scale(1.05); }
.ally-foot button svg { width: 18px; height: 18px; }

.ally-note {
  padding: 8px 20px 12px; background: var(--surface);
  font-size: 11px; color: var(--text-faint); text-align: center;
}

/* Hide pre-qualify flotante cuando el chat está abierto */
@media (max-width: 700px) {
  .wa-float { bottom: 100px; }
  .ally-launcher { bottom: 24px; right: 24px; }
}

/* ============== V4 CRITICAL FIXES ============== */

/* FIX CRÍTICO: cualquier SVG dentro de un contenedor con tamaño fijo NO debe escaparse */
.dashboard-feat-ico svg, .ai-feat-ico svg, .industry-icon svg,
.ubi-item-icon svg, .score-feature-check svg, .prod-icon svg,
.serv-icon svg, .trust-item svg, .ai-result-ico svg,
.foot-social svg, .foot-col svg {
  width: auto; max-width: 100%; height: auto; max-height: 100%;
}
/* Explicit sizes para evitar expansión */
.dashboard-feat-ico { width: 36px; height: 36px; flex-shrink: 0; }
.dashboard-feat-ico svg { width: 18px !important; height: 18px !important; }
.ai-feat-ico { width: 44px; height: 44px; flex-shrink: 0; }
.ai-feat-ico svg { width: 22px !important; height: 22px !important; }
.industry-icon { width: 56px; height: 56px; flex-shrink: 0; }
.industry-icon svg { width: 26px !important; height: 26px !important; }
.prod-icon { width: 56px; height: 56px; flex-shrink: 0; }
.prod-icon svg { width: 26px !important; height: 26px !important; }
.score-feature-check { width: 26px; height: 26px; flex-shrink: 0; }
.score-feature-check svg { width: 14px !important; height: 14px !important; }
.ai-result-ico { width: 36px; height: 36px; flex-shrink: 0; }
.ai-result-ico svg { width: 18px !important; height: 18px !important; }
.ubi-item-icon { width: 40px; height: 40px; flex-shrink: 0; }
.ubi-item-icon svg { width: 18px !important; height: 18px !important; }

/* HERO: imagen aún más suave, texto SIEMPRE legible */
.hero-bg img.hero-ambient {
  width: 50% !important; opacity: 0.14 !important;
  object-position: right center;
}
.hero-bg::before {
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 40%, rgba(10,15,30,0.9) 55%, rgba(10,15,30,0.75) 100%) !important;
}
@media (max-width: 960px) {
  .hero-bg img.hero-ambient { opacity: 0.08 !important; width: 100% !important; }
  .hero-bg::before { background: linear-gradient(180deg, rgba(10,15,30,0.92), rgba(10,15,30,0.8)) !important; }
}

/* SELECTOR IDIOMA: forzar colores oscuros, no blanco */
.lang-toggle {
  background: rgba(79,109,245,0.1) !important;
  border: 1px solid rgba(79,109,245,0.35) !important;
}
.lang-toggle button {
  color: #9AA3B8 !important;
  background: transparent !important;
}
.lang-toggle button.active {
  background: linear-gradient(135deg, #4F6DF5, #2546C7) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 10px -2px rgba(79,109,245,0.6) !important;
}

/* ============== V5 — Hero image visible + chat sin solapamiento ============== */

/* HERO: imagen visible pero enfocada 100% derecha para que las caras queden donde está la card */
.hero-bg img.hero-ambient {
  width: 55% !important;
  opacity: 0.42 !important;
  object-position: 100% center !important;
  filter: contrast(1.08) saturate(1.0) !important;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 20%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.9) 65%, rgba(0,0,0,1) 100%) !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 20%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.9) 65%, rgba(0,0,0,1) 100%) !important;
}
.hero-bg::before {
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 42%, rgba(10,15,30,0.88) 55%, rgba(10,15,30,0.4) 80%, rgba(10,15,30,0.2) 100%) !important;
}
@media (max-width: 960px) {
  .hero-bg img.hero-ambient { opacity: 0.1 !important; width: 100% !important; object-position: center !important; }
  .hero-bg::before { background: linear-gradient(180deg, rgba(10,15,30,0.95), rgba(10,15,30,0.82)) !important; }
}

/* ELIMINAR el pre-qualify flotante — chat Ally queda único abajo-derecha */
.wa-float { display: none !important; }

/* Chat Ally — asegurar que queda abajo derecha claro */
.ally-launcher {
  bottom: 24px !important;
  right: 24px !important;
  z-index: 95 !important;
}
.ally-panel {
  bottom: 100px !important;
  right: 24px !important;
}

/* ============== V7 FINAL FIXES ============== */

/* HERO: imagen más visible, foco en el lado derecho, texto siempre legible */
.hero-bg img.hero-ambient {
  width: 60% !important;
  opacity: 0.55 !important;
  object-position: 100% center !important;
  filter: contrast(1.05) !important;
  mask-image: linear-gradient(90deg,
    transparent 0%, transparent 12%,
    rgba(0,0,0,0.5) 32%, rgba(0,0,0,0.9) 55%, rgba(0,0,0,1) 100%) !important;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%, transparent 12%,
    rgba(0,0,0,0.5) 32%, rgba(0,0,0,0.9) 55%, rgba(0,0,0,1) 100%) !important;
}
.hero-bg::before {
  background: linear-gradient(90deg,
    var(--bg) 0%, var(--bg) 38%,
    rgba(10,15,30,0.75) 52%, rgba(10,15,30,0.3) 72%, rgba(10,15,30,0.1) 100%) !important;
}

/* Chat Ally close: mejor contraste del botón X */
.ally-close {
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
}
.ally-close svg {
  pointer-events: none; /* clicks siempre al button */
}
