:root {
  --navy: #0c1222;
  --navy-light: #111a2e;
  --navy-card: #0f1729;
  --navy-surface: #141e33;
  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --cyan-dim: rgba(6, 182, 212, 0.12);
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --magenta: #d946ef;
  --magenta-dim: rgba(217, 70, 239, 0.12);
  --magenta-glow: rgba(217, 70, 239, 0.3);
  --blue: #3b82f6;
  --emerald: #10b981;
  --amber: #f59e0b;
  --white: #f7fbff;
  --white-soft: rgb(255, 255, 255);
  --muted: rgb(255, 255, 255);
  --border: rgba(6, 182, 212, 0.08);
  --border-hover: rgba(6, 182, 212, 0.25);
  --glass: rgba(15, 23, 41, 0.6);
  --glass-border: rgba(6, 182, 212, 0.1);
  --font-main: "Outfit", system-ui, sans-serif;
  --font-code: "Fira Code", monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --tr: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-main);
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--cyan);
  color: var(--navy);
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.3);
  border-radius: 3px;
}

/* ═══ MESH GRADIENTS ═══ */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 10% 20%,
      rgba(6, 182, 212, 0.07) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 80% at 90% 80%,
      rgba(217, 70, 239, 0.05) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 50% at 50% 50%,
      rgba(59, 130, 246, 0.03) 0%,
      transparent 70%
    );
}

.content-wrap {
  position: relative;
  z-index: 1;
}

/* ═══ HEADER ═══ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 18, 34, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: var(--tr);
}
.header.scrolled {
  background: rgba(12, 18, 34, 0.92);
  border-bottom-color: var(--border-hover);
}
.nav {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 36px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-sym {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--cyan);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-code);
  font-weight: 500;
  font-size: 16px;
  color: var(--cyan);
  position: relative;
  overflow: hidden;
}
.logo-sym::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--cyan-dim),
    transparent
  );
  animation: logoSpin 6s linear infinite;
  opacity: 0.5;
}
@keyframes logoSpin {
  to {
    transform: rotate(360deg);
  }
}
.logo-sym span {
  position: relative;
  z-index: 1;
}

.logo-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo-name i {
  font-style: normal;
  color: var(--cyan);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--white-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--tr);
  letter-spacing: 0.3px;
}

.nav-link {
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform: scaleX(0);
  transform-origin: center;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
  opacity: 0;
}

.nav-link:hover {
  color: var(--white);
  text-shadow:
    0 0 10px rgba(34, 211, 238, 0.45),
    0 0 18px rgba(217, 70, 239, 0.18);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-link.active {
  color: var(--white);
  text-shadow:
    0 0 12px rgba(34, 211, 238, 0.45),
    0 0 20px rgba(217, 70, 239, 0.18);
}

.nav-links a:focus,
.nav-links a:hover {
  color: var(--white);
}
.btn-glow {
  background: linear-gradient(135deg, var(--cyan), var(--magenta)) !important;
  color: var(--navy) !important;
  padding: 10px 26px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.5px !important;
  transition: all var(--tr) !important;
  position: relative;
}
.btn-glow:hover {
  box-shadow:
    0 0 30px var(--cyan-glow),
    0 0 60px var(--magenta-glow);
  transform: translateY(-1px) !important;
}

.hamburger {
  display: none;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(6, 182, 212, 0.14);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.hamburger:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.12);
}

.hamburger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--cyan);
  border-radius: 999px;
  transition:
    transform 0.35s ease,
    opacity 0.25s ease,
    top 0.35s ease,
    background 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 14px;
}
.hamburger span:nth-child(2) {
  top: 22px;
}
.hamburger span:nth-child(3) {
  top: 30px;
}

.hamburger.open {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.14);
}

.hamburger.open span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 36px 100px;
  position: relative;
  overflow: hidden;
}
#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.hero-gradient-orb.orb1 {
  width: 600px;
  height: 600px;
  top: -100px;
  left: -150px;
  background: rgba(6, 182, 212, 0.15);
  animation: orbFloat 12s ease-in-out infinite;
}
.hero-gradient-orb.orb2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  right: -100px;
  background: rgba(217, 70, 239, 0.12);
  animation: orbFloat 15s ease-in-out infinite reverse;
}
.hero-gradient-orb.orb3 {
  width: 400px;
  height: 400px;
  top: 30%;
  right: 20%;
  background: rgba(59, 130, 246, 0.08);
  animation: orbFloat 10s ease-in-out infinite 3s;
}
@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -40px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease forwards;
}
.chip-pulse {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: chipPulse 2s ease-in-out infinite;
}
@keyframes chipPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--cyan-glow);
  }
  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.15s both;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--cyan-bright), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: rgba(247, 251, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.8;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.45s both;
}

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--navy);
  padding: 16px 40px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all var(--tr);
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
}
.btn-primary-lg:hover {
  box-shadow: 0 0 40px var(--cyan-glow);
  transform: translateY(-3px) scale(1.02);
}
.btn-primary-lg svg {
  width: 18px;
  height: 18px;
}

.btn-ghost-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  padding: 16px 40px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--tr);
}
.btn-ghost-lg:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes crmBarGrow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

/* ═══ SECTION SHARED ═══ */
section {
  padding: 140px 36px;
  position: relative;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}
