@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-navy: #003d5c;
  --color-navy-600: #012f47;
  --color-navy-700: #022435;
  --color-navy-800: #041c29;
  --color-navy-900: #03141d;
  --color-navy-950: #020d14;
  --color-cyan: #5ce1e6;
  --color-cyan-soft: #8beef1;
  --color-offwhite: #fffbfb;
  --color-muted: rgba(255, 255, 255, 0.6);
  --color-faint: rgba(255, 255, 255, 0.1);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --container-max-w: 1400px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--color-navy-900);
  color: var(--color-offwhite);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--color-navy-900);
  overflow-x: hidden;
}

/* Background Canvas */
#network-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.content-wrapper {
  position: relative;
  z-index: 10;
}

.container {
  width: 100%;
  max-width: var(--container-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(2, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo img {
  width: 170px;
  max-width: 180px;
  height: auto;
  display: block;
}

@media (min-width: 640px) {
  .brand-logo img {
    width: 185px;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.375rem;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-cyan);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .header-actions {
    display: flex;
  }
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s;
}

.btn-ghost:hover {
  border-color: rgba(92, 225, 230, 0.6);
  color: #fff;
}

.btn-primary {
  background: var(--color-cyan);
  color: var(--color-navy-950);
  border-radius: 0.375rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-cyan-soft);
  box-shadow: 0 0 24px rgba(92, 225, 230, 0.4);
}

.menu-toggle {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.375rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle .icon-menu {
  display: block;
}
.menu-toggle .icon-close {
  display: none;
}
.menu-toggle.is-open .icon-menu {
  display: none;
}
.menu-toggle.is-open .icon-close {
  display: block;
}

/* Mobile Nav Dropdown like mockup */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(2, 13, 20, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  z-index: 45;
}

.mobile-nav.open {
  max-height: 520px;
  opacity: 1;
}

.mobile-nav-inner {
  max-width: var(--container-max-w);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .mobile-nav-inner {
    padding: 1.25rem 2rem 1.5rem;
  }
}

.mobile-nav-inner > a {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.75rem;
  border-radius: 0.375rem;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-inner > a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  margin-top: 0.75rem;
  width: 100%;
}

.mobile-btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

/* Arrow bounce in Hero Discover */
@keyframes bounceSmall {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.arrow-bounce {
  animation: bounceSmall 1.8s ease-in-out infinite;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-section > .container {
  width: 100%;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop img,
.hero-backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.9;
}

.hero-backdrop img {
  animation: heroDrift 36s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.08) translateY(-1.5%); }
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-navy-950) 0%, rgba(2, 13, 20, 0.6) 60%, transparent 100%),
              linear-gradient(to top, var(--color-navy-950) 0%, transparent 50%, rgba(2, 13, 20, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  width: 100%;
  padding-top: 0;
  margin-top: -3.5rem;
  margin-left: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--color-cyan);
}

.eyebrow .line {
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: rgba(92, 225, 230, 0.7);
}

.hero-title {
  margin-top: 1.75rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-offwhite);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.text-cyan-glow {
  color: var(--color-cyan);
  text-shadow: 0 0 32px rgba(92, 225, 230, 0.45);
}

.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.hero-meta .v-line {
  margin-top: 0.25rem;
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, rgba(92, 225, 230, 0.7), transparent);
}

.hero-meta .tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--color-cyan);
}

.hero-meta .subtext {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-scroll-wrap {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.hero-scroll-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  text-align: center;
  pointer-events: auto;
}

.hero-scroll-btn span.label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.hero-scroll-btn:hover span.label {
  color: var(--color-cyan);
}

.hero-scroll-btn .circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
}

.hero-scroll-btn:hover .circle {
  border-color: rgba(92, 225, 230, 0.7);
  color: var(--color-cyan);
}

