/*
  ========================================
  GENERAL
  ========================================
*/
:root {
  --accent: #1ed869;
  --accent-glow: rgba(30, 216, 105, 0.5);
  --accent-weak: rgba(30, 216, 105, 0.1);
  --bg-dark: #0f1519;
  --text-muted: #8899a6;
  --card-bg: #151e26;
  --container-max: 1280px;
  --container-pad: 2rem;
  --nav-offset: 80px;
}

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

body {
  margin: 0;
  background-color: #0f1519;
  color: white;
  font-family: "Nunito", sans-serif;
  overflow-x: hidden;
}

#loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.5);
  font-family: "Figtree", sans-serif;
  font-weight: 300;
  font-size: 0.875rem;
  z-index: 100;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.loader {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  border: 4px solid transparent;
  border-radius: 50%;
  border-color: rgba(136, 153, 166, 0.25) transparent;
  animation: l16 1s infinite linear;
}
.loader::before,
.loader::after {
  content: "";
  grid-area: 1/1;
  margin: 2px;
  border: inherit;
  border-radius: 50%;
}
.loader::before {
  border-color: var(--accent) transparent;
  animation: l16 0.5s infinite linear reverse;
}
.loader::after {
  margin: 8px;
}
@keyframes l16 {
  100% {
    transform: rotate(1turn);
  }
}

/*
  ========================================
  NAVBAR
  ========================================
*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  padding: 1.5rem 2rem;
  opacity: 0;
  transform: translateY(-12px);
  animation: navFadeDown 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.1s;
  --nav-bg-opacity: 0;
  --nav-blur: 0px;
  background-color: rgba(15, 21, 25, var(--nav-bg-opacity));
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
}

.navbar.scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-family: "Figtree", sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  transition: all 0.3s ease-in-out;
  opacity: 1;
  display: inline-block;
  padding: 0.5rem 1rem;
  cursor: pointer;
  line-height: 1;
  border-radius: 9999px;
  position: relative;
}

.nav-links a:not(.contact-btn):not(.active):hover {
  color: var(--accent);
  opacity: 1;
  background-color: var(--accent-weak);
  box-shadow: none;
}

/* Removed Line Animation for standard links */

.nav-links a.active {
  background-color: transparent;
  color: var(--accent);
  font-weight: 500;
  box-shadow: none;
}

.nav-links a.active:hover {
  background-color: transparent;
  box-shadow: none;
}

.nav-links a.contact-btn {
  border: 1px solid var(--accent);
  color: #ffffff;
  font-weight: 300;
  box-shadow: none;
}

.nav-links a.contact-btn:hover {
  background-color: var(--accent);
  color: #000000;
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Mobile Menu Active State */
.mobile-menu a.active {
  color: var(--accent);
  font-weight: 500;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: #0f1519;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  font-family: "Figtree", sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
}

.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

@keyframes navFadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 2rem;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .nav-logo img {
    height: 28px;
  }
}

/*
  ========================================
  GPTW BADGE
  ========================================
*/
.gptw-badge {
  position: fixed;
  top: 72px;
  right: 0;
  transform: translateY(-20px);
  opacity: 0;
  z-index: 900;
  width: 92px;
  padding: 0;
  background: transparent;
  border-radius: 16px 0 0 16px;
  box-shadow: none;
  border-left: none;
  transition: transform 0.4s ease, right 0.3s ease, opacity 0.4s ease;
}

.gptw-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.gptw-badge.hide {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.gptw-badge img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.gptw-badge:hover { right: 8px; }

@media (max-width: 768px) {
  .gptw-badge {
    width: 80px;
    padding: 10px 8px 10px 14px;
  }
}

/*
  ========================================
  PRIVACY BANNER
  ========================================
*/
.privacy-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(
    135deg,
    rgba(15, 21, 25, 0.98) 0%,
    rgba(21, 30, 38, 0.98) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(30, 216, 105, 0.2);
  box-shadow: 
    0 -8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(30, 216, 105, 0.1);
  padding: 20px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.5s ease;
}

.privacy-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.privacy-banner.hide {
  transform: translateY(100%);
  opacity: 0;
}

.privacy-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.privacy-text {
  flex: 1;
  font-family: "Figtree", sans-serif;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

.privacy-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.privacy-link:hover {
  color: #ffffff;
  border-bottom-color: var(--accent);
}

.privacy-accept {
  background: var(--accent);
  color: #0f1519;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-family: "Figtree", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(30, 216, 105, 0.3);
  white-space: nowrap;
}

.privacy-accept:hover {
  background: #25f078;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 216, 105, 0.4);
}

.privacy-accept:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .privacy-banner {
    padding: 16px;
  }
  
  .privacy-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .privacy-text {
    font-size: 0.85rem;
    text-align: center;
  }
  
  .privacy-accept {
    width: 100%;
    padding: 14px;
  }
}

/*
  ========================================
  HERO
  ========================================
*/
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(to bottom, rgba(15, 21, 25, 0) 0%, #0f1519 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  /* Ajusta la opacidad del video del Hero (sube para que se note más) */
  opacity: 0.5;
}

.hero-text-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.hero-main-title {
  font-family: "Figtree", sans-serif;
  font-size: 36px;
  font-weight: 300;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-play-state: paused;
}

.hero-highlight {
  color: var(--accent);
  position: relative;
  display: inline-block;
  text-shadow: 0 0 20px var(--accent-glow);
  will-change: text-shadow;
  animation: heroGlowPulse 3s ease-in-out infinite;
}

.hero-tagline {
  font-family: "Figtree", sans-serif;
  font-size: 18px;
  color: #e2e8f0;
  font-weight: 300;
  line-height: 1.4;
  max-width: 800px;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-play-state: paused;
}

.hero-description {
  font-family: "Figtree", sans-serif;
  font-size: 18px;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 700px;
  font-weight: 300;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-play-state: paused;
}

.hero-divider {
  height: 1px;
  width: 6rem;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.5rem 0;
  opacity: 0;
  transform: scaleX(0);
  animation: expandWidth 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-play-state: paused;
  box-shadow: 0 0 6px var(--accent-glow);
}

.hero-start .hero-main-title {
  animation-play-state: running;
  animation-delay: 0.5s;
}

.hero-start .hero-tagline {
  animation-play-state: running;
  animation-delay: 0.7s;
}

.hero-start .hero-description {
  animation-play-state: running;
  animation-delay: 0.9s;
}

.hero-start .hero-divider {
  animation-play-state: running;
  animation-delay: 1.1s;
}

.hero-overlay-content {
  z-index: 1;
  text-align: center;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  max-width: 400px;
  width: 80%;
  height: auto;
  margin-bottom: 1rem;
}

/* Scroll Indicator (Hero) */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  transition: opacity 0.5s;
  pointer-events: auto;
}