.section-title .grad {
  background: linear-gradient(135deg, var(--cyan-bright), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 16px;
  color: var(--white-soft);
  max-width: 560px;
  line-height: 1.8;
  font-weight: 400;
}
.section-header {
  text-align: center;
  margin-bottom: 80px;
}
.section-header .section-sub {
  margin: 0 auto;
}

/* ═══ FONDOS DE SECCIÓN ═══ */
.servicios,
.casos,
.diferenciadores {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.servicios > *,
.casos > *,
.diferenciadores > * {
  position: relative;
  z-index: 1;
}
.servicios::before,
.casos::before,
.diferenciadores::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 1;
}

/* ═══ SERVICIOS ═══ */
.servicios {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}
.servicios::before {
  background-image: linear-gradient(
    rgba(12, 18, 34, 0.92),
    rgba(17, 26, 46, 0.96)
  );
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.srv-card {
  background: rgba(8, 18, 44, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 30px;
  transition: all var(--tr);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.srv-card > * {
  position: relative;
  z-index: 2;
}
.srv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 3;
}
/* Capa de imagen de fondo */
.srv-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg, none);
  background-size: cover;
  background-position: var(--card-bg-position, center);
  background-repeat: no-repeat;
  opacity: var(--card-bg-opacity, 0);
  z-index: 1;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  mix-blend-mode: luminosity;
}
/* Overlay oscuro separado para no interferir con la imagen */
.srv-card .card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(7, 16, 38, var(--card-overlay-top, 0.55)) 0%,
    rgba(7, 16, 38, var(--card-overlay-bottom, 0.72)) 100%
  );
  transition: opacity 0.45s ease;
}
.srv-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(6, 182, 212, 0.06);
}
.srv-card:hover::before {
  transform: scaleX(1);
}
.srv-card:hover::after {
  opacity: var(--card-bg-hover-opacity, var(--card-bg-opacity, 0));
  transform: scale(1.05);
}

.srv-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}
.srv-icon svg {
  width: 26px;
  height: 26px;
}
.srv-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.srv-card p {
  font-size: 14px;
  color: var(--white-soft);
  font-weight: 400;
  line-height: 1.8;
}

/* ═══ CASOS ═══ */
.casos {
  background: var(--navy-light);
  border-top: 1px solid var(--border);
}
.casos::before {
  background-image: linear-gradient(
    rgba(17, 26, 46, 0.94),
    rgba(12, 18, 34, 0.96)
  );
}
.casos-scroll {
  max-width: 1100px;
  margin: 0 auto;
}
.caso-group {
  margin-bottom: 60px;
}
.caso-group:last-child {
  margin-bottom: 0;
}
.caso-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.caso-group-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.caso-group-header h3 {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.caso-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.caso-card {
  background: rgba(10, 18, 40, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  transition: all var(--tr);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.caso-card > * {
  position: relative;
  z-index: 2;
}
.caso-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg, none);
  background-size: cover;
  background-position: var(--card-bg-position, center);
  background-repeat: no-repeat;
  opacity: var(--card-bg-opacity, 0);
  z-index: 1;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  mix-blend-mode: luminosity;
}
.caso-card .card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(7, 16, 38, var(--card-overlay-top, 0.6)) 0%,
    rgba(7, 16, 38, var(--card-overlay-bottom, 0.78)) 100%
  );
}
.caso-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.caso-card:hover::after {
  opacity: var(--card-bg-hover-opacity, var(--card-bg-opacity, 0));
  transform: scale(1.05);
}
.caso-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.caso-card p {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.7;
}