/* Sections & Dividers */
.section-pad {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .section-pad {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.section-head {
  max-width: 58rem;
}

.section-head h2 {
  margin-top: 1.5rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-offwhite);
}

@media (min-width: 640px) {
  .section-head h2 {
    font-size: 3rem;
  }
}

.section-head p.desc {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* Ecosystem / Tech Connects */
.tech-box {
  margin-top: 4rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(4, 28, 41, 0.4);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .tech-box {
    padding: 2.5rem;
  }
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.tech-node {
  position: relative;
  display: flex;
}

@media (min-width: 768px) {
  .tech-node {
    display: block;
  }
}

.tech-connector {
  display: none;
}

@media (min-width: 768px) {
  .tech-connector {
    display: block;
    position: absolute;
    right: 0;
    top: 2rem;
    height: 1px;
    width: 100%;
    transform: translateX(50%);
    background: linear-gradient(to right, rgba(92, 225, 230, 0.4), transparent);
  }
}

.tech-node-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 768px) {
  .tech-node-content {
    align-items: center;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.tech-icon-wrap {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(92, 225, 230, 0.3);
  background: rgba(2, 13, 20, 0.6);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(92, 225, 230, 0.12);
}

.tech-node-content h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-offwhite);
}

.tech-node-content p {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Flip Cards (Specializations) */
.specializations-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .specializations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .specializations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flip-card {
  perspective: 1400px;
  height: 340px;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 1rem;
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
}

.flip-card:hover .flip-inner,
.flip-card:focus-within .flip-inner,
.flip-card.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.flip-front {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flip-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.flip-card:hover .flip-front img {
  transform: scale(1.05);
}

.flip-front .gradient-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-navy-950) 0%, rgba(2, 13, 20, 0.3) 50%, transparent 100%);
}

.flip-front .bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.flip-front .badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(2, 13, 20, 0.5);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
}

.flip-back {
  transform: rotateY(180deg);
  background: var(--color-navy-800);
  border: 1px solid rgba(92, 225, 230, 0.28);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flip-back .num {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-cyan);
}

.flip-back h3 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-offwhite);
}

.flip-back p {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

/* Projects */
.featured-project {
  margin-top: 3.5rem;
  position: relative;
  min-height: 440px;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: block;
}

@media (min-width: 640px) {
  .featured-project {
    min-height: 500px;
  }
}

.featured-project-bg-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}

.featured-project-bg-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
  transition: transform 0.6s ease;
}

.featured-project:hover .featured-project-bg-link img {
  transform: scale(1.025);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 13, 20, 0.72) 0%,
    rgba(2, 13, 20, 0.40) 25%,
    rgba(2, 13, 20, 0.08) 48%,
    transparent 65%
  );
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.featured-project:hover .featured-overlay {
  opacity: 0.95;
}

.featured-tag {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(92, 225, 230, 0.4);
  background: rgba(2, 13, 20, 0.5);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-cyan);
  z-index: 2;
}

.featured-tag .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-cyan);
}

.featured-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 3;
  pointer-events: none;
}

.featured-body > * {
  pointer-events: auto;
}

@media (min-width: 640px) {
  .featured-body {
    padding: 2.5rem;
  }
}

/* Miniatura Lightbox Interfaz RoIP */
.featured-thumb-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.lightbox-trigger {
  position: relative;
  display: inline-block;
  padding: 0;
  background: rgba(2, 13, 20, 0.85);
  border: 1.5px solid rgba(92, 225, 230, 0.55);
  border-radius: 0.65rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(92, 225, 230, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  line-height: 0;
}

.lightbox-trigger:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--color-cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 24px rgba(92, 225, 230, 0.4);
}

.featured-thumb-img {
  width: 180px;
  height: 108px;
  object-fit: cover;
  display: block;
  transition: filter 0.25s ease;
}

@media (min-width: 640px) {
  .featured-thumb-img {
    width: 220px;
    height: 132px;
  }
}