.scroll-indicator p {
  font-family: "Figtree", sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: #8899a6;
  margin: 0;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, transparent, #ffffff, transparent);
  animation: scroll-drop 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes scroll-drop {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(200%);
  }
}

@keyframes heroGlowPulse {
  0% {
    text-shadow: 0 0 8px var(--accent-weak), 0 0 16px var(--accent-weak);
  }
  50% {
    text-shadow: 0 0 10px var(--accent), 0 0 22px var(--accent-glow),
      0 0 36px var(--accent-glow);
  }
  100% {
    text-shadow: 0 0 8px var(--accent-weak), 0 0 16px var(--accent-weak);
  }
}

/* Hero Responsive */
@media (min-width: 768px) {
  .hero-main-title {
    font-size: 40px;
    letter-spacing: -0.02em;
  }
  .hero-tagline {
    font-size: 18px;
  }
  .hero-description {
    font-size: 18px;
  }
}

/* Hero Mobile Spacing */
@media (max-width: 768px) {
  .hero-overlay-content {
    padding: 0 1.25rem;
  }
}

@media (max-width: 768px) {
  .scroll-indicator {
    bottom: 2rem;
  }
  .scroll-indicator p {
    font-size: 12px;
    letter-spacing: 0.15em;
  }
  .scroll-line {
    height: 20px;
  }
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-overlay-content {
    padding: 0 1.5rem;
  }
  .scroll-indicator {
    bottom: 1.5rem;
  }
  .scroll-indicator p {
    font-size: 12px;
    letter-spacing: 0.15em;
  }
}

/*
  ========================================
  CLOUD
  ========================================
*/
/* Scroll Container */
.scroll-container {
  height: auto;
  position: relative;
}

.sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scroll-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.sticky-wrapper.split #scroll-video {
  width: min(calc(var(--container-max) * 0.5), 50vw);
  height: 55%;
  top: 22.5%;
  left: max(calc((100% - var(--container-max)) / 2), 0px);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  opacity: 1;
}

/* Text Content */
.text-content {
  position: absolute;
  right: 0;
  width: 45%;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s ease;
  z-index: 2;
  padding-right: 4%;
  padding-left: 3%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  pointer-events: none;
  box-sizing: border-box;
}

/* Cloud split layout spacing (static section) */
.cloud-section .split-layout { gap: clamp(20px, 3vw, 48px); }
.cloud-section .content-side { padding: clamp(20px, 3vw, 40px); }
.cloud-section .content-wrapper { max-width: 720px; margin: 0 auto; }

@media (max-width: 768px) {
  .cloud-section .content-side { padding: 24px 16px; }
}

.sticky-wrapper.split .text-content {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  width: min(calc(var(--container-max) * 0.5), 50vw);
  padding-left: var(--container-pad);
  padding-right: 0;
  right: max(calc((100% - var(--container-max)) / 2), 0px);
}

/* Text Animations */
.text-content h2,
.text-content p,
.text-content .h-px,
.text-content ul li {
  opacity: 0;
  transform: translateY(20px);
}

.sticky-wrapper.split .text-content h2 {
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.sticky-wrapper.split .text-content p {
  animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.sticky-wrapper.split .text-content .h-px {
  animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.sticky-wrapper.split .text-content ul li:nth-child(1) {
  animation: fadeInUp 0.5s ease-out 0.8s forwards;
}

.sticky-wrapper.split .text-content ul li:nth-child(2) {
  animation: fadeInUp 0.5s ease-out 1s forwards;
}

.sticky-wrapper.split .text-content ul li:nth-child(3) {
  animation: fadeInUp 0.5s ease-out 1.2s forwards;
}

.sticky-wrapper.split .text-content ul li:nth-child(4) {
  animation: fadeInUp 0.5s ease-out 1.4s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Overlay (Inside Cloud/Scroll) */
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  transition: opacity 0.5s;
  pointer-events: none;
  padding: 0 1rem;
}

.cloud-overlay-content {
  position: relative;
  display: inline-block;
  padding: 2rem 4rem;
  border-radius: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.cloud-overlay-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 21, 25, 0.3);
  border-radius: inherit;
  z-index: 0;
  backdrop-filter: blur(4px);
}

.cloud-overlay-content > * {
  position: relative;
  z-index: 1;
}

#scroll-video {
  opacity: 1;
}

.sticky-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(
    180deg,
    rgba(15, 21, 25, 1) 0%,
    rgba(15, 21, 25, 0) 100%
  );
  z-index: 9;
  pointer-events: none;
}

/* #heroOverlay { display: none; }  <-- Removed to show title */

.hero-overlay h1:not(.hero-main-title) {
  font-size: 5rem;
  margin: 0;
  letter-spacing: -0.04em;
  font-weight: 600;
}

#heroOverlay img {
  max-width: 400px;
  width: 80%;
  height: auto;
}

/* Custom Content Styles */
.content-wrapper {
  max-width: 100%;
  width: 100%;
}

.header-section {
  margin-bottom: 1.5rem;
}

