.theme-tecnologico .site-header {
  background: #fff;
  border-bottom: 1px solid #d9e6ea;
  box-shadow: 0 4px 18px #1c4b5c08;
}

.theme-tecnologico .site-header .navbar-brand img {
  filter: none;
}

.theme-tecnologico .navbar-expand-lg .navbar-nav .nav-link {
  position: relative;
  color: var(--ink);
}

.theme-tecnologico .nav-link:not(.nav-contact)::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: #e8857b;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.theme-tecnologico .nav-link:hover::after,
.theme-tecnologico .nav-link:focus-visible::after,
.theme-tecnologico .nav-link[aria-current='location']::after {
  transform: scaleX(1);
}

.theme-tecnologico .navbar-expand-lg .navbar-nav .nav-link:hover {
  color: var(--primary);
}

.theme-tecnologico .navbar-nav .nav-contact {
  background: #fff;
  border-color: var(--primary);
}

.theme-tecnologico .navbar-nav .nav-contact:hover {
  background: var(--soft);
  border-color: var(--primary);
}

.theme-tecnologico .navbar-toggler {
  color: var(--primary);
  border-color: #c9dce3;
}

.theme-tecnologico .site-header :focus-visible {
  outline-color: #a6dce5;
}

@font-face {
  font-family: 'Good Times STM';
  src: url('vendor/goodtimes.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d303c;
  --primary: #266984;
  --secondary: #3e9a82;
  --muted: #697c86;
  --soft: #f1f7f7;
  --line: #d9e6ea;
}

.theme-tecnologico .navbar-brand {
  width: 275px;
}

.t-hero-surface {
  background:
    radial-gradient(ellipse at 82% 45%, #e7f3f5 0, transparent 65%),
    linear-gradient(115deg, #f9fbfd, #f3f9f8);
  border-bottom: 1px solid #edf4f5;
}

.t-hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 30px;
  align-items: center;
  padding-top: 45px;
  padding-bottom: 50px;
  min-height: 640px;
}

.t-hero .kicker {
  color: var(--primary);
  margin-bottom: 25px;
}

.t-hero .live-dot {
  background: #bf3e37;
  box-shadow: 0 0 0 4px #bf3e3710;
}

.t-hero h1 {
  font-size: clamp(52px, 5.1vw, 80px);
  margin-bottom: 28px;
}

.t-hero h1 em {
  background: linear-gradient(90deg, #266984, #36a587);
  color: transparent;
  background-clip: text;
}

.t-hero-copy > p:not(.kicker) {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 30px;
}

.t-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.theme-tecnologico .t-hero-actions .button-primary {
  background: #bf3e37;
  border-color: #bf3e37;
}

.theme-tecnologico .t-hero-actions .button-primary:hover {
  background: #9e302c;
  border-color: #9e302c;
}

.t-system {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  isolation: isolate;
  background: radial-gradient(ellipse, #e4f3f955, #e5f2f54a 45%, #fff0 70%);
}

.t-system::before {
  content: '';
  position: absolute;
  inset: 10%;
  background-image: radial-gradient(#a4c2cb 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.28;
  border-radius: 100%;
  z-index: -1;
}

.t-atom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.atom-orbit {
  color: #6d9eb3;
}

.atom-control {
  color: #518c98;
}

.atom-safety {
  color: #7d94bd;
}

.atom-orbit > path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-opacity: 0.5;
}

.atom-electron {
  stroke: none;
}

.atom-energy .atom-electron {
  color: #3899b7;
}

.atom-control .atom-electron {
  color: #36a7ad;
}

.atom-safety .atom-electron {
  color: #589fd0;
}

.atom-safety .electron-coral {
  color: #ef9673;
}

.t-core {
  position: absolute;
  top: 40%;
  left: 22%;
  width: 56%;
  text-align: center;
  z-index: 2;
}

.t-core-wordmark {
  display: inline-block;
  font-family: 'Good Times STM', sans-serif;
  font-size: 18cqw;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.2;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: #111;
}

.t-node {
  position: absolute;
  width: 32%;
  padding: 20px;
  border: 1px solid #dbe6eb;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px #2a556b12;
  text-align: left;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  animation: node-float 6s ease-in-out infinite;
  animation-play-state: paused;
}

.t-node:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 18px 40px #2a556b22;
}

.t-system.is-in-view .t-node {
  animation-play-state: running;
}

.t-system .t-node:hover,
.t-system .t-node:focus-visible {
  animation-play-state: paused;
}

.node-energy {
  top: 2%;
  left: 34%;
}

.node-control {
  top: 65%;
  left: 0;
  animation-delay: -2s;
}

.node-safety {
  top: 65%;
  right: 0;
  animation-delay: -4s;
}

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

@media (prefers-reduced-motion: reduce) {
  .atom-electron {
    display: none;
  }
}

.node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #31778e;
  background: #eaf4f7;
  margin-bottom: 12px;
}

.node-control .node-icon {
  color: #387985;
  background: #eaf4f5;
}

.node-safety .node-icon {
  color: #5b73ae;
  background: #edf2fa;
}

.node-icon svg {
  width: 21px;
  height: 21px;
}

.node-photo {
  position: relative;
  display: block;
  height: 84px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 9px;
  background: #edf2fa;
}

.node-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s,
    filter 0.6s;
}

.t-node:hover .node-photo > img,
.t-node:focus-visible .node-photo > img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.node-control .node-photo > img {
  object-position: center 45%;
}

.node-photo .node-icon {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 27px;
  height: 27px;
  margin: 0;
  border-radius: 7px;
  background: #fffffff0;
}

.node-photo .node-icon svg {
  width: 17px;
  height: 17px;
}

.t-node strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  letter-spacing: -0.025em;
}

