/* =========================================================
   AGENT VIRTUAL AI — Landing Page
   Dirección de diseño: "Neural Interface"
   Fondo grafito oscuro + gradiente violeta-cian-magenta
   Tipografía: Space Grotesk (titulares) + Inter (cuerpo)
   ========================================================= */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- DESIGN TOKENS ---------- */
:root {
  --bg: #0A0E1A;
  --bg-alt: #0E1424;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #F4F5F9;
  --text-dim: #9CA3B4;
  --text-dimmer: #6B7280;

  --violet: #7C3AED;
  --cyan: #06B6D4;
  --magenta: #EC4899;
  --gradient: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 60%, var(--magenta) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(124,58,237,.15), rgba(6,182,212,.15));

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.25);
  --container: 1180px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5); }
.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--cyan); background: rgba(6, 182, 212, 0.08); }
.btn--ghost { color: var(--text-dim); padding: 13px 14px; }
.btn--ghost:hover { color: var(--text); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--full { width: 100%; }
.btn__arrow { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

.icon-check { width: 18px; height: 18px; stroke: var(--cyan); stroke-width: 3; fill: none; flex-shrink: 0; }

/* ---------- HEADER ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  border-color: var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 19px; font-weight: 500; }
.logo strong { font-weight: 700; }

.nav { display: flex; gap: 32px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--text-dim); transition: color .2s ease; }
.nav a:hover { color: var(--text); }

.header__cta { display: flex; align-items: center; gap: 6px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; z-index: 110; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.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); }

.nav-mobile {
  position: fixed; inset: 0; top: 0;
  background: rgba(10, 14, 26, 0.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transform: translateY(-100%); opacity: 0; transition: transform .35s ease, opacity .35s ease;
  z-index: 105;
}
.nav-mobile.is-open { transform: translateY(0); opacity: 1; }
.nav-mobile a { font-family: var(--font-head); font-size: 22px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 168px 0 110px;
  overflow: hidden;
}
.hero__bg-image {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../assets/hero-bg.jpg');
  background-size: cover; background-position: center;
  opacity: 0.4;
  filter: saturate(1.15) contrast(1.05);
  animation: heroBgZoom 26s ease-in-out infinite alternate;
}
.hero__bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(115deg, var(--bg) 0%, var(--bg) 32%, rgba(10,14,26,0.75) 52%, rgba(10,14,26,0.35) 72%, rgba(10,14,26,0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}
@keyframes heroBgZoom {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1%, -1%); }
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; z-index: 1; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.hero__glow--1 { width: 480px; height: 480px; background: rgba(124, 58, 237, 0.35); top: -160px; left: -120px; }
.hero__glow--2 { width: 420px; height: 420px; background: rgba(6, 182, 212, 0.3); bottom: -180px; right: -100px; }

.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}

.hero__copy { text-align: left; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-dim); margin-bottom: 26px;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 10px var(--cyan); }

.hero__title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  margin-bottom: 20px;
}
.hero__subtitle { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--text-dim); max-width: 520px; margin: 0 0 28px; }

.hero__bullets { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 34px; }
.hero__bullets li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }

.hero__ctas { display: flex; justify-content: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero__trust { font-size: 13px; color: var(--text-dimmer); margin-bottom: 16px; }
.hero__logos { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 24px; }
.hero__logos span { font-family: var(--font-head); font-size: 13px; letter-spacing: 0.08em; color: var(--text-dimmer); }

/* ---------- HERO VISUAL (chat flotante) ---------- */
.hero__visual { position: relative; }
.hero__visual-card {
  background: var(--surface-strong); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), var(--shadow-glow);
  animation: floatCard 6s ease-in-out infinite;
}
.hero__visual-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.03em;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border);
}
.hero__visual-dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 8px #22d3ee; }
.hero__visual-time { font-size: 11.5px; color: var(--cyan); text-align: right; margin-top: 12px; }
.chat-mock--floating { background: none; border: none; padding: 0; opacity: 1; }

