*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --dark: #070914;
  --navy: #0c1220;
  --accent: #2d6cdf;
  --accent2: #4d8fff;
  --lime: #a8e063;
  --silver: #c8d4e8;
  --white: #f0f4ff;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}

/* ========== LOADER CENTRADO ========== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#loader.hiding {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

#loader.hidden {
  display: none;
}

.loader-rings {
  position: relative;
  width: 120px;
  height: 120px;
}

.loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.ring-a {
  inset: 0;
  border-color: rgba(45, 108, 223, 0.5);
  animation: spin 2s linear infinite;
}

.ring-b {
  inset: 16px;
  border-color: rgba(168, 224, 99, 0.4);
  animation: spinRev 1.5s linear infinite;
}

.ring-c {
  inset: 32px;
  border-color: rgba(77, 143, 255, 0.3);
  animation: spin 1s linear infinite;
}

.loader-sigma {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.ls-g {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.ls-s {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
}

.loader-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 6px;
  color: rgba(200, 212, 232, 0.5);
  animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinRev {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes loaderPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ========== NAVBAR ========== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 70px;
  display: flex;
  align-items: center;
  background: rgba(7, 9, 20, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}

#navbar.scrolled {
  background: rgba(7, 9, 20, 0.98);
  border-bottom-color: rgba(45, 108, 223, 0.2);
}

.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav-logo span {
  color: var(--accent2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--silver);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

/* DROPDOWN */
.nav-dropdown {
  position: relative;
}

.nav-arrow {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: rgba(12, 18, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--silver);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.dropdown-menu a:hover {
  color: var(--white);
  background: rgba(45, 108, 223, 0.15);
}

/* CTA BUTTON */
.nav-cta {
  margin-left: auto;
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 108, 223, 0.4);
}

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* MOBILE NAV */
@media (max-width: 768px) {
  #navbar {
    padding: 0 24px;
    position: relative;
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
  }

  .nav-inner {
    flex-wrap: wrap;
    gap: 0;
  }

  .nav-logo {
    height: 70px;
    display: flex;
    align-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 18px;
    gap: 10px;
    order: 3;
    flex: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border-radius: 12px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    border: none;
    border-radius: 8px;
    padding: 4px 0 4px 16px;
    display: none;
    margin-top: 4px;
    min-width: auto;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-dropdown.open .nav-arrow {
    transform: rotate(180deg);
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ========== HERO ========== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 48px 80px;
  position: relative;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .15;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -100px;
  right: -100px;
  animation: orbFloat1 18s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--lime);
  bottom: -150px;
  left: -100px;
  animation: orbFloat2 22s ease-in-out infinite;
  opacity: .08;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: #7c3aed;
  top: 50%;
  left: 30%;
  animation: orbFloat3 14s ease-in-out infinite;
  opacity: .07;
}

@keyframes orbFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(60px, -40px) scale(1.1);
  }

  66% {
    transform: translate(-40px, 30px) scale(.95);
  }
}

@keyframes orbFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-70px, 50px) scale(1.15);
  }
}

@keyframes orbFloat3 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  40% {
    transform: translate(40px, -60px);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 28px;
  animation: fadeUp .7s .1s both;
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime));
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span {
  display: block;
  animation: slideUp .9s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-title .line:nth-child(1) span {
  animation-delay: .25s;
}

.hero-title .line:nth-child(2) span {
  animation-delay: .40s;
}

.hero-title .line:nth-child(3) span {
  animation-delay: .55s;
}

.accent-word {
  color: var(--accent2);
  position: relative;
  display: inline-block;
  word-break: break-word;
  white-space: normal;
}

.accent-word::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--accent2));
  border-radius: 2px;
  width: 0;
  animation: lineGrow 1s .9s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes lineGrow {
  to {
    width: 100%;
  }
}

.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--silver);
  max-width: 430px;
  animation: fadeUp .7s .7s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
  animation: fadeUp .7s .9s both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(45, 108, 223, .4);
}

.btn-ghost {
  background: rgba(255, 255, 255, .06);
  color: var(--silver);
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .1);
  transition: all .2s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, .2);
  color: var(--white);
  background: rgba(255, 255, 255, .1);
}

/* CARDS FLOTANTES */
.hero-visual {
  animation: fadeRight 1s .5s cubic-bezier(.16, 1, .3, 1) both;
}

.card-stack {
  position: relative;
  height: 470px;
}

