body {
  background: #f7faf8;
  color: var(--ink);
  font-family: var(--upec-font-family-body);
}

.navbar.fixed-top,
footer.navbar-footer {
  display: none !important;
}

main {
  margin: 0 !important;
}

.upec-home {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(241, 185, 35, 0.10), transparent 24rem),
    radial-gradient(circle at 80% 20%, rgba(0, 99, 61, 0.09), transparent 28rem),
    #f7faf8;
}

.home-top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2200;
  color: #fff;
  box-shadow: 0 14px 36px rgba(0, 28, 20, 0.22);
}

.home-contact {
  min-height: 32px;
  background: linear-gradient(90deg, #003c2c, #00533b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
}

.home-contact-inner,
.home-nav-inner,
.content-shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
}

.home-contact-inner {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-list,
.social-list,
.home-menu,
.stats-grid,
.feature-grid,
.news-grid,
.impact-grid,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list,
.social-list {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.contact-list li,
.social-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.top-contact-link {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.12rem 0.62rem;
  border: 1px solid rgba(241, 185, 35, 0.42);
  border-radius: 999px;
  color: var(--upec-gold-2);
  text-decoration: none;
  font-weight: 800;
}

.top-contact-link:hover {
  color: #101b16;
  background: var(--upec-gold);
  text-decoration: none;
}

.home-nav {
  min-height: 58px;
  background: rgba(5, 17, 26, 0.76);
  backdrop-filter: blur(16px);
}

.home-nav-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 2.8rem);
}

.brand-block {
  display: flex;
  align-items: center;
  min-width: clamp(260px, 26vw, 380px);
  gap: 0.62rem;
  color: #fff;
  text-decoration: none;
}

.brand-block:hover {
  color: #fff;
  text-decoration: none;
}

.brand-block img {
  width: clamp(118px, 10vw, 164px);
  max-height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

.brand-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.28);
}

.brand-title {
  display: block;
  max-width: 235px;
  color: #fff;
  font-weight: 700;
  line-height: 1.18;
  font-size: clamp(0.68rem, 0.78vw, 0.82rem);
}

.home-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 1vw, 1.1rem);
  min-width: 0;
}

.home-menu li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-menu a {
  position: relative;
  min-height: 38px;
  color: rgba(255, 255, 255, 0.90);
  text-decoration: none;
  font-size: clamp(0.66rem, 0.72vw, 0.78rem);
  font-weight: 400;
  line-height: 1.1;
  padding: 0.48rem 0.12rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  white-space: nowrap;
}

.home-menu a i {
  flex: 0 0 auto;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.74);
}

.home-menu a.active i,
.home-menu a:hover i {
  color: var(--upec-gold);
}

.home-menu .nav-labs a {
  width: min-content;
  min-width: 164px;
  white-space: normal;
}

.home-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.22rem;
  height: 2px;
  border-radius: 99px;
  background: var(--upec-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.home-menu a:hover::after,
.home-menu a.active::after {
  transform: scaleX(1);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.icon-btn,
.mobile-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.login-action {
  min-height: 34px;
  max-width: 128px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  padding: 0 0.72rem;
  border-radius: 8px;
  border: 1px solid var(--upec-gold);
  color: var(--upec-gold-2);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-action:hover {
  background: var(--upec-gold);
  color: #0e1b15;
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  border-radius: 10px;
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 0;
  background: #061612;
}

.hero-slides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #061612;
}

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity .85s ease, transform 3s ease;
}

.hero-slides img.is-active { opacity: 1; transform: scale(1); }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 12, 10, 0.93) 0%, rgba(2, 22, 17, 0.74) 42%, rgba(2, 20, 18, 0.46) 72%, rgba(2, 12, 10, 0.82) 100%),
    radial-gradient(circle at 45% 58%, rgba(0, 173, 117, 0.28), transparent 24rem);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.home-hero-tech {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.52;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(70, 231, 216, .62) 8% 8.07%, transparent 8.07% 29%, rgba(70, 231, 216, .42) 29% 29.06%, transparent 29.06%),
    linear-gradient(0deg, transparent 0 18%, rgba(60, 211, 216, .35) 18% 18.1%, transparent 18.1% 77%, rgba(242, 185, 45, .42) 77% 77.1%, transparent 77.1%);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .64) 55%, #000);
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .64) 55%, #000);
}