.lightbox-zoom-icon {
  position: absolute;
  inset: 0;
  background: rgba(2, 13, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-trigger:hover .lightbox-zoom-icon {
  opacity: 1;
}

.thumb-hint {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(92, 225, 230, 0.85);
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.featured-title-link {
  color: var(--color-offwhite);
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-title-link:hover {
  color: #fff;
}

.featured-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-offwhite);
}

@media (min-width: 640px) {
  .featured-body h3 {
    font-size: 2.25rem;
  }
}

.featured-body p.summary {
  margin-top: 0.75rem;
  max-width: 48rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.project-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-cyan);
  transition: transform 0.3s ease, gap 0.3s ease;
}

.featured-project:hover .project-link-cta,
.project-card:hover .project-link-cta {
  gap: 0.7rem;
}

/* Secondary projects grid */
.secondary-projects-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .secondary-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  position: relative;
  min-height: 420px;
  height: 420px;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 13, 20, 0.72) 0%,
    rgba(2, 13, 20, 0.38) 25%,
    rgba(2, 13, 20, 0.08) 48%,
    transparent 65%
  );
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.project-card:hover .overlay {
  opacity: 0.95;
}

.project-card-content {
  position: relative;
  z-index: 2;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.project-card-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(92, 225, 230, 0.85);
}

.project-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0.45rem;
  letter-spacing: -0.02em;
  color: var(--color-offwhite);
  transition: color 0.3s ease;
}

.project-card:hover .project-card-title {
  color: #fff;
}

.project-card-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* Clients Infinite Carousel */
.clients-carousel-wrapper {
  margin-top: 3.5rem;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  will-change: transform;
  animation: clients-marquee 38s linear infinite;
  padding: 0.75rem 0.625rem;
}

.clients-carousel-wrapper:hover .clients-track {
  animation-play-state: paused;
}

@keyframes clients-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 1.25rem));
  }
}

.client-item {
  position: relative;
  flex: 0 0 240px;
  width: 240px;
  height: 10.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(4, 28, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  overflow: hidden;
  cursor: default;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.client-item:hover {
  background: rgba(1, 47, 71, 0.85);
  border-color: rgba(92, 225, 230, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.client-logo-wrap {
  width: 100%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-item:hover .client-logo-wrap {
  transform: translateY(-0.85rem);
}

.client-logo {
  max-height: 60px;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.9) contrast(1.1);
  opacity: 0.8;
  transition: filter 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center center;
  display: block;
}

.client-item:hover .client-logo {
  filter: grayscale(0%) brightness(1) contrast(1);
  opacity: 1;
  transform: scale(1.08);
}

.client-name {
  position: absolute;
  bottom: 1.1rem;
  left: 0.75rem;
  right: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-cyan);
  line-height: 1.3;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  pointer-events: none;
}

.client-item:hover .client-name {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Partners */
.partners-box {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(4, 28, 41, 0.3);
  padding: 3.5rem 2rem;
}

.partner-logo-name {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s;
}

.partner-logo-name:hover {
  color: var(--color-cyan);
}

/* Methodology */
.methodology-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .methodology-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .methodology-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

.method-card {
  display: flex;
  flex-direction: column;
}

.method-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .method-img-wrap {
    aspect-ratio: 1/1;
  }
}

.method-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.method-card:hover .method-img-wrap img {
  transform: scale(1.05);
}

.method-img-wrap .gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 13, 20, 0.8) 0%, transparent 100%);
}

.method-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(92, 225, 230, 0.4);
  background: rgba(2, 13, 20, 0.7);
  backdrop-filter: blur(4px);
  color: var(--color-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-info {
  margin-top: 1.25rem;
}

.method-info h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-offwhite);
}

.method-info p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
  }
}

.contact-form {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 28, 41, 0.4);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .contact-form {
    padding: 2rem;
  }
}

/* Google Maps */
.contact-map-box {
  margin-top: 3rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 28, 41, 0.6);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  height: 360px;
  max-height: 400px;
  position: relative;
}