/* ═══ PROCESO ═══ */
.proceso {
  background: var(--navy);
}
.proceso-track {
  display: flex;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.proceso-track::before {
  content: "";
  position: absolute;
  top: 48px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  opacity: 0.2;
}
.proc-step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.proc-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-card);
  border: 2px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 24px;
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  position: relative;
  z-index: 1;
  transition: all var(--tr);
}
.proc-step:hover .proc-dot {
  border-color: var(--cyan);
  box-shadow: 0 0 30px var(--cyan-glow);
  background: var(--cyan-dim);
}
.proc-step h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.proc-step p {
  font-size: 13px;
  color: var(--white-soft);
  font-weight: 400;
}

/* ═══ DIFERENCIADORES ═══ */
.diferenciadores {
  background: var(--navy);
}
.diferenciadores::before {
  background-image: linear-gradient(
    rgba(12, 18, 34, 0.94),
    rgba(12, 18, 34, 0.97)
  );
}
.dif-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.dif-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(8, 18, 44, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--tr);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.dif-card > * {
  position: relative;
  z-index: 2;
}
.dif-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg, none);
  background-size: cover;
  background-position: var(--card-bg-position, center);
  background-repeat: no-repeat;
  opacity: var(--card-bg-opacity, 0);
  z-index: 1;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  mix-blend-mode: luminosity;
}
.dif-card .card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(7, 16, 38, var(--card-overlay-top, 0.45)) 0%,
    rgba(7, 16, 38, var(--card-overlay-bottom, 0.68)) 100%
  );
}
.dif-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}
.dif-card:hover::after {
  opacity: var(--card-bg-hover-opacity, var(--card-bg-opacity, 0));
  transform: scale(1.05);
}
.dif-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dif-icon svg {
  width: 22px;
  height: 22px;
}
.dif-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.dif-card p {
  font-size: 14px;
  color: var(--white-soft);
  font-weight: 400;
  line-height: 1.7;
}

/* ═══ CONTACTO ═══ */
.contacto {
  background: var(--navy-light);
}
.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.contact-card {
  background: var(--glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(6, 182, 212, 0.04);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(12, 18, 34, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 14px;
  transition: all var(--tr);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}
.form-group select {
  cursor: pointer;
}
.form-group select option {
  background: var(--navy);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit-lg {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--navy);
  border: none;
  border-radius: 999px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--tr);
  letter-spacing: 0.5px;
}
.btn-submit-lg:hover {
  box-shadow: 0 0 40px var(--cyan-glow);
  transform: translateY(-2px);
}
.btn-submit-lg:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--white-soft);
}

/* ═══ FOOTER ═══ */
.footer {
  background: #070b14;
  padding: 72px 36px 28px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--white-soft);
  margin-top: 16px;
  font-weight: 300;
  line-height: 1.8;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--white-soft);
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 300;
  transition: color var(--tr);
}
.footer-col a:hover {
  color: var(--white);
}
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 11px;
  color: var(--white-soft);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 14px;
}

