/* ============================================================
   ENFOQUE COMERCIAL — Home
   Hero con demo de conversación, pruebas, el sistema e industrias.
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--ec-navy); color: var(--ec-white);
}
.hero__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.hero__grid {
  position: relative; flex: 1;
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: calc(80px + clamp(40px, 8vh, 104px)) var(--gutter) clamp(40px, 6vh, 72px);
  display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(40px, 5.6vw, 80px); align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0,7fr) minmax(0,5fr); }
}

.hero__kicker {
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; line-height: 1.45;
  color: var(--ec-on-navy-dim);
  animation: ecRise .8s var(--ease-out) .05s both;
}
.hero__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ec-blue); animation: ecHalo 2.4s ease-out infinite; }

.hero__title {
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(36px, calc(5.2vw + 2px), 74px); line-height: 1.04; letter-spacing: -.025em;
}
.hero__title span {
  display: block;
  color: var(--ec-white);
  transition: color .7s var(--ease);
  animation: ecRise .8s var(--ease-out) both;
}
.hero__title span:nth-child(1) { animation-delay: .15s; }
.hero__title span:nth-child(2) { animation-delay: .25s; }
.hero__title span:nth-child(3) { animation-delay: .35s; }
.hero__title span.is-dim { color: var(--ec-on-navy-faint); }

.hero__rule {
  margin-top: 32px; width: 120px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #1C80BD 0%, #71A3CD 100%);
  animation: ecRise .8s var(--ease-out) .42s both;
}
.hero__lead {
  margin-top: 28px; max-width: 520px;
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55;
  color: var(--ec-on-navy-dim);
  text-wrap: pretty;
  animation: ecRise .8s var(--ease-out) .48s both;
}
.hero__cta {
  margin-top: 40px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  animation: ecRise .8s var(--ease-out) .56s both;
}

/* ---------- Demo: elegí un rubro ---------- */
.demo { animation: ecRise .9s var(--ease-out) .5s both; }
.demo__label { margin-bottom: 12px; color: var(--ec-blue-soft); }
.demo__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  position: relative; overflow: hidden;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--ec-navy-hair);
  background: transparent; color: var(--ec-on-navy-dim);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.tab:hover { border-color: var(--ec-blue-soft); }
.tab.is-on { background: var(--ec-blue); border-color: var(--ec-blue); color: var(--ec-white); }
.tab.is-on:hover { border-color: var(--ec-blue-soft); }
.tab__label { position: relative; }
.tab__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: rgba(255,255,255,.8);
  transform-origin: left center;
  animation: ecFill 9200ms linear both;
}
.demo.is-paused .tab__bar { animation-play-state: paused; }

.chat {
  margin-top: 14px; overflow: hidden;
  border: 1px solid var(--ec-navy-hair); border-radius: 12px;
  background: rgba(31,36,64,.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.chat__head {
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--ec-navy-hair);
}
.chat__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat__avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ec-blue); color: var(--ec-white);
  font-family: var(--fh); font-weight: 700; font-size: 15px;
}
.chat__name { font-size: 14px; font-weight: 600; color: var(--ec-white); }
.chat__channel { font-size: 12px; color: var(--ec-on-navy-faint); }
.chat__tag { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--ec-on-navy-faint); }
.chat__body {
  min-height: 372px;
  padding: 22px 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
}

.msg { max-width: 84%; animation: ecRise .45s var(--ease-out) both; }
.msg--in { align-self: flex-start; }
.msg--out { align-self: flex-end; text-align: right; }
.msg__bubble { padding: 11px 14px; font-size: 15px; line-height: 1.45; color: var(--ec-white); text-align: left; }
.msg--in .msg__bubble { background: var(--ec-navy-hair); border-radius: 14px 14px 14px 4px; }
.msg--out .msg__bubble { background: var(--ec-blue); border-radius: 14px 14px 4px 14px; }
.msg__meta { margin-top: 5px; font-size: 11px; color: var(--ec-on-navy-faint); }

