:root {
  --bg-color: #050505;
  --text-color: #ffffff;
  --secondary-color: #cfcfcf;
  --accent-color: #ff6a00;
  --border-color: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.02);
  --font-title: "Raleway", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  overflow-x: hidden;
  width: 100%;
  cursor: none;
  transition:
    background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CUSTOM CURSOR */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.15s ease-out,
    opacity 0.2s;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 106, 0, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s ease,
    height 0.3s ease,
    border-color 0.3s ease,
    transform 0.1s ease-out;
  background: rgba(255, 106, 0, 0.03);
  backdrop-filter: blur(2px);
}

.cursor-hover .cursor-ring {
  width: 65px;
  height: 65px;
  border-color: var(--accent-color);
  background: rgba(255, 106, 0, 0.08);
}

/* PROGRESS BAR */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6a00, #ffd166);
  z-index: 9999;
  width: 0%;
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.8);
}

/* --- HEADER Y MENU HAMBURGUESA --- */
.fixed-header-right {
  position: fixed;
  top: 30px;
  right: 4vw;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 15px;
}

.lab-logo-icon {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.menu-btn {
  position: relative;
  z-index: 20001;
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-btn:hover {
  background: rgba(255, 106, 0, 0.1);
  border-color: var(--accent-color);
}

.menu-custom-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.menu-btn.open .menu-custom-icon {
  transform: scale(0.8) rotate(90deg);
  opacity: 0.6;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(20px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: clamp(2rem, 5vw, 4rem);
  font-family: var(--font-title);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  position: relative;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-overlay.active .nav-link {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay.active .nav-link:nth-child(1) {
  transition-delay: 0.2s;
}

.nav-overlay.active .nav-link:nth-child(2) {
  transition-delay: 0.3s;
}

.nav-overlay.active .nav-link:nth-child(3) {
  transition-delay: 0.4s;
}

.nav-overlay.active .nav-link:nth-child(4) {
  transition-delay: 0.5s;
}

.nav-link:hover {
  color: var(--accent-color);
  letter-spacing: 0.05em;
}

/* PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000000;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.terminal-box {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--accent-color);
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  max-width: 300px;
}

.terminal-line {
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.4s ease;
}

.terminal-line.active {
  opacity: 1;
  transform: translateY(0);
}

.preloader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: scale(0.95);
  transition: all 1s ease;
}

.preloader-brand.show {
  opacity: 1;
  transform: scale(1);
}

/* GENERAL */
h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Estilo para el H2 SEO en el Hero */
.hero-h2 {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 3vw, 1.8rem); /* Responsivo */
  color: var(
    --accent-color
  ); /* Usamos el naranja característico para resaltarlo */
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: -10px; /* Lo acerca un poco al título principal */
  margin-bottom: 20px; /* Lo separa del párrafo inferior */
}

.text-accent {
  color: var(--accent-color);
}

section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8vw 6vw;
  box-sizing: border-box;
}

.logo-img {
  width: 150px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 106, 0, 0.25));
}

.glow-spot {
  position: absolute;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    rgba(255, 106, 0, 0.08) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* HERO */
.hero-section {
  text-align: center;
  z-index: 2;
  min-height: 85vh;
  padding-bottom: 2rem;
  margin-top: 5vh;
}

.hero-banner-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(255, 106, 0, 0.2);
  border: 1px solid rgba(255, 106, 0, 0.2);
  position: relative;
  z-index: 3;
  animation:
    floatBanner 6s ease-in-out infinite,
    pulseBanner 8s infinite alternate;
}

.hero-banner {
  width: 100%;
  display: block;
  aspect-ratio: 1774/887;
  object-fit: cover;
}

@keyframes floatBanner {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulseBanner {
  0% {
    border-color: rgba(255, 255, 255, 0.05);
  }

  100% {
    border-color: rgba(255, 106, 0, 0.4);
  }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  color: var(--secondary-color);
  max-width: 680px;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.arrow-down {
  width: 20px;
  height: 20px;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* CHAOS */
.chaos-section {
  overflow: hidden;
  text-align: center;
  min-height: 60vh;
  margin-top: -5vh;
}

.chaos-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.chaos-item {
  position: absolute;
  padding: 1rem 1.8rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--secondary-color);
  backdrop-filter: blur(8px);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  /* Adaptable font size */
}

.chaos-msg {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 600;
  max-width: 900px;
  z-index: 3;
  opacity: 0;
  transform: translateY(30px);
  background: linear-gradient(90deg, #fff, #ff6a00);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* WHITE SECTION */
.white-section {
  background-color: #ffffff;
  color: #050505;
  text-align: center;
  transition: all 0.8s ease;
}

.white-section-content {
  opacity: 0;
  transform: translateY(40px);
}

.white-section h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  max-width: 1000px;
  font-weight: 500;
  line-height: 1.2;
}

/* ABOUT */
.about-section {
  text-align: center;
}

.about-content {
  opacity: 0;
  transform: translateY(40px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle-logo-wrapper {
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
  position: relative;
}

.circle-logo-wrapper::after {
  content: "";
  position: absolute;
  inset: -15px;
  border: 1px dashed rgba(255, 106, 0, 0.4);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.about-text {
  max-width: 850px;
  font-size: clamp(1.2rem, 2.3vw, 2.1rem);
  line-height: 1.6;
  color: var(--secondary-color);
  font-weight: 300;
}

/* CARDS WALL */
.cards-wall-section {
  min-height: 130vh;
  padding: 10vw 4vw;
}

.section-heading {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 5rem;
  text-align: center;
}

.cards-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.b-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 120px;
  font-family: var(--font-title);
  color: var(--secondary-color);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.b-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 106, 0, 0.2),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.b-card:hover {
  border-color: rgba(255, 106, 0, 0.6);
  box-shadow: 0 10px 30px rgba(255, 106, 0, 0.15);
}

.b-card:hover::before {
  opacity: 1;
}

.card-front {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.4s ease;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 500;
}

.card-front i {
  color: var(--accent-color);
}

.card-back {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #fff;
  background: rgba(255, 106, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 2;
}

.b-card:hover .card-front {
  opacity: 0;
  transform: translateY(-20px);
}

.b-card:hover .card-back {
  opacity: 1;
  transform: translateY(0);
}

/* CODE TO UI */
.code-ui-section {
  min-height: 120vh;
  text-align: center;
}

.transformation-viewport {
  width: 100%;
  max-width: 1050px;
  height: 520px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: #080808;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  margin-bottom: 3.5rem;
}

.code-view {
  padding: 2.5rem;
  text-align: left;
  font-family: monospace;
  font-size: clamp(0.7rem, 2vw, 0.95rem);
  line-height: 1.8;
  color: #10b981;
  position: absolute;
  inset: 0;
  transition: opacity 1s;
}

.dashboard-view {
  position: absolute;
  inset: 0;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  opacity: 0;
  transform: scale(0.96);
  transition: all 1s ease;
  background: #09090c;
  pointer-events: none;
}

.dash-sidebar {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-line {
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.dash-line.accent {
  background: var(--accent-color);
  width: 60%;
}

.dash-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.dash-top-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dash-mini-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  height: 110px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dash-chart {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  gap: 10px;
  overflow: hidden;
  min-height: 150px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent-color), transparent);
  border-radius: 6px 6px 0 0;
}

.code-caption {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 500;
}

/* COMPARISON */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  width: 100%;
  margin-top: 3rem;
}

.compare-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  opacity: 0;
  transform: translateY(50px);
}

.compare-card.premium {
  border-color: rgba(255, 106, 0, 0.4);
  background: linear-gradient(
    160deg,
    rgba(255, 106, 0, 0.07) 0%,
    transparent 100%
  );
  box-shadow: 0 20px 50px rgba(255, 106, 0, 0.1);
}

.compare-header {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-card.premium .compare-header {
  color: var(--accent-color);
  font-weight: 600;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.compare-list li {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #a0a0a0;
}

.compare-card.premium .compare-list li {
  color: #ffffff;
  font-weight: 500;
}

/* PROCESS ORBIT */
.process-section {
  min-height: 120vh;
}

.process-orbit-container {
  position: relative;
  width: 700px;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.orbit-svg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.core-center {
  position: relative;
  width: 140px;
  height: 140px;
  background: #09090c;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(255, 106, 0, 0.3);
  z-index: 5;
  transition: all 0.3s ease;
}

.core-center span {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  margin-top: 6px;
}

.orbit-node {
  position: absolute;
  background: #09090c;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: #ffffff;
  z-index: 6;
  transition: all 0.3s;
}

.orbit-node:hover {
  border-color: var(--accent-color);
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 106, 0, 0.4);
  color: var(--accent-color);
}

/* TECH CAPSULES */
.tech-section {
  text-align: center;
}

.capsules-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  max-width: 1100px;
  margin-top: 3rem;
}

.tech-capsule {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-title);
  color: var(--secondary-color);
  transition: all 0.3s ease;
  cursor: crosshair;
  position: relative;
}

.tech-capsule::after {
  content: attr(data-info);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--accent-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 106, 0, 0.3);
}

.tech-capsule:hover {
  border-color: var(--accent-color);
  color: #fff;
  background: rgba(255, 106, 0, 0.1);
  transform: translateY(-5px);
}

.tech-capsule:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* SAGE */
.sage-section {
  text-align: center;
  min-height: 110vh;
}

.sage-canvas-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 2.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sage-text {
  font-size: clamp(2rem, 4vw, 3.8rem);
  max-width: 800px;
  margin: 0 auto;
  font-weight: 500;
}

/* MANIFESTO ANIMADO CON FIBRA ÓPTICA */
.manifesto-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25vh;
  padding: 15vh 8vw;
  min-height: auto;
  margin: 10vh 0;
}

.manifesto-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  z-index: 1;
}

.manifesto-data-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 0 20px var(--accent-color),
    0 0 10px #fff;
  z-index: 2;
}

.manifesto-phrase {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #ffffff;
  opacity: 0.3;
  transform: scale(0.9) translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-color);
  padding: 0 30px;
  z-index: 3;
  text-align: center;
}

