/* ═══════════════════════════════════════════════════════════════
   EXTRAS — animated tech visuals
   ═══════════════════════════════════════════════════════════════ */

/* Hero tech viz */
.hero-tech-viz {
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.flow-svg {
  width: 100%;
  height: 80px;
  display: block;
}
.viz-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.viz-tag { display: inline-flex; align-items: center; gap: 0.4rem; }
.viz-tag .dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.viz-tag:nth-child(2) .dot { background: var(--ink); }

/* Visual Band (Ken Burns) */
#visual-band {
  padding: 0;
  height: 60vh;
  min-height: 420px;
  max-height: 600px;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.vb-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100%;
  gap: 0;
}
.vb-tile {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.vb-tile:last-child { border-right: none; }
.vb-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.55) contrast(1.1);
  transition: filter 0.6s ease;
  animation: kenburns 20s ease-in-out infinite alternate;
}
.vb-tile:nth-child(2) img { animation-delay: -5s; animation-duration: 22s; }
.vb-tile:nth-child(3) img { animation-delay: -10s; animation-duration: 24s; }
.vb-tile:nth-child(4) img { animation-delay: -15s; animation-duration: 26s; }
.vb-tile:hover img {
  filter: grayscale(0) brightness(0.7) contrast(1.1);
}
@keyframes kenburns {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.18) translate(-2%, 2%); }
}
.vb-tile-label {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}
.vb-tile-label span {
  font-size: 0.7rem;
  color: var(--red);
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(217,32,56,0.4);
  border-radius: 999px;
}
.vb-overlay-text {
  position: absolute;
  top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
  background: rgba(10,10,10,0.55);
  padding: 1.5rem 0;
  backdrop-filter: blur(2px);
}
.vb-marquee {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}
.vb-marquee span { padding-right: 0; }

@media (max-width: 800px) {
  .vb-track { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr 1fr; }
  #visual-band { height: 70vh; }
}

/* Bento image (AI featured) */
.bento-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.bento-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28,28,28,0.55) 0%, rgba(28,28,28,0.2) 35%, rgba(28,28,28,0.7) 70%, rgba(28,28,28,0.92) 100%);
  z-index: 1;
}
.bento-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: grayscale(0.5) brightness(0.75) contrast(1.05);
  transition: transform 0.6s ease, opacity 0.4s;
  animation: slowZoom 24s ease-in-out infinite alternate;
}
.bento-1:hover .bento-image img {
  opacity: 0.5;
  filter: grayscale(0) brightness(0.7) contrast(1.1);
}
@keyframes slowZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.18); }
}
.bento-1 > *:not(.bento-image):not(.big-glyph) { position: relative; z-index: 1; }
.bento-1 .big-glyph { z-index: 0; }

/* DigMental circuit bg */
.dm-circuit {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
.dm-circuit svg {
  width: 100%; height: 100%;
}
#digmental .container { position: relative; z-index: 1; }

/* Live Ops band */
#liveops {
  position: relative;
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(5rem, 9vw, 9rem);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.liveops-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.liveops-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.8) brightness(0.25) contrast(1.1);
  animation: kenburns 30s ease-in-out infinite alternate;
}
.liveops-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.95) 100%),
              radial-gradient(circle at 70% 30%, rgba(217,32,56,0.15), transparent 50%);
}
.liveops-inner { position: relative; z-index: 1; }
.liveops-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.live-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  background: rgba(217,32,56,0.15);
  border: 1px solid rgba(217,32,56,0.4);
  border-radius: 999px;
  color: #fff;
  font-weight: 500;
}
.live-pill .dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulseDot 1.4s ease-in-out infinite;
}
.liveops-h {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 3rem;
  max-width: 22ch;
  color: #fff;
}
.liveops-h em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}
.liveops-stream {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  max-width: 720px;
  border-left: 2px solid var(--red);
  padding-left: 1.5rem;
}
.stream-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  flex-wrap: wrap;
  animation: streamSlide 0.6s cubic-bezier(0.2,0,0,1) both;
}
.stream-line:nth-child(1) { animation-delay: 0s; }
.stream-line:nth-child(2) { animation-delay: 0.1s; }
.stream-line:nth-child(3) { animation-delay: 0.2s; }
.stream-line:nth-child(4) { animation-delay: 0.3s; }
.stream-line:nth-child(5) { animation-delay: 0.4s; }
@keyframes streamSlide {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}
.st-time { color: var(--muted-dark); font-size: 0.78rem; min-width: 70px; }
.st-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.st-dot.ok { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.5); }
.st-dot.red { background: var(--red); box-shadow: 0 0 8px rgba(217,32,56,0.5); animation: pulseDot 1.4s ease-in-out infinite; }
.st-tag {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--muted-dark);
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
}
/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Tech stack bg */
#tech { position: relative; overflow: hidden; }
.tech-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  pointer-events: none;
}
.tech-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.3);
  animation: slowZoom 30s ease-in-out infinite alternate;
}
#tech .container { position: relative; z-index: 1; }

