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

:root {
  --bg: #080914;
  --bg-soft: #101226;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #6366f1;
  --accent-l: #818cf8;
  --accent-bg: rgba(99, 102, 241, 0.14);
  --cyan: #06b6d4;
  --green: #10b981;
  --nav-bg: rgba(8, 9, 20, 0.85);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

html.light {
  --bg: #f8fafc;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-hover: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --accent: #4f46e5;
  --accent-l: #4f46e5;
  --accent-bg: rgba(79, 70, 229, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

/* DEMO BANNER */
.demo-top {
  background: #6366f1;
  color: #fff;
  text-align: center;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
}
.demo-top a { color: #c7d2fe; font-weight: 700; text-decoration: none; }
.demo-top a:hover { text-decoration: underline; }

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.brand-badge {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent-l); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, border-color 0.15s;
}
.theme-btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.nav-cta {
  background: linear-gradient(135deg, #25d366, #128c5e);
  color: #fff;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
  transition: transform 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); }
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

/* CONTAINER & SECTIONS */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-bg);
  color: var(--accent-l);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 15px; }

/* HERO */
.hero {
  padding: 62px 0 54px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 460px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(6, 182, 212, 0.08) 45%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero h1 span {
  background: linear-gradient(135deg, #818cf8, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 520px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.35);
  transition: transform 0.15s;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: var(--accent-l); background: var(--card-hover); }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.hm-val { font-size: 22px; font-weight: 800; color: var(--text); }
.hm-lbl { font-size: 11.5px; color: var(--muted); }

/* HERO MOCKUP INTERACTIVO */
.hero-mockup {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mockup-top {
  background: rgba(99, 102, 241, 0.08);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dots-mac { display: flex; gap: 6px; }
.dots-mac i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mockup-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.m-tab {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.m-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.mockup-body { padding: 18px; min-height: 295px; }
.mk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.mk-kpi { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.mk-kpi small { font-size: 10px; color: var(--muted); display: block; }
.mk-kpi strong { font-size: 15px; color: var(--text); }
.mk-list { display: flex; flex-direction: column; gap: 8px; }
.mk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
}
.mk-pill { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.mk-ok { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.mk-warn { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.mk-info { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.mk-foot { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.mk-foot a { color: var(--accent-l); font-weight: 700; text-decoration: none; }

/* FILTER BAR */
.filter-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.f-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.f-pill:hover { border-color: var(--accent-l); color: var(--text); }
.f-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.srv-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.srv-card.hidden { display: none; }
.srv-card:hover { transform: translateY(-4px); border-color: var(--accent-l); box-shadow: var(--shadow); }
.srv-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  margin-bottom: 14px;
}
.srv-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.srv-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; flex: 1; }
.srv-list { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; font-size: 12px; color: var(--muted); }
.srv-list li::before { content: '✓ '; color: #10b981; font-weight: 800; }
.srv-foot {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.srv-foot a { font-size: 12px; font-weight: 700; text-decoration: none; color: var(--accent-l); }
.srv-foot a:hover { text-decoration: underline; }

/* COTIZADOR INTERACTIVO */
.calc-wrap {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.calc-step-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-l); margin-bottom: 12px; }
.calc-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.calc-type {
  border: 1.5px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 13px 14px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  transition: all 0.15s;
}
.calc-type:hover { border-color: var(--accent-l); }
.calc-type.active { border-color: var(--accent); background: var(--accent-bg); }
.ct-name { font-size: 13.5px; font-weight: 800; display: block; margin-bottom: 2px; }
.ct-meta { font-size: 11px; color: var(--muted); }

.calc-addons { display: grid; grid-template-columns: 1fr; gap: 8px; }
.addon-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.15s;
}
.addon-opt:hover { border-color: var(--accent-l); }
.addon-left { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.addon-left input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.addon-price { font-size: 12px; font-weight: 700; color: var(--accent-l); white-space: nowrap; }

.calc-summary {
  background: linear-gradient(155deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 16px;
  padding: 24px;
}
.cs-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-l); }
.cs-price { font-size: 30px; font-weight: 900; margin: 6px 0 4px; color: var(--text); }
.cs-time { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.cs-deliverables { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text); }
.cs-deliverables li::before { content: '✓ '; color: #10b981; font-weight: 800; }
.cs-note { font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.btn-wa-full {
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, #25d366, #128c5e);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.3);
  transition: transform 0.15s;
}
.btn-wa-full:hover { transform: translateY(-2px); }

/* PORTFOLIO GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.port-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s, border-color 0.18s;
}
.port-card:hover { transform: translateY(-3px); border-color: var(--accent-l); }
.port-top { display: flex; align-items: center; justify-content: space-between; }
.port-emoji { font-size: 28px; }
.port-tag { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-bg); color: var(--accent-l); }
.port-title { font-size: 15px; font-weight: 800; }
.port-desc { font-size: 12.5px; color: var(--muted); flex: 1; }
.port-url { font-size: 11px; font-family: monospace; color: var(--accent-l); margin-top: 4px; }

/* PROCESO */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.proc-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.proc-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.proc-step h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.proc-step p { font-size: 12.5px; color: var(--muted); }

/* FAQ + CONTACTO */
.faq-contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 18px;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q span { color: var(--accent-l); font-size: 18px; transition: transform 0.2s; }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 18px;
  font-size: 13px;
  color: var(--muted);
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 18px 16px; }

.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.contact-card p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.fg { margin-bottom: 12px; }
.fg label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 5px; }
.fg input, .fg select, .fg textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--accent); }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
footer a { color: var(--accent-l); font-weight: 700; text-decoration: none; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: #111827;
  color: #fff;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  z-index: 500;
  opacity: 0;
  transition: all 0.25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 960px) {
  .hero-grid, .calc-wrap, .faq-contact-grid { grid-template-columns: 1fr; }
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-cta { display: none; }
  .services-grid, .portfolio-grid, .process-grid, .calc-types { grid-template-columns: 1fr; }
  .calc-wrap { padding: 20px; }
  .section { padding: 52px 0; }
}