.main-heading {
  font-family: "Figtree", sans-serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

.highlight-text {
  color: var(--accent);
}

.description-text {
  font-family: "Figtree", sans-serif;
  font-weight: 300;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.625;
  margin: 0 0 0.5rem 0;
}

.divider-wrapper {
  padding-top: 0.5rem;
}

.decorative-line {
  height: 1px;
  width: 6rem;
  background-color: var(--accent);
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-item {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.service-item:not(:last-child) {
  margin-bottom: 0.5rem;
}

.service-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.icon-wrapper {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.icon-container {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: var(--accent-weak);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s;
}

.service-item:hover .icon-container {
  background-color: var(--accent);
  color: #ffffff;
}

.icon {
  width: 1rem;
  height: 1rem;
}

.service-content {
  margin-left: 0.75rem;
}

.service-title {
  font-family: "Figtree", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  transition: color 0.3s;
}

.service-item:hover .service-title {
  color: var(--accent);
}

.service-description {
  font-family: "Figtree", sans-serif;
  font-weight: 300;
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

/* Main Content Static (if used) */
.main-content {
  background-color: #0f1519;
  position: relative;
  z-index: 10;
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
}

.text-content-static {
  width: 100%;
  max-width: var(--container-max);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Cloud Responsive */
@media (min-width: 1024px) {
  .main-heading {
    font-size: 32px;
  }
}

@media (max-width: 1024px) {
  .hero-overlay h1:not(.hero-main-title) {
    font-size: 3.5rem;
  }
  .sticky-wrapper.split #scroll-video {
    width: 100%;
    height: 40vh;
    top: 5%;
    left: 0;
    border-radius: 0;
  }
  .text-content {
    width: 100%;
    padding: 2rem;
    padding-right: 2rem;
    top: auto;
    bottom: 0;
    height: auto;
    max-height: 55vh;
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  .telecom-overlay-content {
    padding: 0;
  }
  .telecom-overlay-content::before {
    display: none;
  }

  .cloud-overlay-content {
    padding: 0;
  }
  .cloud-overlay-content::before {
    display: none;
  }

  /* Reset Scroll Container */
  .scroll-container {
    height: auto;
    min-height: auto;
  }

  /* Reset Sticky Wrapper */
  .sticky-wrapper {
    position: relative; /* No sticky on mobile */
    top: auto;
    height: auto;
    width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 3rem;
  }

  /* Title / Overlay */
  .hero-overlay {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    text-align: center;
    padding: 2rem 1rem 0;
    margin: 0;
    width: 100%;
    pointer-events: auto;
    opacity: 1;
  }

  .hero-overlay h1:not(.hero-main-title) {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    color: #fff;
  }

  /* Video */
  #scroll-video {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0;
    top: auto;
    left: auto;
    border-radius: 0;
    box-shadow: none;
    order: 2; /* Title first, then video */
    opacity: 1;
  }

  .sticky-wrapper.split #scroll-video {
    width: 100%;
    height: auto;
    top: auto;
    left: auto;
    border-radius: 0;
  }

  /* Text Content */
  .text-content {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0 1rem; /* Reduced padding */
    height: auto;
    max-height: none;
    overflow: visible;
    background: transparent;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    order: 3; /* Content last */
    text-align: left;
  }

  .sticky-wrapper.split .text-content {
    margin: 0; /* Remove margin */
    width: 100%;
    padding: 0 1rem; /* Ensure consistent padding */
    top: auto;
    left: auto;
    border-radius: 0;
    opacity: 1;
  }

  .sticky-wrapper.split .text-content .content-wrapper {
    max-width: 100%;
    width: 100%;
  }
  .text-content h2,
  .text-content p,
  .text-content .h-px,
  .text-content ul li {
    opacity: 0;
    transform: translateY(20px);
  }
  .text-content.mobile-animate h2 {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
  }
  .text-content.mobile-animate p {
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
  }
  .text-content.mobile-animate .h-px {
    animation: fadeInUp 0.6s ease-out 0.6s forwards;
  }
  .text-content.mobile-animate ul li:nth-child(1) {
    animation: fadeInUp 0.5s ease-out 0.8s forwards;
  }
  .text-content.mobile-animate ul li:nth-child(2) {
    animation: fadeInUp 0.5s ease-out 1s forwards;
  }
  .text-content.mobile-animate ul li:nth-child(3) {
    animation: fadeInUp 0.5s ease-out 1.2s forwards;
  }
  .text-content.mobile-animate ul li:nth-child(4) {
    animation: fadeInUp 0.5s ease-out 1.4s forwards;
  }
  .text-content-static {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 480px) {
  .main-heading {
    font-size: 1.5rem;
  }
  .hero-overlay h1:not(.hero-main-title) {
    font-size: 2rem;
  }
  .text-content {
    padding: 1rem;
    padding-right: 1rem;
  }
}
/*
  ========================================
  HISTORIA
  ========================================
*/
/*
  ========================================
  PAGE HEADER (HISTORIA)
  ========================================
*/
.page-header {
  position: relative;
  padding-top: 220px;
  padding-bottom: 140px;
  text-align: center;
  overflow: hidden;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(30, 216, 105, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(30, 216, 105, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center 0;
  z-index: -1;
  mask-image: radial-gradient(circle at 50% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    circle at 50% 40%,
    black 20%,
    transparent 80%
  );
}

/* Lights Layer for Grid Animation */
#lights-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2; /* Behind grid lines */
  overflow: hidden;
  mask-image: radial-gradient(circle at 50% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    circle at 50% 40%,
    black 20%,
    transparent 80%
  );
  pointer-events: none;
}

#partners-lights,
#cases-lights,
#coverage-lights {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  mask-image: radial-gradient(circle at 50% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    circle at 50% 40%,
    black 20%,
    transparent 80%
  );
  pointer-events: none;
}

.highlight-cell {
  position: absolute;
  width: 40px; /* Match grid size */
  height: 40px; /* Match grid size */
  background-color: var(--accent);
  opacity: 0;
  box-shadow: 0 0 15px rgba(30, 216, 105, 0.4);
  animation: breathe 5s ease-in-out forwards;
}

@keyframes breathe {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  20% {
    opacity: 0.05;
    transform: scale(1);
  }
  50% {
    opacity: 0.05;
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}

.page-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 140px;
  background: linear-gradient(
    to top,
    rgba(15, 21, 25, 0) 0%,
    rgba(15, 21, 25, 0.8) 60%,
    rgba(15, 21, 25, 1) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(
    to bottom,
    rgba(15, 21, 25, 0) 0%,
    rgba(15, 21, 25, 0.8) 60%,
    rgba(15, 21, 25, 1) 100%
  );
  pointer-events: none;
}

.page-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Cloud preheader spacing */
#cloud-preheader .page-header-content {
  padding: clamp(20px, 3vw, 40px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.page-title {
  font-family: "Figtree", sans-serif;
  font-size: 3.75rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.header-divider {
  height: 1px;
  width: 80px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0);
  animation: expandWidth 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.3s;
  box-shadow: 0 0 8px var(--accent-glow);
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.5s;
}

@media (max-width: 768px) {
  .page-subtitle {
    padding: 0 1.5rem;
  }
  .page-title {
    padding: 0 1.5rem;
  }
}

.header-decoration-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Figtree", sans-serif;
  font-size: 12rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  letter-spacing: 0.1em;
}

.green-dot {
  color: var(--accent);
}

.timeline-section {
  padding-bottom: 150px;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
  z-index: 15;
  margin-top: -40px;
}

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
  z-index: 0; /* Creates stacking context */
}

.lines-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.timeline-line-bg {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
  border-radius: 2px;
  z-index: -1;
}

.timeline-line-progress {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
  transform: translateX(-50%);
  transition: height 0.1s linear;
  border-radius: 2px;
  z-index: -1;
}

.timeline-item {
  display: flex;
  justify-content: center;
  padding-bottom: 120px;
  position: relative;
  opacity: 1;
  transform: none;
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

/* .timeline-item.visible { opacity: 1; transform: translateY(0); } */
.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content-wrapper {
  width: 50%;
  position: relative;
  display: flex;
  align-items: center;
  z-index: 25;
}

.timeline-item:nth-child(odd) .timeline-content-wrapper {
  justify-content: flex-end;
  padding-right: 40px;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content-wrapper {
  justify-content: flex-start;
  padding-left: 40px;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%) scale(1);
  width: 48px;
  height: 48px;
  background-color: var(--bg-dark);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: all 0.4s ease;
  box-shadow: 0 0 0 4px var(--bg-dark);
}

.timeline-item.active .timeline-marker {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow), 0 0 0 6px var(--bg-dark);
  transform: translateX(-50%) scale(1.15);
}
.timeline-item.active .timeline-marker i {
  color: var(--accent);
}

.timeline-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  max-width: 400px;
  position: relative;
  z-index: 5;
  transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
}

.timeline-card:hover {
  transform: none;
  box-shadow: 0 0 30px var(--accent-glow);
  border-color: var(--accent);
  z-index: 50;
}

.timeline-year {
  font-family: "Figtree", sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: -1.5rem;
  line-height: 1;
  z-index: 10;
  pointer-events: none;
}
.timeline-item:nth-child(odd) .timeline-year {
  right: 1.5rem;
}
.timeline-item:nth-child(even) .timeline-year {
  left: 1.5rem;
}
.timeline-item.active .timeline-year {
  color: rgba(30, 216, 105, 0.3);
  transition: color 0.5s ease;
  text-shadow: 0 0 30px rgba(30, 216, 105, 0.2);
}

.card-badge {
  display: inline-block;
  background: rgba(30, 216, 105, 0.15);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  border: 1px solid rgba(30, 216, 105, 0.2);
  position: relative;
  z-index: 6;
}

.card-title {
  font-family: "Figtree", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
  color: #e2e8f0;
  position: relative;
  z-index: 6;
}

.card-desc {
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
  font-weight: 300;
  margin: 0;
  position: relative;
  z-index: 6;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .page-header {
    padding-top: 160px;
  }
  .page-title {
    font-size: 2.5rem;
  }
  .header-decoration-text {
    font-size: 5rem;
  }

  .timeline-container {
    padding: 0 20px;
  }

  /* Fix for Mobile Line Visibility */
  .lines-wrapper {
    left: 70px; /* 50px (marker center) + 20px (container padding) */
    transform: translateX(-50%); /* Center the wrapper */
    width: 4px;
  }
  .timeline-line-bg,
  .timeline-line-progress {
    left: 50%; /* Center relative to lines-wrapper */
    transform: translateX(-50%);
    width: 2px;
    margin-left: 0;
  }

  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 60px;
    padding-right: 0;
  }
  .timeline-content-wrapper {
    width: 100%;
    text-align: left !important;
    padding: 0 !important;
    padding-left: 30px !important;
  }
  .timeline-item:nth-child(odd) .timeline-content-wrapper {
    justify-content: flex-start;
  }

  .timeline-marker {
    left: 50px; /* 20px container padding + 30px visual offset */
    top: 0;
    transform: translateX(-50%) scale(1); /* Ensure scale is visible */
  }

  .timeline-card {
    margin-top: 10px;
  }
  .timeline-year {
    font-size: 2.5rem;
    top: -1rem;
    right: 1rem !important;
    left: auto !important;
  }
}
/* .timeline-item:nth-child(-n+2) {
  opacity: 1;
  transform: translateY(0);
} */

/*
  ========================================
  FOOTER
  ========================================
*/
.site-footer {
  background-color: #0a0e11;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.footer-top {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.footer-logo {
  height: 24px;
  width: auto;
  display: block;
}

.mobile-logo {
  display: none;
}

.desktop-logo {
  display: block;
}

/* .footer-phrase removed */

.footer-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  margin: 0;
}

.contact-text {
  color: #e2e8f0;
  font-family: "Figtree", sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  text-align: center;
}

.contact-text a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: var(--accent);
}