.t-node > span:last-child {
  display: block;
  font-size: 8px;
  color: var(--muted);
}

.t-system-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.t-bridge {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  align-items: center;
  gap: 30px;
  margin-top: 28px;
  border-radius: 16px;
  padding: 27px 32px;
  background: linear-gradient(110deg, #184459, #256b7c);
  color: #fff;
  box-shadow: 0 10px 25px #234e6110;
}

.bridge-intro > span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #b9dce5;
  margin-bottom: 7px;
}

.bridge-intro strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.bridge-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.bridge-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.bridge-steps li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #ffffff50;
  border-radius: 50%;
  background: #ffffff10;
  font-size: 10px;
}

.bridge-steps li:nth-child(2) > span {
  background: #a5e2cf;
  border-color: #a5e2cf;
  color: #184459;
}

.bridge-steps li:nth-child(3) > span {
  background: #f1cf8d;
  border-color: #f1cf8d;
  color: #184459;
}

.bridge-steps li:not(:last-child)::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  margin-left: 4px;
  background: #ffffff55;
}

.bridge-year {
  font-size: 9px;
  letter-spacing: 0.05em;
  color: #c7e0e7;
}

.theme-tecnologico .expertise-grid {
  gap: 22px;
}

.theme-tecnologico .expertise-item {
  --card-accent: #276c95;
  --card-bg: #edf5fc;
  --card-end: #fff;
  --card-edge: #d2e5f3;
  --card-title: #1c3f59;
  --card-body: #3a576d;
  --card-icon-bg: #ffffffb3;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--card-edge);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--card-bg), var(--card-end) 125%);
  box-shadow: 0 5px 18px #234e6108;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}

.theme-tecnologico .expertise-item::before,
.theme-tecnologico .expertise-item::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 100px;
  top: 9px;
  right: -68px;
  border: 1px solid var(--card-accent);
  border-radius: 50%;
  opacity: 0.12;
  transform: rotate(-35deg);
  z-index: -1;
  pointer-events: none;
}

.theme-tecnologico .expertise-item::after {
  top: 45px;
  right: -44px;
  transform: rotate(35deg);
}

