@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Fira+Code:wght@400;500&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  --bg-deep: #030712;
  --bg-panel: #0b0f19;
  --bg-panel-hover: #111827;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-green: #10b981;
  --accent-cyan: #06b6d4;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(59, 130, 246, 0.5);
  --container: 1200px;
  --header-h: 72px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --glow: 0 0 30px rgba(59, 130, 246, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; background-color: var(--bg-deep); }
body { font-family: var(--font-body); background: var(--bg-deep); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-primary); letter-spacing: -0.02em; line-height: 1.2; }
p { color: var(--text-secondary); }
a { text-decoration: none; color: inherit; transition: color .2s; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; position: relative; }
@media(max-width:768px) { .section { padding: 60px 0; } }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; font-family: var(--font-body); font-size: .9rem; font-weight: 600; border-radius: var(--r-sm); cursor: pointer; border: none; transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35); }
.btn-green { background: var(--accent-green); color: #fff; box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2); }
.btn-green:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,.03); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.15); }
.btn-outline-light:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25); }
.btn-wa:hover { background: #20bd5a; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; background: none; border: none; padding: 0; }
.badge::before { content: '//'; font-family: var(--font-mono); font-weight: 500; margin-right: 6px; color: var(--accent); }
.badge-blue { color: var(--text-primary); }
.badge-blue::before { color: var(--accent); }
.badge-green { color: var(--text-primary); }
.badge-green::before { color: var(--accent-green); }

/* ── HEADER ── */
.header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h); z-index: 1000; background: rgba(3, 7, 18, 0.75); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo-link { display: flex; align-items: center; }
.logo-img-jgt { height: 52px; width: auto; display: block; transition: height 0.3s ease; }
@media(max-width: 991px) {
  .logo-img-jgt { height: 42px; }
}


.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: .9rem; font-weight: 500; color: var(--text-secondary); padding: 6px 0; display: flex; align-items: center; gap: 4px; transition: color .2s; }
.nav-link:hover { color: var(--text-primary); }
.nav-link svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.nav-item { position: relative; }
.dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(0,0,0,0.5); padding: 12px; min-width: 240px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 1010; }
.nav-item:hover .dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: 8px 10px; border-radius: 6px; font-size: .85rem; font-weight: 500; color: var(--text-primary); }
.dropdown a span { display: block; font-size: .72rem; color: var(--text-secondary); font-weight: 400; margin-top: 2px; }
.dropdown a:hover { background: var(--bg-panel-hover); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; z-index: 1100; }
.hamburger span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all .3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media(max-width:991px) {
  .hamburger { display: flex; }
  .nav-menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--bg-panel); flex-direction: column; align-items: flex-start; padding: 90px 32px 32px; box-shadow: -8px 0 24px rgba(0,0,0,.5); transition: right .35s; z-index: 1050; gap: 8px; border-left: 1px solid var(--border); }
  .nav-menu.active { right: 0; }
  .nav-link { font-size: 1rem; padding: 10px 0; width: 100%; color: var(--text-primary); }
  .dropdown { position: static; transform: none !important; box-shadow: none; border: none; padding: 4px 0 4px 16px; opacity: 1; pointer-events: auto; display: none; min-width: unset; background: transparent; transition: none; }
  .nav-item.open .dropdown { display: block; }
  .dropdown a { padding: 8px 0; background: transparent; border-radius: 0; }
  .dropdown a:hover { background: transparent; }
  .nav-item.open .nav-link svg { transform: rotate(180deg); }
  .nav-item:hover .nav-link svg { transform: none; }
  .nav-item.open:hover .nav-link svg { transform: rotate(180deg); }
  .header-cta .btn { display: none; }
}