.manifesto-phrase.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  text-shadow: 0 0 40px rgba(255, 106, 0, 0.4);
  color: var(--accent-color);
}

/* FINAL CTA LÍQUIDO */
.final-section {
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.final-title {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  max-width: 900px;
  margin: 1.5rem 0 3.5rem 0;
}

.btn-experimental-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  text-decoration: none;
  z-index: 10;
}

.cta-text {
  position: relative;
  z-index: 5;
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 106, 0, 0.8);
}

.cta-liquid-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(255, 106, 0, 0.6),
    rgba(15, 15, 20, 0.95)
  );
  box-shadow:
    0 0 30px rgba(255, 106, 0, 0.3),
    inset 0 0 20px rgba(255, 106, 0, 0.5);
  animation:
    liquidMorph 6s ease-in-out infinite,
    pulseGlow 4s alternate infinite;
  z-index: 1;
  border: 1px solid rgba(255, 106, 0, 0.4);
}

.cta-liquid-bg::before,
.cta-liquid-bg::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  border: 1px solid rgba(255, 106, 0, 0.3);
  animation: spinBlob 10s linear infinite;
  pointer-events: none;
}

.cta-liquid-bg::after {
  inset: -16px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: spinBlob 14s linear infinite reverse;
  opacity: 0.5;
}