.glass-card {
  position: absolute;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .15);
  overflow: hidden;
}

.card-main {
  width: 280px;
  height: 175px;
  top: 90px;
  left: 45px;
  z-index: 3;
  animation: floatA 5s ease-in-out infinite;
}

.card-secondary {
  width: 210px;
  height: 130px;
  top: 0;
  right: 130px;
  z-index: 2;
  animation: floatB 4s 1s ease-in-out infinite;
}

.card-tertiary {
  width: 220px;
  min-height: 145px;
  bottom: 10px;
  right: 10px;
  z-index: 1;
  animation: floatA 6s 2s ease-in-out infinite;
}

@keyframes floatA {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatB {

  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.card-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 10px;
  font-weight: 500;
}

.card-number {
  font-family: 'Syne', sans-serif;
  font-size: 46px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.card-unit {
  font-size: 20px;
  color: var(--silver);
  font-weight: 400;
}

.card-text {
  font-size: 12px;
  color: rgba(200, 212, 232, .7);
  margin-top: 8px;
  line-height: 1.4;
}

.card-mini {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent2);
  margin-bottom: 8px;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
}

.card-mini--lime {
  color: var(--lime);
}

.card-dot {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.7);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  animation: fadeIn .8s 1.8s both;
}

.scroll-hint span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--silver);
  opacity: .4;
}

.scroll-mouse {
  width: 20px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-mouse::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--lime);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {

  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }

  50% {
    opacity: .3;
    transform: translateY(8px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(110%);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ========== STATS (CORREGIDO) ========== */
#stats {
  padding: 80px 48px;
  background: rgba(7, 9, 20, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(45, 108, 223, 0.14);
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-val {
  font-family: 'Syne', sans-serif;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 800;
  margin-bottom: 10px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.stat-item:nth-child(odd) .stat-val {
  color: var(--accent2);
}

.stat-item:nth-child(even) .stat-val {
  color: var(--lime);
}

.stat-label {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(200, 212, 232, 0.7);
}

/* ========== RESPONSIVE STATS (vertical en móvil) ========== */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
    /* Forzar una columna */
    gap: 32px !important;
  }

  .stat-item {
    text-align: center;
    padding: 0 16px;
  }

  .stat-val {
    font-size: 42px;
  }

  .stat-label {
    font-size: 13px;
  }

  .stats-intro {
    margin-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .stat-val {
    font-size: 36px;
  }
}

/* ========== PROCESO ========== */
#proceso {
  padding: 100px 48px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

#proceso::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(168, 224, 99, 0.08), transparent 28%), radial-gradient(circle at 85% 15%, rgba(77, 143, 255, 0.12), transparent 22%);
  pointer-events: none;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.process-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 620px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 620px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.step.visible {
  opacity: 1;
  transform: none;
}

.step:nth-child(1) {
  transition-delay: 0.18s;
}

.step:nth-child(2) {
  transition-delay: 0.24s;
}

.step:nth-child(3) {
  transition-delay: 0.30s;
}

.step:nth-child(4) {
  transition-delay: 0.36s;
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  min-width: 32px;
  padding-top: 2px;
}

.step-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-text {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.65;
}

.process-visual {
  justify-self: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: 0.2s;
}

#proceso.visible .process-header,
#proceso.visible .process-visual {
  opacity: 1;
  transform: none;
}

.sigma-rings {
  position: relative;
  width: 340px;
  height: 340px;
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ring-1 {
  width: 260px;
  height: 260px;
  border-color: rgba(77, 143, 255, 0.18);
  animation: spin 16s linear infinite;
}

.ring-2 {
  width: 200px;
  height: 200px;
  border-color: rgba(168, 224, 99, 0.18);
  animation: spin-reverse 10s linear infinite;
}

.ring-3 {
  width: 120px;
  height: 120px;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 20px rgba(168, 224, 99, 0.05), 0 0 40px rgba(77, 143, 255, 0.08);
}

.ring-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%) translateX(100px);
  box-shadow: 0 0 24px rgba(32, 197, 255, 0.45), 0 0 48px rgba(32, 197, 255, 0.16);
}

.ring-2 .ring-dot {
  transform: translate(-50%, -50%) translateX(90px);
  background: radial-gradient(circle, #9df68d 0%, rgba(168, 224, 99, 0.18) 70%);
  box-shadow: 0 0 24px rgba(168, 224, 99, 0.45), 0 0 48px rgba(168, 224, 99, 0.18);
}

.ring-1 .ring-dot {
  background: radial-gradient(circle, #6ee8ff 0%, rgba(32, 197, 255, 0.2) 70%);
}

.sigma-center {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(14, 25, 55, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 30px rgba(14, 65, 140, 0.16);
  color: #ffffff;
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  letter-spacing: -0.06em;
}

.sigma-rings::before {
  content: '';
  position: absolute;
  inset: 50px;
  border-radius: 50%;
  box-shadow: 0 0 120px rgba(77, 143, 255, 0.1), 0 0 80px rgba(168, 224, 99, 0.1);
  opacity: 0.55;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

/* ========== CTA y BOTÓN WHATSAPP ========== */
#cta {
  padding: 100px 48px;
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  z-index: 3;
}

.cta-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin: 16px 0 24px;
  animation: fadeUp 0.8s 3.1s both;
}

.cta-title .highlight {
  color: var(--lime);
}

.cta-sub {
  font-size: 16px;
  color: var(--silver);
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 3.2s both;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 3.3s both;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  padding: 14px 32px;
  border-radius: 48px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  border: none;
  cursor: pointer;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  background: linear-gradient(135deg, #20b859, #075e54);
}

.btn-whatsapp svg {
  transition: transform 0.2s;
}

.btn-whatsapp:hover svg {
  transform: scale(1.1);
}

/* ========== SOCIALS ========== */
#socials {
  padding: 48px;
  background: var(--navy);
  border-top: 1px solid var(--border);
}

.socials-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  animation: fadeIn 0.8s 3.5s both;
}

.brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
}

.brand-name span {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--silver);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s ease;
  text-decoration: none;
  font-size: 14px;
}