.home-hero-tech::before,
.home-hero-tech::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-hero-tech::before {
  inset: 0;
  background:
    linear-gradient(116deg, transparent 0 13%, rgba(72, 228, 215, .5) 13% 13.08%, transparent 13.08% 41%, rgba(242, 185, 45, .48) 41% 41.08%, transparent 41.08% 73%, rgba(72, 211, 226, .42) 73% 73.08%, transparent 73.08%),
    radial-gradient(circle at 14% 28%, rgba(68, 230, 215, .75) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 22%, rgba(242, 185, 45, .8) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 78%, rgba(68, 230, 215, .7) 0 2px, transparent 3px);
}

.home-hero-tech::after {
  left: -32%;
  top: 0;
  width: 32%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(105, 241, 228, .14), transparent);
  animation: homeHeroSweep 7s ease-in-out infinite;
}

.home-hero-tech i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #59ecdd;
  box-shadow: 0 0 15px #59ecdd;
  animation: homeCircuitPulse 2.2s ease-in-out infinite;
}

.home-hero-tech i:nth-child(1) { left: 8%; top: 18%; }
.home-hero-tech i:nth-child(2) { left: 29%; top: 77%; animation-delay: .45s; }
.home-hero-tech i:nth-child(3) { left: 48%; top: 27%; animation-delay: .9s; }
.home-hero-tech i:nth-child(4) { right: 8%; top: 18%; background: #f2b92d; box-shadow: 0 0 15px #f2b92d; animation-delay: .25s; }
.home-hero-tech i:nth-child(5) { right: 29%; top: 77%; background: #f2b92d; box-shadow: 0 0 15px #f2b92d; animation-delay: .7s; }
.home-hero-tech i:nth-child(6) { right: 43%; top: 38%; animation-delay: 1.15s; }

@keyframes homeCircuitPulse {
  0%, 100% { opacity: .28; transform: scale(.76); }
  50% { opacity: 1; transform: scale(1.38); }
}

@keyframes homeHeroSweep {
  0%, 12% { transform: translateX(0); }
  72%, 100% { transform: translateX(415%); }
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 4.4rem 0 5.8rem;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--upec-gold);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.eyebrow::before {
  content: "";
  width: 54px;
  height: 3px;
  border-radius: 99px;
  background: var(--upec-gold);
}

.hero h1 {
  margin: 1rem 0 1rem;
  color: #fff;
  font-size: clamp(2.45rem, 4.8vw, 5.2rem);
  line-height: 0.98;
  font-weight: 800;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.46);
}

.hero h1 span {
  color: var(--upec-gold-2);
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(1rem, 1.1vw, 1.22rem);
  line-height: 1.52;
  margin: 0 0 1.6rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-brand-mark {
  position: absolute;
  z-index: 4;
  top: 34px;
  right: max(28px, calc((100% - 1480px) / 2));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 11px;
  background: linear-gradient(115deg, rgba(3,23,19,.76), rgba(5,43,34,.45));
  box-shadow: 0 16px 38px rgba(0,0,0,.26);
  backdrop-filter: blur(9px);
}

.hero-brand-mark img { width: 225px; height: auto; }
.hero-brand-mark span { max-width: 125px; padding-left: 15px; border-left: 1px solid rgba(241,185,35,.8); color: #fff; font-size: .66rem; font-weight: 800; line-height: 1.45; text-transform: uppercase; }

.hero-slide-status { position: absolute; z-index: 4; right: max(28px, calc((100% - 1480px) / 2)); bottom: 74px; display: flex; gap: 8px; padding: 8px 10px; border-radius: 99px; background: rgba(3,20,16,.5); backdrop-filter: blur(7px); }
.hero-slide-status span { width: 9px; height: 9px; border-radius: 99px; background: rgba(255,255,255,.48); transition: .25s ease; }
.hero-slide-status span.is-active { width: 30px; background: var(--upec-gold); }
@media (max-width: 980px) {
  .hero-brand-mark { top: 22px; right: 24px; padding: 10px 13px; }
  .hero-brand-mark img { width: 175px; }
  .hero-brand-mark span { display: none; }
  .hero-inner { padding-top: 8.2rem; }
}
@media (max-width: 600px) {
  .hero-brand-mark { left: 18px; right: auto; top: 18px; }
  .hero-brand-mark img { width: 155px; }
  .hero-inner { padding-top: 7.4rem; }
  .hero-slide-status { right: 18px; bottom: 56px; }
  .home-hero-tech { opacity: .34; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-tech::after,
  .home-hero-tech i { animation: none; }
}

.home-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.35rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}

.home-btn.primary {
  background: linear-gradient(135deg, #18a56f, #0e6d4a);
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 107, 72, 0.36);
}

.home-btn.secondary {
  background: rgba(2, 13, 10, 0.38);
  color: #fff;
  border-color: rgba(241, 185, 35, 0.62);
}

.home-btn.gold {
  background: linear-gradient(135deg, #f7c13a, #e5a90e);
  color: #182018;
}

.home-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.hero-video-link {
  position: absolute;
  z-index: 4;
  right: min(7vw, 110px);
  bottom: 76px;
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.play-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.84);
  background: rgba(3, 14, 12, 0.38);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
}

.hero-video-link small {
  display: block;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.stats-wrap {
  position: relative;
  z-index: 5;
  margin-top: -48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(11, 46, 36, 0.18);
  border: 1px solid rgba(0, 63, 45, 0.10);
  overflow: hidden;
}

.stat-item {
  min-height: 94px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.86rem;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-icon,
.cap-icon,
.section-card-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--upec-green-2);
  background: rgba(0, 99, 61, 0.10);
}

.stat-icon {
  width: 52px;
  height: 52px;
  font-size: 1.7rem;
}

.stat-number {
  display: block;
  color: var(--upec-green);
  font-weight: 900;
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 0.2rem;
  color: #283a34;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.14;
}

.section-heading {
  text-align: center;
  padding: 2.2rem 0 1.3rem;
}

.section-heading h2 {
  color: var(--upec-green);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
}

.heading-line {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.heading-line::before,
.heading-line::after {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--upec-gold);
}

.section-heading p {
  margin: 0.4rem auto 0;
  color: var(--muted);
  max-width: 680px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding-bottom: 2.2rem;
}

.feature-card {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  background: var(--deep);
  box-shadow: 0 14px 34px rgba(11, 46, 36, 0.16);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 45, 32, 0.96), rgba(0, 65, 48, 0.76) 42%, rgba(0, 0, 0, 0.06));
  z-index: 1;
}

.feature-card img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 60%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.feature-body {
  position: relative;
  z-index: 2;
  max-width: 64%;
  padding: 1.45rem 1.55rem;
}

.feature-body h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 0.52rem;
}