/* FAQ side strip — 3 vertical images flowing up */
#faq { position: relative; overflow: hidden; }
.faq-side-strip {
  position: absolute;
  right: -2%;
  top: 0;
  bottom: 0;
  width: 32%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
}
.faq-side-strip img {
  width: 100%;
  height: 33.33%;
  object-fit: cover;
  filter: grayscale(0.9) contrast(1.2);
  animation: floatUp 18s ease-in-out infinite alternate;
}
.faq-side-strip img:nth-child(2) { animation-delay: -6s; }
.faq-side-strip img:nth-child(3) { animation-delay: -12s; }
@keyframes floatUp {
  0% { transform: translateY(0) scale(1.02); }
  100% { transform: translateY(-3%) scale(1.08); }
}
#faq .container { position: relative; z-index: 1; }
@media (max-width: 800px) { .faq-side-strip { display: none; } }

/* ═══════════════════════════════════════════════════════════════
   ROUND 2 — More images & motion
   ═══════════════════════════════════════════════════════════════ */

/* Manifesto parallax bg */
#manifesto { position: relative; overflow: hidden; }
.manifesto-bg {
  position: absolute;
  inset: -10% -5%;
  z-index: 0;
  opacity: 0.07;
  pointer-events: none;
}
.manifesto-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2);
  animation: slowZoom 30s ease-in-out infinite alternate;
}
#manifesto .container { position: relative; z-index: 1; }

.manifesto-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 2.5rem;
  max-width: 380px;
}
.mini-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.mini-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) contrast(1.05);
  transition: filter 0.5s, transform 0.6s;
  animation: slowZoom 18s ease-in-out infinite alternate;
}
.mini-img:nth-child(2) img { animation-delay: -9s; }
.mini-img:hover img {
  filter: grayscale(0) contrast(1.1);
  transform: scale(1.08);
}
.mini-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(217,32,56,0.15));
  pointer-events: none;
}

/* Bento thumbs (cards 2, 3, 5) */
.bento-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 1.2rem;
  position: relative;
}
.bento-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.7) brightness(0.85) contrast(1.05);
  transition: filter 0.5s, transform 0.6s cubic-bezier(0.2,0,0,1);
  animation: slowZoom 20s ease-in-out infinite alternate;
}
.bento-card:hover .bento-thumb img {
  filter: grayscale(0) brightness(0.95) contrast(1.1);
  transform: scale(1.06);
}
.bento-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(217,32,56,0.18));
  pointer-events: none;
  mix-blend-mode: multiply;
}
.bento-3 .bento-thumb img { animation-delay: -7s; }
.bento-5 .bento-thumb img { animation-delay: -13s; }

/* Casos Gallery — asymmetric mosaic */
#casos-gallery {
  padding: clamp(5rem, 9vw, 9rem) 0;
  background: var(--paper);
}
.cg-mosaic {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 0.6rem;
  margin-top: 3rem;
}
.cg-cell {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}
.cg-a { grid-column: 1; grid-row: 1 / 3; }
.cg-b { grid-column: 2; grid-row: 1; }
.cg-c { grid-column: 3; grid-row: 1; }
.cg-d { grid-column: 2; grid-row: 2; }
.cg-e { grid-column: 3; grid-row: 2; }

.cg-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) brightness(0.7) contrast(1.1);
  transition: filter 0.5s, transform 0.7s cubic-bezier(0.2,0,0,1);
  animation: kenburns 22s ease-in-out infinite alternate;
}
.cg-b img { animation-delay: -4s; }
.cg-c img { animation-delay: -8s; }
.cg-d img { animation-delay: -12s; }
.cg-e img { animation-delay: -16s; }
.cg-cell:hover img {
  filter: grayscale(0) brightness(0.85) contrast(1.1);
  transform: scale(1.1);
}
.cg-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.85));
  pointer-events: none;
}
.cg-tag {
  position: absolute;
  bottom: 1rem; left: 1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}
