/* Hero aprobado e integrado: estilos aislados para no alterar los módulos del portafolio. */
.hero-reference-header {
  border-bottom: 0;
  background: rgba(247, 252, 255, .88);
  box-shadow: 0 10px 35px rgba(46, 86, 132, .04);
}

.hero-reference-header .container,
.hero > .hero-grid {
  width: min(1536px, calc(100% - 72px));
}

.hero-reference-header .nav-inner {
  height: 92px;
  gap: 20px;
}

.hero-reference-header .brand {
  flex: 0 0 250px;
  gap: 14px;
  color: #14203c;
  font-size: 24px;
  line-height: .9;
}

.hero-reference-header .brand-mark {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(255, 126, 31, .18);
}

.hero-reference-header .brand small {
  max-width: 150px;
  margin-top: 6px;
  color: #526184;
  font-size: 15px;
  line-height: 1.05;
}

.hero-reference-header .nav-links {
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(16px, 1.55vw, 30px);
  color: #435274;
  font-size: 15px;
  font-weight: 700;
}

.hero-reference-header .nav-links > a:not(.nav-login-link) {
  transition: color .18s ease, transform .18s ease;
}

.hero-reference-header .nav-links > a:not(.nav-login-link):hover,
.hero-reference-header .nav-links > a:not(.nav-login-link):focus-visible {
  color: #f26d18;
  transform: translateY(-1px);
}

.hero-reference-header .sl-i18n-selector { margin-left: clamp(4px, 1vw, 20px); }
.hero-reference-header .sl-i18n-trigger {
  min-width: 134px;
  min-height: 48px;
  padding: 0 14px;
  border-color: #d7e6f2;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 22px rgba(43, 80, 125, .08);
  color: #14203c;
  font-size: 13px;
}