.feature-body p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0 0 0.8rem;
}

.round-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--upec-green);
  text-decoration: none;
}

.full-bleed {
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.capabilities {
  background:
    linear-gradient(90deg, rgba(0, 50, 38, 0.96), rgba(0, 28, 28, 0.96)),
    url("{% static 'img/cards/industry.jpg' %}") center/cover no-repeat;
  color: #fff;
}

.cap-inner {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 1.4rem;
  align-items: center;
  padding: 2rem 0;
}

.cap-text h2 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 2rem);
  text-transform: uppercase;
  font-weight: 900;
}

.cap-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cap-tab {
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.78rem;
}

.cap-tab.active {
  color: var(--upec-gold);
}

.cap-text p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.52;
}

.media-board {
  display: grid;
  grid-template-columns: 1.1fr 1.35fr 0.9fr;
  gap: 0.6rem;
  align-items: stretch;
}

.media-tile {
  min-height: 190px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}

.media-tile img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  display: block;
}

.media-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.6rem;
}

.media-stack .media-tile,
.media-stack .media-tile img {
  min-height: 90px;
}

.video-tile::after {
  content: "\e071";
  font-family: "simple-line-icons";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(0, 63, 45, 0.62);
}

.updates {
  padding: 1.15rem 0 1.7rem;
}

.updates-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.updates-head h2 {
  color: var(--upec-green);
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
}

.updates-head a {
  color: var(--upec-green);
  font-weight: 800;
  text-decoration: none;
  font-size: 0.86rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.news-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: 108px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(11, 46, 36, 0.08);
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  padding: 0.78rem 0.88rem;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  color: #6f7c77;
  text-transform: uppercase;
  font-weight: 800;
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  background: rgba(0, 99, 61, 0.12);
  color: var(--upec-green);
  font-weight: 900;
}

.tag.gold {
  background: rgba(241, 185, 35, 0.24);
  color: #8a6400;
}

.news-card h3 {
  margin: 0 0 0.52rem;
  color: #14221e;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.25;
}