.cg-tag .dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.cg-a .cg-tag { font-size: 0.85rem; bottom: 1.5rem; left: 1.5rem; }

@media (max-width: 800px) {
  .cg-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 200px);
  }
  .cg-a { grid-column: 1 / 3; grid-row: 1; }
  .cg-b { grid-column: 1; grid-row: 2; }
  .cg-c { grid-column: 2; grid-row: 2; }
  .cg-d { grid-column: 1; grid-row: 3; }
  .cg-e { grid-column: 2; grid-row: 3; }
}

/* Testimonios bg */
#testimonios { position: relative; overflow: hidden; }
.testimonios-bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
  opacity: 0.05;
  pointer-events: none;
}
.testimonios-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.3);
  animation: slowZoom 28s ease-in-out infinite alternate;
}
#testimonios .container { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ═══════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.wa-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
}

.wa-float:hover .wa-icon {
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7);
}

.wa-icon::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: waPulse 2.2s ease-out infinite;
}

.wa-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
  animation: waPulse 2.2s ease-out 0.5s infinite;
}

@keyframes waPulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}

.wa-label {
  background: #fff;
  color: #128C7E;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem 0.4rem 1.1rem;
  border-radius: 0 999px 999px 0;
  margin-left: -12px;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease,
              padding 0.3s ease;
  padding-left: 0;
  padding-right: 0;
}

.wa-float:hover .wa-icon {
  transform: scale(1.08);
}


.wa-float:hover .wa-label {
  max-width: 160px;
  opacity: 1;
  padding: 0.4rem 0.9rem 0.4rem 1.1rem;
}

@media (max-width: 768px) {
  .wa-float {
    bottom: 1.25rem;
    right: 1.25rem;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  .wa-icon { width: 54px; height: 54px; }
  .wa-label { display: none; }
}

/* ── AI ENGINE™ ─────────────────────────────────────── */
#ai-engine {
  background: var(--ink);
  color: #fff;
  padding: clamp(4rem, 7vw, 7rem) 0 clamp(5rem, 8vw, 8rem);
  position: relative;
  overflow: hidden;
}

.aie-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217,32,56,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,32,56,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

#ai-engine::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,32,56,0.75), transparent);
}

/* Eyebrow */
.aie-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.38);
}

.aie-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(217,32,56,0.6);
  animation: aidPulse 2.2s infinite;
}

@keyframes aidPulse {
  0%   { box-shadow: 0 0 0 0 rgba(217,32,56,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(217,32,56,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,32,56,0); }
}

/* Hero row */
.aie-hero-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.aie-big-title {
  font-size: clamp(4.5rem, 10vw, 9rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: #fff;
  font-family: var(--font-display);
  white-space: nowrap;
}

.aie-big-title sup {
  font-size: 0.24em;
  color: var(--red);
  vertical-align: super;
  font-weight: 400;
}

.aie-hero-sub {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.68;
  max-width: 52ch;
  margin-bottom: 2rem;
}

/* Stats band */
.aie-stats-band {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1.25rem 1.75rem;
}

.aie-sband {
  flex: 1;
  text-align: center;
  min-width: 80px;
}

.aie-sband-val {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--red);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.aie-sband-unit {
  font-size: 0.7em;
  color: rgba(255,255,255,0.5);
}

.aie-sband-lbl {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: var(--font-mono);
}

.aie-sband-div {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
  margin: 0 0.25rem;
}

/* Cards 2×2 grid */
.aie-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.aie-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(0.2,0,0,1), box-shadow 0.35s ease;
  cursor: default;
}

.aie-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.aie-card-featured {
  background: rgba(217,32,56,0.07);
  border-color: rgba(217,32,56,0.25);
  grid-column: 1;
  grid-row: 1 / 3;
}

.aie-card-featured:hover {
  background: rgba(217,32,56,0.12);
  border-color: rgba(217,32,56,0.45);
  box-shadow: 0 20px 60px rgba(217,32,56,0.18);
}

.aie-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.aie-card-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aie-card-featured .aie-card-icon {
  background: rgba(217,32,56,0.12);
  border-color: rgba(217,32,56,0.3);
  animation: aieIconFloat 3.5s ease-in-out infinite;
}

@keyframes aieIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.aie-card-n {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

.aie-card-featured .aie-card-n { color: rgba(217,32,56,0.55); }

.aie-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-display);
  line-height: 1.3;
}

.aie-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  flex: 1;
}

