/* === Inmotion Creative — Design System === */
:root {
  --primary: #7c3aed;
  --primary-2: #a855f7;
  --primary-3: #6d28d9;
  --primary-glow: rgba(124, 58, 237, 0.4);
  --accent: #c4b5fd;

  --bg: #0a0612;
  --bg-2: #110a1f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f5f1ff;
  --text-muted: rgba(245, 241, 255, 0.62);
  --text-dim: rgba(245, 241, 255, 0.38);

  --grad-primary: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #4c1d95 100%);
  --grad-text: linear-gradient(135deg, #c4b5fd 0%, #a855f7 50%, #7c3aed 100%);
  --grad-bg: radial-gradient(ellipse at top, rgba(124,58,237,0.18), transparent 60%);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1280px;
}

[data-theme="light"] {
  --bg: #faf7ff;
  --bg-2: #f3edff;
  --bg-card: rgba(124, 58, 237, 0.04);
  --bg-card-hover: rgba(124, 58, 237, 0.08);
  --border: rgba(15, 7, 30, 0.08);
  --border-strong: rgba(15, 7, 30, 0.16);
  --text: #15082b;
  --text-muted: rgba(21, 8, 43, 0.65);
  --text-dim: rgba(21, 8, 43, 0.4);
  --grad-bg: radial-gradient(ellipse at top, rgba(124,58,237,0.12), transparent 60%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, p, a, span, button { overflow-wrap: break-word; }

@media (max-width: 900px), (pointer: coarse) {
  body { cursor: auto; }
  .magnetic-cursor, .magnetic-cursor-dot { display: none !important; }
}

h1, h2, h3, h4, h5 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 700px) { .container { padding: 0 20px; } }

/* === Aurora background === */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora::before, .aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}
.aurora::before {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; left: -100px;
}
.aurora::after {
  width: 500px; height: 500px;
  background: var(--primary-2);
  top: 30%; right: -150px;
  animation-delay: -9s;
}
[data-theme="light"] .aurora::before,
[data-theme="light"] .aurora::after { opacity: 0.25; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, -40px) scale(1.15); }
}

/* === Magnetic cursor (minimal) === */
.magnetic-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border: 1px solid var(--primary-2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.18s var(--ease), width 0.2s var(--ease), height 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  transform: translate(-50%, -50%);
  opacity: 0.6;
}
.magnetic-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 3px; height: 3px;
  background: var(--primary-2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.magnetic-cursor.is-hover {
  width: 28px; height: 28px;
  background: rgba(124, 58, 237, 0.12);
  border-color: var(--primary-2);
  opacity: 1;
}

/* === Nav === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 18px 0;
  background: var(--bg);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 32px rgba(0,0,0,0.28);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-logo img { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--bg-card-hover);
}
.nav-two-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  gap: 1px;
}
.nav-sublabel {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  font-weight: 400;
}
.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--ease);
}
.theme-toggle:hover { background: var(--bg-card-hover); transform: scale(1.05); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 8px 32px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px var(--primary-glow);
}
.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-card-hover); border-color: var(--border-strong); }

.btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* === Mobile nav drawer === */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-items: center; justify-content: center;
}
.nav-burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text);
  position: relative;
}
.nav-burger span::before, .nav-burger span::after {
  content: ''; position: absolute; left: 0; width: 16px; height: 1.5px;
  background: var(--text);
}
.nav-burger span::before { top: -5px; }
.nav-burger span::after { top: 5px; }
@media (max-width: 900px) { .nav-burger { display: flex; } }

.mobile-menu {
  display: none;
}
@media (max-width: 900px) {
  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 999;
    padding: 100px 32px 32px;
    overflow-y: auto;
    transform: translateY(-100%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), visibility 0s linear 0.4s;
  }
  .mobile-menu.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), visibility 0s;
  }
  .mobile-menu a {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
}

/* === Watermark logo === */
.watermark-logo {
  position: absolute;
  pointer-events: none;
  opacity: 0.04;
  z-index: 0;
  filter: grayscale(1);
}
[data-theme="light"] .watermark-logo { opacity: 0.06; }

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  bottom: 24px; left: 24px; right: 24px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 9000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.cookie-banner.show { opacity: 1; transform: translateY(0); }
.cookie-text { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.cookie-text strong { font-family: 'Outfit', sans-serif; font-size: 15px; }
.cookie-text a { color: var(--primary-2); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie-actions .btn { padding: 10px 18px; font-size: 13px; }
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-actions { justify-content: flex-end; }
}
/* Default: visible. Only hide if JS is ready (js-ready class on <html>). */
.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-stagger > * { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

html.js-ready .reveal:not(.in) {
  opacity: 0;
  transform: translateY(40px);
}
html.js-ready .reveal-stagger:not(.in) > * {
  opacity: 0;
  transform: translateY(30px);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal,
  html.js-ready .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }

/* === Sections === */
section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}
@media (max-width: 700px) { section { padding: 80px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 12px var(--primary-2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}
.section-title {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 20px;
}
.section-title .grad,
h1 .grad,
h2 .grad,
.hero-title .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-right: 0.08em;
  margin-right: -0.08em;
  line-height: 1.05;
}
.section-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-muted);
  max-width: 580px;
}

/* === Footer reused === */
.footer {
  padding: 80px 0 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h5 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.2s var(--ease);
  width: fit-content;
}
.footer-links a:hover { color: var(--text); }
.footer-brand-text {
  font-size: 15px;
  color: var(--text-muted);
  margin: 16px 0 24px;
  max-width: 320px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--ease);
}
.footer-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}
.footer-socials svg { width: 16px; height: 16px; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

/* === Form === */
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-row label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  cursor: none;
  transition: all 0.2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--primary-2);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-row textarea { resize: vertical; min-height: 100px; }

/* Page hero shared */
.page-hero {
  padding: 180px 0 80px;
  position: relative;
}
.page-hero h1 {
  font-size: clamp(44px, 7vw, 96px);
  margin-bottom: 24px;
}
.page-hero .lead {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--text-muted);
  max-width: 640px;
}
@media (max-width: 700px) {
  .page-hero { padding: 130px 0 56px; }
  .page-hero h1 { font-size: clamp(36px, 9vw, 56px); margin-bottom: 18px; }
  .page-hero .lead { font-size: 16px; }
}
@media (max-width: 700px) {
  .nav-actions .btn-primary { padding: 9px 14px !important; font-size: 12px !important; }
}
@media (max-width: 420px) {
  /* En pantallas muy estrechas: ocultar botón Presupuesto y theme-toggle del nav. Acceso vía burger menu. */
  .nav-actions .btn-primary,
  .nav-actions .theme-toggle { display: none !important; }
  .nav-inner { gap: 12px; }
}
@media (max-width: 700px) {
  .nav { padding: 12px 0; }
  .container { padding: 0 16px; }
}

/* Pill / chip */
.chip {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