.hero__visual-badge {
  position: absolute; padding: 10px 16px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.hero__visual-badge--1 { top: -18px; right: 12%; animation: floatBadge 5s ease-in-out infinite; }
.hero__visual-badge--2 { bottom: -16px; left: -6%; animation: floatBadge 5.5s ease-in-out infinite reverse; }

@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- STATS ---------- */
.stats { padding: 50px 0 20px; position: relative; z-index: 2; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 40px 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.stat { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.stat__number { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { font-size: 13.5px; color: var(--text-dim); }
.stats__note { text-align: center; font-size: 12px; color: var(--text-dimmer); margin-top: 14px; }

/* ---------- SECTION HEAD ---------- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 16px; }

section { padding: 100px 0; position: relative; }

/* ---------- SECCIONES CON BORDE DIAGONAL (firma visual distintiva) ---------- */
.section--diagonal {
  clip-path: polygon(0 36px, 100% 0, 100% calc(100% - 36px), 0 100%);
  padding-top: 140px;
  padding-bottom: 140px;
  margin-top: -36px;
  margin-bottom: -36px;
}

/* ---------- PROBLEM ---------- */
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.problem__content h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 18px; }
.problem__content p { color: var(--text-dim); margin-bottom: 18px; }
.problem__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.problem__list li { padding-left: 22px; position: relative; color: var(--text-dim); }
.problem__list li::before { content: '×'; position: absolute; left: 0; color: var(--magenta); font-weight: 700; }
.problem__insight { font-family: var(--font-head); font-size: 19px; font-weight: 600; color: var(--text); }

.problem__visual { display: flex; flex-direction: column; gap: 20px; }
.chat-mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; opacity: 0.6; }
.chat-mock--good { opacity: 1; border-color: rgba(6, 182, 212, 0.35); box-shadow: 0 0 30px rgba(6, 182, 212, 0.12); }
.chat-mock__bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 14px; margin-bottom: 10px; }
.chat-mock__bubble--in { background: var(--surface-strong); border: 1px solid var(--border); }
.chat-mock__bubble--wait { background: var(--surface-strong); border: 1px solid var(--border); color: var(--text-dimmer); margin-left: auto; }
.chat-mock__bubble--out { background: var(--gradient); color: #fff; margin-left: auto; }
.chat-mock__time { font-size: 11.5px; color: var(--text-dimmer); text-align: right; }
.chat-mock__time--good { color: var(--cyan); }
.dots i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--text-dimmer); margin-left: 2px; animation: blink 1.4s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* ---------- HOW IT WORKS (stepper conectado) ---------- */
.how { background: var(--bg-alt); }
.stepper { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stepper__step { position: relative; z-index: 1; padding-right: 12px; }

/* Conector: va del borde derecho de este círculo (44px) hasta el borde
   izquierdo del siguiente círculo, cruzando exactamente el gap de 28px. */
.stepper__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 44px;
  width: calc(100% - 16px); /* 100% de la celda - 44px del círculo + 28px del gap */
  height: 2px;
  opacity: 0.6;
  z-index: 0;
}
.stepper__step:nth-child(1)::after { background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.stepper__step:nth-child(2)::after { background: linear-gradient(90deg, var(--cyan), var(--magenta)); }
.stepper__circle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-alt), var(--bg-alt)), var(--gradient);
  background-origin: border-box; background-clip: padding-box, border-box;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--text);
  margin-bottom: 18px;
}
.stepper__step h3 { font-size: 19px; margin-bottom: 10px; }
.stepper__step p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- BENEFITS (bento grid) ---------- */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "a a b c"
    "a a d d"
    "e e f f";
  gap: 20px;
}
.benefits__grid .benefit-card:nth-child(1) { grid-area: a; }
.benefits__grid .benefit-card:nth-child(2) { grid-area: b; }
.benefits__grid .benefit-card:nth-child(3) { grid-area: c; }
.benefits__grid .benefit-card:nth-child(4) { grid-area: d; }
.benefits__grid .benefit-card:nth-child(5) { grid-area: e; }
.benefits__grid .benefit-card:nth-child(6) { grid-area: f; }

.benefit-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: transform .3s ease, border-color .3s ease, background .3s ease; display: flex; flex-direction: column; }
.benefit-card:hover { transform: translateY(-4px); border-color: rgba(6, 182, 212, 0.35); background: var(--surface-strong); }
.benefit-card__icon { font-size: 26px; margin-bottom: 14px; }
.benefit-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.benefit-card p { color: var(--text-dim); font-size: 14.5px; }

.benefit-card--flagship {
  justify-content: center;
  background: linear-gradient(160deg, rgba(124,58,237,0.12), rgba(6,182,212,0.08));
  border-color: rgba(124, 58, 237, 0.3);
}
.benefit-card--flagship .benefit-card__icon { font-size: 34px; }
.benefit-card--flagship h3 { font-size: 22px; }
.benefit-card--flagship p { font-size: 15px; margin-bottom: 18px; }
.benefit-card__mini-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.benefit-card__mini-chips span {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-strong); border: 1px solid var(--border); color: var(--text-dim);
}

/* ---------- INTEGRATIONS ---------- */
.integrations { background: var(--bg-alt); }
.integrations__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.chip {
  padding: 12px 22px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: border-color .3s ease, color .3s ease, transform .3s ease;
}
.chip:hover { border-color: transparent; background: var(--gradient); color: #fff; transform: translateY(-2px); }

/* ---------- PRICING ---------- */
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 28px; display: flex; flex-direction: column; position: relative;
  transition: transform .3s ease, border-color .3s ease;
}
.price-card:hover { transform: translateY(-4px); }
.price-card--featured { border: 1px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box; box-shadow: var(--shadow-glow); }
.price-card__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; letter-spacing: 0.03em;
}
.price-card h3 { font-size: 20px; margin-bottom: 6px; }
.price-card__desc { color: var(--text-dim); font-size: 13.5px; margin-bottom: 20px; min-height: 40px; }
.price-card__price { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; margin-bottom: 22px; }
.price-card__price span { }
.price-card__price + .btn { margin-top: auto; }
.price-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-card li { font-size: 14px; color: var(--text-dim); padding-left: 20px; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }

/* ---------- INHOUSE CARD (implementación llave en mano) ---------- */
.inhouse-card {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
  padding: 34px 38px;
  border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.inhouse-card__info { flex: 1; min-width: 260px; }
.inhouse-card__info h3 {
  font-size: 20px; margin-bottom: 10px;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.inhouse-card__info p { color: var(--text-dim); font-size: 14.5px; max-width: 560px; }
.inhouse-card__price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.inhouse-card__amount { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.inhouse-card__amount span { }
.inhouse-card__note { font-size: 12.5px; color: var(--text-dimmer); margin-bottom: 12px; }

/* ---------- TESTIMONIALS (marquee) ---------- */
.marquee { position: relative; overflow: hidden; }
.marquee__track {
  display: flex; gap: 24px; width: max-content;
  animation: marqueeScroll 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__edge { position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.marquee__edge--left { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee__edge--right { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.testimonial-card { width: 380px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; gap: 22px; }
.testimonial-card p { font-size: 14.5px; color: var(--text); }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gradient); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.testimonial-card__author strong { display: block; font-size: 14px; }
.testimonial-card__author span { font-size: 12.5px; color: var(--text-dimmer); }

/* ---------- FAQ ---------- */
.faq__wrap { max-width: 760px; }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; text-align: left; font-family: var(--font-head); font-size: 16px; font-weight: 500;
}
.accordion__q span { font-size: 20px; color: var(--cyan); transition: transform .3s ease; }
.accordion__item.is-open .accordion__q span { transform: rotate(45deg); }
.accordion__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion__a p { padding: 0 4px 22px; color: var(--text-dim); font-size: 14.5px; }

/* ---------- CTA FINAL ---------- */
.cta-final__inner {
  text-align: center; padding: 70px 40px; border-radius: var(--radius-lg);
  background: var(--gradient-soft); border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cta-final__inner h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.cta-final__inner p { color: var(--text-dim); max-width: 480px; margin: 0 auto 32px; }
.cta-final__buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 70px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer__brand p { color: var(--text-dim); font-size: 13.5px; margin-top: 14px; max-width: 260px; }
.footer__col h4 { font-size: 14px; margin-bottom: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--text-dim); font-size: 13.5px; transition: color .2s ease; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 26px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-dimmer);
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { color: var(--text-dimmer); }
.footer__legal a:hover { color: var(--text-dim); }

/* ---------- FLOATING DEMO BUTTON ---------- */
.floating-demo {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45);
  transition: transform .25s ease;
}
.floating-demo svg { stroke: currentColor; stroke-width: 2; fill: none; }
.floating-demo:hover { transform: scale(1.08); }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(5, 7, 14, 0.75); backdrop-filter: blur(6px); }
.modal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 480px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; text-align: center;
}
.modal__panel h3 { font-size: 20px; margin-bottom: 10px; }
.modal__panel p { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }
.modal__close { position: absolute; top: 16px; right: 18px; font-size: 24px; color: var(--text-dim); }
.modal__placeholder {
  border: 1px dashed var(--border); border-radius: var(--radius); padding: 30px 20px;
  color: var(--text-dimmer); font-size: 13.5px; background: var(--surface);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .problem__grid { grid-template-columns: 1fr; gap: 40px; }
  .pricing__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  /* Hero: pasa de dos columnas a apilado */
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { text-align: center; }
  .hero__bullets, .hero__ctas, .hero__logos { align-items: center; justify-content: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__visual { max-width: 460px; margin: 0 auto; }

  /* Stepper: pasa de horizontal a vertical con línea a la izquierda */
  .stepper { grid-template-columns: 1fr; gap: 36px; padding-left: 8px; }
  .stepper__line { top: 0; bottom: 0; left: 22px; right: auto; width: 2px; height: auto; }

  /* Beneficios: bento colapsa a una columna */
  .benefits__grid { grid-template-columns: 1fr; grid-template-areas: none; }
  .benefits__grid .benefit-card { grid-area: auto !important; }

  /* Secciones diagonales: se suavizan para no comerse el texto en pantallas medianas */
  .section--diagonal { padding-top: 100px; padding-bottom: 100px; }
}

@media (max-width: 560px) {
  section { padding: 70px 0; }
  .hero { padding: 140px 0 60px; }
  .stats__grid { grid-template-columns: 1fr 1fr; padding: 28px 18px; gap: 24px 12px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .cta-final__inner { padding: 50px 22px; }
  .testimonial-card { width: 300px; }
  .hero__visual-badge { display: none; }
  .inhouse-card { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .inhouse-card__price { align-items: flex-start; width: 100%; }
  .inhouse-card__price .btn { width: 100%; }

  /* Diagonales muy sutiles en pantallas pequeñas para no arriesgar el texto */
  .section--diagonal {
    clip-path: polygon(0 18px, 100% 0, 100% calc(100% - 18px), 0 100%);
    padding-top: 90px; padding-bottom: 90px; margin-top: -18px; margin-bottom: -18px;
  }
}