.typing {
  align-self: flex-end;
  display: flex; gap: 5px;
  padding: 14px 16px; border-radius: 14px 14px 4px 14px;
  background: var(--ec-blue);
  animation: ecRise .35s ease both;
}
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ec-white); animation: ecDot 1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }

.crm { display: flex; flex-direction: column; gap: 9px; padding: 4px 2px 0; animation: ecRise .5s var(--ease-out) both; }
.crm__row { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--ec-on-navy-dim); }
.crm__row strong { font-weight: 600; color: var(--ec-white); }
.crm__ring { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ec-blue-soft); }

.alert {
  margin-top: auto;
  padding: 14px 16px; border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--ec-white);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  animation: ecRise .5s var(--ease-out) both;
}
.alert__body { flex: 1 1 180px; min-width: 0; }
.alert__label { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--ec-blue); }
.alert__text { margin-top: 4px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ec-navy); }
.alert__action {
  flex: none;
  padding: 8px 12px; border-radius: 6px;
  background: var(--ec-navy); color: var(--ec-white);
  font-size: 12px; font-weight: 600;
}

/* ---------- Pruebas ---------- */
.proofs { padding: clamp(64px, 9vw, 110px) 0; background: var(--ec-white); }
.proofs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 4vw, 56px); }
.proof { padding-top: 24px; border-top: 2px solid var(--ec-navy); }
.proof__num {
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(44px, 4.4vw, 64px); line-height: 1; letter-spacing: -.02em;
  color: var(--ec-blue);
  font-variant-numeric: tabular-nums;
}
.proof__text { margin-top: 16px; max-width: 340px; font-size: 17px; line-height: 1.5; color: var(--ec-ink); }
.proof__src { margin-top: 10px; font-size: 13px; color: var(--ec-muted); }
.strike { position: relative; white-space: nowrap; }
.strike__line {
  position: absolute; left: -2px; top: 55%;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--ec-blue);
  transition: width .7s var(--ease) .5s;
}
.proofs.is-in .strike__line { width: calc(100% + 4px); }

.proofs__awards {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 20px;
  border-top: 1px solid var(--ec-border);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px;
}
.proofs__awards-text { font-size: 15px; line-height: 1.5; color: var(--ec-ink); }
/* ---------- Clientes: banda oscura con dos filas de logos que pasan en sentidos opuestos ---------- */
.clientes { padding: clamp(64px, 8vw, 104px) 0; background: var(--ec-navy); color: var(--ec-white); overflow: hidden; }
.clientes__eyebrow { color: var(--ec-blue-soft); }
.clientes__titulo { color: var(--ec-white); }
.clientes__lead { margin-top: 16px; max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--ec-on-navy-dim); }
.clientes__franjas { margin-top: clamp(40px, 5vw, 56px); display: grid; gap: clamp(28px, 3.5vw, 40px); }
.clientes__franja {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.clientes__pista { display: flex; width: max-content; animation: clientesPasan 100s linear infinite; }
.clientes__pista--inversa { animation-direction: reverse; }
.clientes__franja:hover .clientes__pista { animation-play-state: paused; }
.clientes__pista ul { display: flex; align-items: center; gap: clamp(48px, 5vw, 72px); margin: 0; padding: 0 clamp(48px, 5vw, 72px) 0 0; list-style: none; }
/* Los logos están en navy: el filtro los pasa a blanco sobre la banda */
.clientes__pista img { display: block; max-width: none; width: auto; height: calc(var(--h) * 1px); filter: brightness(0) invert(1); opacity: .8; transition: opacity .25s; }
.clientes__pista img:hover { opacity: 1; }
@keyframes clientesPasan { to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .clientes__pista img { height: calc(var(--h) * .75px); }
}
@media (prefers-reduced-motion: reduce) {
  .clientes__franja { -webkit-mask-image: none; mask-image: none; }
  .clientes__pista { width: auto; padding: 0 var(--gutter); animation: none; }
  .clientes__pista ul { flex-wrap: wrap; justify-content: center; gap: 28px 44px; padding: 0; }
  .clientes__pista ul[aria-hidden="true"] { display: none; }
}

/* ---------- Títulos de sección ---------- */
.section-title {
  margin-top: 16px; max-width: 820px;
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.02em;
  text-wrap: balance;
}

/* ---------- El sistema ---------- */
.sys { padding: clamp(72px, 10vw, 128px) 0; background: var(--ec-blue); color: var(--ec-white); }
.sys .eyebrow, .sys .section-title { color: var(--ec-white); }

.sys__svg { display: none; width: 100%; height: auto; margin-top: 64px; overflow: visible; }
.sys__path {
  fill: none; stroke: var(--ec-white); stroke-width: 3px; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease) .2s;
}
.sys__tip { fill: var(--ec-white); opacity: 0; transition: opacity .4s ease 1.8s; }
.sys__halo { fill: rgba(255,255,255,.18); opacity: 0; transition: opacity .3s; }
.sys__node {
  fill: var(--ec-blue); stroke: var(--ec-white); stroke-width: 4px;
  opacity: 0;
  transition: opacity .4s ease var(--d, .2s), fill .25s ease 0s;
}
.sys.is-in .sys__path { stroke-dashoffset: 0; }
.sys.is-in .sys__tip, .sys.is-in .sys__node { opacity: 1; }
.sys[data-hover="0"] .sys__halo[data-i="0"],
.sys[data-hover="1"] .sys__halo[data-i="1"],
.sys[data-hover="2"] .sys__halo[data-i="2"] { opacity: 1; }
.sys[data-hover="0"] .sys__node[data-i="0"],
.sys[data-hover="1"] .sys__node[data-i="1"],
.sys[data-hover="2"] .sys__node[data-i="2"] { fill: var(--ec-white); }