.aie-card-metric {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
  flex-wrap: wrap;
}

.aie-card-featured .aie-card-metric { border-color: rgba(217,32,56,0.2); }

.aie-mval {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--red);
  font-family: var(--font-display);
  line-height: 1;
  white-space: nowrap;
}

.aie-mlbl {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.4;
}

/* ── Chat Showcase — Card 01 ── */
.aie-chat-showcase {
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  overflow: hidden;
}

.aie-cs-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.aie-cs-hdr-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.aie-cs-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(217,32,56,0.15);
  border: 1px solid rgba(217,32,56,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.aie-cs-status-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid #0a0a0a;
  box-shadow: 0 0 6px rgba(74,222,128,0.7);
  animation: chatDotPulse 2s ease-in-out infinite;
}

.aie-cs-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-display);
}

.aie-cs-online {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #4ade80;
  margin-top: 0.1rem;
}

.aie-cs-badge-24 {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  padding: 0.22rem 0.6rem;
  background: rgba(217,32,56,0.12);
  border: 1px solid rgba(217,32,56,0.3);
  border-radius: 999px;
  color: var(--red);
  letter-spacing: 0.05em;
}

.aie-cs-body {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.aie-cs-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.aie-cs-row-u { align-items: flex-end; }
.aie-cs-row-a { align-items: flex-start; }

.aie-cs-bubble {
  max-width: 84%;
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.aie-cs-bubble-u {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.9);
  border-bottom-right-radius: 4px;
}

.aie-cs-bubble-a {
  background: rgba(217,32,56,0.1);
  border: 1px solid rgba(217,32,56,0.22);
  color: rgba(255,255,255,0.88);
  border-bottom-left-radius: 4px;
}

.aie-cs-time {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: rgba(255,255,255,0.2);
}

/* Typing dots */
.aie-cs-typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.65rem 0.9rem;
}

.aie-cs-typing-bubble span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(217,32,56,0.75);
  animation: chatDot 1.2s ease-in-out infinite;
}
.aie-cs-typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.aie-cs-typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

/* Ciclo typing → respuesta — sin hueco visible */
.aie-cs-typing-wrap {
  overflow: hidden;
  animation: csTypingCycle 10s ease infinite;
}

.aie-cs-reply-wrap {
  overflow: hidden;
  animation: csReplyCycle 10s ease infinite;
}

@keyframes csTypingCycle {
  0%, 20%  { max-height: 55px; opacity: 1; }
  30%, 90% { max-height: 0;    opacity: 0; }
  98%, 100%{ max-height: 55px; opacity: 1; }
}

@keyframes csReplyCycle {
  0%, 28%  { max-height: 0;    opacity: 0; }
  38%, 72% { max-height: 80px; opacity: 1; }
  88%, 100%{ max-height: 0;    opacity: 0; }
}

/* Badge resuelto */
.aie-cs-resolved-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #4ade80;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-top: 0.2rem;
}

/* ── Actividad en vivo (card 01, siempre visible) ── */
.aie-live-activity {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
}

.aie-lact-hdr {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(217,32,56,0.06);
  border-bottom: 1px solid rgba(217,32,56,0.12);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: rgba(255,255,255,0.38);
}

.aie-lact-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 7px rgba(74,222,128,0.7);
  animation: chatDotPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.aie-lact-rows {
  padding: 0.5rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.aie-lact-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.6rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  opacity: 1;
  animation: lactPulse 6s ease infinite;
}

.aie-lr-1 { animation-delay: 0s; }
.aie-lr-2 { animation-delay: 1.5s; }
.aie-lr-3 { animation-delay: 3s; }
.aie-lr-4 { animation-delay: 4.5s; }

@keyframes lactPulse {
  0%, 100% { background: rgba(255,255,255,0.025); border-color: rgba(255,255,255,0.05); }
  15%, 35% { background: rgba(255,255,255,0.06);  border-color: rgba(255,255,255,0.12); }
}

