/**
 * Main CSS - Insight Theme
 * CSS Temporal Básico
 */

/* Import Variables */
@import "variables.css";

/* Reset básico */
/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  overflow-x: clip;
}

body {
  overflow-x: hidden;
}

/* BODY */

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-dark);
  background: #000;
}

main {
  position: relative;
}

/* CONTAINER */

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

/* SECTIONS */

.section {
  position: relative;
  min-height: 100vh;

  display: flex;
  align-items: center;
  padding: var(--section-padding-y) var(--section-padding-x);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}

.section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.section > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* TYPOGRAPHY */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

/* LINKS */
a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: 0.3s;
}

a:hover {
  color: var(--color-primary);
  opacity: 1;
}

/* BOTONES (no heredan estilos de links) */
a.btn {
  color: inherit;
  opacity: 1;
  text-decoration: none;
}

/* evitar cursor tipo texto */

body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
a,
button,
li,
.team__card,
.industries__item {
  cursor: default;
}

a,
button,
.btn {
  cursor: pointer;
}

/* BUTTONS */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  text-transform: uppercase;

  border-radius: var(--radius-full);
  border: none;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
  text-decoration: none;

  padding: 14px 28px;

  font-size: 0.9rem;

  letter-spacing: 1px;
}

/* BOTÓN VERDE */

.btn-primary {
  background: linear-gradient(135deg, #00d082, #00ffb4);
  color: #000;
  padding: 16px 32px;
  border-radius: 999px;

  box-shadow:
    0 10px 30px rgba(0, 208, 130, 0.35),
    0 0 20px rgba(0, 255, 180, 0.4);

  font-weight: 600;
  letter-spacing: 0.5px;
}

/* BOTÓN AZUL */

.btn-blue {
  background-color: var(--color-accent-blue);
  color: #fff;
  padding: 15px 35px;
  font-size: 16px;
  font-weight: 700;
}

.btn-primary,
.btn-blue {
  position: relative;

  transition:
    box-shadow 0.3s ease,
    filter 0.3s ease,
    background 0.3s ease;
}

/* hover verde */

.btn-primary:hover {
  filter: brightness(1.05);

  box-shadow:
    0 14px 32px rgba(0, 208, 130, 0.22),
    0 0 18px rgba(0, 255, 180, 0.18);
}

/* hover azul */

.btn-blue:hover {
  filter: brightness(1.05);

  box-shadow:
    0 14px 32px rgba(72, 149, 239, 0.22),
    0 0 18px rgba(72, 149, 239, 0.16);
}

/* HEADER */

.site-header {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 9999;

  background: rgba(0, 0, 0, 0.3);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.72);

  backdrop-filter: blur(18px);

  -webkit-backdrop-filter: blur(18px);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* layout */

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* ========================================================
   NAVIGATION
======================================================== */

/* ========================================================
   DESKTOP NAV
======================================================== */

.main-navigation {
  display: flex;
  align-items: center;
}

/* menu list */

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;

  margin: 0;
  padding: 0;

  list-style: none;
}

/* items */

.nav__menu li {
  position: relative;
}

/* links */

.nav__menu a {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: rgba(255, 255, 255, 0.82);

  text-decoration: none;

  font-size: 14px;
  font-weight: 500;

  letter-spacing: 0.6px;
  text-transform: uppercase;

  transition:
    color 0.3s ease,
    opacity 0.3s ease,
    text-shadow 0.3s ease,
    transform 0.3s ease;
}

/* underline glow */

.nav__menu a::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: -8px;

  width: 0;
  height: 1px;

  transform: translateX(-50%);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 180, 0.9),
    transparent
  );

  opacity: 0;

  transition:
    width 0.35s ease,
    opacity 0.35s ease;
}

/* hover */

.nav__menu a:hover {
  color: #fff;

  opacity: 1;

  transform: translateY(-1px);

  text-shadow: 0 0 12px rgba(0, 255, 180, 0.16);
}

.nav__menu a:hover::after {
  width: 120%;

  opacity: 1;
}

/* ========================================================
   CTA
======================================================== */

.header-cta .btn {
  padding: 10px 18px;
  font-size: 14px;
}

.btn-mobile {
  display: none;
}
/* ========================================================
   MOBILE TOGGLE
======================================================== */

.menu-toggle {
  display: none;

  position: relative;
  z-index: 100001;

  flex-direction: column;
  gap: 5px;

  background: none;
  border: none;

  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;

  background: #fff;

  transition: 0.3s ease;
}