.social-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: translateY(-2px);
}

.trustpilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 182, 122, 0.2);
  background: rgba(0, 182, 122, 0.05);
  color: var(--silver);
  text-decoration: none;
  transition: transform 0.25s ease;
}

.trustpilot-badge:hover {
  transform: translateY(-2px);
}

.tp-stars {
  color: var(--lime);
  font-size: 14px;
  letter-spacing: 0.12em;
}

/* ========== SERVICIOS ADICIONALES ========== */
#servicios-adicionales {
  padding: 100px 48px;
  background: var(--dark);
  position: relative;
}

#servicios-adicionales::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 2;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.services-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(45, 108, 223, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 108, 223, 0.4);
  box-shadow: 0 20px 60px rgba(45, 108, 223, 0.12);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card.featured {
  background: linear-gradient(160deg, rgba(45, 108, 223, 0.2), rgba(10, 14, 26, 0.95));
  border-color: rgba(45, 108, 223, 0.3);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(45, 108, 223, 0.15);
  border: 1px solid rgba(45, 108, 223, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 28px;
}

.service-card.featured .service-icon {
  width: 64px;
  height: 64px;
  font-size: 28px;
  background: rgba(45, 108, 223, 0.25);
}

.service-name {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
}

.service-card.featured .service-name {
  font-size: 28px;
}

.service-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--silver);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}

.service-link:hover {
  gap: 14px;
}

.service-link::after {
  content: '→';
}

.service-tag-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(168, 224, 99, 0.1);
  color: var(--lime);
  border: 1px solid rgba(168, 224, 99, 0.15);
}

/* ========== RESPONSIVE GENERAL ========== */
@media (max-width: 900px) {
  #hero {
    padding: 100px 24px 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-visual {
    display: none;
  }

  #servicios-adicionales,
  #proceso,
  #cta,
  #socials {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 768px) {

  #navbar,
  .dropdown-menu,
  .glass-card,
  .service-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ========== CENTRADO DEL HEADER DE SERVICIOS ========== */
#servicios-adicionales .section-header,
.section-header {
  text-align: center;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  /* pequeño respiro en móvil */
}

/* ========== PREVENIR DESBORDES DE TEXTO EN MÓVIL ========== */
@media (max-width: 768px) {

  /* Ajustes generales para no desbordar */
  body {
    overflow-x: hidden;
  }

  .section-title {
    word-wrap: break-word;
    hyphens: auto;
    padding: 0 8px;
  }

  .hero-eyebrow {
    flex-wrap: wrap;
    letter-spacing: 1.5px;
  }

  .hero-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .accent-word {
    white-space: normal;
  }

  .section-sub {
    padding: 0 12px;
    word-wrap: break-word;
  }

  /* Tarjetas de servicios */
  .service-card {
    padding: 24px 20px;
  }

  .service-name {
    font-size: 20px;
    word-break: break-word;
  }

  .service-desc {
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
  }

  /* Cards flotantes (hero) */
  .card-mini {
    font-size: 12px;
    white-space: normal;
    word-break: break-word;
  }

  .card-text {
    font-size: 10px;
  }

  /* Stats en móvil (ya debería estar, pero reforzamos) */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px;
  }

  .stat-val {
    font-size: 38px;
    word-break: break-word;
  }

  /* CTA */
  .cta-title {
    font-size: clamp(24px, 8vw, 40px);
    padding: 0 12px;
  }

  .cta-sub {
    padding: 0 16px;
  }

  /* Navegación dropdown */
  .dropdown-menu a {
    white-space: normal;
    word-break: break-word;
  }
}

