/* ============ TOKENS ============ */
:root {
  --magenta: #cb0ab1;
  --blue: #2835fb;
  --teal: #00cf9d;

  --bg: #07070d;
  --surface: #0d0d16;
  --surface-2: #131320;
  --border: rgba(243, 244, 248, 0.08);
  --border-strong: rgba(243, 244, 248, 0.18);
  --fg: #f3f4f8;
  --muted: #9c9bad;

  --radius: 20px;
  --radius-sm: 12px;

  --font-display: "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --glass-1: rgba(243,244,248,0.07);
  --glass-2: rgba(243,244,248,0.02);
  --glass-1-strong: rgba(243,244,248,0.08);
  --hover-tint: rgba(255,255,255,0.05);
  --ring-track: rgba(243,244,248,0.12);
  --text-soft: rgba(243,244,248,0.85);
  --text-soft-2: rgba(243,244,248,0.8);
  /* Fondo 100% sólido para navbar/menú móvil — cero transparencia, así
     es imposible que los blobs de fondo se transparenten como mancha. */
  --nav-surface: #0d0d16;

  color-scheme: dark;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ============ TEMA CLARO ============ */
html[data-theme="light"] {
  --bg: #f6f6fb;
  --surface: #ffffff;
  --surface-2: #edeef6;
  --border: rgba(10, 10, 30, 0.09);
  --border-strong: rgba(10, 10, 30, 0.18);
  --fg: #0d0d18;
  --muted: #5c5d72;

  --glass-1: rgba(10, 10, 30, 0.04);
  --glass-2: rgba(10, 10, 30, 0.012);
  --glass-1-strong: rgba(10, 10, 30, 0.05);
  --hover-tint: rgba(10, 10, 30, 0.05);
  --ring-track: rgba(10, 10, 30, 0.12);
  --text-soft: rgba(13, 13, 24, 0.78);
  --text-soft-2: rgba(13, 13, 24, 0.66);
  --nav-surface: #ffffff;

  color-scheme: light;
}

html[data-theme="light"] .blob-1 { background: rgba(203,10,177,0.16); }
html[data-theme="light"] .blob-2 { background: rgba(40,53,251,0.14); }
html[data-theme="light"] .blob-3 { background: rgba(0,207,157,0.14); }
html[data-theme="light"] .noise { opacity: 0.02; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--magenta); color: white; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.text-gradient {
  color: var(--magenta);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-lg { padding: 15px 28px; font-size: 0.95rem; }

.btn-primary {
  background: linear-gradient(120deg, var(--magenta), var(--blue) 55%, var(--teal));
  color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(203, 10, 177, 0.55); }

.btn-secondary {
  background: linear-gradient(180deg, var(--glass-1), var(--glass-2));
  border: 1px solid var(--border);
  color: var(--fg);
  backdrop-filter: blur(16px);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--border-strong); }

.btn-light { background: #ffffff; color: #10101a; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(255,255,255,0.4); }

.btn-ghost { border: 1px solid rgba(255,255,255,0.35); color: white; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ============ LOADER ============ */
#loader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  overflow: hidden;
  transition: opacity 0.6s ease, filter 0.6s ease;
}
#loader.loader-hide { opacity: 0; filter: blur(20px); pointer-events: none; }

.loader-mesh {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(at 25% 25%, rgba(203,10,177,0.5) 0, transparent 55%),
    radial-gradient(at 75% 20%, rgba(40,53,251,0.45) 0, transparent 55%),
    radial-gradient(at 60% 75%, rgba(0,207,157,0.35) 0, transparent 55%);
  opacity: 0.5;
  transition: opacity 1s ease;
}
#loader.loader-expand .loader-mesh { opacity: 1; }

.loader-disc {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--magenta), var(--blue), var(--teal));
  opacity: 0.9;
  transition: width 1.3s cubic-bezier(0.76,0,0.24,1), height 1.3s cubic-bezier(0.76,0,0.24,1), opacity 1.3s cubic-bezier(0.76,0,0.24,1);
}
#loader.loader-expand .loader-disc {
  width: 260vmax; height: 260vmax; opacity: 0;
}