.news-card a {
  color: var(--upec-green);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.74rem;
}

.impact-band {
  background: linear-gradient(90deg, #00412f, #006445, #003c32);
  color: #fff;
}

.impact-grid {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 96px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.impact-item {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 1rem 1.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.impact-item:last-child {
  border-right: 0;
}

.impact-item i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.86);
}

.impact-item strong {
  display: block;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
}

.impact-item span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
}

.home-footer {
  background: linear-gradient(135deg, #111719, #07110f);
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 92px;
  display: grid;
  grid-template-columns: 1.25fr 2fr 1.1fr;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand img {
  width: 150px;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.8);
}

.footer-brand p,
.footer-copy p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.38;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: clamp(0.7rem, 2vw, 2rem);
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
}

.footer-copy {
  text-align: right;
}

@media (max-width: 1199.98px) {
  :root { --header-h: 74px; }
  .home-contact { display: none; }
  .home-nav,
  .home-nav-inner { min-height: 74px; }
  .brand-block { min-width: 250px; }
  .brand-block img { width: 118px; }
  .brand-title { font-size: 0.74rem; }
  .home-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 74px;
    display: none;
    padding: 1rem 24px;
    background: rgba(4, 20, 16, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    flex-direction: column;
    align-items: flex-start;
  }
  .home-top.menu-open .home-menu { display: flex; }
  .mobile-toggle { display: inline-flex; }
  .stats-grid,
  .impact-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(3n),
  .impact-item:nth-child(3n) { border-right: 0; }
  .feature-grid,
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-inner { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  :root { --header-h: 64px; }
  .home-contact-inner,
  .home-nav-inner,
  .content-shell,
  .hero-inner,
  .cap-inner,
  .impact-grid,
  .footer-inner {
    width: min(100% - 28px, 1480px);
  }
  .home-nav,
  .home-nav-inner { min-height: 64px; }
  .home-menu { top: 64px; padding: 1rem 14px; }
  .brand-block { min-width: 0; flex: 1; }
  .brand-block img { width: 104px; max-height: 38px; }
  .brand-divider,
  .brand-title,
  .nav-tools .icon-btn { display: none; }
  .login-action {
    width: 38px;
    min-width: 38px;
    padding: 0;
    border-radius: 50%;
  }
  .login-action span { display: none; }
  .hero { min-height: 610px; }
  .hero-inner { padding: 3.3rem 0 6.2rem; }
  .hero h1 { font-size: 2.25rem; line-height: 1.04; }
  .hero-video-link {
    left: 24px;
    right: auto;
    bottom: 44px;
  }
  .stats-wrap { margin-top: -34px; }
  .stats-grid,
  .feature-grid,
  .news-grid,
  .impact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .stat-item,
  .impact-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .impact-item { border-bottom-color: rgba(255, 255, 255, 0.16); }
  .feature-card img { width: 100%; opacity: 0.42; }
  .feature-body { max-width: 100%; }
  .media-board { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 96px 1fr; }
  .footer-inner {
    padding: 1.4rem 0;
    text-align: left;
  }
  .footer-links { justify-content: flex-start; }
  .footer-copy { text-align: left; }
}

/* Versión clara del ecosistema para integrarlo con la portada. */
.upec-home .connected-units {
  color: #18352c;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 99, 61, 0.07), transparent 25rem),
    radial-gradient(circle at 88% 8%, rgba(241, 185, 35, 0.10), transparent 23rem),
    linear-gradient(180deg, #ffffff 0%, #f3f7f5 100%);
}

.upec-home .connected-units::before,
.upec-home .connected-units::after {
  opacity: 0.12;
  background-image: radial-gradient(circle, #00633d 1px, transparent 2px);
}

.upec-home .connected-units__heading h2 { color: #12382c; }
.upec-home .connected-units__heading p { color: #5d7069; }
.upec-home .connected-units__heading span { color: #a77800; }

.upec-home .connected-unit {
  border-color: rgba(0, 99, 61, 0.34);
  background: linear-gradient(145deg, #0d352a, #08261f);
  box-shadow: 0 22px 48px rgba(18, 56, 44, 0.16);
}

.upec-home .connected-unit--teaching { border-color: rgba(184, 132, 0, 0.48); }

.upec-home .connected-units__bridge { color: #536b62; }
.upec-home .connected-units__bridge i {
  color: #00633d;
  border-color: #1b8c65;
  background: #ffffff;
  box-shadow: 0 0 0 14px rgba(0, 99, 61, 0.06), 0 12px 28px rgba(12, 62, 45, 0.14);
}

.upec-home .connected-capabilities {
  border-color: rgba(0, 99, 61, 0.22);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(18, 56, 44, 0.10);
}

.upec-home .connected-capabilities header h3,
.upec-home .connected-capabilities li b { color: #153a2e; }
.upec-home .connected-capabilities header p,
.upec-home .connected-capabilities li span { color: #61736c; }
.upec-home .connected-capabilities li i {
  color: #087553;
  border-color: #188b65;
  background: #f4faf7;
  box-shadow: 0 8px 22px rgba(0, 99, 61, 0.12);
}
.upec-home .connected-capabilities li:nth-child(n+4) i {
  color: #b47f00;
  border-color: #d7a11d;
  background: #fffaf0;
}

/* Tamaños de los nombres principales solicitados para la portada. */
.upec-home .connected-unit > header .connected-unit__title h3 {
  font-size: 38px !important;
  line-height: 1 !important;
}

.upec-home .connected-unit > header .connected-unit__title p {
  font-size: 16px !important;
  line-height: 1.2;
}

.upec-home .connected-unit__title .title-nowrap {
  display: inline !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  background: none !important;
  box-shadow: none !important;
  font: inherit !important;
  white-space: nowrap;
}

.upec-home .connected-unit--teaching > header {
  grid-template-columns: 68px minmax(0, 1fr) 250px;
  column-gap: 14px;
  min-height: 126px;
  height: 126px;
  flex-basis: 126px;
}

.upec-home .connected-unit--teaching .connected-unit__title .title-nowrap {
  display: inline-block !important;
  font-size: 28px !important;
  line-height: 30px !important;
  letter-spacing: -0.02em !important;
}

.upec-home .connected-unit--teaching > header > span {
  max-width: 250px;
  padding: 10px 13px;
  font-size: 11px;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
}

.upec-home .connected-unit--teaching .connected-unit__title p {
  margin-top: 4px;
  font-size: 13px !important;
}

@media (max-width: 650px) {
  .upec-home .connected-unit > header .connected-unit__title h3 {
    font-size: 30px !important;
  }

  .upec-home .connected-unit > header .connected-unit__title p {
    font-size: 12px !important;
  }

  .upec-home .connected-unit__title .title-nowrap { white-space: normal; }
  .upec-home .connected-unit--teaching > header {
    grid-template-columns: 56px 1fr;
    height: auto;
    min-height: 0;
    flex-basis: auto;
  }
  .upec-home .connected-unit--teaching .connected-unit__title .title-nowrap {
    display: inline !important;
    font-size: 24px !important;
    line-height: 26px !important;
  }
  .upec-home .connected-unit--teaching > header > span {
    max-width: none;
    grid-column: 1 / -1;
  }
}

.home-interactive-experiences {
  padding: 34px clamp(18px, 3vw, 62px) 54px;
  background: linear-gradient(180deg, #f3f7f5, #eef3f1);
}

.home-interactive-experiences .showcase-experiences {
  width: min(1740px, 100%) !important;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1.05fr) minmax(0, 0.76fr) !important;
  gap: 18px !important;
  margin-top: 0 !important;
  align-items: stretch;
}

.ecosystem-access-rail {
  position: relative;
  z-index: 3;
  width: min(1740px, 100%);
  min-height: 66px;
  margin: -34px auto 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  color: #1b6455;
}

.ecosystem-access-rail::before,
.ecosystem-access-rail::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 18px;
  border-top: 1px solid #42bbaa;
  opacity: 0.72;
}

.ecosystem-access-rail::before {
  left: 2%;
  border-left: 1px solid #42bbaa;
  transform: skewX(38deg);
}

.ecosystem-access-rail::after {
  right: 2%;
  border-right: 1px solid #d9a32a;
  border-top-color: #d9a32a;
  transform: skewX(-38deg);
}

.ecosystem-access-rail > div {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-evenly;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(243, 247, 245, 0.92);
}

.ecosystem-access-rail > div span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.ecosystem-access-rail__practice { color: #9a6b08; }

.ecosystem-access-rail > strong {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 19px;
  border: 1px solid #5dcabb;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 88, 72, 0.12), 0 0 18px rgba(62, 200, 181, 0.12);
  color: #176151;
  font-size: 12px;
  white-space: nowrap;
}

.ecosystem-access-rail > strong i {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #fff;
  background: #168c77;
  animation: corePulse 2s ease-in-out infinite;
}

.ecosystem-access-rail > strong b { font-size: 20px; }

.ecosystem-access-rail::before,
.ecosystem-access-rail::after { display: none; }

.ecosystem-access-wires {
  position: absolute;
  z-index: 1;
  left: 0;
  top: -68px;
  width: 100%;
  height: 155px;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(38, 174, 153, 0.22));
}

.ecosystem-access-wires path { fill: none; vector-effect: non-scaling-stroke; }
.ecosystem-access-wires .wire-base {
  stroke: #9bc7bf;
  stroke-width: 1.2;
  opacity: 0.78;
}

.ecosystem-access-wires .wire-energy {
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 16 42;
  animation: ecosystemWireFlow 2.2s linear infinite;
}

.ecosystem-access-wires .wire-energy--research {
  stroke: #1bc9b2;
  filter: drop-shadow(0 0 5px #39d8c3);
}

.ecosystem-access-wires .wire-energy--practice {
  stroke: #dfa524;
  filter: drop-shadow(0 0 5px #edb438);
  animation-delay: -1.1s;
}

.ecosystem-access-wires .wire-energy--center { animation-delay: -0.55s; }

.ecosystem-access-wires .wire-nodes circle {
  fill: #fff;
  stroke: #24ae9a;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  animation: ecosystemNodePulse 1.8s ease-in-out infinite;
}

.ecosystem-access-wires .wire-nodes circle:nth-child(3),
.ecosystem-access-wires .wire-nodes circle:nth-child(4),
.ecosystem-access-wires .wire-nodes circle:last-child {
  stroke: #d99e1d;
  animation-delay: -0.9s;
}

.ecosystem-access-wires .wire-nodes circle:nth-child(5) {
  fill: #1c9d88;
  stroke: #fff;
  filter: drop-shadow(0 0 7px #2dd6bd);
}

@keyframes ecosystemWireFlow { to { stroke-dashoffset: -58; } }
@keyframes ecosystemNodePulse {
  0%, 100% { opacity: 0.55; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.45); }
}

.home-interactive-experiences .showcase-experiences > article {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-interactive-experiences .showcase-experiences > article:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(20, 55, 46, 0.14);
}

.ecosystem-closing-rail {
  width: min(1220px, 92%);
  min-height: 48px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 10px 22px;
  border: 1px solid rgba(35, 139, 118, 0.25);
  border-radius: 999px;
  color: #477068;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 24px rgba(18, 65, 53, 0.06);
  font-size: 11px;
}

.ecosystem-closing-rail i { color: #188c76; font-size: 18px; }
.ecosystem-closing-rail b { color: #168c76; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 1050px) {
  .ecosystem-access-rail { grid-template-columns: 1fr; margin-top: 0; }
  .ecosystem-access-rail::before,
  .ecosystem-access-rail::after { display: none; }
  .ecosystem-access-rail > strong { justify-self: center; grid-row: 1; }
  .ecosystem-access-wires { top: -34px; height: 105px; opacity: 0.62; }
  .home-interactive-experiences .showcase-experiences { grid-template-columns: 1fr !important; }
}

@media (min-width: 1051px) and (max-width: 1450px) {
  .home-interactive-experiences .showcase-impact {
    grid-column: auto !important;
    display: block !important;
  }

  .home-interactive-experiences .showcase-impact > span,
  .home-interactive-experiences .showcase-impact > h3,
  .home-interactive-experiences .showcase-impact > p,
  .home-interactive-experiences .showcase-impact ul,
  .home-interactive-experiences .showcase-impact > a {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .home-interactive-experiences .showcase-impact ul { margin: 18px 0 !important; }
}

@media (max-width: 650px) {
  .ecosystem-access-rail > div { overflow-x: auto; justify-content: flex-start; }
  .ecosystem-closing-rail { align-items: flex-start; border-radius: 18px; flex-wrap: wrap; text-align: center; }
  .ecosystem-access-wires { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-access-wires .wire-energy,
  .ecosystem-access-wires .wire-nodes circle { animation: none; }
}

/* Composición compacta y continua basada en la referencia visual. */
.upec-home .connected-units {
  padding: 38px clamp(18px, 3vw, 62px) 28px;
  background: #f4f7f6;
}

.upec-home .connected-units__heading {
  margin-bottom: 22px;
}

.upec-home .connected-units__heading h2 {
  font-size: clamp(34px, 3.1vw, 52px);
}

.upec-home .connected-units__heading p {
  max-width: 900px;
  font-size: 15px;
}

.upec-home .connected-units__comparison {
  width: min(1740px, 100%);
  grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.upec-home .connected-unit {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  padding: 16px 18px 14px;
}

.upec-home .connected-unit > header {
  flex: 0 0 126px;
  height: 126px;
  min-height: 126px;
  margin-bottom: 10px;
}

.upec-home .connected-unit__viewer {
  height: 285px;
}

.upec-home .connected-unit__thumbs {
  gap: 8px;
  margin-top: 8px;
}

.upec-home .connected-unit__thumbs button {
  height: 68px;
}

.upec-home .connected-unit__thumbs button img {
  height: 46px;
}

.upec-home .connected-unit dl {
  flex: 0 0 auto;
  margin-top: 10px;
}

.upec-home .connected-unit dl div {
  min-height: 78px;
  padding: 10px 12px;
}

.upec-home .connected-unit dt { font-size: 11px; }
.upec-home .connected-unit dd { margin-top: 5px; font-size: 10px; line-height: 1.4; }

.upec-home .connected-unit__action {
  margin-top: auto;
  min-height: 42px;
  max-width: 390px;
  padding: 8px 22px;
  font-size: 15px;
}

.upec-home .connected-units__bridge {
  display: flex;
  min-height: 250px;
  height: 100%;
  justify-content: center;
  align-self: stretch;
}

.upec-home .connected-units__bridge > i {
  flex: 0 0 auto;
  margin: 0 0 18px;
}

.upec-home .connected-units__bridge > p { margin: 0; }

.home-interactive-experiences {
  padding-top: 22px;
  background: #f4f7f6;
}

.ecosystem-access-rail {
  min-height: 112px;
  margin: -18px auto 12px;
  display: block;
}

.ecosystem-access-wires {
  top: 0;
  height: 112px;
}

.ecosystem-access-rail > strong {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
}

.ecosystem-access-rail > .ecosystem-access-rail__research,
.ecosystem-access-rail > .ecosystem-access-rail__practice {
  position: absolute;
  z-index: 3;
  top: 50px;
  width: 42%;
  padding: 5px 12px;
  background: #f4f7f6;
}

.ecosystem-access-rail > .ecosystem-access-rail__research { left: 3%; }
.ecosystem-access-rail > .ecosystem-access-rail__practice { right: 3%; }

.home-interactive-experiences .showcase-tour-layout,
.home-interactive-experiences .showcase-model-layout {
  height: 370px;
}

.home-interactive-experiences .showcase-experiences > article {
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(20, 55, 46, 0.08);
}

.home-interactive-experiences .showcase-tour-panel > h3,
.home-interactive-experiences .showcase-model > h3 {
  padding: 16px 18px 12px !important;
}

.home-interactive-experiences .showcase-impact {
  padding: 22px 20px !important;
}

@media (max-width: 1050px) {
  .upec-home .connected-units__comparison { grid-template-columns: 1fr; }
  .upec-home .connected-units__bridge { min-height: 100px; }
  .upec-home .connected-unit__viewer { height: 330px; }
  .home-interactive-experiences .showcase-tour-layout,
  .home-interactive-experiences .showcase-model-layout { height: 420px; }
  .ecosystem-access-rail {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 8px;
    margin: 0 auto 18px;
  }
  .ecosystem-access-wires { display: none; }
  .ecosystem-access-rail > strong,
  .ecosystem-access-rail > .ecosystem-access-rail__research,
  .ecosystem-access-rail > .ecosystem-access-rail__practice {
    position: relative;
    inset: auto;
    width: auto;
    transform: none;
  }
  .ecosystem-access-rail > strong { justify-self: center; grid-row: 1; }
}

@media (max-width: 650px) {
  .upec-home .connected-unit > header {
    height: auto;
    min-height: 0;
    flex-basis: auto;
  }
  .upec-home .connected-unit__viewer { height: 245px; }
  .upec-home .connected-unit__thumbs button { height: 62px; }
  .home-interactive-experiences .showcase-tour-layout,
  .home-interactive-experiences .showcase-model-layout { height: auto; }
}