.theme-tecnologico .expertise-item:hover,
.theme-tecnologico .expertise-item:focus-visible {
  transform: translateY(-7px);
  border-color: var(--card-accent);
  box-shadow: 0 18px 35px #234e6119;
}

.theme-tecnologico .expertise-item[data-service='energy'] {
  --card-bg: #163f59;
  --card-end: #286b7d;
  --card-edge: #235b70;
  --card-title: #fff;
  --card-body: #d1e5ed;
  --card-accent: #bee8f0;
  --card-icon-bg: #ffffff14;
}

.theme-tecnologico .expertise-item[data-service='sun'] {
  --card-bg: #fff3d5;
  --card-end: #fffcf4;
  --card-edge: #efddb5;
  --card-title: #70451c;
  --card-body: #786047;
  --card-accent: #9a5b13;
}

.theme-tecnologico .expertise-item[data-service='control'] {
  --card-bg: #e4f4eb;
  --card-end: #f5fbf6;
  --card-edge: #cbe5d4;
  --card-title: #234d3d;
  --card-body: #4a695b;
  --card-accent: #287958;
}

.theme-tecnologico .expertise-item[data-service='water'] {
  --card-bg: #e5f3fc;
  --card-end: #f4fbff;
  --card-edge: #cbe3f2;
  --card-title: #234e68;
  --card-body: #4a6b7f;
  --card-accent: #246f95;
}

.theme-tecnologico .expertise-item[data-service='shield'] {
  --card-bg: #ffeded;
  --card-end: #fff8f6;
  --card-edge: #f1caca;
  --card-title: #7b3030;
  --card-body: #895454;
  --card-accent: #b33e3e;
}

.theme-tecnologico .expertise-item[data-service='camera'] {
  --card-bg: #eaf0fc;
  --card-end: #f7f9ff;
  --card-edge: #d4dff4;
  --card-title: #334b70;
  --card-body: #5d6e89;
  --card-accent: #4367a2;
}

.theme-tecnologico .expertise-index {
  position: absolute;
  top: 26px;
  right: 28px;
  font-size: 54px;
  font-weight: 400;
  letter-spacing: -0.07em;
  color: var(--card-accent);
  opacity: 0.2;
}

.theme-tecnologico .expertise-icon {
  position: relative;
  overflow: hidden;
  width: 64px;
  height: 64px;
  margin-bottom: 27px;
  background: var(--card-icon-bg);
  border-color: var(--card-edge);
  border-radius: 18px;
  color: var(--card-accent);
  box-shadow: 0 7px 14px #234e6107;
}

.theme-tecnologico .expertise-icon::after {
  content: '';
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    110deg,
    transparent 35%,
    #ffffff88 50%,
    transparent 65%
  );
  transform: translateX(-100%);
  transition: transform 0.8s;
  pointer-events: none;
}

.theme-tecnologico .expertise-item:hover .expertise-icon::after,
.theme-tecnologico .expertise-item:focus-visible .expertise-icon::after {
  transform: translateX(100%);
}

.theme-tecnologico .expertise-icon svg {
  width: 32px;
  height: 32px;
  transition: transform 0.25s;
}

.theme-tecnologico .expertise-item:hover .expertise-icon svg {
  transform: scale(1.12);
}

.theme-tecnologico .expertise-category {
  color: var(--card-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.035em;
  margin-bottom: 12px;
}

.theme-tecnologico .expertise-title {
  color: var(--card-title);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 95%;
}

.theme-tecnologico .expertise-text {
  color: var(--card-body);
  font-size: 13px;
  margin-bottom: 27px;
}

.theme-tecnologico .expertise-more {
  padding-top: 18px;
  border-top: 1px solid var(--card-edge);
  color: var(--card-accent);
  font-size: 11px;
}

.theme-tecnologico .expertise-more svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 1px solid var(--card-accent);
  border-radius: 50%;
}