.loader-core {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}
#loader.loader-expand .loader-core {
  opacity: 0; transform: scale(1.15); filter: blur(12px);
}

.loader-ring {
  position: relative;
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
}
.loader-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--ring-track); stroke-width: 3; }
.ring-progress {
  fill: none; stroke: var(--teal); stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 0.1s linear;
}
.loader-isotipo {
  position: absolute;
  width: 42px; height: auto;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}

.loader-word {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.8;
}
.loader-pct {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ============ AMBIENT BACKGROUND ============ */
.ambient {
  position: fixed; inset: 0; z-index: -10; overflow: hidden;
  background: var(--bg);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: float-blob 20s ease-in-out infinite;
}
.blob-1 { width: 60vh; height: 60vh; left: -15%; top: -15%; background: rgba(203,10,177,0.35); }
.blob-2 { width: 55vh; height: 55vh; right: -15%; top: 5%; background: rgba(40,53,251,0.32); animation-delay: -7s; }
.blob-3 { width: 50vh; height: 50vh; left: 25%; bottom: -20%; background: rgba(0,207,157,0.28); animation-delay: -13s; }
@keyframes float-blob {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(4%, -6%) scale(1.08); }
  66% { transform: translate(-3%, 4%) scale(0.95); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

#particles { position: absolute; inset: 0; opacity: 0.7; }

.noise {
  position: absolute; inset: 0; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, transparent 40%, var(--bg) 100%);
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 16px;
  opacity: 0; transform: translateY(-30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.navbar.nav-in { opacity: 1; transform: translateY(0); }

.navbar-inner {
  width: 100%; max-width: 960px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: var(--nav-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.navbar.nav-scrolled .navbar-inner {
  box-shadow: 0 8px 40px -12px rgba(0,0,0,0.6);
}

.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-family: var(--font-display); font-size: 0.95rem; }
.brand-mark { width: 24px; height: 24px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; color: var(--muted);
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--fg); }

.nav-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 36px; height: 36px; background: none; border: none; padding: 8px;
  cursor: pointer; flex: none;
}
.nav-toggle span {
  width: 20px; height: 2px; background: var(--fg); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin: 8px 16px 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--nav-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px -14px rgba(0,0,0,0.45);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 14px; border-radius: 10px; font-size: 0.92rem; }
.nav-mobile a:hover { background: var(--hover-tint); }
.nav-mobile .btn { margin-top: 8px; justify-content: center; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 24px 100px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 30%), rgba(203,10,177,0.14), transparent 70%);
}

.hero-content { position: relative; z-index: 2; max-width: 720px; text-align: center; margin: 0 auto; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--glass-1), var(--glass-2));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  color: var(--text-soft);
}
.badge-spark { color: var(--teal); }

.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-top: 26px; text-wrap: balance; }
.hero-sub { margin-top: 22px; font-size: 1.1rem; color: var(--muted); max-width: 560px; margin-left: auto; margin-right: auto; }

.hero-actions { margin-top: 38px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.float-card {
  position: absolute;
  display: none;
  align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 0.85rem;
  background: linear-gradient(180deg, var(--glass-1), var(--glass-2));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  animation: floaty 6s ease-in-out infinite;
}
.float-card .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.float-card-1 { left: 6%; top: 22%; animation-delay: 0s; }
.float-card-2 { right: 6%; top: 14%; animation-delay: -2s; }
.float-card-3 { left: 10%; bottom: 16%; animation-delay: -4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (min-width: 1080px) { .float-card { display: flex; } }

/* Reveal animations (loader-driven initial reveal) */
.reveal { opacity: 0; transform: translateY(20px); filter: blur(8px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Scroll reveal */
.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-up.in-view { opacity: 1; transform: translateY(0); }

/* ============ MARQUEE ============ */
.marquee-wrap {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  overflow: hidden;
}
.marquee-fade { position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; }
.marquee-fade-l { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee-fade-r { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ CLIENT LOGOS ============ */
.clients-wrap {
  padding: 34px 0 42px;
  border-bottom: 1px solid var(--border);
}
.clients-caption {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 22px;
  padding: 0 20px;
}
.logos-outer {
  position: relative;
  overflow: hidden;
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  cursor: grab;
  user-select: none;
  will-change: transform;
}
.logos-track.dragging { cursor: grabbing; }

.logo-item {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 92px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(13,13,22,0.5);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  overflow: hidden;
}
.logo-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  background: rgba(19,19,32,0.75);
}
.logo-item img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
  pointer-events: none;
}
.logo-item:hover img { transform: scale(1.05); }

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--muted);
  text-align: center;
  transition: color 0.3s ease;
  pointer-events: none;
}
.logo-item:hover .logo-text { color: var(--fg); }

.logo-item::after {
  content: attr(data-tip);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, var(--magenta), var(--blue) 55%, var(--teal));
  color: white;
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.logo-item:hover::after { opacity: 1; transform: scale(1); }

/* ============ SECTIONS ============ */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 560px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 14px; text-wrap: balance; }
.section-head p { margin-top: 14px; color: var(--muted); }

.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head-row h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 14px; max-width: 460px; text-wrap: balance; }