/* X animation */

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================================
   MOBILE MENU
======================================================== */

.mobile-menu__branding {
  display: none;
}

.mobile-menu__footer {
  display: none;
}

/* ========================================================
   TABLET
======================================================== */
@media (max-width: 1024px) {
  .btn-desktop {
    display: none;
  }

  .btn-mobile {
    display: inline;
  }
}

/* ========================================================
   MOBILE
======================================================== */

@media (max-width: 768px) {
  /* navigation layer */

  .main-navigation {
    position: fixed;
    inset: 0;

    overflow: hidden;

    width: 100vw;
    height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
      radial-gradient(
        circle at top left,
        rgba(124, 58, 237, 0.18),
        transparent 34%
      ),
      radial-gradient(
        circle at bottom right,
        rgba(0, 208, 130, 0.12),
        transparent 36%
      ),
      rgba(0, 0, 0, 0.97);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    z-index: 100000;

    opacity: 0;
    visibility: hidden;

    transform: translateX(100%);

    transition:
      transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.35s ease,
      visibility 0.35s ease;
  }
  /* active */

  .main-navigation.active {
    opacity: 1;
    visibility: visible;

    transform: translateX(0);
  }

  /* atmosphere */

  .main-navigation::before {
    content: "";

    position: absolute;

    top: -20%;
    left: 50%;

    transform: translateX(-50%);

    width: 520px;
    height: 520px;

    background: radial-gradient(
      circle,
      rgba(124, 58, 237, 0.28),
      transparent 70%
    );

    opacity: 0.55;

    filter: blur(110px);

    pointer-events: none;
  }
  /* grid texture */

  .main-navigation::after {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);

    background-size: 80px 80px;

    opacity: 0.18;

    pointer-events: none;
  }

  /* ========================================================
     BRANDING
  ======================================================== */

  .mobile-menu__branding {
    position: absolute;

    top: 52px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    z-index: 2;
  }

  .mobile-menu__branding .custom-logo {
    max-width: 150px;
    height: auto;

    opacity: 0.92;
  }

  /* ========================================================
     MENU LIST
  ======================================================== */

  .nav__menu {
    position: relative;
    z-index: 2;

    flex-direction: column;

    width: 100%;
    max-width: 420px;

    gap: 0;
  }

  .nav__menu::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 50%;

    width: 1px;

    background: linear-gradient(
      to bottom,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent
    );

    transform: translateX(-50%);

    pointer-events: none;
  }

  /* items */

  .nav__menu li {
    width: 100%;

    opacity: 0;

    transform: translateY(18px);

    transition:
      opacity 0.45s ease,
      transform 0.45s ease;
  }

  /* stagger reveal */

  .main-navigation.active .nav__menu li {
    opacity: 1;

    transform: translateY(0);
  }

  .main-navigation.active .nav__menu li:nth-child(1) {
    transition-delay: 0.08s;
  }

  .main-navigation.active .nav__menu li:nth-child(2) {
    transition-delay: 0.14s;
  }

  .main-navigation.active .nav__menu li:nth-child(3) {
    transition-delay: 0.2s;
  }

  .main-navigation.active .nav__menu li:nth-child(4) {
    transition-delay: 0.26s;
  }

  /* links */

  .nav__menu a {
    width: 100%;

    padding: 20px 0;

    justify-content: center;

    text-align: center;

    font-size: clamp(24px, 5.8vw, 34px);
    font-weight: 500;

    letter-spacing: 1.4px;

    line-height: 1;
    transform: scale(1);

    transform-origin: center;

    transition:
      color 0.3s ease,
      opacity 0.3s ease,
      text-shadow 0.3s ease,
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav__menu a:hover {
    color: #fff;

    opacity: 1;

    transform: scale(1.04);

    text-shadow:
      0 0 12px rgba(0, 255, 180, 0.18),
      0 0 32px rgba(0, 255, 180, 0.1);
  }

  .nav__menu a::after {
    bottom: 14px;
  }

  .nav__menu a:hover::after {
    width: 70%;
  }

  /* ========================================================
     FOOTER
  ======================================================== */

  .mobile-menu__footer {
    position: absolute;

    bottom: 60px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    justify-content: center;

    width: 100%;

    z-index: 2;

    opacity: 0.55;
  }

  .mobile-menu__footer a {
    color: rgba(255, 255, 255, 0.72);

    font-size: 12px;

    letter-spacing: 1.8px;
    text-transform: uppercase;
  }

  /* ========================================================
     TOGGLE
  ======================================================== */

  .menu-toggle {
    display: flex;
  }

  /* ========================================================
     CTA
  ======================================================== */

  .header-cta {
    display: none;
  }
  /* ========================================================
    LOGO 
  ======================================================== */

  .site-header .custom-logo {
    max-height: 64px;
  }
}