.footer-legal-links a {
  color: var(--white-soft);
  text-decoration: none;
  font-size: 12px;
  opacity: 0.9;
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.footer-legal-links a:hover {
  color: var(--cyan);
  opacity: 1;
}
/*.footer-acceso {
        font-size: 12px;
        color: var(--cyan);
        text-decoration: none;
        border: 1px solid var(--border-hover);
        padding: 6px 18px;
        border-radius: 999px;
        transition: all var(--tr); 
      } 

      .footer-acceso:hover {
        background: var(--cyan-dim);
      } */

/* ═══ WHATSAPP ═══ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--tr);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ═══ WHATSAPP TOOLTIP ═══ */
.whatsapp-float::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: rgba(12, 18, 34, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(37, 211, 102, 0.25);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Flechita apuntando al botón */
.whatsapp-float::after {
  content: "";
  position: absolute;
  right: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  border: 6px solid transparent;
  border-left-color: rgba(12, 18, 34, 0.92);
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ═══ PARALLAX REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 {
  transition-delay: 0.1s;
}
.reveal-d2 {
  transition-delay: 0.2s;
}
.reveal-d3 {
  transition-delay: 0.3s;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  section {
    padding: 80px 20px;
  }
  .nav {
    padding: 14px 20px;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    background: rgba(12, 18, 34, 0.94);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(6, 182, 212, 0.14);
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition:
      opacity 0.32s ease,
      transform 0.32s ease,
      visibility 0.32s ease;
    overflow: hidden;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(6, 182, 212, 0.08);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }
  .hamburger {
    display: block;
  }

  .hero {
    padding: 120px 20px 60px;
  }
  .hero h1 {
    font-size: 2.4rem;
    letter-spacing: -1px;
  }

  .servicios-grid,
  .dif-grid {
    grid-template-columns: 1fr;
  }
  .proceso-track {
    flex-direction: column;
    gap: 24px;
  }
  .proceso-track::before {
    display: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 32px 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 22px;
    font-size: 13px;
    color: var(--white-soft);
  }

  .form-check input {
    margin-top: 3px;
    accent-color: var(--cyan);
  }

  .form-check a {
    color: var(--cyan-bright);
    text-decoration: none;
  }

  .form-check a:hover {
    text-decoration: underline;
  }
}

@media (max-width: 768px) {
  .servicios::before,
  .casos::before,
  .diferenciadores::before {
    background-position: center;
  }
}

/* ═══ COOKIE BANNER ═══ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 680px;
  background: rgba(11, 17, 32, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 18px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(6, 182, 212, 0.06) inset;
  padding: 20px 24px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.cookie-banner.hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}
.cookie-banner__content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner__content p {
  flex: 1;
  font-size: 13px;
  color: rgba(247, 251, 255, 0.72);
  line-height: 1.65;
  min-width: 220px;
}
.cookie-banner__content p a {
  color: var(--cyan-bright);
  text-decoration: none;
}
.cookie-banner__content p a:hover {
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
}
.cookie-btn--ghost {
  background: transparent;
  color: rgba(247, 251, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cookie-btn--ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}
.cookie-btn--secondary {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}
.cookie-btn--secondary:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.4);
}
.cookie-btn--primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--navy);
  border: none;
}
.cookie-btn--primary:hover {
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .cookie-banner {
    bottom: 16px;
    width: calc(100% - 24px);
    padding: 16px 18px;
  }
  .cookie-banner__content {
    flex-direction: column;
    gap: 14px;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-end;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
  }

  /* ═══ MODAL PRIVACIDAD ═══ */
  .privacy-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(7, 11, 20, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .privacy-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
  .privacy-modal {
    background: rgba(11, 17, 32, 0.98);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow:
      0 32px 80px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(6, 182, 212, 0.06) inset;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
  }
  .privacy-overlay.active .privacy-modal {
    transform: translateY(0) scale(1);
  }
  .privacy-modal__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(6, 182, 212, 0.08);
  }
  .privacy-modal__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .privacy-modal__header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 3px;
  }
  .privacy-modal__sub {
    font-size: 12px;
    color: rgba(247, 251, 255, 0.45);
    margin: 0;
  }
  .privacy-modal__close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(247, 251, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  .privacy-modal__close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
  }
  .privacy-modal__body {
    padding: 22px 24px;
  }
  .privacy-modal__body p {
    font-size: 14px;
    color: rgba(247, 251, 255, 0.65);
    line-height: 1.75;
    margin-bottom: 18px;
  }
  .privacy-modal__body strong {
    color: var(--white);
  }
  .privacy-modal__body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .privacy-modal__body ul li {
    font-size: 13px;
    color: rgba(247, 251, 255, 0.6);
    padding: 10px 14px;
    background: rgba(6, 182, 212, 0.04);
    border: 1px solid rgba(6, 182, 212, 0.08);
    border-radius: 10px;
    line-height: 1.5;
  }
  .privacy-modal__body ul li strong {
    color: rgba(247, 251, 255, 0.9);
  }
  .privacy-modal__link {
    font-size: 12px;
    color: var(--cyan);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
  }
  .privacy-modal__link:hover {
    opacity: 0.75;
  }
  .privacy-modal__footer {
    display: flex;
    gap: 10px;
    padding: 18px 24px 24px;
    border-top: 1px solid rgba(6, 182, 212, 0.08);
  }
  .privacy-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 999px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
  }
  .privacy-btn--ghost {
    background: transparent;
    color: rgba(247, 251, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .privacy-btn--ghost:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
  }
  .privacy-btn--primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: var(--navy);
  }
  .privacy-btn--primary:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
    transform: translateY(-1px);
  }
  @media (max-width: 480px) {
    .privacy-modal__footer {
      flex-direction: column;
    }
  }
}