.contact-separator {
  margin: 0 12px;
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin: 0; /* Ensure no margins */
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.footer-social a:hover {
  background-color: var(--accent-weak);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(30, 216, 105, 0.2);
}

.footer-social a i {
  width: 16px;
  height: 16px;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  font-family: "Figtree", sans-serif;
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.made-by {
  font-family: "Figtree", sans-serif;
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.3s ease;
}

.heart-icon {
  width: 14px;
  height: 14px;
  fill: #a684ff;
  color: #a684ff;
  animation: heartBeat 1.5s infinite;
}

.magic-text {
  background: linear-gradient(90deg, #a369ff, #00cfe5, #a369ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 300;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.1);
  }
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-brand,
  .footer-contact {
    width: 100%;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  .footer-social {
    width: 100%;
    justify-content: center;
    display: flex;
    flex-direction: row; /* Force row on mobile */
    gap: 1.5rem;
  }

  /* Restore touch sizes for mobile */
  .footer-social a {
    width: 40px;
    height: 40px;
  }

  .footer-social a i {
    width: 20px;
    height: 20px;
  }

  .footer-logo {
    margin: 0 auto 1rem auto;
    height: 48px; /* Increased mobile logo size */
  }

  .desktop-logo {
    display: none;
  }

  .mobile-logo {
    display: block;
  }

  .footer-phrase {
    margin: 0 auto;
  }

  .footer-social {
    justify-content: center;
  }
}

.solutions-cyber {
  position: relative;
  padding: 0 1rem 60px;
}
.solutions-cyber .cyber-visual video {
  opacity: 0;
  transform: translateY(12px);
}
.solutions-cyber .cyber-title {
  opacity: 0;
  transform: translate(-50%, -55%) translateY(12px);
}
.solutions-cyber .solution-panel {
  opacity: 0;
  transform: translateY(12px);
}
.solutions-cyber.visible .cyber-visual video {
  animation: fadeInTo60 0.6s ease-out forwards;
  animation-delay: 0.1s;
}
.solutions-cyber.visible .cyber-title {
  animation: fadeInUpCenter 0.6s ease-out forwards;
  animation-delay: 0.4s;
}
.solutions-cyber.visible .solution-panel.active {
  animation: fadeInUp 0.4s ease-out forwards;
  animation-delay: 0s;
}
.cyber-visual {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
}
.cyber-title {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -55%);
  z-index: 5;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 0 1rem;
}
.cyber-visual video {
  width: 100%;
  height: 24vh;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 16px;
  opacity: 0.45;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.cyber-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(15, 21, 25, 0) 0%,
    rgba(15, 21, 25, 0.6) 60%,
    rgba(15, 21, 25, 0.95) 100%
  );
  pointer-events: none;
}
.solutions-cyber-layout {
  max-width: var(--container-max);
  margin: -60px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

/* Desktop Backgrounds */
.desktop-nav-bg {
  grid-column: 1;
  grid-row: 2;
  border: 1px solid rgba(30, 216, 105, 0.15);
  border-radius: 16px;
  background: linear-gradient(
    160deg,
    rgba(15, 21, 25, 0.8) 0%,
    rgba(15, 21, 25, 0.6) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3), inset 0 0 2px rgba(30, 216, 105, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.desktop-nav-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 100% 0%,
      rgba(30, 216, 105, 0.02) 0%,
      transparent 30%
    ),
    linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
  background-position: 0 0, 0 0, 0 0;
  pointer-events: none;
  z-index: 0;
}

.desktop-backdrop {
  grid-column: 1;
  grid-row: 1;
  border: 1px solid rgba(30, 216, 105, 0.15);
  border-radius: 16px;
  background: linear-gradient(
    160deg,
    rgba(15, 21, 25, 0.8) 0%,
    rgba(15, 21, 25, 0.6) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3), inset 0 0 2px rgba(30, 216, 105, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.desktop-backdrop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 100% 0%,
      rgba(30, 216, 105, 0.02) 0%,
      transparent 30%
    ),
    linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
  background-position: 0 0, 0 0, 0 0;
  pointer-events: none;
  z-index: 0;
}

/* Group Handling */
.cyber-group {
  display: contents;
}

/* Nav Items */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  border: 1px solid transparent;
  position: relative;
  z-index: 1;
  margin: 0;
}

.cyber-group:first-of-type .nav-item {
  margin-top: 0.75rem;
}
.cyber-group:last-of-type .nav-item {
  margin-bottom: 0.75rem;
}

.nav-item .icon-container {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: var(--accent-weak);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease;
}

.nav-item.active {
  background: rgba(30, 216, 105, 0.08);
  border-color: rgba(30, 216, 105, 0.3);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-item.active .icon-container {
  background-color: var(--accent);
  color: #0f1519;
  box-shadow: 0 0 15px var(--accent-glow);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-item .label {
  font-family: "Figtree", sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-chevron {
  display: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

/* Solution Panels */
.solution-panel {
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
  display: none;
  padding: 1.25rem;
  min-height: 240px;
  position: relative;
}

.solution-panel.active {
  display: flex;
  flex-direction: column;
}

.solution-panel h3 {
  font-family: "Figtree", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.solution-panel p {
  font-family: "Figtree", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  position: relative;
}

@media (min-width: 1024px) {
  .solution-panel p::after {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background: rgba(30, 216, 105, 0.3);
    margin-top: 1rem;
  }
}

.solution-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.solution-panel li {
  font-family: "Figtree", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #e2e8f0;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background-color: #0a0e11;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.solution-panel li::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 8px var(--accent-glow);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.solution-panel li:hover { }

.solution-panel li:hover::before { opacity: 0.7; }

/* Mobile Responsive */
@media (max-width: 1024px) {
  .cyber-visual video {
    height: 26vh;
    object-position: 50% 35%;
  }
  .solutions-cyber-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: -60px;
  }

  .nav-container-wrapper {
    display: none;
  }

  .desktop-nav-bg,
  .desktop-backdrop {
    display: none;
  }

  .cyber-group {
    display: block;
    border: 1px solid rgba(30, 216, 105, 0.15);
    border-radius: 12px;
    background: linear-gradient(
      160deg,
      rgba(15, 21, 25, 0.8) 0%,
      rgba(15, 21, 25, 0.6) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: all 0.3s ease;
  }

  /* Use JS-like behavior if :has not supported, but :has is generally safe now */
  .cyber-group:has(.nav-item.active) {
    border-color: rgba(30, 216, 105, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .nav-item {
    margin: 0;
    padding: 1rem;
    border-radius: 0;
    background: transparent;
    border: none;
  }
  .solutions-cyber .cyber-group .nav-item {
    opacity: 0;
    transform: translateY(8px);
  }
  .solutions-cyber.visible .cyber-group .nav-item {
    animation: fadeInUp 0.4s ease-out forwards;
  }

  .nav-item.active {
    background: rgba(30, 216, 105, 0.05);
    border-bottom: 1px solid rgba(30, 216, 105, 0.1);
    box-shadow: none;
  }

  .mobile-chevron {
    display: block;
  }

  .nav-item.active .mobile-chevron {
    transform: rotate(180deg);
  }

  .solution-panel {
    grid-column: auto;
    grid-row: auto;
    padding: 0 1.5rem 1.5rem 1.5rem;
    min-height: 0;
    animation: fadeIn 0.3s ease;
  }

  .solution-panel.active {
    display: block;
    padding-top: 1rem;
  }

  .solution-panel ul {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .nav-container-wrapper {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
    z-index: 1;
  }
  .cyber-group .nav-item {
    display: none;
  }
  .solutions-cyber .nav-container-wrapper .nav-item {
    opacity: 0;
    transform: translateY(8px);
  }
  .solutions-cyber.visible .nav-container-wrapper {
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.6s;
  }
  .solutions-cyber.visible .nav-container-wrapper .nav-item {
    animation: fadeInUp 0.4s ease-out forwards;
  }
  .solutions-cyber.visible .nav-container-wrapper .nav-item:nth-child(1) {
    animation-delay: 0.7s;
  }
  .solutions-cyber.visible .nav-container-wrapper .nav-item:nth-child(2) {
    animation-delay: 0.75s;
  }
  .solutions-cyber.visible .nav-container-wrapper .nav-item:nth-child(3) {
    animation-delay: 0.8s;
  }
  .solutions-cyber.visible .nav-container-wrapper .nav-item:nth-child(4) {
    animation-delay: 0.85s;
  }
  .solutions-cyber.visible .nav-container-wrapper .nav-item:nth-child(5) {
    animation-delay: 0.9s;
  }
  .solutions-cyber.visible .nav-container-wrapper .nav-item:nth-child(6) {
    animation-delay: 0.95s;
  }
  .solutions-cyber.visible .nav-container-wrapper .nav-item:nth-child(7) {
    animation-delay: 1s;
  }
  .solutions-cyber.visible .nav-container-wrapper .nav-item:nth-child(8) {
    animation-delay: 1.05s;
  }
  .solutions-cyber.visible .nav-container-wrapper .nav-item:nth-child(9) {
    animation-delay: 1.1s;
  }
  .solutions-cyber.visible .nav-container-wrapper .nav-item:nth-child(10) {
    animation-delay: 1.15s;
  }
  .solutions-cyber.visible .nav-container-wrapper .nav-item:nth-child(11) {
    animation-delay: 1.2s;
  }
  .solutions-cyber.visible .nav-container-wrapper .nav-item:nth-child(12) {
    animation-delay: 1.25s;
  }
}

@media (max-width: 768px) {
  .cyber-visual video {
    height: 20vh;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInTo60 {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.6;
  }
}

@keyframes fadeInUpCenter {
  from {
    opacity: 0;
    transform: translate(-50%, -55%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -55%) translateY(0);
  }
}
.telecom-section {
  position: relative;
  padding: 80px 0 0;
}
.telecom-visual {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  height: 60vh;
  overflow: hidden;
}
.telecom-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 0;
  opacity: 1;
  box-shadow: none;
  display: block;
  pointer-events: none;
}
.telecom-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: linear-gradient(
    180deg,
    var(--bg-dark) 0%,
    rgba(15, 21, 25, 0) 100%
  );
  pointer-events: none;
}
.telecom-overlay {
  z-index: 5;
  width: 100%;
  top: 45%;
  pointer-events: auto;
}
.telecom-overlay-content {
  position: relative;
  display: inline-block;
  padding: clamp(24px, 4vw, 56px);
  border-radius: 12px;
  max-width: 960px;
  margin: 0 auto;
}
.telecom-overlay-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}
.telecom-overlay-content > * {
  position: relative;
  z-index: 1;
}
.telecom-overlay .hero-main-title {
  margin-bottom: 0.5rem;
}
.telecom-overlay .decorative-line {
  margin: 8px auto;
}
.telecom-overlay .page-subtitle {
  margin-top: 0.5rem;
}
.options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.option-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(30, 216, 105, 0.25);
  background: var(--accent-weak);
  color: var(--accent);
  font-family: "Figtree", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.option-pill:hover,
.option-pill:focus-visible {
  border-color: var(--accent);
  background: rgba(30, 216, 105, 0.14);
  box-shadow: 0 0 10px var(--accent-glow), 0 0 0 4px rgba(30, 216, 105, 0.12);
  transform: translateY(-2px);
  outline: none;
}

/* Telecom initial state for reveal */
.telecom-overlay .hero-main-title,
.telecom-overlay .decorative-line,
.telecom-overlay .page-subtitle,
.telecom-overlay .options-grid .option-pill {
  opacity: 0;
  transform: translateY(12px);
}

/* Telecom reveal sequence */
.telecom-section.visible .telecom-overlay .hero-main-title {
  animation: fadeInUp 0.6s ease-out forwards 0.1s;
}
.telecom-section.visible .telecom-overlay .decorative-line {
  animation: fadeInUp 0.6s ease-out forwards 0.2s;
}
.telecom-section.visible .telecom-overlay .page-subtitle {
  animation: fadeInUp 0.6s ease-out forwards 0.3s;
}
.telecom-section.visible
  .telecom-overlay
  .options-grid
  .option-pill:nth-child(1) {
  animation: fadeInUp 0.5s ease-out forwards 0.45s;
}
.telecom-section.visible
  .telecom-overlay
  .options-grid
  .option-pill:nth-child(2) {
  animation: fadeInUp 0.5s ease-out forwards 0.6s;
}
.telecom-section.visible
  .telecom-overlay
  .options-grid
  .option-pill:nth-child(3) {
  animation: fadeInUp 0.5s ease-out forwards 0.75s;
}
.telecom-section.visible
  .telecom-overlay
  .options-grid
  .option-pill:nth-child(4) {
  animation: fadeInUp 0.5s ease-out forwards 0.9s;
}
.telecom-section.visible
  .telecom-overlay
  .options-grid
  .option-pill:nth-child(5) {
  animation: fadeInUp 0.5s ease-out forwards 1.05s;
}

@media (max-width: 1024px) {
  .telecom-visual video {
    height: 40vh;
  }
}

@media (max-width: 768px) {
  .telecom-section {
    padding-bottom: 0;
  }
  .telecom-visual {
    background: url("images/telecom-bg.png") center/cover no-repeat;
    min-height: 60vh;
    height: 60vh;
    margin: 0;
    position: relative;
  }
  .telecom-visual video {
    display: none;
  }
  .telecom-overlay {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 0.5rem;
    margin: 0;
    width: 100%;
    pointer-events: auto;
  }
  .telecom-overlay .page-subtitle {
    padding: 0 0.5rem;
  }
}

/* 
  ========================================
  DROPDOWN MENU
  ========================================
*/
.nav-links .dropdown {
  position: relative;
  display: inline-block;
}

.nav-links .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(15, 21, 25, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.5rem;
  z-index: 1000;
  margin-top: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Invisible bridge to prevent menu from closing when moving cursor */
.nav-links .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -20px; /* Covers the margin-top gap */
  left: 0;
  width: 100%;
  height: 20px;
}

.nav-links .dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  animation: dropdownFadeIn 0.3s ease forwards;
}

.nav-links .dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #e2e8f0;
  text-decoration: none;
  font-family: "Figtree", sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: left;
}

.nav-links .dropdown-menu a:hover {
  background-color: var(--accent-weak);
  color: var(--accent);
  transform: translateX(4px);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/*
  ========================================
  INFRAESTRUCTURA SECTION
  ========================================
*/
.infra-section {
  padding: 6rem 2rem;
  background-color: #0f1519;
  position: relative;
  overflow: hidden;
}

/* Subtle background pattern or gradient */
.infra-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(30, 216, 105, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.infra-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.infra-header {
  text-align: left;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: 0;
  margin-right: 0;
}

.infra-title {
  font-family: "Figtree", sans-serif;
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.infra-description {
  font-family: "Figtree", sans-serif;
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.6;
  font-weight: 300;
}

/* Infraestructura (namespaced, no colisiones) */
.infra-section {
  position: relative;
  padding: 100px 0;
}
.infra-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#1f2937 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.infra-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 21, 25, 0) 100%);
  z-index: 1;
}
.infra-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(15, 21, 25, 0) 100%);
  z-index: 1;
}
.infra-bg .infra-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}
.infra-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}
.infra-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 60px;
}
@media (min-width: 768px) {
  .infra-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
.infra-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.infra-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 9999px;
  box-shadow: 0 0 10px var(--accent-glow);
}
.infra-mono {
  color: var(--accent);
  opacity: 0.8;
  font-family: "Figtree", sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.infra-title {
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  color: #ffffff;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin: 12px 0 24px;
  letter-spacing: -0.02em;
  text-align: left;
}
.infra-muted {
  color: #ffffff;
}
.infra-gradient {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
  will-change: text-shadow;
  animation: heroGlowPulse 3.5s ease-in-out infinite;
}
.infra-desc-wrap {
  border-left: 2px solid rgba(30, 216, 105, 0.5);
  padding-left: 16px;
  margin-left: 4px;
}
.infra-desc {
  text-align: left;
  margin: 0;
  max-width: 600px;
  font-size: 1rem;
  color: var(--text-muted);
}

.infra-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(31, 41, 55, 0.6);
  border-left: 1px solid rgba(31, 41, 55, 0.6);
}
@media (min-width: 768px) {
  .infra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .infra-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.infra-card {
  position: relative;
  padding: 20px;
  border-right: 1px solid rgba(31, 41, 55, 0.6);
  border-bottom: 1px solid rgba(31, 41, 55, 0.6);
  transition: background-color 1.2s ease-out;
  min-height: 100px;
  will-change: box-shadow;
}
.infra-card:hover {
  /* sin animación de borde */
}
@keyframes cornerBlinkFast {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}
.infra-card:hover {
  background-color: var(--accent-weak);
  transition: background-color 0.2s ease-in;
}
@media (min-width: 768px) {
  .infra-card {
    padding: 28px;
  }
}
@media (min-width: 1024px) {
  .infra-card.wide {
    grid-column: span 2;
  }
}

.infra-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.infra-index {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
}
.infra-item-title {
  display: block;
  font-family: "Figtree", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.infra-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  transition: filter 1.2s ease-out, border-color 1.2s ease-out;
}
.infra-card:hover .infra-corner {
  border-color: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent));
  transition: filter 0.2s ease-in, border-color 0.2s ease-in;
  animation: cornerBlinkFast 0.1s ease-in-out 2;
}
.infra-corner.tl {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}
.infra-corner.tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}
.infra-corner.bl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}
.infra-corner.br {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}