.aie-lch {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.aie-lch-wa  { background: rgba(37,211,102,0.15); color: #25d366; border: 1px solid rgba(37,211,102,0.25); }
.aie-lch-em  { background: rgba(99,179,237,0.12); color: #63b3ed; border: 1px solid rgba(99,179,237,0.22); }
.aie-lch-crm { background: rgba(217,32,56,0.12);  color: var(--red); border: 1px solid rgba(217,32,56,0.22); }
.aie-lch-web { background: rgba(167,139,250,0.12); color: #a78bfa; border: 1px solid rgba(167,139,250,0.22); }

.aie-lact-txt {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aie-lact-ok {
  font-size: 0.65rem;
  color: #4ade80;
  flex-shrink: 0;
}

.aie-lact-live {
  font-size: 0.55rem;
  color: var(--red);
  flex-shrink: 0;
  animation: aidPulse 1.4s infinite;
}

/* Chat demo animado (card featured) */
.aie-chat-demo {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

/* Stats strip */
.aie-chat-strip {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.65rem 1.1rem;
  background: rgba(217,32,56,0.08);
  border-bottom: 1px solid rgba(217,32,56,0.15);
}

.aie-cstrip-item {
  flex: 1;
  text-align: center;
}

.aie-cstrip-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1.1;
}

.aie-cstrip-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.1rem;
}

.aie-cstrip-div {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Chat header */
.aie-chat-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.aie-chat-dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.7);
  animation: chatDotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes chatDotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(74,222,128,0.7); }
  50% { opacity: 0.55; box-shadow: 0 0 4px rgba(74,222,128,0.3); }
}

.aie-chat-bar-name {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  flex: 1;
}

.aie-chat-channels {
  display: flex;
  gap: 0.3rem;
}

.aie-chat-channels span {
  font-size: 0.55rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* Mensajes */
.aie-chat-body {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.aie-msg {
  max-width: 82%;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  opacity: 0;
}

/* Usuario (derecha) */
.aie-msg-user,
.aie-msg-followup {
  align-self: flex-end;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.88);
  border-bottom-right-radius: 4px;
}

/* Typing indicators */
.aie-msg-typing,
.aie-msg-typing2 {
  align-self: flex-start;
  background: rgba(217,32,56,0.08);
  border: 1px solid rgba(217,32,56,0.22);
  border-bottom-left-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.65rem 0.9rem;
}

.aie-msg-typing span,
.aie-msg-typing2 span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(217,32,56,0.75);
  animation: chatDot 1.2s ease-in-out infinite;
}
.aie-msg-typing span:nth-child(2),
.aie-msg-typing2 span:nth-child(2) { animation-delay: 0.2s; }
.aie-msg-typing span:nth-child(3),
.aie-msg-typing2 span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Respuestas del agente */
.aie-msg-reply,
.aie-msg-reply2 {
  align-self: flex-start;
  background: rgba(217,32,56,0.1);
  border: 1px solid rgba(217,32,56,0.25);
  color: rgba(255,255,255,0.88);
  border-bottom-left-radius: 4px;
}

.aie-msg-reply strong,
.aie-msg-reply2 strong { color: #fff; }

/* Badge "Resuelto" */
.aie-chat-resolved {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #4ade80;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  opacity: 0;
  margin-top: 0.25rem;
}

/* ── Animaciones ciclo 16s ─────────────────────────────
   0s   → user msg 1 entra
   1.5s → typing 1 entra
   3s   → typing 1 sale, reply 1 entra
   5s   → user msg 2 entra
   6.5s → typing 2 entra
   8s   → typing 2 sale, reply 2 entra
   10s  → badge "resuelto" entra
   12s  → todo visible
   13s  → fade out comienza
   16s  → loop
─────────────────────────────────────────────────────── */

@keyframes chatMsg1 {
  0%, 4%   { opacity: 0; transform: translateY(8px); }
  9%, 80%  { opacity: 1; transform: none; }
  88%, 100%{ opacity: 0; transform: none; }
}

@keyframes chatTyping1 {
  0%, 8%   { opacity: 0; }
  11%, 18% { opacity: 1; }
  21%, 100%{ opacity: 0; }
}

@keyframes chatReply1 {
  0%, 18%  { opacity: 0; transform: translateY(8px); }
  22%, 80% { opacity: 1; transform: none; }
  88%, 100%{ opacity: 0; transform: none; }
}

@keyframes chatMsg2 {
  0%, 30%  { opacity: 0; transform: translateY(8px); }
  34%, 80% { opacity: 1; transform: none; }
  88%, 100%{ opacity: 0; transform: none; }
}

@keyframes chatTyping2 {
  0%, 39%  { opacity: 0; }
  42%, 49% { opacity: 1; }
  52%, 100%{ opacity: 0; }
}

@keyframes chatReply2 {
  0%, 49%  { opacity: 0; transform: translateY(8px); }
  53%, 80% { opacity: 1; transform: none; }
  88%, 100%{ opacity: 0; transform: none; }
}

@keyframes chatResolved {
  0%, 61%  { opacity: 0; transform: scale(0.88); }
  66%, 80% { opacity: 1; transform: scale(1); }
  88%, 100%{ opacity: 0; transform: scale(1); }
}

/* Asignar animaciones */
.aie-msg-user     { animation: chatMsg1    16s ease infinite; }
.aie-msg-typing   { animation: chatTyping1 16s ease infinite; }
.aie-msg-reply    { animation: chatReply1  16s ease infinite; }
.aie-msg-followup { animation: chatMsg2    16s ease infinite; }
.aie-msg-typing2  { animation: chatTyping2 16s ease infinite; }
.aie-msg-reply2   { animation: chatReply2  16s ease infinite; }
.aie-chat-resolved{ animation: chatResolved 16s ease infinite; }

.aie-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.aie-card-chips span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(217,32,56,0.3);
  color: rgba(217,32,56,0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Timeline */
.aie-process {
  margin-bottom: 3.5rem;
  padding: 2.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
}

.aie-process-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.aie-tline {
  position: relative;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.aie-tline-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--red), rgba(217,32,56,0.4));
  border-radius: 999px;
  width: 0;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.aie-process.active .aie-tline-fill { width: 100%; }

.aie-tsteps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.aie-tstep {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aie-tnode {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(217,32,56,0.1);
  border: 2px solid rgba(217,32,56,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--red);
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.aie-process.active .aie-tstep:nth-child(1) .aie-tnode { transform: scale(1); opacity: 1; transition-delay: 0.3s, 0.3s; }
.aie-process.active .aie-tstep:nth-child(2) .aie-tnode { transform: scale(1); opacity: 1; transition-delay: 0.7s, 0.7s; }
.aie-process.active .aie-tstep:nth-child(3) .aie-tnode { transform: scale(1); opacity: 1; transition-delay: 1.1s, 1.1s; }

.aie-tstep-body {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.aie-process.active .aie-tstep:nth-child(1) .aie-tstep-body { opacity: 1; transform: none; transition-delay: 0.5s; }
.aie-process.active .aie-tstep:nth-child(2) .aie-tstep-body { opacity: 1; transform: none; transition-delay: 0.9s; }
.aie-process.active .aie-tstep:nth-child(3) .aie-tstep-body { opacity: 1; transform: none; transition-delay: 1.3s; }

.aie-tstep-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-display);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.aie-tstep-body p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.6;
}

/* Bottom row */
.aie-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Stack */
.aie-stack {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.aie-stack-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.35rem;
}

.aie-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.28rem 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.aie-chip:hover {
  background: rgba(217,32,56,0.1);
  border-color: rgba(217,32,56,0.3);
  color: #fff;
}

/* CTA block */
.aie-cta {
  background: linear-gradient(135deg, rgba(217,32,56,0.1) 0%, rgba(217,32,56,0.04) 100%);
  border: 1px solid rgba(217,32,56,0.28);
  border-radius: 18px;
  padding: 3rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.aie-cta-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.aie-cta h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.aie-cta p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 48ch;
}

.aie-cta-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  flex-shrink: 0;
}

.aie-cta-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.32);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Nav AI Engine badge */
.nav-ai-link { color: var(--red) !important; }

.nav-ai-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.48rem;
  padding: 0.08rem 0.28rem;
  border-radius: 3px;
  vertical-align: super;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 2px;
  line-height: 1.6;
}

/* Responsive AI Engine */
@media (max-width: 1100px) {
  .aie-hero-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
  }
  .aie-big-title { white-space: normal; }
}