/* LOGO FIX */

.custom-logo {
  max-height: 100px;
  width: auto;
  display: block;
}

.site-branding {
  display: flex;
  align-items: center;
}

/* FLOATING ICONS */

.floating-icon {
  animation: floatIcon 6s ease-in-out infinite;
}

@keyframes floatIcon {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

model-viewer {
  --poster-color: transparent;

  background: transparent !important;
}

/* ========================================================
   GLOBAL ATMOSPHERE
======================================================== */

.site-main,
.section,
.site-footer {
  position: relative;
}

.site-header {
  position: fixed;
  z-index: 9999;
}

body {
  position: relative;

  background: #050505;

  overflow-x: hidden;
}

/* ========================================================
   ATMOSPHERE LAYER
======================================================== */

.site-atmosphere {
  position: fixed;

  inset: 0;

  pointer-events: none;

  overflow: hidden;

  z-index: 0;
}

/* ========================================================
   AURORA 01
======================================================== */

.site-atmosphere::before {
  content: "";

  position: absolute;

  inset: -10%;

  background:
    radial-gradient(
      circle at 18% 30%,
      rgba(124, 58, 237, 0.16),
      transparent 32%
    ),
    radial-gradient(circle at 78% 24%, rgba(0, 208, 130, 0.12), transparent 34%);

  filter: blur(120px);

  opacity: 0.9;

  animation: atmosphereMoveA 24s ease-in-out infinite alternate;
}

/* ========================================================
   AURORA 02
======================================================== */

.site-atmosphere::after {
  content: "";

  position: absolute;

  inset: -14%;

  background:
    radial-gradient(
      circle at 52% 82%,
      rgba(0, 140, 255, 0.12),
      transparent 30%
    ),
    radial-gradient(circle at 68% 62%, rgba(0, 208, 130, 0.08), transparent 26%);

  filter: blur(140px);

  opacity: 0.75;

  animation: atmosphereMoveB 30s ease-in-out infinite alternate;
}

/* ========================================================
   NOISE
======================================================== */

body::before {
  content: "";

  position: fixed;

  inset: 0;

  pointer-events: none;

  z-index: 1;

  opacity: 0.045;

  background-image: radial-gradient(
    rgba(255, 255, 255, 0.32) 0.6px,
    transparent 0.6px
  );

  background-size: 4px 4px;

  mix-blend-mode: soft-light;
}

/* ========================================================
   VIGNETTE
======================================================== */

body::after {
  content: "";

  position: fixed;

  inset: 0;

  pointer-events: none;

  z-index: 1;

  background: radial-gradient(
    circle at center,
    transparent 42%,
    rgba(0, 0, 0, 0.52) 100%
  );
}

/* ========================================================
   LEGAL PAGES
======================================================== */

.legal-page {
  padding-top: 180px;
  padding-bottom: 120px;
}

.legal-page__title {
  margin-bottom: 40px;

  text-align: center;

  font-size: clamp(38px, 5vw, 64px);
}

.legal-page__content {
  max-width: 1000px;

  margin: 0 auto;

  line-height: 1.9;

  font-size: 1.05rem;
}

.legal-page__content p {
  margin-bottom: 32px;
}

/* ========================================================
   404
======================================================== */

.error-404 {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 180px 0 120px;
}

.error-404__content h1 {
  font-size: clamp(90px, 14vw, 180px);

  line-height: 1;

  margin-bottom: 20px;

  color: var(--color-primary);
}

.error-404__content h2 {
  margin-bottom: 20px;
}

.error-404__content p {
  margin-bottom: 36px;
}

/* ========================================================
   ANIMATIONS
======================================================== */

@keyframes atmosphereMoveA {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(-2%, -3%, 0) scale(1.08);
  }
}

@keyframes atmosphereMoveB {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(3%, 2%, 0) scale(1.12);
  }
}

/* ========================================================
   MEDIA QUERIES
======================================================== */

@media (max-width: 768px) {
  .btn {
    width: auto;
    min-width: 210px;
  }
  .legal-page {
    padding-top: 140px;
    padding-bottom: 80px;
  }

  .legal-page__title {
    margin-bottom: 28px;
  }

  .legal-page__content {
    font-size: 0.98rem;

    line-height: 1.8;
  }
}