/* Capital Humano */
#capital {
  padding: 80px 1rem;
}
#capital .capital-container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
#capital .left-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 200;
  pointer-events: none;
}
#capital .left-column > * {
  pointer-events: auto;
}
#capital h1 {
  font-family: "Figtree", sans-serif;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 300;
  margin-bottom: 25px;
  letter-spacing: -0.02em;
  color: #ffffff;
}
#capital .highlight {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
  animation: heroGlowPulse 3s ease-in-out infinite;
}
#capital .summary-text {
  font-family: "Figtree", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 50px;
  max-width: 90%;
  font-weight: 300;
}
#capital .controls {
  display: flex;
  gap: 25px;
  position: relative;
  z-index: 201;
}
#capital .nav-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  position: relative;
  overflow: hidden;
  outline: none;
  user-select: none;
  touch-action: manipulation;
}
#capital .nav-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  position: relative;
  z-index: 2;
}
#capital .nav-btn:active {
  transform: scale(0.92);
  background: var(--accent-weak);
  border-color: var(--accent);
  color: var(--accent);
}
#capital .nav-btn:hover {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent);
}
#capital .right-column {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: visible;
}
#capital .cards-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 400px;
  perspective: 1200px;
  overflow: visible;
}
#capital .card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--card-bg);
  border-radius: 24px;
  padding: 50px;
  border: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform-origin: center center;
  will-change: transform, opacity;
  -webkit-font-smoothing: antialiased;
}
#capital .card.active-indicator {
  border: 2px solid rgba(30, 216, 105, 0.35);
}
#capital .card.exit-left {
  transform: translateX(-120%) rotate(-15deg) scale(0.8) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