@media (max-width: 800px) {
  .aie-cards {
    grid-template-columns: 1fr;
  }
  .aie-card-featured {
    grid-column: 1;
    grid-row: auto;
  }
  .aie-tsteps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .aie-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem;
    gap: 1.75rem;
  }
}

@media (max-width: 600px) {
  .aie-stats-band { flex-wrap: wrap; padding: 1rem; }
  .aie-sband-div { display: none; }
  .aie-sband { flex: 0 0 calc(50% - 0.5rem); text-align: left; padding: 0.5rem 0; }
  .aie-process { padding: 1.5rem; }
}

/* ── Card 04 — Agentes Comerciales (wide + pipeline) ── */
.aie-card-sales {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.aie-sales-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Pipeline */
.aie-pipeline {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
}

.aie-pipeline-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.aie-pipeline-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.45);
}

.aie-pipe-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 7px rgba(217,32,56,0.7);
  animation: aidPulse 2s infinite;
  flex-shrink: 0;
}

.aie-pipe-dot-sm {
  width: 5px; height: 5px;
  box-shadow: 0 0 5px rgba(217,32,56,0.5);
}

.aie-pipeline-total {
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-display);
}

.aie-pipeline-leads {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aie-lead {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  opacity: 0;
}

.aie-lead-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(217,32,56,0.12);
  border: 1px solid rgba(217,32,56,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
}

.aie-lead-info { flex: 1; min-width: 0; }

.aie-lead-name {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.3rem;
}

.aie-lead-score {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
}

.aie-score-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.aie-score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), rgba(217,32,56,0.45));
  border-radius: 999px;
  width: 0;
}