/* ── HERO ── */
.hero { padding-top: calc(var(--header-h) + 64px); padding-bottom: 90px; position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 24px; letter-spacing: -0.03em; line-height: 1.1; color: var(--text-primary); }
.hero-title .accent { color: var(--accent); background: linear-gradient(90deg, #60a5fa, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; color: var(--text-secondary); line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; border-top: 1px solid var(--border); padding-top: 32px; }
.hero-stat { text-align: left; }
.hero-stat-num { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }
.hero-stat-label { font-size: .75rem; color: var(--text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* IDE Window Visual */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-code-block { background: #070b13; border: 1px solid var(--border); border-radius: var(--r-md); width: 100%; max-width: 480px; font-family: var(--font-mono); font-size: .8rem; line-height: 1.8; color: #94a3b8; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.5); position: relative; }
.hero-code-block::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 14px 0 0 #f59e0b, 28px 0 0 #10b981;
}
.hero-code-block { padding: 40px 24px 24px; }
.code-line { display: block; opacity: 0; transform: translateY(8px); }
.code-keyword { color: #f472b6; }
.code-func { color: #60a5fa; }
.code-string { color: #34d399; }
.code-comment { color: #4b5563; font-style: italic; }
.code-bracket { color: #fbbf24; }
.code-dot { color: #94a3b8; }

@media(max-width:991px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-btns, .hero-stats { justify-content: center; }
  .hero-visual { justify-content: center; margin-top: 24px; }
  .hero-title { font-size: 2.8rem; }
  .hero-code-block { max-width: 440px; }
}
@media(max-width:480px) { .hero-btns { flex-direction: column; } .hero-title { font-size: 2.2rem; } .hero-stats { gap: 24px; } }

/* ── SERVICES (Light background) ── */
.services { background: #ffffff; border-top: 1px solid #e2e8f0; }
.services .section-title { color: #0f172a; }
.services .section-desc { color: #64748b; }
.services .badge-blue { color: #0f172a; }
.services .badge-blue::before { color: var(--accent); }

.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.services .service-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: var(--r-md); padding: 36px 24px; display: flex; flex-direction: column; gap: 18px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 12px rgba(0,0,0,0.015); }
.services .service-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,0.3); background: #ffffff; box-shadow: 0 12px 30px rgba(59, 130, 246, 0.08); }
.service-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: transform .3s; }
.service-card:hover .service-icon { transform: scale(1.05); }

.service-icon.blue { background: rgba(59, 130, 246, 0.08); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.12); }
.service-icon.green { background: rgba(16, 185, 129, 0.08); color: #059669; border: 1px solid rgba(16, 185, 129, 0.12); }
.service-icon.cyan { background: rgba(6, 182, 212, 0.08); color: #0891b2; border: 1px solid rgba(6, 182, 212, 0.12); }
.service-icon.purple { background: rgba(139, 92, 246, 0.08); color: #7c3aed; border: 1px solid rgba(139, 92, 246, 0.12); }
.services .service-card h3 { font-size: 1.15rem; font-weight: 700; color: #0f172a; }
.services .service-card p { font-size: .88rem; color: #64748b; line-height: 1.6; }

@media(max-width:991px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:576px) { .services-grid { grid-template-columns: 1fr; } }

/* ── PRODUCT HIGHLIGHT (Éxodo ERP) ── */
.product-highlight { background: linear-gradient(180deg, var(--bg-deep) 0%, #070b14 100%); border-top: 1px solid var(--border); overflow: hidden; }
.product-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.product-title { color: #fff; font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.product-desc { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 28px; }
.product-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.product-feat { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: #e2e8f0; }
.product-feat svg { color: var(--accent-green); flex-shrink: 0; }

/* Mockup Wrapper and Pixel Flow SVG Animation */
.mockup-wrapper { position: relative; }
.pixel-flow-top {
  position: absolute;
  bottom: 100%;
  right: -38px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 6px;
  pointer-events: none;
  z-index: 5;
}
.pixel-row {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.pixel-flow-right {
  position: absolute;
  left: 100%;
  top: 0;
  display: flex;
  gap: 6px;
  padding-left: 8px;
  pointer-events: none;
  z-index: 5;
}
.pixel-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pixel-sq {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background-color: var(--color);
  opacity: var(--opacity);
  transform-origin: center;
  animation: floatPixel 5s ease-in-out infinite;
}
.pixel-sq:nth-child(3n) {
  animation-duration: 4s;
  animation-delay: 0.5s;
}
.pixel-sq:nth-child(3n+1) {
  animation-duration: 5s;
  animation-delay: 1.5s;
}
.pixel-sq:nth-child(3n+2) {
  animation-duration: 6s;
  animation-delay: 2.5s;
}

@keyframes floatPixel {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.05); }
}

.product-mockup { background: #fff; border-radius: var(--r-md); border: 1px solid var(--border); box-shadow: 0 30px 60px rgba(0,0,0,0.4); overflow: hidden; height: 350px; display: flex; color: #0f172a; position: relative; z-index: 2; }
.pm-sidebar { width: 120px; background: #0c1524; padding: 14px 8px; flex-shrink: 0; }
.pm-item { display: flex; align-items: center; gap: 6px; padding: 6px 7px; color: #94a3b8; font-size: .65rem; font-weight: 500; border-radius: 5px; margin-bottom: 2px; }
.pm-item.active { background: rgba(255,255,255,.06); color: #fff; }
.pm-item svg { width: 10px; height: 10px; flex-shrink: 0; }
.pm-main { flex: 1; background: var(--bg-light); display: flex; flex-direction: column; }
.pm-topbar { height: 36px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 14px; font-size: .75rem; font-weight: 700; color: #0f172a; }
.pm-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; overflow: hidden; }
.pm-card-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.pm-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 8px; }
.pm-card small { font-size: .55rem; color: var(--text-muted); display: block; }
.pm-card strong { display: block; font-size: .85rem; margin: 2px 0; color: #0f172a; }
.pm-card .t-up { font-size: .5rem; color: var(--accent-green); font-weight: 600; }

@media(max-width:991px) { .product-grid { grid-template-columns: 1fr; } }
@media(max-width:576px) { .pm-card-row { grid-template-columns: repeat(2,1fr); } }

/* ── PROCESS (Light background) ── */
.process { background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.process .section-title { color: #0f172a; }
.process .section-desc { color: #64748b; }
.process .badge-blue { color: #0f172a; }
.process .badge-blue::before { color: var(--accent); }

.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.process .process-step { display: flex; flex-direction: column; align-items: flex-start; text-align: left; position: relative; padding: 24px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: var(--r-md); transition: all .3s; box-shadow: 0 4px 12px rgba(0,0,0,0.015); }
.process .process-step:hover { border-color: rgba(59, 130, 246, 0.3); box-shadow: 0 12px 30px rgba(59, 130, 246, 0.08); transform: translateY(-2px); }
.process .step-num { font-family: var(--font-heading); font-weight: 800; font-size: 2.4rem; color: #2563eb; line-height: 1; margin-bottom: 12px; }
.process .process-step h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 700; color: #0f172a; }
.process .process-step p { font-size: .88rem; color: #64748b; line-height: 1.6; }

@media(max-width:991px) { .process-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:576px) { .process-grid { grid-template-columns: 1fr; } }

/* ── WHY US (Light background) ── */
.why-us { background: #ffffff; border-bottom: 1px solid #e2e8f0; }
.why-us .section-title { color: #0f172a; }
.why-us .section-desc { color: #64748b; }

.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.why-us .why-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: var(--r-md); padding: 32px; display: flex; gap: 16px; transition: all .3s; box-shadow: 0 4px 12px rgba(0,0,0,0.015); }
.why-us .why-card:hover { border-color: rgba(59, 130, 246, 0.3); background: #ffffff; box-shadow: 0 12px 30px rgba(59, 130, 246, 0.08); transform: translateY(-2px); }
.why-us .why-icon { flex-shrink: 0; color: #2563eb; }
.why-us .why-card h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 700; color: #0f172a; }
.why-us .why-card p { font-size: .88rem; color: #64748b; line-height: 1.6; }

@media(max-width:768px) { .why-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* ── CONTACT ── */
.contact { background: var(--bg-deep); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--r-md); }
.contact-item-icon { width: 40px; height: 40px; border-radius: 8px; background: rgba(59, 130, 246, 0.1); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item h4 { font-size: .95rem; margin-bottom: 2px; font-weight: 700; }
.contact-item p { font-size: .88rem; color: var(--text-secondary); }
.contact-item a { color: var(--accent); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }

.contact-form { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--r-md); padding: 40px; }
.contact-form h3 { font-size: 1.4rem; margin-bottom: 6px; font-weight: 800; }
.contact-form > p { font-size: .9rem; margin-bottom: 24px; color: var(--text-secondary); }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.form-input, .form-textarea { width: 100%; padding: 12px 16px; background: var(--bg-deep); border: 1px solid var(--border); border-radius: var(--r-sm); font-family: var(--font-body); font-size: .9rem; color: var(--text-primary); outline: none; transition: all .2s; }
.form-input:focus, .form-textarea:focus { border-color: var(--accent-hover); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15); }
.form-textarea { resize: vertical; min-height: 100px; }

@media(max-width:991px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media(max-width:576px) { .contact-form { padding: 28px 20px; } }

/* ── FOOTER ── */
.footer { background: #02040a; color: var(--text-primary); padding: 72px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer-brand p { color: var(--text-secondary); font-size: .88rem; margin-top: 16px; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-btn { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.02); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all .2s; }
.social-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-1px); }
.footer-col h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; color: var(--text-primary); font-weight: 700; }
.footer-col a { display: block; font-size: .88rem; color: var(--text-secondary); padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: .8rem; color: var(--text-secondary); }
.footer-bottom a { color: var(--text-secondary); transition: color .2s; }
.footer-bottom a:hover { color: var(--text-primary); }

@media(max-width:768px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── TOAST ── */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--bg-panel); color: var(--text-primary); border: 1px solid var(--border); padding: 14px 20px; border-radius: var(--r-sm); box-shadow: 0 10px 30px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 10px; transform: translateY(80px); opacity: 0; transition: all .3s cubic-bezier(.34,1.56,.64,1); z-index: 2500; font-size: .85rem; font-weight: 600; }
.toast.active { transform: translateY(0); opacity: 1; }