.sl-i18n-globe {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hero-reference-header .nav-login-link {
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid #ff7d28;
  border-radius: 14px;
  background: rgba(255,255,255,.76);
  color: #ed650f;
  box-shadow: none;
  font-size: 14px;
}

.hero-reference-header .hero-header-demo {
  min-width: 154px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  font-size: 16px;
}

.hero-arrow { font: 800 27px/1 'Nunito', sans-serif; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 34px 0 18px;
  background:
    radial-gradient(circle at 76% 24%, rgba(180, 231, 253, .56), transparent 35%),
    radial-gradient(circle at 18% 78%, rgba(186, 234, 252, .54), transparent 31%),
    linear-gradient(118deg, #f7fcff 2%, #edfaff 53%, #fdfefe 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: '';
}

.hero::before {
  left: -9%;
  bottom: -34%;
  width: 69%;
  height: 86%;
  border-radius: 50% 46% 0 0;
  background: linear-gradient(150deg, rgba(191, 237, 253, .55), rgba(255,255,255,.82));
  transform: rotate(-5deg);
}

.hero::after {
  right: -10%;
  top: 19%;
  width: 54%;
  height: 46%;
  border-radius: 58% 0 0 54%;
  background: rgba(207, 241, 255, .44);
  transform: rotate(-7deg);
}

.hero .hero-grid {
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: 22px;
  min-height: 500px;
  align-items: center;
}

.hero-reference-copy {
  align-self: center;
  padding: 8px 0 0 64px;
}

.hero-reference-kicker {
  position: relative;
  margin: 0 0 14px;
  padding-left: 22px;
  color: #4f5e80;
  font-size: clamp(11px, .9vw, 14px);
  font-weight: 800;
  letter-spacing: .25em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-reference-kicker::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 24px;
  border-radius: 99px;
  background: #ff7720;
  content: '';
}

.hero-reference-title {
  display: grid;
  max-width: 650px;
  margin: 0 0 18px;
  color: #111d38;
  font-size: clamp(56px, 4.8vw, 80px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}

.hero-reference-title > span { display: block; white-space: nowrap; }
.hero-reference-orange { color: #ff6f0a; }
.hero-reference-finish {
  background: linear-gradient(100deg, #ff6d09 0%, #f38c13 45%, #8ea849 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .hero-copy {
  max-width: 620px;
  margin-bottom: 22px;
  color: #526184;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 600;
  line-height: 1.45;
}

.hero .hero-actions { gap: 18px; margin-bottom: 20px; }
.hero .hero-actions .btn {
  min-width: 190px;
  min-height: 60px;
  border-radius: 16px;
  font-size: 17px;
  box-shadow: 0 14px 30px rgba(44, 81, 126, .08);
}
.hero .hero-actions .btn-primary { box-shadow: 0 16px 30px rgba(255, 110, 11, .24); }

.hero-reference-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  color: #62708f;
  font-size: 13px;
  font-weight: 700;
}

.hero-reference-benefits > span { display: inline-flex; align-items: center; gap: 8px; }
.hero-reference-benefits i {
  display: inline-grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border-radius: 50%;
  background: #ffc263;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(250, 161, 38, .2);
}

.hero-reference-visual {
  position: relative;
  align-self: stretch;
  min-height: 500px;
}

.hero-reference-sky {
  position: absolute;
  inset: 25px 3% 10px 0;
  overflow: hidden;
  border-radius: 48% 52% 44% 42%;
  background: linear-gradient(135deg, rgba(197, 237, 254, .68), rgba(210, 239, 251, .44));
  transform: rotate(3deg);
}

.hero-reference-sky::before,
.hero-reference-sky::after {
  position: absolute;
  bottom: -18px;
  content: '';
  opacity: .64;
  clip-path: polygon(0 100%, 21% 40%, 34% 71%, 50% 15%, 67% 72%, 82% 38%, 100% 100%);
}
.hero-reference-sky::before { right: -5%; width: 62%; height: 58%; background: #c5e7fa; }
.hero-reference-sky::after { right: -10%; width: 50%; height: 40%; background: #dbeffc; }
.hero-reference-sky span { position: absolute; border-radius: 50%; background: rgba(255,255,255,.74); }
.hero-reference-sky span:nth-child(1) { width: 145px; height: 62px; left: 0; top: 49%; }
.hero-reference-sky span:nth-child(2) { width: 190px; height: 78px; right: -28px; top: 18%; }
.hero-reference-sky span:nth-child(3) { width: 118px; height: 52px; right: 13%; bottom: 10%; }

.hero-reference-orbit {
  position: absolute;
  inset: 23px 0 0 3%;
  width: 94%;
  height: 94%;
  overflow: visible;
  fill: none;
  stroke: rgba(255,255,255,.72);
  stroke-width: 2;
  stroke-dasharray: 8 9;
}

.hero-reference-visual .kuntur-wrap {
  position: absolute;
  z-index: 3;
  left: 52%;
  bottom: -7px;
  width: 500px;
  max-width: none;
  transform: translateX(-50%);
}

.hero-reference-visual .kuntur-stage { width: 500px; max-width: none; }
.hero-reference-visual .kuntur-glow {
  inset: 18% 13% 4%;
  background: radial-gradient(circle, rgba(255,255,255,.88), rgba(182, 229, 250, .26) 58%, transparent 72%);
  filter: blur(8px);
}
.hero-reference-visual .kuntur-svg {
  filter: drop-shadow(0 25px 25px rgba(52, 84, 116, .18));
}
.hero-reference-visual .kuntur-panel {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 35px;
  width: min(440px, 92vw);
  background: #fff;
  transform: translateX(-50%);
}

.hero-floating-panel,
.hero-floating-chip {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.84);
  box-shadow: 0 18px 40px rgba(56, 101, 146, .12);
  backdrop-filter: blur(12px);
  color: #16213d;
}

.hero-floating-panel { width: 226px; min-height: 145px; padding: 22px; border-radius: 22px; }
.hero-floating-sales { left: 4%; top: 57px; transform: rotate(2deg); }
.hero-floating-inventory { left: 1%; bottom: 54px; width: 215px; min-height: 128px; transform: rotate(-4deg); }
.hero-panel-top { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.hero-panel-icon {
  display: inline-grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  font-size: 27px;
}
.hero-panel-icon--green { background: #dff9e9; color: #1ab76b; }
.hero-panel-icon--blue { background: #e6f2ff; color: #166be4; }
.hero-sales-value { margin-top: 10px; font-size: 28px; font-weight: 900; line-height: 1; }
.hero-floating-panel small { color: #70809d; font-size: 12px; font-weight: 700; }
.hero-mini-chart { position: absolute; right: 20px; bottom: 22px; display: flex; align-items: flex-end; gap: 5px; height: 58px; }
.hero-mini-chart i { width: 9px; border-radius: 99px; background: linear-gradient(#95c8ff, #5a96ed); }
.hero-mini-chart i:nth-child(1) { height: 20px; }.hero-mini-chart i:nth-child(2) { height: 35px; }.hero-mini-chart i:nth-child(3) { height: 48px; }.hero-mini-chart i:nth-child(4) { height: 60px; }
.hero-floating-inventory b { display: block; margin-top: 12px; font-size: 18px; }
.hero-inventory-bar { display: block; height: 10px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: #e4f1ff; }
.hero-inventory-bar i { display: block; width: 55%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #478ce9, #8fc4ff); }

.hero-floating-chip {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 205px;
  padding: 16px 22px;
  border-radius: 20px;
  font-size: 16px;
}
.hero-floating-chip > span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #eaf4ff;
  color: #156ee8;
  font-size: 22px;
}
.hero-floating-purchases { right: 1%; top: 68px; transform: rotate(-5deg); }
.hero-floating-logistics { right: 0; top: 170px; transform: rotate(-2deg); }
.hero-floating-taxes { right: 2%; top: 272px; transform: rotate(3deg); }

.hero-kuntur-signature {
  position: absolute;
  z-index: 6;
  right: 2%;
  bottom: 46px;
  display: grid;
  color: #172343;
  text-align: center;
  transform: rotate(-6deg);
}
.hero-kuntur-signature > span { position: absolute; left: -45px; top: -7px; font-size: 46px; transform: rotate(14deg); }
.hero-kuntur-signature strong { font: 700 35px/1 'Segoe Script', 'Comic Sans MS', cursive; }
.hero-kuntur-signature small { margin-top: 6px; font-size: 15px; font-weight: 800; line-height: 1.05; }

.hero-reference-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1332px, calc(100% - 72px));
  margin-top: 4px;
}

.hero-reference-card {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 22px;
  min-height: 232px;
  padding: 22px 28px 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(139, 201, 232, .48);
  border-radius: 24px;
  background: rgba(255,255,255,.83);
  box-shadow: 0 18px 48px rgba(74, 116, 153, .08);
  color: #172343;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hero-reference-card:hover,
.hero-reference-card:focus-visible {
  border-color: rgba(255, 122, 31, .62);
  box-shadow: 0 22px 52px rgba(64, 105, 146, .14);
  transform: translateY(-4px);
}
.hero-reference-card:focus-visible { outline: 3px solid rgba(255, 122, 31, .2); outline-offset: 3px; }
.hero-card-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 21px;
}
.hero-card-icon svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-reference-card--multi .hero-card-icon { background: #fff0e8; color: #ff761b; }
.hero-reference-card--mobility .hero-card-icon { background: #e2f3ff; color: #136cdf; }
.hero-reference-card--kuntur .hero-card-icon { background: #f0e5ff; color: #8b50de; }
.hero-card-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dbe8f1;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: #435477;
  font-size: 21px;
  box-shadow: 0 5px 12px rgba(46, 85, 127, .08);
}
.hero-card-content { display: flex; min-width: 0; flex-direction: column; padding: 3px 42px 0 0; }
.hero-card-content > strong { max-width: 230px; font: 800 21px/1.07 'Baloo 2', sans-serif; letter-spacing: -.01em; }
.hero-card-description { max-width: 240px; margin-top: 7px; color: #576685; font-size: 15px; font-weight: 650; line-height: 1.35; }
.hero-card-list { display: grid; gap: 6px; margin-top: auto; color: #576685; font-size: 14px; font-weight: 700; }
.hero-card-list > span { position: relative; padding-left: 28px; }
.hero-card-list > span::before {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  content: '✓';
  font-size: 12px;
  font-weight: 900;
}
.hero-reference-card--multi .hero-card-list > span::before { background: #fff0e8; color: #ff761b; }
.hero-reference-card--mobility .hero-card-list > span::before { background: #e2f3ff; color: #136cdf; }
.hero-reference-card--kuntur .hero-card-list > span::before { background: #f0e5ff; color: #8b50de; }

.hero-reference-tagline {
  display: grid;
  grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  align-items: center;
  gap: 24px;
  width: min(580px, calc(100% - 72px));
  margin-top: 27px;
  color: #6c7a98;
}
.hero-reference-tagline span { height: 1px; background: #b9cfe0; }
.hero-reference-tagline p { font-size: 11px; font-weight: 800; letter-spacing: .25em; text-align: center; }

@media (max-width: 1390px) {
  .hero-reference-header .container,
  .hero > .hero-grid { width: min(1280px, calc(100% - 44px)); }
  .hero-reference-header .brand { flex-basis: 205px; font-size: 21px; }
  .hero-reference-header .brand small { font-size: 13px; }
  .hero-reference-header .nav-links { gap: 15px; font-size: 13px; }
  .hero-reference-header .sl-i18n-selector { margin-left: 3px; }
  .hero-reference-header .sl-i18n-trigger { min-width: 112px; }
  .hero-reference-header .nav-login-link { padding: 0 15px; }
  .hero-reference-header .hero-header-demo { min-width: 125px; padding: 0 17px; }
  .hero-reference-copy { padding-left: 28px; }
  .hero-reference-title { font-size: clamp(54px, 5vw, 70px); }
  .hero-reference-benefits { gap: 10px 16px; font-size: 12px; }
  .hero-reference-visual .kuntur-wrap,
  .hero-reference-visual .kuntur-stage { width: 440px; }
  .hero-floating-panel { width: 190px; padding: 17px; }
  .hero-floating-chip { min-width: 170px; padding: 12px 15px; }
  .hero-kuntur-signature { right: 0; }
  .hero-reference-cards { width: min(1180px, calc(100% - 44px)); }
}

@media (max-width: 1120px) and (min-width: 961px) {
  .hero-reference-header .brand { flex-basis: 178px; }
  .hero-reference-header .nav-links { gap: 10px; font-size: 12px; }
  .hero-reference-header .sl-i18n-trigger { min-width: 48px; }
  .hero .hero-grid { grid-template-columns: 48% 52%; }
  .hero-reference-copy { padding-left: 5px; }
  .hero-reference-title { font-size: 55px; }
  .hero-reference-visual .kuntur-wrap,
  .hero-reference-visual .kuntur-stage { width: 390px; }
  .hero-floating-panel { transform: scale(.86); }
  .hero-floating-chip { transform: scale(.86); transform-origin: right center; }
  .hero-floating-inventory { left: -5%; bottom: 64px; }
  .hero-reference-card { grid-template-columns: 62px 1fr; gap: 15px; padding: 20px 18px; }
  .hero-card-icon { width: 60px; height: 60px; }
  .hero-card-icon svg { width: 38px; height: 38px; }
  .hero-card-content { padding-right: 28px; }
  .hero-card-arrow { right: 17px; }
}

@media (max-width: 960px) {
  .hero-reference-header .container,
  .hero > .hero-grid,
  .hero-reference-cards { width: min(760px, calc(100% - 32px)); }
  .hero-reference-header .nav-inner { height: 74px; }
  .hero-reference-header .brand { flex: 1 1 auto; font-size: 20px; }
  .hero-reference-header .brand-mark { width: 48px; height: 48px; flex-basis: 48px; }
  .hero-reference-header .brand small { display: none; }
  .hero-reference-header .nav-links {
    justify-content: flex-start;
    gap: 10px;
    font-size: 14px;
  }
  .hero-reference-header .nav-links.open { display: flex; }
  .hero-reference-header .sl-i18n-selector { margin-left: 0; }
  .hero-reference-header .nav-login-link { min-height: 46px; }
  .hero-reference-header .menu-toggle { min-height: 46px; }
  .hero { padding-top: 25px; }
  .hero .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-reference-copy { padding: 0 18px; }
  .hero-reference-title { max-width: 650px; font-size: clamp(55px, 8.5vw, 68px); }
  .hero-reference-visual { min-height: 485px; }
  .hero-reference-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-reference-card:last-child { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; }
}

@media (max-width: 680px) {
  .hero-reference-header .container,
  .hero > .hero-grid,
  .hero-reference-cards { width: calc(100% - 24px); }
  .hero-reference-header .hero-header-demo { display: none; }
  .hero-reference-header .brand { font-size: 18px; }
  .hero-reference-header .brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
  .hero-reference-header .menu-toggle { padding: 0 15px; }
  .hero { padding-top: 24px; }
  .hero-reference-copy { padding: 0; }
  .hero-reference-kicker { margin-bottom: 12px; padding-left: 15px; font-size: 9px; letter-spacing: .15em; }
  .hero-reference-kicker::before { height: 19px; }
  .hero-reference-title { font-size: clamp(40px, 12.2vw, 51px); letter-spacing: -.045em; }
  .hero .hero-copy { font-size: 16px; line-height: 1.5; }
  .hero .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero .hero-actions .btn { width: 100%; min-width: 0; min-height: 54px; }
  .hero-reference-benefits { display: grid; gap: 9px; font-size: 12px; }
  .hero-reference-visual { min-height: 370px; margin-top: 3px; }
  .hero-reference-sky { inset: 18px -22px 3px; }
  .hero-reference-orbit { left: -9%; width: 118%; }
  .hero-reference-visual .kuntur-wrap,
  .hero-reference-visual .kuntur-stage { width: 300px; }
  .hero-reference-visual .kuntur-wrap { left: 51%; bottom: -3px; }
  .hero-floating-panel { width: 142px; min-height: 100px; padding: 11px; border-radius: 15px; }
  .hero-floating-sales { left: -3%; top: 38px; transform: rotate(2deg) scale(.82); transform-origin: left top; }
  .hero-floating-inventory { left: -4%; bottom: 20px; transform: rotate(-4deg) scale(.78); transform-origin: left bottom; }
  .hero-panel-top { gap: 6px; font-size: 12px; }
  .hero-panel-icon { width: 30px; height: 30px; border-radius: 10px; font-size: 19px; }
  .hero-sales-value { margin-top: 5px; font-size: 20px; }
  .hero-mini-chart { right: 10px; bottom: 13px; height: 38px; }
  .hero-mini-chart i { width: 6px; }
  .hero-floating-chip { min-width: 118px; gap: 7px; padding: 8px 10px; border-radius: 13px; font-size: 11px; }
  .hero-floating-chip > span { width: 29px; height: 29px; border-radius: 9px; font-size: 15px; }
  .hero-floating-purchases { right: -4%; top: 50px; transform: rotate(-4deg) scale(.88); transform-origin: right top; }
  .hero-floating-logistics { right: -5%; top: 120px; transform: rotate(-2deg) scale(.88); transform-origin: right top; }
  .hero-floating-taxes { right: -4%; top: 190px; transform: rotate(3deg) scale(.88); transform-origin: right top; }
  .hero-kuntur-signature { display: none; }
  .hero-reference-cards { grid-template-columns: 1fr; gap: 14px; }
  .hero-reference-card,
  .hero-reference-card:last-child { grid-column: auto; width: 100%; min-height: 225px; justify-self: stretch; }
  .hero-reference-tagline { width: calc(100% - 32px); gap: 12px; margin-top: 24px; }
  .hero-reference-tagline p { font-size: 9px; letter-spacing: .16em; }
}

@media (max-width: 390px) {
  .hero-reference-title { font-size: 40px; }
  .hero-reference-visual { min-height: 350px; }
  .hero-reference-visual .kuntur-wrap,
  .hero-reference-visual .kuntur-stage { width: 280px; }
  .hero-reference-card { grid-template-columns: 62px 1fr; gap: 14px; padding: 19px 18px; }
  .hero-card-icon { width: 60px; height: 60px; }
  .hero-card-icon svg { width: 38px; height: 38px; }
  .hero-card-content { padding-right: 20px; }
  .hero-card-arrow { top: 20px; right: 16px; }
  .hero-card-content > strong { padding-right: 18px; font-size: 19px; }
  .hero-card-description { font-size: 14px; }
  .hero-card-list { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reference-card,
  .hero-reference-header .nav-links > a { transition: none; }
}