.aie-lead-badge {
  font-family: var(--font-mono);
  font-size: 0.57rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.aie-badge-closed {
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.28);
  color: #4ade80;
}

.aie-badge-proposal {
  background: rgba(217,32,56,0.1);
  border: 1px solid rgba(217,32,56,0.28);
  color: var(--red);
}

.aie-badge-qualified {
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.25);
  color: #fbbf24;
}

.aie-pipeline-ftr {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: rgba(217,32,56,0.05);
  border-top: 1px solid rgba(217,32,56,0.12);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Animaciones del pipeline — ciclo 14s */
.aie-lead-1 { animation: lead1In 14s ease infinite; }
.aie-lead-2 { animation: lead2In 14s ease infinite; }
.aie-lead-3 { animation: lead3In 14s ease infinite; }

@keyframes lead1In {
  0%, 3%   { opacity: 0; transform: translateX(-10px); }
  9%, 80%  { opacity: 1; transform: none; }
  88%, 100%{ opacity: 0; transform: none; }
}
@keyframes lead2In {
  0%, 12%  { opacity: 0; transform: translateX(-10px); }
  18%, 80% { opacity: 1; transform: none; }
  88%, 100%{ opacity: 0; transform: none; }
}
@keyframes lead3In {
  0%, 21%  { opacity: 0; transform: translateX(-10px); }
  27%, 80% { opacity: 1; transform: none; }
  88%, 100%{ opacity: 0; transform: none; }
}

.aie-sf-1 { animation: score1 14s ease infinite; }
.aie-sf-2 { animation: score2 14s ease infinite; }
.aie-sf-3 { animation: score3 14s ease infinite; }

@keyframes score1 {
  0%, 8%   { width: 0; }
  20%, 80% { width: 92%; }
  88%, 100%{ width: 0; }
}
@keyframes score2 {
  0%, 17%  { width: 0; }
  28%, 80% { width: 78%; }
  88%, 100%{ width: 0; }
}
@keyframes score3 {
  0%, 26%  { width: 0; }
  37%, 80% { width: 65%; }
  88%, 100%{ width: 0; }
}

/* Responsive */
@media (max-width: 800px) {
  .aie-card-sales {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ── Card 02 — Análisis Predictivo ── */
.aie-pred-demo {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  overflow: hidden;
  flex: 1;
}

.aie-pred-hdr {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
}

.aie-pred-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px rgba(217,32,56,0.6);
  animation: aidPulse 2s infinite;
  flex-shrink: 0;
}

.aie-pred-metrics {
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.aie-pred-metric { opacity: 1; }
.aie-pm-1 { animation: predPulse 8s ease infinite 0s; }
.aie-pm-2 { animation: predPulse 8s ease infinite 1.2s; }
.aie-pm-3 { animation: predPulse 8s ease infinite 2.4s; }

@keyframes predPulse {
  0%, 100% { opacity: 0.75; }
  15%, 35% { opacity: 1; }
}

.aie-pm-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.aie-pm-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.aie-pm-bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 999px;
  overflow: hidden;
}

.aie-pm-bar {
  height: 100%;
  border-radius: 999px;
  width: 0;
}

.aie-pmb-1 {
  background: linear-gradient(90deg, var(--red), rgba(217,32,56,0.5));
  animation: pmBar1 12s ease infinite;
}
.aie-pmb-2 {
  background: linear-gradient(90deg, #fbbf24, rgba(251,191,36,0.4));
  animation: pmBar2 12s ease infinite;
}
.aie-pmb-3 {
  background: linear-gradient(90deg, #4ade80, rgba(74,222,128,0.4));
  animation: pmBar3 12s ease infinite;
}

@keyframes pmBar1 { 0% { width:30%; } 50% { width:72%; } 100% { width:30%; } }
@keyframes pmBar2 { 0% { width:12%; } 50% { width:22%; } 100% { width:12%; } }
@keyframes pmBar3 { 0% { width:20%; } 50% { width:38%; } 100% { width:20%; } }

.aie-pm-val {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 36px;
  text-align: right;
}
.aie-pmv-up   { color: var(--red); }
.aie-pmv-warn { color: #fbbf24; }
.aie-pmv-ok   { color: #4ade80; }

/* Gráfico de tendencia SVG */
.aie-pred-chart {
  height: 56px;
  padding: 0;
  margin-top: 0.25rem;
}

.aie-pred-chart svg {
  width: 100%; height: 100%;
  display: block;
}

.aie-chart-area {
  fill: rgba(217,32,56,0.08);
  animation: chartFadeIn 12s ease infinite;
}

.aie-chart-line {
  stroke: rgba(217,32,56,0.7);
  stroke-width: 1.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
  animation: chartDraw 12s ease infinite;
}

@keyframes chartDraw {
  0%, 5%   { stroke-dashoffset: 380; opacity: 0; }
  12%      { opacity: 1; }
  40%, 82% { stroke-dashoffset: 0; opacity: 1; }
  92%, 100%{ stroke-dashoffset: 0; opacity: 0; }
}

@keyframes chartFadeIn {
  0%, 35%  { opacity: 0; }
  45%, 82% { opacity: 1; }
  92%, 100%{ opacity: 0; }
}

/* ── Card 03 — Documentos Inteligentes ── */
.aie-doc-demo {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  overflow: hidden;
  flex: 1;
}

.aie-doc-hdr {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
}

.aie-doc-count {
  margin-left: auto;
  color: var(--red);
  font-weight: 600;
}

.aie-doc-list {
  padding: 0.6rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.aie-doc-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  opacity: 1;
}

.aie-di-1 { animation: docPulse 7s ease infinite 0s; }
.aie-di-2 { animation: docPulse 7s ease infinite 1.4s; }
.aie-di-3 { animation: docPulse 7s ease infinite 2.8s; }

@keyframes docPulse {
  0%, 100% { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.07); }
  15%, 35% { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.14); }
}

.aie-doc-ico { flex-shrink: 0; opacity: 0.6; }

.aie-doc-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.65);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aie-doc-status {
  font-family: var(--font-mono);
  font-size: 0.57rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.aie-ds-done {
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  color: #4ade80;
}

.aie-ds-proc {
  background: rgba(217,32,56,0.08);
  border: 1px solid rgba(217,32,56,0.25);
  color: var(--red);
  animation: docBlink 1s ease-in-out infinite;
}

.aie-ds-queue {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.3);
}

@keyframes docBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.aie-doc-progress {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.aie-doc-prog-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 999px;
  overflow: hidden;
}

.aie-doc-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), rgba(217,32,56,0.4));
  border-radius: 999px;
  animation: docProgFill 3s ease-in-out infinite;
}