#capital .card.active-indicator::after {
  display: none;
}
#capital .card-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 20px;
  display: block;
}
#capital .card-title {
  font-family: "Figtree", sans-serif;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
#capital .card-description {
  font-family: "Figtree", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-muted);
}
@media (max-width: 1024px) {
  #capital .capital-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }
  #capital .left-column {
    display: contents;
  }
  #capital .left-column h1,
  #capital .left-column .summary-text,
  #capital .left-column .controls {
    position: relative;
    z-index: 200;
  }
  #capital .left-column h1 {
    order: 1;
    font-size: 3rem;
    margin-bottom: 10px;
  }
  #capital .left-column .summary-text {
    order: 2;
    margin-bottom: 20px;
  }
  #capital .right-column {
    order: 3;
    width: 100%;
    height: 420px;
    margin-bottom: 10px;
    z-index: 10;
  }
  #capital .left-column .controls {
    order: 4;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  #capital .cards-wrapper {
    height: 380px;
  }
  #capital .card {
    padding: 30px;
  }
  #capital .card-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  #capital .right-column {
    overflow: hidden;
  }
  #capital .cards-wrapper {
    overflow: hidden;
  }
}

@media (min-width: 768px) {
  #capital h1 {
    white-space: nowrap;
  }
}
/* removed isologo from generic solution panels to scope it only to Cloud */

