.home-hero-stage {
  --hero-accent: #22c7ff;
  --hero-accent-2: #a855f7;
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  padding: 0 56px 92px;
  border: 1px solid rgba(94, 142, 210, .14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 25%, color-mix(in srgb, var(--hero-accent-2) 14%, transparent), transparent 34%),
    radial-gradient(circle at 14% 60%, color-mix(in srgb, var(--hero-accent) 10%, transparent), transparent 32%),
    linear-gradient(145deg, rgba(11, 23, 45, .84), rgba(4, 8, 20, .92));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
  transition: --hero-accent .4s ease, --hero-accent-2 .4s ease;
}

.home-hero-stage[data-active="1"] { --hero-accent: #20c8ff; --hero-accent-2: #785cff; }
.home-hero-stage[data-active="2"] { --hero-accent: #8b67ff; --hero-accent-2: #ed4ea8; }
.home-hero-stage[data-active="3"] { --hero-accent: #35d9d0; --hero-accent-2: #a95cff; }

.home-hero-track { position: relative; min-height: 500px; }
.home-hero-stage[data-active="0"] .home-hero-track { min-height: 450px; }
.home-hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  gap: 52px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(34px) scale(.985);
  transition: opacity .52s ease, transform .52s cubic-bezier(.22,.8,.22,1), visibility 0s linear .52s;
}
.home-hero-slide.is-active { position: relative; opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.home-hero-slide.is-leaving { transform: translateX(-28px) scale(.99); }
.home-hero-slide .hero-content { animation: none; }
.home-hero-slide .hero-visual { margin: 0; }

.home-hero-copy { position: relative; z-index: 2; max-width: 620px; }
.home-hero-kicker { display: inline-flex; margin-bottom: 18px; color: var(--hero-accent); font-size: .68rem; font-weight: 850; letter-spacing: .16em; }
.home-hero-copy h1,
.home-hero-copy h2 { max-width: 620px; margin: 0 0 22px; color: #f8faff; font: 900 clamp(2.35rem, 4.1vw, 4.25rem)/.98 var(--font-display); letter-spacing: -.05em; text-wrap: balance; }
.home-hero-copy h2 > span { color: transparent; background: linear-gradient(105deg, var(--hero-accent), #6a76ff 55%, var(--hero-accent-2)); background-clip: text; -webkit-background-clip: text; }
.home-hero-copy--agency .hero-title { max-width: 620px; margin-bottom: 22px !important; font-size: clamp(2.35rem, 3.35vw, 3.45rem) !important; line-height: 1.02; text-align: left; }
.home-hero-copy--agency .title-line { white-space: normal !important; }
.home-hero-copy--agency .hero-description-container { max-width: 590px; margin: 0; padding: 0; border: 0; background: transparent; }
.home-hero-copy--agency .hero-description-text { display: -webkit-box; overflow: hidden; margin: 0; color: #a9b8cc; font-size: 1.02rem; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.home-hero-copy > p { max-width: 590px; margin: 0; color: #a9b8cc; font-size: 1.02rem; line-height: 1.75; }
.home-hero-actions { display: flex; margin-top: 27px; flex-wrap: wrap; gap: 12px; }
.home-hero-primary, .home-hero-secondary { display: inline-flex; min-height: 48px; padding: 0 20px; border-radius: 12px; align-items: center; justify-content: center; gap: 12px; color: #fff; font-size: .78rem; font-weight: 850; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.home-hero-primary { border: 0; background: linear-gradient(110deg, var(--hero-accent), var(--hero-accent-2)); box-shadow: 0 15px 35px color-mix(in srgb, var(--hero-accent) 18%, transparent); }
.home-hero-secondary { border: 1px solid color-mix(in srgb, var(--hero-accent) 28%, rgba(255,255,255,.12)); background: rgba(5, 11, 25, .66); }
.home-hero-primary:hover, .home-hero-secondary:hover { border-color: var(--hero-accent); transform: translateY(-2px); box-shadow: 0 18px 42px color-mix(in srgb, var(--hero-accent) 20%, transparent); }
.home-hero-proof { display: flex; margin: 26px 0 0; padding: 0; flex-wrap: wrap; gap: 9px; list-style: none; }
.home-hero-proof li { padding: 8px 11px; border: 1px solid rgba(148,163,184,.15); border-radius: 999px; color: #95a8c1; background: rgba(255,255,255,.025); font-size: .67rem; }

.home-apps-visual { position: relative; min-height: 450px; perspective: 1200px; }
.home-app-phone { position: absolute; top: 30px; left: 50%; width: 190px; height: 350px; overflow: hidden; border: 3px solid transparent; border-radius: 23px; background: linear-gradient(#07101f,#07101f) padding-box, linear-gradient(150deg, var(--hero-accent), var(--hero-accent-2)) border-box; box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 35px color-mix(in srgb, var(--hero-accent) 11%, transparent); }
.home-app-phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-app-phone--main { z-index: 3; transform: translateX(-50%); }
.home-app-phone--back { z-index: 1; transform: translateX(-112%) rotateY(14deg) scale(.86); opacity: .75; }
.home-app-phone--side { z-index: 2; transform: translateX(12%) rotateY(-14deg) scale(.86); opacity: .78; }
.home-float-chip, .home-lilia-capability { position: absolute; z-index: 5; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--hero-accent) 32%, rgba(255,255,255,.1)); border-radius: 11px; color: #dce9fa; background: rgba(5,12,28,.88); box-shadow: 0 16px 35px rgba(0,0,0,.28); backdrop-filter: blur(12px); font-size: .65rem; font-weight: 750; }
.home-float-chip--one { top: 75px; left: 1%; }.home-float-chip--two { right: 0; bottom: 72px; }

.home-lilia-visual { position: relative; display: block; min-height: 400px; overflow: hidden; border: 1px solid rgba(168,85,247,.38); border-radius: 25px; background: #070c1b; box-shadow: 0 32px 80px rgba(0,0,0,.45), 0 0 48px rgba(168,85,247,.11); }
.home-lilia-visual picture { position: absolute; inset: 0; display: block; }
.home-lilia-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-lilia-visual [data-lilia-random-image] { opacity: 0; transform: scale(1.015); transition: opacity .28s ease, transform .65s ease; }
.home-lilia-visual picture.is-ready [data-lilia-random-image] { opacity: 1; transform: none; }
.home-lilia-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,8,20,.4), transparent 45%), linear-gradient(0deg, rgba(4,8,20,.4), transparent 45%); }
.home-lilia-capability--chat { top: 32px; left: 24px; }.home-lilia-capability--create { top: 90px; right: 20px; }.home-lilia-capability--workspace { bottom: 24px; left: 28px; }

.home-software-visual { min-height: 410px; overflow: hidden; border: 1px solid rgba(53,217,208,.3); border-radius: 24px; background: linear-gradient(145deg,#0c1a31,#050b19); box-shadow: 0 35px 80px rgba(0,0,0,.42), 0 0 45px rgba(53,217,208,.08); transform: perspective(1200px) rotateY(-4deg); }
.home-software-top { display: flex; height: 54px; padding: 0 17px; border-bottom: 1px solid rgba(148,163,184,.14); align-items: center; gap: 6px; }
.home-software-top span { width: 8px; height: 8px; border-radius: 50%; background: #33445c; }.home-software-top b { margin-left: auto; color: #758ba7; font-size: .58rem; letter-spacing: .12em; }
.home-software-body { display: grid; min-height: 356px; grid-template-columns: 58px 1fr; }
.home-software-body nav { display: flex; padding-top: 20px; border-right: 1px solid rgba(148,163,184,.13); align-items: center; flex-direction: column; gap: 15px; }
.home-software-body nav i { width: 22px; height: 22px; border: 1px solid #40516b; border-radius: 7px; }.home-software-body nav i:first-child { border-color: var(--hero-accent); background: color-mix(in srgb,var(--hero-accent) 14%,transparent); }
.home-software-main { display: grid; padding: 22px; align-content: start; gap: 14px; }
.home-software-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }.home-software-kpis span { padding: 11px; border: 1px solid rgba(148,163,184,.14); border-radius: 11px; background: rgba(255,255,255,.025); }.home-software-kpis small { display: block; color: #71859f; font-size: .55rem; }.home-software-kpis b { font-size: 1rem; }
.home-software-chart { display: flex; height: 150px; padding: 16px; border: 1px solid rgba(148,163,184,.14); border-radius: 13px; align-items: flex-end; gap: 8px; }.home-software-chart i { width: 100%; height: 34%; border-radius: 5px 5px 2px 2px; background: linear-gradient(var(--hero-accent),var(--hero-accent-2)); animation: homeHeroBars 2.8s ease-in-out infinite alternate; }.home-software-chart i:nth-child(2){height:62%}.home-software-chart i:nth-child(3){height:45%}.home-software-chart i:nth-child(4){height:78%}.home-software-chart i:nth-child(5){height:57%}.home-software-chart i:nth-child(6){height:88%}
.home-software-flow { display: flex; gap: 8px; }.home-software-flow span { flex: 1; padding: 8px; border: 1px solid color-mix(in srgb,var(--hero-accent) 22%,transparent); border-radius: 9px; color: #91a7c1; background: color-mix(in srgb,var(--hero-accent) 5%,transparent); font-size: .6rem; text-align: center; }
@keyframes homeHeroBars { to { filter: brightness(1.25); transform: scaleY(.88); transform-origin: bottom; } }

.home-hero-arrow { position: absolute; z-index: 9; top: calc(50% - 62px); display: grid; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(148,163,184,.2); border-radius: 13px; place-items: center; color: #d8e4f4; background: rgba(4,9,21,.72); cursor: pointer; transition: border-color .18s, color .18s, transform .18s; }
.home-hero-arrow:hover { border-color: var(--hero-accent); color: var(--hero-accent); transform: scale(1.06); }.home-hero-arrow--prev { left: 10px; }.home-hero-arrow--next { right: 10px; }
.home-hero-tabs { position: absolute; z-index: 8; right: 56px; bottom: 22px; left: 56px; display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.home-hero-tabs button { display: grid; min-width: 0; min-height: 55px; padding: 9px 12px; border: 1px solid rgba(148,163,184,.14); border-radius: 13px; grid-template-columns: auto 1fr; align-items: center; gap: 10px; color: #96a9c2; background: rgba(5,10,23,.78); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.home-hero-tabs b { color: #566c87; font-size: .63rem; }.home-hero-tabs span { min-width: 0; color: #dbe5f2; font-size: .72rem; font-weight: 800; }.home-hero-tabs small { display: block; overflow: hidden; margin-top: 1px; color: #667a95; font-size: .54rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.home-hero-tabs button:nth-child(1) { border-color: rgba(34,199,255,.22); }.home-hero-tabs button:nth-child(2) { border-color: rgba(90,108,255,.24); }.home-hero-tabs button:nth-child(3) { border-color: rgba(237,78,168,.24); }.home-hero-tabs button:nth-child(4) { border-color: rgba(53,217,208,.24); }
.home-hero-tabs button.is-active { border-color: var(--hero-accent); background: linear-gradient(135deg,color-mix(in srgb,var(--hero-accent) 13%,#07101f),color-mix(in srgb,var(--hero-accent-2) 13%,#07101f)); box-shadow: 0 12px 28px color-mix(in srgb,var(--hero-accent) 10%,transparent); transform: translateY(-2px); }.home-hero-tabs button.is-active b { color: var(--hero-accent); }
.home-hero-progress { position: absolute; z-index: 9; right: 56px; bottom: 0; left: 56px; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(148,163,184,.08); }.home-hero-progress i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg,var(--hero-accent),var(--hero-accent-2)); transform: scaleX(0); transform-origin: left; }.home-hero-stage.is-running .home-hero-progress i { animation: homeHeroProgress 7s linear forwards; }
@keyframes homeHeroProgress { to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .home-hero-stage { padding: 0 46px 88px; }
  .home-hero-track { min-height: 740px; }
  .home-hero-slide { grid-template-columns: 1fr; align-content: start; gap: 26px; }
  .home-hero-slide .hero-content { display: block !important; }
  .home-hero-slide .hero-title { text-align: center; }
  .home-hero-slide .hero-description-container { padding: 0 !important; border: 0; background: transparent; text-align: center; }
  .home-hero-slide .hero-description-text { text-align: center; }
  .home-hero-slide .hero-actions { justify-content: center; }
  .home-hero-slide .hero-visual { order: initial; margin: 0; }
  .home-hero-copy { max-width: 680px; margin-inline: auto; text-align: center; }
  .home-hero-copy h1, .home-hero-copy h2 { margin-inline: auto; font-size: clamp(2.15rem,7vw,3.6rem); }
  .home-hero-copy > p { margin-inline: auto; }
  .home-hero-actions, .home-hero-proof { justify-content: center; }
  .home-apps-visual, .home-lilia-visual, .home-software-visual { width: min(100%,620px); min-height: 350px; margin-inline: auto; }
  .home-app-phone { top: 10px; width: 165px; height: 304px; }
  .home-hero-arrow { top: calc(50% - 45px); }
  .home-hero-tabs { right: 46px; left: 46px; }
}

@media (max-width: 767px) {
  .hero .container { display: flex !important; gap: 12px !important; }
  .home-hero-stage { order: 1; padding: 22px 14px 88px; border-radius: 22px; }
  .home-hero-track { height: 690px; min-height: 690px; }
  .home-hero-stage[data-active="0"] .home-hero-track { height: 430px; min-height: 430px; }
  .home-hero-slide { gap: 20px; }
  .home-hero-slide .hero-content { display: block !important; }
  .home-hero-slide .hero-title { margin-bottom: 18px !important; font-size: clamp(1.65rem,8.5vw,2.35rem) !important; line-height: 1.04; text-align: center; }
  .home-hero-slide .hero-description-container { margin-bottom: 16px !important; }
  .home-hero-slide .hero-description-text { display: -webkit-box; overflow: hidden; font-size: .82rem !important; line-height: 1.55 !important; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
  .home-hero-slide .mobile-about-label { display: none !important; }
  .home-hero-slide .hero-actions { margin: 0 0 12px !important; overflow: visible !important; }
  .home-hero-slide .hero-actions .btn-large { max-width: none !important; }
  .home-hero-slide .hero-visual { margin: 0 !important; }
  .home-hero-slide[data-home-slide="0"] .hero-visual { display: none !important; }
  .home-hero-copy h1, .home-hero-copy h2 { font-size: clamp(1.9rem,10vw,2.75rem); }
  .home-hero-copy--agency .hero-title { margin-bottom: 18px !important; font-size: clamp(1.9rem, 10vw, 2.75rem) !important; text-align: center; }
  .home-hero-copy--agency .hero-description-container { margin: 0 !important; }
  .home-hero-copy > p { display: -webkit-box; overflow: hidden; font-size: .84rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
  .home-hero-kicker { margin-bottom: 12px; font-size: .58rem; }
  .home-hero-actions { margin-top: 18px; flex-direction: row; flex-wrap: nowrap; }
  .home-hero-primary, .home-hero-secondary { width: 50%; min-height: 44px; padding: 0 10px; font-size: .66rem; text-align: center; }
  .home-hero-proof { display: none; }
  .home-apps-visual { min-height: 300px; }.home-app-phone { width: 145px; height: 267px; }.home-float-chip { display: none; }
  .home-lilia-visual { min-height: 300px; }.home-lilia-capability { padding: 7px 9px; font-size: .56rem; }
  .home-software-visual { min-height: 300px; transform: none; }.home-software-body { min-height: 246px; grid-template-columns: 42px 1fr; }.home-software-main { padding: 12px; }.home-software-chart { height: 110px; }.home-software-flow { display: none; }
  .home-hero-arrow { top: auto; bottom: 24px; width: 40px; height: 40px; }.home-hero-arrow--prev { left: 12px; }.home-hero-arrow--next { right: 12px; }
  .home-hero-tabs { right: 58px; bottom: 18px; left: 58px; display: flex; overflow-x: auto; gap: 7px; scroll-snap-type: x mandatory; scrollbar-width: none; }.home-hero-tabs::-webkit-scrollbar { display: none; }.home-hero-tabs button { min-width: 118px; min-height: 48px; padding: 7px 9px; scroll-snap-align: center; }.home-hero-tabs small { display: none; }
  .home-hero-progress { right: 58px; bottom: 8px; left: 58px; }
  .nova-separator { order: 2 !important; }.hero-footer-unified { order: 3 !important; }
}

@media (max-width: 390px) {
  .home-hero-track { min-height: 650px; }
  .home-lilia-visual { min-height: 265px; }
  .home-apps-visual { min-height: 270px; }.home-app-phone { width: 132px; height: 243px; }
  .home-software-visual { min-height: 270px; }.home-software-chart { height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-slide { transition: none; }
  .home-hero-progress { display: none; }
  .home-software-chart i { animation: none; }
}

/* Perfil adaptativo: conserva composición y contenido, reduce sólo trabajo decorativo continuo. */
html[data-performance-profile="balanced"] .home-hero-stage,
html[data-performance-profile="balanced"] .home-float-chip,
html[data-performance-profile="balanced"] .home-lilia-capability {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-performance-profile="balanced"] .home-software-chart i {
  animation-duration: 5.6s;
}

html[data-performance-profile="balanced"] .home-hero-slide:not(.is-active) *,
html.nova-page-hidden .home-hero-stage *,
.nova-motion-paused .home-software-chart i {
  animation-play-state: paused !important;
}

html[data-performance-profile="balanced"] .home-hero-stage {
  box-shadow: 0 22px 55px rgba(0, 0, 0, .24);
}

html[data-performance-profile="balanced"] .hero-gradient,
html[data-performance-profile="balanced"] .hero-gradient::after {
  filter: blur(48px);
}

html[data-performance-profile="balanced"] .nav {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-video-play { display: none; }

/* Mobile public-home composition: video first, banners below with a slight overlap. */
@media (max-width: 767px) {
  .hero {
    display: block !important;
    min-height: auto !important;
    padding: 0 0 24px !important;
    overflow: visible !important;
  }

  .mobile-video-bg {
    display: block !important;
    position: absolute !important;
    inset: 0 0 auto !important;
    width: 100% !important;
    height: clamp(340px, 60svh, 540px) !important;
    overflow: hidden !important;
    background: #060817;
  }

  .mobile-bg-video,
  .mobile-video-poster {
    object-position: center 24% !important;
  }

  .mobile-video-overlay {
    background:
      linear-gradient(180deg, rgba(4, 7, 20, .32) 0%, transparent 24%, transparent 66%, rgba(4, 7, 20, .96) 100%) !important;
    background-size: auto !important;
    box-shadow: none !important;
  }

  .hero .container {
    position: relative !important;
    z-index: 10 !important;
    display: flex !important;
    width: 100% !important;
    padding: calc(clamp(340px, 60svh, 540px) - 42px) 14px 0 !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .home-hero-stage {
    position: relative;
    z-index: 3;
    width: 100%;
    margin: 0 !important;
    padding: 21px 14px 82px;
    border: 1px solid rgba(113, 176, 255, .22);
    border-radius: 22px;
    background:
      radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--hero-accent-2) 17%, transparent), transparent 30%),
      linear-gradient(155deg, rgba(11, 22, 47, .97), rgba(5, 10, 24, .98));
    box-shadow: 0 24px 55px rgba(0, 0, 0, .38);
    backdrop-filter: blur(16px);
  }

  .home-hero-track {
    height: clamp(520px, 135vw, 590px);
    min-height: clamp(520px, 135vw, 590px);
  }

  .home-hero-stage[data-active="0"] .home-hero-track {
    height: clamp(350px, 92vw, 410px);
    min-height: clamp(350px, 92vw, 410px);
  }

  .home-hero-slide {
    align-content: start;
  }

  .home-hero-copy--agency .hero-description-text {
    -webkit-line-clamp: 3;
  }

  .nova-separator,
  .footer-stats {
    display: none !important;
  }

  .hero-footer-unified {
    order: 3 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 5px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    justify-content: center !important;
  }

  .footer-socials-grid {
    width: 100%;
    justify-content: center !important;
    gap: 10px !important;
  }

  .footer-socials-grid .hero-social-icon-box {
    width: 39px;
    height: 39px;
  }

  .mobile-video-play {
    position: absolute;
    z-index: 4;
    right: 18px;
    bottom: 62px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(112, 218, 255, .55);
    border-radius: 999px;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: rgba(5, 11, 27, .78);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
    font: 800 .72rem/1 Inter, system-ui, sans-serif;
  }

  .mobile-video-bg.is-video-blocked .mobile-video-play,
  .mobile-video-bg.is-reduced-motion .mobile-video-play {
    display: inline-flex;
  }

  .mobile-video-bg.is-reduced-motion .mobile-bg-video {
    opacity: 0 !important;
  }

  .mobile-video-bg.is-reduced-motion .mobile-video-poster {
    opacity: 1 !important;
  }
}

@media (max-width: 360px) {
  .hero .container {
    padding-inline: 10px !important;
  }

  .home-hero-stage {
    padding-inline: 11px;
  }

  .home-hero-primary,
  .home-hero-secondary {
    font-size: .61rem;
  }
}