.theme-tecnologico .about-year {
  background: linear-gradient(140deg, #296a83, #3f958d);
  border-radius: 18px;
}

.theme-tecnologico .contact-section {
  background: linear-gradient(120deg, #edf6f8, #edf5f6);
}

.theme-tecnologico .button,
.theme-tecnologico .nav-contact {
  border-radius: 10px;
}

.theme-tecnologico .site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 46px max(56px, calc((100% - 1440px) / 2));
  border-top: 3px solid #bf3e37;
  background: #10161c;
  color: #bdc8d0;
  font-size: 11px;
}

.theme-tecnologico .site-footer::before,
.theme-tecnologico .site-footer::after {
  content: '';
  position: absolute;
  right: 4%;
  top: -65px;
  width: 310px;
  height: 125px;
  border: 1px solid #a5cbd323;
  border-radius: 50%;
  transform: rotate(30deg);
  z-index: -1;
  pointer-events: none;
}

.theme-tecnologico .site-footer::after {
  transform: rotate(-30deg);
}

.theme-tecnologico .footer-logo {
  width: auto;
  padding: 0;
  background: transparent;
  text-decoration: none;
}

.footer-wordmark {
  display: block;
  font-family: 'Good Times STM', sans-serif;
  font-size: 52px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1;
  letter-spacing: -0.035em;
  color: #fff;
}

.footer-brand-caption {
  display: block;
  margin-top: 13px;
  color: #b7c8d2;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.015em;
}

.theme-tecnologico .footer-links a:hover,
.theme-tecnologico .footer-links button:hover {
  color: #fff;
}

.theme-tecnologico .footer-links a:last-child {
  color: #f1a29a;
}

.theme-tecnologico .site-footer :focus-visible {
  outline-color: #a6dce5;
}

@media (max-width: 991px) {
  .theme-tecnologico .nav-link:not(.nav-contact)::after {
    left: 0;
    right: auto;
    width: 36px;
  }

  .theme-tecnologico .site-footer {
    padding-inline: 36px;
  }

  .theme-tecnologico .navbar-brand {
    width: 245px;
  }

  .t-hero {
    gap: 10px;
    min-height: 570px;
  }

  .t-hero h1 {
    font-size: 5.6vw;
  }

  .t-node {
    padding: 12px;
  }

  .node-photo {
    height: 55px;
    margin-bottom: 10px;
  }

  .t-node strong {
    font-size: 12px;
  }

  .t-node > span:last-child {
    font-size: 7px;
  }

  .t-system-caption {
    bottom: -20px;
    font-size: 7px;
  }

  .bridge-year {
    display: none;
  }

  .t-bridge {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .bridge-steps {
    justify-content: flex-start;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .theme-tecnologico .site-footer {
    padding-inline: 20px;
  }

  .theme-tecnologico .navbar-brand {
    width: 220px;
  }

  .t-hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 40px;
  }

  .t-hero h1 {
    font-size: 14vw;
  }

  .t-hero h1 em {
    margin-left: 0;
  }

  .t-system {
    width: 100%;
    margin-bottom: 20px;
  }

  .t-node {
    border-radius: 12px;
  }

  .node-photo {
    height: 44px;
    margin-bottom: 8px;
    border-radius: 6px;
  }

  .node-photo .node-icon {
    right: 4px;
    bottom: 4px;
    width: 21px;
    height: 21px;
    border-radius: 5px;
  }

  .node-photo .node-icon svg {
    width: 13px;
    height: 13px;
  }

  .node-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
  }

  .node-icon svg {
    width: 18px;
    height: 18px;
  }

  .t-bridge {
    padding: 24px;
  }

  .bridge-intro strong {
    font-size: 17px;
  }

  .bridge-steps {
    flex-wrap: wrap;
    gap: 16px;
  }

  .bridge-steps li {
    font-size: 12px;
    gap: 8px;
  }

  .bridge-steps li > span {
    width: 25px;
    height: 25px;
    font-size: 9px;
  }

  .bridge-steps li:not(:last-child)::after {
    display: none;
  }

  .theme-tecnologico .expertise-item {
    padding: 28px;
  }
}