/* Para pantallas muy pequeñas (menos de 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(20px, 6.5vw, 28px);
    line-height: 1.15;
  }

  .service-name {
    font-size: 18px;
  }

  .service-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
    margin-bottom: 20px;
  }

  .service-card.featured .service-name {
    font-size: 22px;
  }

  .service-link {
    font-size: 12px;
  }

  .btn-primary,
  .btn-ghost,
  .btn-whatsapp {
    padding: 12px 20px;
    font-size: 13px;
  }

  .card-main,
  .card-secondary,
  .card-tertiary {
    width: auto;
    left: 0;
    right: 0;
    margin: 0 auto;
    position: relative;
  }

  .card-stack {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .glass-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 90%;
  }
}

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  border: none;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(45, 108, 223, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(45, 108, 223, 0.4);
}

/* Ajuste para móvil: que no esté tan pegado al borde */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

.hero-consultoria {
  min-height: 70vh;
  padding-top: 160px;
  padding-bottom: 60px;
}

.hero-grid-single {
  grid-template-columns: 1fr;
  text-align: center;
}

.hero-text-centered {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-desc-centered {
  max-width: 600px;
  margin-top: 20px;
}

.mt-60 {
  margin-top: 60px;
}

.bg-dark-section {
  background: var(--dark);
  padding-top: 60px;
}

.text-left {
  text-align: left;
}

.icon-mr-8 {
  margin-right: 8px;
}

/* ========== FOOTER ESTILO SIGMA ========== */
#main-footer {
  background: var(--navy);
  padding: 80px 5% 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  max-width: 400px;
}

.brand-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -1px;
  margin-bottom: 15px;
}

.brand-logo span {
  color: var(--accent);
}

.brand-tagline {
  color: var(--silver);
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-nav-groups {
  display: flex;
  gap: 80px;
}

.group-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent2);
  margin-bottom: 25px;
}

.nav-group ul {
  list-style: none;
}

.nav-group ul li {
  margin-bottom: 12px;
}

.nav-group ul li a {
  text-decoration: none;
  color: var(--white);
  font-size: 0.9rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.nav-group ul li a:hover {
  opacity: 1;
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.copyright {
  color: var(--silver);
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: var(--white);
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-socials a:hover {
  opacity: 1;
  transform: translateY(-3px);
  color: var(--accent);
}

/* Ajuste Responsivo */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-nav-groups {
    gap: 40px;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

.typing-container {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  height: 3rem;
  margin-top: 10px;
}

.cursor {
  animation: blink 0.7s infinite;
  color: var(--accent);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 5%;
}

.expertise-column ul {
  list-style: none;
  text-align: left;
}

.expertise-column ul li {
  color: var(--silver);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.expertise-column ul li::before {
  content: "•";
  color: var(--accent);
  margin-right: 10px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .typing-container {
    font-size: 1.5rem;
  }
}

/* Solución a errores de estilos en línea */
.list-unstyled {
  color: var(--silver);
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: left;
  list-style: none;
}

.note-confidential {
  font-size: 0.8rem;
  margin-top: 15px;
  color: var(--accent2);
  opacity: 0.8;
}

.service-card-center {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-analisis-dinamico {
  padding: 100px 5%;
  text-align: center;
}

.typing-title {
  margin-bottom: 20px;
}

.typing-sub {
  max-width: 700px;
  margin: 40px auto;
  opacity: 0.7;
}

.typing-dynamic-text {
  font-size: 2.5rem;
  color: var(--accent2);
}

.typing-box {
  min-height: 80px;
}