@keyframes docProgFill {
  0%   { width: 0%; }
  70%  { width: 100%; }
  100% { width: 100%; opacity: 0; }
}

.aie-doc-prog-lbl {
  font-family: var(--font-mono);
  font-size: 0.57rem;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
}

/* ── LEAD MAGNET ─────────────────────────────────────── */
#lead-magnet {
  background: var(--ink-2, #1a1a1a);
  padding: clamp(3rem, 5vw, 5.5rem) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#lead-magnet .sh-tag {
  color: var(--red);
}

#lead-magnet h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
}

#lead-magnet h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

#lead-magnet .sh-sub {
  color: rgba(255,255,255,0.65);
}

.lm-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.lm-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.lm-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.97rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}

.lm-check {
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 1rem;
}

.lm-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-family: 'JetBrains Mono', monospace;
  flex-wrap: wrap;
}

.lm-sep { color: rgba(255,255,255,0.2); }

.lm-form-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 2.5rem;
}

.lm-form-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.75rem;
}

.lm-form-box h3 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
}

.lm-form-box > p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
}

.lm-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.lm-form input[type="text"],
.lm-form input[type="email"] {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  width: 100%;
}

.lm-form input::placeholder {
  color: rgba(255,255,255,0.3);
}

.lm-form input:focus {
  border-color: var(--red);
  background: rgba(217,32,56,0.07);
}

@media (max-width: 960px) {
  .lm-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .lm-form-box {
    padding: 1.5rem;
  }
}