/* Services accordion */
.services-list {
  border-top: 1px solid var(--border);
}
.service-row {
  border-bottom: 1px solid var(--border);
}
.service-row-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--fg);
}
.service-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--muted);
  width: 32px;
  flex-shrink: 0;
  transition: color 0.3s ease;
}
.service-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.service-plus {
  position: relative;
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.service-plus::before, .service-plus::after {
  content: "";
  position: absolute;
  background: var(--muted);
  transition: transform 0.35s var(--ease), background 0.3s ease;
}
.service-plus::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.service-plus::after { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }

.service-row:hover .service-num { color: var(--teal); }
.service-row:hover .service-title { color: var(--fg); }
.service-row:hover .service-plus::before,
.service-row:hover .service-plus::after { background: var(--fg); }

.service-row.is-open .service-num { color: transparent; background: linear-gradient(120deg, var(--magenta), var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; }
.service-row.is-open .service-title { color: transparent; background: linear-gradient(100deg, var(--fg) 30%, var(--teal) 80%); -webkit-background-clip: text; background-clip: text; }
.service-row.is-open .service-plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.service-row.is-open .service-plus::before { background: var(--teal); }

.service-row-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.service-row-body-inner {
  padding: 0 4px 30px 56px;
  max-width: 640px;
}
.service-row-body-inner p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

.process-step {
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(13,13,22,0.4);
}
.process-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--teal);
  letter-spacing: 0.1em;
}
.process-step h3 { margin-top: 14px; font-size: 1.05rem; }
.process-step p { margin-top: 8px; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* Showcase */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .showcase-grid { grid-template-columns: 1fr; } }

.showcase-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 260px; padding: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
}
.showcase-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: overlay;
}
.showcase-arrow {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
  transition: transform 0.3s ease;
}
.showcase-card:hover .showcase-arrow { transform: translate(3px, -3px); }
.showcase-cat { position: relative; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.8); font-family: var(--font-display); }
.showcase-card h3 { position: relative; margin-top: 4px; font-size: 1.5rem; color: white; }

/* Mockup feature (sistema de facturación e inventario) */
.mockup-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .mockup-feature { grid-template-columns: 1fr; gap: 32px; }
}
.mockup-feature-lead {
  font-size: 1.05rem; line-height: 1.75; color: var(--muted);
}
.mockup-feature-lead strong { color: var(--fg); font-weight: 600; }
.mockup-feature-list {
  list-style: none; margin-top: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.mockup-feature-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.94rem; color: var(--fg); font-family: var(--font-display);
}
.mockup-feature-list li::before {
  content: ""; flex: 0 0 auto;
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(120deg, var(--magenta), var(--blue), var(--teal));
  box-shadow: 0 0 10px rgba(203,10,177,0.6);
}
.mockup-feature-image { position: relative; }
.mockup-feature-image::before {
  content: "";
  position: absolute;
  inset: -10% -12%;
  background: linear-gradient(120deg, var(--magenta), var(--blue) 50%, var(--teal));
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
  border-radius: 40%;
  animation: mockupGlow 8s ease-in-out infinite;
}
@keyframes mockupGlow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.05); }
}
.mockup-feature-image img {
  position: relative; z-index: 1;
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -20px rgba(0,0,0,0.65);
}

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .testimonials { grid-template-columns: 1fr; } }