/* Isologo solo en paneles de Ciberseguridad */
.solutions-cyber .solution-panel::after {
  content: "";
  position: absolute;
  right: 32px;
  bottom: 32px;
  width: 168px;
  height: 168px;
  background-image: url("images/iso.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.3;
  pointer-events: none;
}
.partners-security {
  padding: 120px 0 80px;
}
.partners-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.partners-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 16px;
}
.partners-security .hero-main-title {
  margin: 0;
}
.logos-marquee {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: transparent;
}
.logos-marquee::before,
.logos-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.logos-marquee::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(15, 21, 25, 1),
    rgba(15, 21, 25, 0)
  );
}
.logos-marquee::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(15, 21, 25, 1),
    rgba(15, 21, 25, 0)
  );
}
.logos-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  padding: 24px 32px;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}
.logo-item {
  height: 32px;
  width: 120px;
  opacity: 0.5;
  transition: opacity 0.3s;
  filter: grayscale(100%);
}
.logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
}
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 3rem 1.75rem;
  width: 100%;
}

.partner-card {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 3.5rem 1rem 2rem; /* Top padding for pill space */
  position: relative;
  overflow: hidden;
  min-width: 0;
  -webkit-clip-path: inset(-12px 0 0 0 round 12px);
  clip-path: inset(-12px 0 0 0 round 12px);
}