.contact-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: contrast(1.05) saturate(0.9);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
}

.form-control {
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 13, 20, 0.4);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--color-offwhite);
  outline: none;
  font-family: inherit;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: rgba(92, 225, 230, 0.6);
  background: rgba(2, 13, 20, 0.6);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--color-cyan);
  opacity: 0.85;
}

.footer-logo img {
  width: 150px;
  max-width: 150px;
  height: auto;
  display: block;
}

.footer-desc {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 20rem;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--color-cyan);
}

.footer-bottom {
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* ==========================================================================
   Nuevos estilos: Requerimientos Oficiales Cliente (4 Capacidades / Cadena / Track IA)
   ========================================================================== */

/* Cadena de Valor (Necesidad -> Ingeniería -> Integración -> Implementación -> Operación) */
.value-chain-box {
  margin-top: 3.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 28, 41, 0.45);
  backdrop-filter: blur(10px);
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .value-chain-box {
    padding: 2.5rem;
  }
}

.value-chain-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(92, 225, 230, 0.1);
  border: 1px solid rgba(92, 225, 230, 0.3);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-cyan);
  margin-bottom: 2rem;
}

.value-chain-title .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-cyan);
}

.value-chain-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .value-chain-grid {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.75rem;
  }
}

.value-chain-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(2, 13, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.value-chain-step:hover {
  border-color: rgba(92, 225, 230, 0.4);
  background: rgba(4, 28, 41, 0.7);
  transform: translateY(-2px);
}

.value-chain-step .step-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-cyan);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.5rem;
}

.value-chain-step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-offwhite);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.value-chain-step p {
  font-size: 0.825rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin-top: auto;
}

.value-chain-arrow {
  display: none;
  align-self: center;
  color: rgba(92, 225, 230, 0.4);
  font-size: 1.25rem;
  padding: 0 0.25rem;
}

@media (min-width: 1024px) {
  .value-chain-arrow {
    display: block;
  }
}

/* Grid de 4 Capacidades */
@media (min-width: 1024px) {
  .capacidades-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem !important;
  }
}

/* Grid de 3 Proyectos Secundarios */
@media (min-width: 1024px) {
  .three-projects-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
  }
}

/* Footer: Track IA Dualidad de Marcas */
.footer-secondary-brand {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.secondary-brand-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(92, 225, 230, 0.75);
  margin-bottom: 0.85rem;
}

.secondary-brand-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.logo-track-ia {
  width: 130px;
  max-width: 130px;
  height: auto;
  display: block;
}

.secondary-brand-content p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  max-width: 20rem;
}

/* =========================================================
   Páginas Individuales de Casos de Éxito
   ========================================================= */
.case-study-hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
}

@media (min-width: 640px) {
  .case-study-hero {
    padding-top: 9.5rem;
    padding-bottom: 7rem;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-cyan);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.back-link:hover {
  color: #fff;
  transform: translateX(-4px);
}

.case-study-header {
  max-width: 54rem;
  margin-bottom: 2.5rem;
}

.case-study-title {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-offwhite);
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .case-study-title {
    font-size: 3.25rem;
  }
}

.case-study-subtitle {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.case-study-media {
  position: relative;
  width: 100%;
  min-height: 320px;
  max-height: 520px;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 3.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .case-study-media {
    min-height: 480px;
  }
}

.case-study-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-study-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .case-study-body {
    grid-template-columns: 2fr 1.15fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.case-study-content {
  width: 100%;
}

.case-study-content h2 {
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--color-offwhite);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.case-study-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
}

.case-study-sidebar {
  position: static;
}

@media (min-width: 1024px) {
  .case-study-sidebar {
    position: sticky;
    top: 6.5rem;
  }
}

.case-study-meta-box {
  margin-top: 0;
  padding: 1.75rem 1.75rem;
  border-radius: 1.25rem;
  background: rgba(2, 13, 20, 0.8);
  border: 1px solid rgba(92, 225, 230, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 1rem;
}

.meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-cyan);
}