.testimonial-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(13,13,22,0.5);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 220px;
}
.testimonial-card p { font-size: 0.95rem; line-height: 1.6; color: rgba(243,244,248,0.88); }
.testimonial-author { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(120deg, var(--magenta), var(--blue), var(--teal));
  font-family: var(--font-display); font-weight: 600; color: white; font-size: 0.9rem;
}
.testimonial-author strong { display: block; font-size: 0.88rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--muted); }

/* Stats */
.stats {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
}
.stat span { display: block; margin-top: 6px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* CTA */
.cta {
  position: relative;
  border-radius: 28px;
  padding: 90px 32px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.cta-mesh {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--magenta), var(--blue) 55%, var(--teal));
}
.cta-noise {
  position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cta-content { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); color: white; text-wrap: balance; }
.cta-content p { margin-top: 14px; color: rgba(255,255,255,0.88); }
.cta-actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 72px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 280px; }
.footer-brand div, .footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer-brand span { font-family: var(--font-display); font-weight: 600; }
.footer-brand p { width: 100%; margin-top: 12px; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a { font-size: 0.88rem; color: var(--text-soft-2); transition: color 0.2s ease; }
.footer-cols a:hover { color: var(--fg); }

.footer-bottom {
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.78rem; color: var(--muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Mobile nav breakpoint */
@media (max-width: 860px) {
  .nav-links, .navbar-inner > .btn-primary, .navbar-inner > .theme-toggle { display: none; }
  .nav-toggle { display: flex; }
}

/* ============ THEME TOGGLE ============ */
.theme-toggle {
  position: relative;
  width: 52px;
  height: 30px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(180deg, var(--glass-1), var(--glass-2));
  backdrop-filter: blur(16px);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.theme-toggle:hover { border-color: var(--border-strong); }
.theme-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--magenta), var(--blue) 55%, var(--teal));
  box-shadow: 0 2px 10px -2px rgba(203, 10, 177, 0.55);
  transform: translateX(0);
  transition: transform 0.45s var(--ease);
}
html[data-theme="light"] .theme-toggle-thumb { transform: translateX(22px); }

.theme-toggle-thumb svg {
  position: absolute;
  width: 13px;
  height: 13px;
  color: #fff;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.theme-toggle-thumb .icon-moon { opacity: 1; transform: scale(1) rotate(0deg); }
.theme-toggle-thumb .icon-sun { opacity: 0; transform: scale(0.4) rotate(-60deg); }
html[data-theme="light"] .theme-toggle-thumb .icon-moon { opacity: 0; transform: scale(0.4) rotate(60deg); }
html[data-theme="light"] .theme-toggle-thumb .icon-sun { opacity: 1; transform: scale(1) rotate(0deg); }

.theme-toggle-stars {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
}
.theme-toggle-stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--fg);
  opacity: 0.55;
  transition: opacity 0.4s ease;
}
.theme-toggle-stars span:nth-child(1) { top: 8px; left: 30px; }
.theme-toggle-stars span:nth-child(2) { top: 16px; left: 36px; }
.theme-toggle-stars span:nth-child(3) { top: 6px; left: 40px; }
html[data-theme="light"] .theme-toggle-stars span { opacity: 0; }

.nav-mobile .theme-toggle { align-self: center; margin-top: 4px; }

/* ============ FORMULARIO DE CONTACTO ============ */
.email-panel {
  margin-top: 24px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease);
}
.email-panel.open { max-height: 900px; opacity: 1; }

.email-panel-inner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--glass-1), var(--glass-2));
  backdrop-filter: blur(20px);
  padding: 36px;
  max-width: 560px;
  margin: 0 auto;
}
.email-panel-inner h3 { font-family: var(--font-display); font-size: 1.3rem; }
.email-panel-sub { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }

.contact-form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.8rem; color: var(--muted); font-family: var(--font-display); }
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 207, 157, 0.15);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.contact-form .btn { align-self: flex-start; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

.form-status { font-size: 0.88rem; min-height: 1.2em; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #ff6b6b; }