/* --- NUEVA BARRA DE NAVEGACIÓN --- */
.fixed-header-bar {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 1200px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 12px 8px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* --- TRUCO PARA EL HEADER AL ABRIR EL MENÚ --- */
.fixed-header-bar.menu-open {
  z-index: 20001;
  /* Sube todo el header por encima del overlay oscuro */
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

/* Ocultamos el logo y las pestañas suavemente */
.fixed-header-bar.menu-open .header-logo,
.fixed-header-bar.menu-open .desktop-nav {
  opacity: 0;
  pointer-events: none;
}

/* Transición suave para cuando aparecen y desaparecen */
.header-logo,
.desktop-nav {
  transition: opacity 0.3s ease;
}

.header-logo {
  display: flex;
  align-items: center;
}

/* Contenedor de las pestañas */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.02);
  padding: 5px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Diseño de cada pestaña */
.tab-link {
  text-decoration: none;
  color: var(--secondary-color);
  font-family: var(--font-body);
  /* Utiliza Inter */
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.tab-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Pestaña Activa (Efecto iluminado similar a tabs) */
.tab-link.active {
  background: rgba(255, 106, 0, 0.15);
  color: var(--accent-color);
  box-shadow: inset 0 0 10px rgba(255, 106, 0, 0.2);
  border: 1px solid rgba(255, 106, 0, 0.3);
}

/* --- ESTILOS DEL FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 5%;
  background: rgba(5, 5, 5, 0.9);
  margin-top: 4rem;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Bloque de Marca */
.footer-brand {
  flex-direction: column; /* Apila los elementos verticalmente */
  align-items: center; /* Centra ambos elementos horizontalmente */
  justify-content: center;
  gap: 8px; /* Espacio entre la imagen y el texto */
  text-align: center;
}

.footer-brand p {
  font-family: var(--font-body);
  color: var(--secondary-color);
  font-size: 0.75rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Enlaces */
.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--secondary-color);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Etiqueta de Versión Experimental */
.footer-version span {
  font-family: monospace;
  /* Tipografía técnica */
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

/* Estructura principal de la Laptop */
.laptop-screen {
  position: relative;
  z-index: 2;
  width: 80vw;
  max-width: 750px;
  aspect-ratio: 4 / 3;
  height: 75vh;
  max-height: 650px;
  background-color: #0b0c10;
  border: 14px solid #1c1d22;
  border-bottom-width: 28px;
  /* Bisagra de la laptop */
  border-radius: 16px;
  box-shadow:
    0 0 60px rgba(255, 106, 0, 0.35),
    inset 0 0 35px rgba(255, 106, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 1.5rem;
}

/* Fondo de ondas y luminosidad */
.waves-effect {
  position: absolute;
  inset: -50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 106, 0, 0.18) 0%,
    transparent 65%
  );
  z-index: 1;
  animation: pulseMenuWaves 7s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pulseMenuWaves {
  0% {
    transform: scale(0.85) rotate(0deg);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.25) rotate(6deg);
    opacity: 1;
  }
}

/* Ventana VS Code */
.vscode-window {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  background: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}

/* Barra Superior VS Code */
.vscode-header {
  background: #252526;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #111111;
}

.vscode-dots {
  display: flex;
  gap: 8px;
  margin-right: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red {
  background-color: #ff5f56;
}

.dot-yellow {
  background-color: #ffbd2e;
}

.dot-green {
  background-color: #27c93f;
}

.vscode-tabs {
  display: flex;
  height: 100%;
}

.vscode-tab {
  background: #1e1e1e;
  color: #cccccc;
  font-family: "Inter", monospace;
  font-size: 0.85rem;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 2px solid #ff6a00;
  /* Naranja Brainiac */
  border-right: 1px solid #111111;
}

/* Cuerpo del Editor */
.vscode-body {
  display: flex;
  flex: 1;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  font-family: "Consolas", "Fira Code", "Courier New", monospace;
}

/* Números de Línea */
.vscode-line-numbers {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: #858585;
  font-size: 1rem;
  padding-right: 1.2rem;
  border-right: 1px solid #333333;
  user-select: none;
  text-align: right;
}

/* Área de Código */
.vscode-code-area {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

/* Clases para probar las fuentes en el Menú */
.font-rubik {
  font-family: "Rubik Dirt", system-ui;
}

.font-bebas {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 2px; /* Bebas Neue suele verse mejor con un poco de espaciado */
  font-weight: 400;
}

.code-line {
  color: #d4d4d4;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

/* Colores del Sintaxis de Código */
.code-comment {
  color: #6a9955;
  /* Verde comentario VS Code */
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 1px;
}

.code-keyword {
  color: #569cd6;
  /* Azul keyword */
  font-size: 1rem;
  margin-right: 8px;
}

.code-func {
  color: #4ec9b0;
  /* Verde agua funciones */
  font-size: 1rem;
}

.code-comma {
  color: #d4d4d4;
  font-family: monospace;
  font-size: 1.5rem;
  margin-left: 4px;
}

/* LOS MENÚS PRINCIPALES (Fuente Rubik Dirt + Grande) */
.vscode-code-area .nav-link.code-string {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Efecto al pasar el cursor (Hover) */
.vscode-code-area .nav-link.code-string:hover {
  color: #ff6a00 !important;
  /* Naranja intenso de Brainiac */
  background: rgba(255, 106, 0, 0.15);
  text-shadow:
    0 0 15px rgba(255, 106, 0, 0.8),
    0 0 30px rgba(255, 106, 0, 0.4);
  transform: translateX(10px) scale(1.03);
}

/* -- ADAPTACIÓN MÓVIL EXTREMA -- */
@media (max-width: 768px) {
  .laptop-screen {
    width: 95%; /* Un poco más ancho en celular */
    aspect-ratio: auto; /* Quitamos la forma cuadrada */
    height: 80vh; /* Le damos altura vertical para que entren los menús */
  }

  .vscode-window {
    border-radius: 12px;
  }

  .nav-link.code-string {
    font-size: clamp(
      1.5rem,
      6vw,
      2.5rem
    ); /* Ajustamos ligeramente la fuente en móvil */
  }
}

/* --- RESPONSIVIDAD DEL FOOTER --- */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Ocultar las pestañas en móviles */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .fixed-header-bar {
    top: 15px;
    padding: 5px 10px 5px 15px;
  }
}

@keyframes liquidMorph {
  0%,
  100% {
    border-radius: 50%;
  }

  25% {
    border-radius: 45% 55% 45% 55%;
  }

  50% {
    border-radius: 55% 45% 55% 45%;
  }

  75% {
    border-radius: 50% 60% 50% 40%;
  }
}

@keyframes spinBlob {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow:
      0 0 20px rgba(255, 106, 0, 0.2),
      inset 0 0 15px rgba(255, 106, 0, 0.4);
  }

  100% {
    box-shadow:
      0 0 50px rgba(255, 106, 0, 0.5),
      inset 0 0 30px rgba(255, 106, 0, 0.8);
  }
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .process-orbit-container {
    width: 100%;
    height: 550px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    cursor: default;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  section {
    padding: 15vw 6vw;
  }

  /* Optimizado padding móvil */

  .b-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  .chaos-item {
    font-size: 0.75rem;
    padding: 0.6rem 1.2rem;
  }

  /* Reduce solapamiento en caos */

  /* Optimización Dashboards */
  .dashboard-view {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .dash-sidebar {
    display: none;
  }

  .dash-top-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .dash-chart {
    min-height: 120px;
    padding: 1rem;
  }

  .process-orbit-container {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 1rem;
  }

  .orbit-svg-lines {
    display: none;
  }

  .orbit-node {
    position: relative;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 80%;
    text-align: center;
  }

  .fixed-header-right {
    right: 6vw;
    top: 20px;
  }
}

@media (max-width: 480px) {
  .dash-top-cards {
    grid-template-columns: 1fr;
  }

  /* Apilar tarjetas mini en pantallas muy chicas */
}

/* -- ADAPTACIÓN MÓVIL EXTREMA -- */
@media (max-width: 768px) {
  .laptop-screen {
    width: 95%;
    aspect-ratio: auto;
    height: 80vh;
    /* En celular ocupa altura, deja de ser cuadrado perfecto */
  }

  .vscode-window {
    border-radius: 12px;
  }
}