.meta-val {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.case-study-cta {
  position: sticky;
  top: 7rem;
}

.cta-inner {
  padding: 2.25rem 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top left, rgba(92, 225, 230, 0.08), transparent 70%), rgba(2, 13, 20, 0.85);
  backdrop-filter: blur(12px);
}

.cta-inner h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

.cta-inner p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.75rem;
}

/* =========================================================
   Lightbox Modal
   ========================================================= */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-container {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(2, 13, 20, 0.75);
  border: 1px solid rgba(92, 225, 230, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.lightbox-close:hover {
  background: var(--color-cyan);
  color: var(--color-navy-950);
  transform: rotate(90deg);
}

.lightbox-content {
  background: rgba(2, 13, 20, 0.9);
  border: 1px solid rgba(92, 225, 230, 0.3);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(92, 225, 230, 0.15);
  max-width: 100%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  background: rgba(2, 13, 20, 0.95);
}

/* =========================================================
   Página Unificada de Proyectos (Showcase Alternado)
   ========================================================= */
.projects-page-hero {
  padding: 7.5rem 0 2.5rem;
  position: relative;
}

.projects-hero-inner {
  max-width: 56rem;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  padding-bottom: 6rem;
}

.project-item {
  scroll-margin-top: 6.5rem;
  padding: 3.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-item:first-child {
  border-top: none;
  padding-top: 0.5rem;
}

/* Base Mobile: Desplegar hijos en una sola columna ordenada */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-media-col,
.project-info-col {
  display: contents;
}

/* Orden unificado en mobile:
   1. Cápsula (pre título)
   2. Título
   3. Imagen
   4. Bajada
   5. Texto
   6. Card (metadatos)
*/
.project-info-col .featured-tag {
  order: 1;
  align-self: flex-start;
  margin: 0;
}

.project-info-col .case-study-title {
  order: 2;
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.2;
}

.project-media-col .project-media-box {
  order: 3;
  margin: 0.25rem 0;
}

.project-info-col .case-study-subtitle {
  order: 4;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.project-info-col .project-details-text {
  order: 5;
  margin: 0;
}

.project-media-col .project-meta-inline {
  order: 6;
  margin-top: 0.35rem;
}

/* Elementos internos */
.project-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(92, 225, 230, 0.08);
  background: var(--color-navy-900);
}

.project-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.project-media-box:hover img {
  transform: scale(1.025);
}

.project-details-text h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-offwhite);
  margin-bottom: 0.75rem;
}

.project-details-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.85rem;
}

.project-details-text p:last-child {
  margin-bottom: 0;
}

.project-meta-inline {
  padding: 1.5rem 1.75rem;
  border-radius: 1.25rem;
  background: rgba(2, 13, 20, 0.85);
  border: 1px solid rgba(92, 225, 230, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .project-info-col .case-study-title {
    font-size: 2.35rem;
  }

  .project-meta-inline {
    gap: 1.25rem;
  }
}

/* Desktop: 2 columnas alternadas (zigzag) */
@media (min-width: 1024px) {
  .project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }

  .project-media-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .project-info-col {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
  }

  .project-item.is-reversed .project-media-col {
    order: 2;
  }

  .project-item.is-reversed .project-info-col {
    order: 1;
  }

  /* Reset de órdenes de mobile en desktop */
  .project-info-col .featured-tag,
  .project-info-col .case-study-title,
  .project-media-col .project-media-box,
  .project-info-col .case-study-subtitle,
  .project-info-col .project-details-text,
  .project-media-col .project-meta-inline {
    order: initial;
    margin: initial;
  }

  .project-info-col .case-study-title {
    margin-top: 0.25rem;
  }

  .project-info-col .case-study-subtitle {
    margin-top: 0.25rem;
  }

  .project-details-text {
    margin-top: 0.35rem;
  }
}