.sys__cols { margin-top: 32px; display: grid; grid-template-columns: minmax(0,1fr); gap: 48px; }
.sys__ring { width: 22px; height: 22px; margin-bottom: 18px; border-radius: 50%; border: 3px solid var(--ec-white); }
.sys__step { font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; }
.sys__name { margin-top: 12px; font-family: var(--fh); font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.01em; color: var(--ec-white); }
.sys__text { margin-top: 12px; max-width: 340px; font-size: 17px; line-height: 1.55; }
.sys__links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.sys__col > .ulink { margin-top: 20px; }

@media (min-width: 960px) {
  .sys__svg { display: block; }
  .sys__cols { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; }
  .sys__col { padding-right: 40px; }
  .sys__ring { display: none; }
}

/* Link subrayado sobre azul */
.ulink {
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255,255,255,.5);
  font-size: 15px; font-weight: 600; color: var(--ec-white);
  transition: gap .25s var(--ease-out), border-color .25s;
}
.ulink:hover { gap: 14px; border-bottom-color: var(--ec-white); color: var(--ec-white); }

/* ---------- Industrias ---------- */
.ind { padding: clamp(72px, 10vw, 128px) 0; background: var(--ec-card); }
.ind .section-title { color: var(--ec-navy); }
.ind__grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 0 48px;
}
.ind-row {
  display: grid; grid-template-columns: 40px minmax(0,1fr) 44px; align-items: center; gap: 18px;
  padding: 26px 12px;
  border-top: 1px solid var(--ec-border); border-radius: 8px;
  color: var(--ec-navy);
  transition: background .3s ease;
}
.ind-row:hover { background: var(--ec-white); color: var(--ec-navy); }
.ind-row__num { font-family: var(--fh); font-weight: 700; font-size: 15px; color: var(--ec-blue); }
.ind-row__name { display: block; font-family: var(--fh); font-weight: 700; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -.01em; }
.ind-row__pain { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ec-muted); }
.ind-row__arrow {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ec-border);
  background: var(--ec-white); color: var(--ec-blue);
  font-size: 18px;
  transition: background .25s, border-color .25s, color .25s, transform .3s var(--ease-out);
}
.ind-row:hover .ind-row__arrow { background: var(--ec-blue); border-color: var(--ec-blue); color: var(--ec-white); transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .hero__dot { animation: none; }
  .sys__path, .sys__tip, .sys__node, .strike__line { transition: none; }
}