.partner-card.full-width {
  grid-column: span 2;
}

.partner-pill {
  position: absolute;
  top: 0;
  left: 1rem;
  transform: translateY(-50%);
  background-color: var(--accent);
  color: #000000;
  font-family: "Figtree", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px var(--accent-glow);
  z-index: 20;
}

/* Wrapper para posicionar la píldora fuera sin afectar la caja */
.partner-item {
  position: relative;
  grid-column: auto;
  min-width: 0;
}
.partner-item.full-width {
  grid-column: 1 / -1;
}
.partner-item {
  margin-bottom: 2.25rem;
}
.partner-item:last-child {
  margin-bottom: 0;
}
/* Gap controla el espacio vertical; no se necesita margin-top adicional */

/* Adjust marquee for cards */
.partner-card .logos-marquee {
  margin: 0;
}

.partner-card .logos-marquee::before,
.partner-card .logos-marquee::after {
  width: 80px;
}

.partner-card .logos-marquee::before {
  background: linear-gradient(to right, var(--card-bg), rgba(21, 30, 38, 0));
}

.partner-card .logos-marquee::after {
  background: linear-gradient(to left, var(--card-bg), rgba(21, 30, 38, 0));
}

.partner-card .logos-track {
  padding: 0;
  gap: 32px;
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row dense;
    gap: 2.5rem 0;
  }
  .partner-card.full-width {
    grid-column: span 1;
  }
}
@media (max-width: 768px) {
  .partners-security {
    padding: 80px 0 60px;
  }
  .logos-marquee::before,
  .logos-marquee::after {
    width: 60px;
  }
  .logos-track {
    gap: 28px;
    padding: 20px;
    animation-duration: 32s;
  }
  .logo-item {
    height: 32px;
    width: 120px;
  }
}

.bento-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  background: none;
}

@media (max-width: 768px) {
  .bento-container {
    padding-left: 6px;
    padding-right: 6px;
  }
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

.bento-container .card {
  background-color: var(--card-bg);
  border: 1px solid rgba(30, 216, 105, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  min-height: 260px;
}

@media (hover: hover) {
  .bento-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  }
}

.bento-container .card:active,
.bento-container .card:hover {
  border-color: var(--accent);
}

.bento-container .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    var(--accent-weak),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.bento-container .card:hover::before {
  opacity: 1;
}

.bento-container .card-content-top {
  position: relative;
  z-index: 2;
}

.bento-container .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 20px;
}

.bento-container .icon-box {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  padding: 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-container .badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-block;
  position: static;
}

.bento-container .card-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.bento-container .card-description {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 300;
}

.bento-container .card-footer {
  position: relative;
  z-index: 2;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.bento-container .result-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
  display: block;
}

.bento-container .result-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.bento-container svg {
  display: block;
}

@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .col-span-2 {
    grid-column: span 2;
  }
  .col-span-1 {
    grid-column: span 1;
  }
  .bento-container .card {
    padding: 32px;
    min-height: 320px;
  }
  .bento-container .card-header {
    align-items: flex-start;
    margin-bottom: 24px;
  }
  .bento-container .icon-box {
    padding: 12px;
    border-radius: 12px;
  }
  .bento-container .badge {
    font-size: 12px;
    padding: 4px 12px;
  }
  .bento-container .card-title {
    font-size: 24px;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  .bento-container .card-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .bento-container .card-footer {
    padding-top: 24px;
  }
  .bento-container .result-value {
    font-size: 32px;
    margin-bottom: 4px;
  }
  .bento-container .result-label {
    font-size: 14px;
  }
}
.cases-section {
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
  padding-top: 1rem;
}

/* Mobile: Full-width background for Casos de éxito */
@media (max-width: 768px) {
  .cases-section .page-header-bg {
    left: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
}

/* Removed section-wide grid from Casos content */

.coverage-section {
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
  padding-top: 1rem;
}
.coverage-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px var(--container-pad) 60px;
}
/* Restore Coverage header visuals */

/* Asegurar que el grid de Casos no se propague a otras secciones */
.cases-section {
  position: relative;
  z-index: 0;
}
.split-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.content-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
  display: inline-block;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 40px;
  /* Removed green border - border-left: 2px solid var(--accent); */
  padding-left: 0;
}
.visual-side {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.map-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.9;
  filter: sepia(20%) hue-rotate(90deg) contrast(1.1);
}
.map-video {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.8;
  filter: none;
  pointer-events: none;
}
.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-dark), transparent 50%);
  pointer-events: none;
}
.locations-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}
.locations-wrapper::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    rgba(255, 255, 255, 0.05)
  );
  z-index: 0;
}
.region-block {
  position: relative;
  padding-left: 32px;
  z-index: 1;
}
.region-block::after {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  background-color: var(--bg-dark);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}
.region-name {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 700;
  opacity: 0.8;
}
.city-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Mobile: Align city chips with country name */
@media (max-width: 768px) {
  .city-list {
    padding-left: 0;
    margin-left: 0;
  }
}

.city-item {
  font-size: 15px;
  font-weight: 500;
  color: #e2e8f0;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: default;
}
.city-item:hover {
  background-color: rgba(30, 216, 105, 0.08);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.city-item::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--accent-glow);
  opacity: 0.7;
  transition: opacity 0.3s;
}
.city-item:hover::before {
  opacity: 1;
  box-shadow: 0 0 8px var(--accent);
}
.badge-soon {
  font-size: 9px;
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  background-color: rgba(100, 116, 139, 0.1);
  margin-left: 4px;
}
@media (min-width: 900px) {
  .split-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
  }
  .content-side {
    flex: 1;
    position: static;
  }
  .visual-side {
    flex: 1.2;
    height: 55vh;
    min-height: 420px;
    overflow: hidden;
  }
  .map-image,
  .map-video {
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    min-height: 0;
  }
  .section-title {
    font-size: 48px;
  }
  .region-block { padding-left: 24px; }
  .locations-wrapper::before { left: 6px; }
}
@media (max-width: 768px) {
  #socios .scroll-box,
  .partners-security .scroll-box {
    margin-left: 16px;
    margin-right: 16px;
  }
}
