/* ============ EXTRA STYLES — multi-page ============ */

/* === MEGA NAV === */
.nav-links { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  cursor: pointer;
}
.nav-link.active { color: var(--fg); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: translateX(-50%);
}
.nav-link svg.chev { transition: transform 0.2s; opacity: 0.6; }
.nav-link[aria-expanded="true"] svg.chev { transform: rotate(180deg); }

.megamenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: 720px;
  max-width: 90vw;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-xl);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 110;
}
.megamenu.open { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.mega-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.15s;
  cursor: pointer;
}
.mega-item:hover { background: var(--bg-soft); }
.mega-item .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad-soft);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.mega-item .t { font-weight: 600; font-size: 14px; margin: 0 0 2px; color: var(--fg); }
.mega-item .d { font-size: 12.5px; color: var(--fg-muted); margin: 0; line-height: 1.45; }
.mega-foot {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--fg-muted);
}
.mega-foot a { color: var(--fg); font-weight: 500; }

/* === PAGE HEADER === */
.page-hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 700px 350px at 80% 0%, rgba(34,197,94,0.10), transparent 60%),
    radial-gradient(ellipse 500px 350px at 0% 100%, rgba(6,182,212,0.08), transparent 60%);
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 18px;
}
.crumb a { color: var(--fg-muted); }
.crumb a:hover { color: var(--fg); }
.crumb .sep { opacity: 0.4; }
.page-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 700;
  text-wrap: balance;
  max-width: 820px;
}
.page-hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero p.lede {
  font-size: 19px;
  color: var(--fg-soft);
  max-width: 640px;
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

/* === ROI / COST BLOCK === */
.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 880px) { .roi-grid { grid-template-columns: 1fr; } }
.roi-card {
  padding: 36px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.roi-loss {
  background: linear-gradient(180deg, rgba(239,68,68,0.06), rgba(239,68,68,0.02));
  border: 1px solid rgba(239,68,68,0.18);
}
.roi-gain {
  background: linear-gradient(180deg, rgba(34,197,94,0.08), rgba(6,182,212,0.05));
  border: 1px solid rgba(34,197,94,0.25);
}
.roi-card h4 {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  margin: 0 0 8px;
}
.roi-loss h4 { color: #ef4444; }
.roi-gain h4 {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.roi-card .big {
  font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  margin: 14px 0 8px; font-variant-numeric: tabular-nums;
}
.roi-card .big.big-text { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.roi-loss .big { color: #ef4444; }
.roi-gain .big { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.roi-card .sub { font-size: 16px; color: var(--fg-soft); margin: 0 0 22px; line-height: 1.55; }
.roi-card ul { list-style: none; padding: 0; margin: 0; }
.roi-card li {
  padding: 10px 0; border-top: 1px solid var(--border);
  display: flex; gap: 10px; font-size: 14px; color: var(--fg-soft);
}
.roi-card li:first-child { border-top: 0; }
.roi-card li svg { flex-shrink: 0; margin-top: 2px; }
.roi-loss li svg { color: #ef4444; }
.roi-gain li svg { color: var(--green); }

/* === PRICING / SOLUTION CARDS (rich) === */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.svc-card.featured {
  border-color: rgba(34,197,94,0.4);
  box-shadow: 0 24px 48px -16px rgba(34,197,94,0.18);
}
.svc-pop {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.svc-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.svc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-soft);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(34,197,94,0.18);
}
.svc-status {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(34,197,94,0.1);
  color: var(--green);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.svc-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.svc-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.svc-tag { font-size: 14px; color: var(--cyan); font-weight: 500; margin: 0 0 16px; }
.svc-desc { color: var(--fg-soft); font-size: 14.5px; line-height: 1.55; margin: 0 0 20px; }
.svc-list { list-style: none; padding: 0; margin: 0 0 24px; }
.svc-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0; font-size: 13.5px; color: var(--fg-soft);
}
.svc-list li svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.svc-price-box {
  margin-top: auto;
  padding: 18px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.svc-price-box .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.svc-price-box .price {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.svc-price-box .price.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-price-box .unit { font-size: 13px; color: var(--fg-muted); margin-top: 3px; }
.svc-price-box .note {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--green);
  font-weight: 500;
}
.product-saas-card .svc-desc { margin-bottom: 14px; }
.product-audience {
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--fg-soft);
  font-size: 12.8px;
  line-height: 1.45;
}
.product-module-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
  margin-bottom: 18px;
}
.product-more-modules {
  color: var(--fg-muted) !important;
  font-size: 12px !important;
}
.product-price-box .price {
  font-size: 24px;
  line-height: 1.12;
}
.product-price-box .note {
  color: var(--fg-soft);
  line-height: 1.45;
}
.product-plan-pill {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(34,197,94,0.1);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.18);
  font-size: 11.5px;
  font-weight: 600;
}
.product-card-actions {
  display: grid;
  gap: 8px;
}
.product-secondary-cta {
  background: var(--bg-soft);
  font-size: 13px;
}
.svc-cta {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s;
}
.svc-card.featured .svc-cta {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}
.svc-card.featured .product-secondary-cta {
  background: var(--bg-soft);
  color: var(--fg);
  border-color: var(--border-strong);
}
.svc-cta:hover { transform: translateY(-1px); }
.svc-foot {
  margin-top: 14px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.pos-plan-grid { align-items: stretch; }
.pos-plan-card { padding: 34px 28px 28px; }
.pos-plan-card h3 { margin-bottom: 8px; }
.pos-plan-value {
  color: var(--fg-soft);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 18px;
  min-height: 44px;
}
.pos-plan-card .svc-price-box { margin-top: 0; }
.pos-plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 9px;
}
.pos-plan-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--fg-soft);
  font-size: 13.5px;
  line-height: 1.35;
}
.pos-plan-list svg {
  color: var(--green);
  flex: 0 0 auto;
  margin-top: 1px;
}
.pos-plan-ideal {
  margin: auto 0 18px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--fg-soft);
  font-size: 13px;
  line-height: 1.5;
}
.pos-plan-ideal strong { color: var(--fg); }
.pos-plan-note {
  max-width: 920px;
  margin: 28px auto 0;
  padding: 20px 22px;
  border: 1px solid rgba(34,197,94,0.18);
  border-radius: 16px;
  background: var(--grad-soft);
  text-align: center;
}
.pos-plan-note h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.pos-plan-note p {
  margin: 0;
  color: var(--fg-soft);
  font-size: 14px;
  line-height: 1.6;
}
.pos-launch-notes {
  max-width: 920px;
  margin: 14px auto 0;
  display: grid;
  gap: 8px;
}
.pos-launch-notes p {
  margin: 0;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.58);
  color: var(--fg-soft);
  font-size: 13.5px;
  line-height: 1.55;
  text-align: center;
}
.pos-addons {
  max-width: 980px;
  margin: 44px auto 0;
  text-align: center;
}
.pos-addons h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.pos-addons p {
  color: var(--fg-muted);
  margin: 0;
  font-size: 14px;
}
.pos-addon-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.pos-addon-grid span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg-soft);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 980px) {
  .pos-plan-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 680px) {
  .pos-plan-grid { grid-template-columns: 1fr !important; }
  .pos-plan-value { min-height: 0; }
  .product-module-list { grid-template-columns: 1fr; }
}

/* === SECONDARY ROW (small) === */
.svc-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 880px) { .svc-row-2 { grid-template-columns: 1fr; } }
.svc-mini {
  padding: 24px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
}
.svc-mini .svc-icon { width: 44px; height: 44px; }
.svc-mini h4 { font-size: 17px; font-weight: 600; margin: 0 0 2px; letter-spacing: -0.01em; }
.svc-mini .svc-tag { font-size: 13px; margin: 0 0 10px; }
.svc-mini p { font-size: 13.5px; color: var(--fg-soft); margin: 0 0 14px; line-height: 1.55; }
.svc-mini .mini-list {
  list-style: none; padding: 0; margin: 0 0 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px;
}
.svc-mini .mini-list li {
  font-size: 12.5px; color: var(--fg-soft);
  display: flex; gap: 6px;
}
.svc-mini .mini-list li svg { color: var(--green); flex-shrink: 0; }

/* === PROCESS PAGE TIMELINE === */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
}
@media (max-width: 880px) { .timeline { grid-template-columns: 1fr; gap: 32px; } }
.timeline-rail {
  position: sticky;
  top: 100px;
  align-self: start;
}
.timeline-rail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.timeline-rail-item {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--fg-muted);
  cursor: pointer;
  border-left: 2px solid var(--border);
  transition: all 0.2s;
}
.timeline-rail-item:hover { color: var(--fg); }
.timeline-rail-item.active {
  color: var(--fg);
  border-left-color: var(--green);
  background: var(--bg-soft);
}
@media (max-width: 880px) { .timeline-rail { display: none; } }
.timeline-content { display: flex; flex-direction: column; gap: 64px; }
.tl-stage {
  scroll-margin-top: 100px;
}
.tl-stage-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.tl-stage-num .pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
}
.tl-stage h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 700;
}
.tl-stage > p {
  font-size: 17px;
  color: var(--fg-soft);
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 640px;
}
.tl-deliverables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
@media (max-width: 640px) { .tl-deliverables { grid-template-columns: 1fr; } }
.tl-deliverable {
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13.5px; color: var(--fg-soft);
}
.tl-deliverable svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.tl-deliverable strong { color: var(--fg); display: block; margin-bottom: 2px; }
.tl-mock {
  margin-top: 28px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  border: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

/* === CASE STUDY DETAIL === */
.case-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 32px;
}
@media (max-width: 980px) { .case-detail { grid-template-columns: 1fr; } }
.case-story {
  padding: 36px;
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.case-story-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.case-story-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -8px rgba(34,197,94,0.4);
}
.case-story-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.case-story h3 { font-size: 24px; letter-spacing: -0.02em; margin: 2px 0 0; font-weight: 600; }
.case-block { padding: 16px 0; border-top: 1px solid var(--border); }
.case-block:first-of-type { border-top: 0; padding-top: 8px; }
.case-block-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 6px;
  display: inline-flex; align-items: center; gap: 6px;
}
.case-block-label.r { color: var(--green); }
.case-block-label .marker { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.case-block p { margin: 0; color: var(--fg-soft); font-size: 14.5px; line-height: 1.55; }
.case-results {
  padding: 36px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.case-results::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 400px 250px at 70% 30%, rgba(34,197,94,0.18), transparent 70%);
}
.case-results > * { position: relative; }
.case-results-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5); margin-bottom: 16px;
}
.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.case-stat .v {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.case-stat .l { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 6px; }
.case-quote {
  margin-top: auto;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.case-quote p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.85); font-style: italic; }
.case-quote-by { font-size: 12px; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 8px; }
.case-quote-by .av { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; }

/* Industry tabs */
.ind-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: fit-content;
}
.ind-tab {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-soft);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.ind-tab:hover { color: var(--fg); }
.ind-tab.active {
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.ind-tab.active svg { color: var(--green); }

/* Animated counter for stats */
.big-num-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 56px 0;
}
@media (max-width: 880px) { .big-num-grid { grid-template-columns: repeat(2, 1fr); } }
.big-num {
  text-align: left;
  padding: 28px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.big-num .n { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.big-num .n .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-num .l { font-size: 13.5px; color: var(--fg-soft); }

/* compare table */
.compare {
  margin-top: 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-top: 1px solid var(--border);
}
.compare-row:first-child { border-top: 0; }
.compare-cell {
  padding: 16px 20px;
  font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.compare-head {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 13px;
  color: var(--fg);
}
.compare-head.us {
  background: var(--grad-soft);
  color: var(--fg);
}
.compare-cell.col-2 { color: var(--fg-soft); }
.compare-cell.col-3 { color: var(--fg); font-weight: 500; }
.compare-cell svg.x { color: #ef4444; }
.compare-cell svg.c { color: var(--green); }
.compare-feature { font-weight: 500; color: var(--fg); }

/* Anim flow on process page */
.flow-anim {
  height: 220px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.fade-in-up {
  animation: fadeInUp 0.7s ease both;
}
.martz-icon{display:inline-block;flex:0 0 auto;vertical-align:middle}.martz-icon-button{display:inline-flex;align-items:center;justify-content:center}.ui-icon-soft{display:inline-flex;align-items:center;justify-content:center;border-radius:9px;background:var(--bg-soft);color:var(--cyan)}
.language-switcher{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--border);border-radius:9px;background:var(--bg);color:var(--fg-muted)}.language-switcher button{min-width:30px;height:28px;padding:0 6px;border:0;border-radius:6px;background:transparent;color:inherit;font:700 10.5px 'JetBrains Mono',monospace;cursor:pointer}.language-switcher button.active{background:var(--bg-soft);color:var(--cyan)}.language-switcher button:focus-visible{outline:2px solid var(--cyan);outline-offset:1px}.language-switcher>span{font-size:10px;opacity:.45}.mobile-language-switcher{align-self:flex-start;margin:8px 16px 12px}.mobile-language-switcher button{min-width:42px;height:36px;font-size:12px}

/* Consentimiento de cookies */
.footer-cookie-settings{padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}.footer-cookie-settings:hover{text-decoration:underline}.cookie-banner{position:fixed;z-index:1500;left:24px;right:24px;bottom:20px;max-width:1160px;margin:auto;padding:18px 20px;border:1px solid var(--border);border-radius:14px;background:var(--bg);box-shadow:0 18px 50px rgba(15,23,42,.18);display:flex;align-items:center;justify-content:space-between;gap:24px}.cookie-banner strong{display:block;margin-bottom:4px}.cookie-banner p{max-width:680px;margin:0 0 5px;color:var(--fg-soft);font-size:12.5px;line-height:1.5}.cookie-banner a{color:var(--cyan);font-size:12px;font-weight:600}.cookie-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.cookie-actions .btn{min-height:42px;padding:10px 14px;font-size:12px;white-space:nowrap}.cookie-modal-backdrop{position:fixed;z-index:1600;inset:0;padding:20px;background:rgba(2,6,23,.55);display:flex;align-items:center;justify-content:center}.cookie-modal{width:min(620px,100%);max-height:min(760px,calc(100dvh - 40px));overflow:auto;border-radius:16px;background:var(--bg);box-shadow:0 24px 70px rgba(0,0,0,.28)}.cookie-modal>header{display:flex;justify-content:space-between;gap:20px;padding:22px;border-bottom:1px solid var(--border)}.cookie-modal h2{margin:0 0 5px;font-size:21px}.cookie-modal header p{margin:0;color:var(--fg-muted);font-size:13px}.cookie-close{width:42px;height:42px;border:1px solid var(--border);border-radius:10px;background:var(--bg);display:flex;align-items:center;justify-content:center;cursor:pointer}.cookie-categories{padding:8px 22px}.cookie-category{position:relative;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 0;border-bottom:1px solid var(--border);cursor:pointer}.cookie-category span{display:block}.cookie-category strong,.cookie-category small{display:block}.cookie-category small{margin-top:4px;color:var(--fg-muted);font-size:11.5px;line-height:1.45}.cookie-category input{position:absolute;opacity:0}.cookie-category i{width:44px;height:24px;flex:0 0 auto;border-radius:20px;background:var(--border-strong);transition:.2s}.cookie-category i:after{content:'';display:block;width:18px;height:18px;margin:3px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.2);transition:.2s}.cookie-category input:checked+i{background:var(--green)}.cookie-category input:checked+i:after{transform:translateX(20px)}.cookie-category input:focus-visible+i{outline:3px solid rgba(6,182,212,.3);outline-offset:2px}.cookie-category input:disabled+i{opacity:.65}.cookie-modal>footer{padding:16px 22px 22px}
@media(max-width:720px){.cookie-banner{left:12px;right:12px;bottom:12px;display:block;padding:16px}.cookie-actions{margin-top:14px;display:grid;grid-template-columns:1fr 1fr}.cookie-actions .btn:last-child{grid-column:1/-1}.cookie-modal-backdrop{padding:10px;align-items:flex-end}.cookie-modal{max-height:calc(100dvh - 20px);border-radius:16px 16px 0 0}.cookie-modal>footer{display:grid;grid-template-columns:1fr}.cookie-modal>footer .btn:last-child{grid-column:auto}}

/* Páginas legales */
.legal-page{background:var(--bg)}.legal-hero{padding:130px 0 54px;border-bottom:1px solid var(--border);background:var(--bg-soft)}.legal-hero h1{margin:22px 0 12px;font-size:clamp(34px,5vw,54px);letter-spacing:-.035em}.legal-hero>div>p{max-width:720px;margin:0 0 17px;color:var(--fg-soft);font-size:16px;line-height:1.65}.legal-updated{display:inline-flex;padding:7px 10px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--fg-muted);font:500 11px 'JetBrains Mono',monospace}.legal-layout{display:grid;grid-template-columns:240px minmax(0,760px);gap:64px;justify-content:center;padding-top:54px;padding-bottom:84px}.legal-toc{position:sticky;top:96px;align-self:start;padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--bg-soft)}.legal-toc>strong{display:block;margin-bottom:12px;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.legal-toc nav,.legal-toc-mobile nav{display:grid;gap:3px}.legal-toc a,.legal-toc-mobile a{padding:7px 8px;border-radius:7px;color:var(--fg-muted);font-size:11.5px;line-height:1.35}.legal-toc a:hover,.legal-toc a:focus-visible,.legal-toc-mobile a:hover{background:var(--bg);color:var(--cyan)}.legal-toc-mobile{display:none}.legal-content{min-width:0}.legal-content section{scroll-margin-top:100px;padding:0 0 34px;margin:0 0 34px;border-bottom:1px solid var(--border)}.legal-content h2{margin:0 0 15px;font-size:24px;letter-spacing:-.02em}.legal-content h3{margin:22px 0 8px;font-size:16px}.legal-content p,.legal-content li{color:var(--fg-soft);font-size:14.5px;line-height:1.75}.legal-content a{color:var(--cyan);text-decoration:underline;text-underline-offset:3px}.legal-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:10px}.legal-table-wrap table{width:100%;min-width:720px;border-collapse:collapse}.legal-table-wrap th,.legal-table-wrap td{padding:12px 14px;border-bottom:1px solid var(--border);text-align:left;font-size:11.5px;line-height:1.45;vertical-align:top}.legal-table-wrap th{background:var(--bg-soft);font-weight:700}.legal-end{display:flex;align-items:center;justify-content:space-between;gap:16px}.legal-top{font-size:12px}
@media(max-width:820px){.legal-hero{padding:108px 0 42px}.legal-layout{display:block;padding-top:30px}.legal-toc{display:none}.legal-toc-mobile{display:block;margin-bottom:34px;border:1px solid var(--border);border-radius:10px;background:var(--bg-soft)}.legal-toc-mobile summary{padding:14px;font-weight:700;cursor:pointer}.legal-toc-mobile nav{padding:0 12px 12px}.legal-content h2{font-size:21px}}
.form-consent{display:flex;align-items:flex-start;gap:10px;margin:0 0 12px;color:var(--fg-soft);font-size:12px;line-height:1.5;cursor:pointer}.form-consent input{width:18px;height:18px;flex:0 0 auto;margin-top:1px;accent-color:var(--green)}.form-consent input:focus-visible{outline:3px solid rgba(6,182,212,.3);outline-offset:2px}.form-consent a{color:var(--cyan);text-decoration:underline;text-underline-offset:2px}.form-consent strong{font-weight:600;color:var(--fg-muted)}

/* ── Metodología (sección de pilares del Home) ─────────────────────── */
.method-section{position:relative;overflow:hidden}
.method-bg{position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 38%,#000 40%,transparent 100%);
  mask-image:radial-gradient(ellipse 80% 60% at 50% 38%,#000 40%,transparent 100%)}
.method-bg:after{content:'';position:absolute;left:50%;top:-140px;width:900px;height:420px;transform:translateX(-50%);
  background:radial-gradient(closest-side,rgba(6,182,212,.14),transparent);filter:blur(8px)}
.method-section>.container{position:relative;z-index:1}

.method-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:8px}
.method-card{position:relative;display:flex;flex-direction:column;padding:26px 24px 28px;border-radius:16px;
  background:rgba(255,255,255,.028);border:1px solid rgba(255,255,255,.09);
  box-shadow:0 1px 0 rgba(255,255,255,.03) inset;
  transition:transform .28s cubic-bezier(.4,0,.2,1),border-color .28s,background .28s,box-shadow .28s}
.method-card:before{content:'';position:absolute;left:0;right:0;top:0;height:2px;border-radius:16px 16px 0 0;
  background:var(--grad);transform:scaleX(0);transform-origin:left;opacity:0;transition:transform .35s cubic-bezier(.4,0,.2,1),opacity .35s}
.method-card:hover{transform:translateY(-6px);border-color:rgba(6,182,212,.4);background:rgba(255,255,255,.045);
  box-shadow:0 22px 48px -20px rgba(0,0,0,.6),0 0 0 1px rgba(6,182,212,.12)}
.method-card:hover:before{transform:scaleX(1);opacity:1}

.method-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.method-icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;
  background:rgba(6,182,212,.1);border:1px solid rgba(6,182,212,.22);color:var(--cyan-light);
  transition:transform .28s cubic-bezier(.4,0,.2,1),background .28s,border-color .28s}
.method-card:hover .method-icon{transform:scale(1.08);background:rgba(6,182,212,.16);border-color:rgba(6,182,212,.4)}
.method-tag{font:600 10.5px/1 'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.1em;
  color:rgba(255,255,255,.55);padding:5px 9px;border:1px solid rgba(255,255,255,.12);border-radius:999px}

.method-top{display:block;width:34px;height:3px;border-radius:3px;background:var(--grad);opacity:.8;margin-bottom:16px}
.method-title{font-size:18px;font-weight:600;letter-spacing:-.015em;color:#fff;margin:0 0 10px;line-height:1.25}
.method-desc{font-size:13.5px;line-height:1.6;color:rgba(255,255,255,.6);margin:0 0 18px}
.method-list{list-style:none;margin:auto 0 0;padding:0;display:grid;gap:9px}
.method-list li{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.4;color:rgba(255,255,255,.78);
  opacity:.82;transform:translateX(-2px);transition:opacity .3s,transform .3s;transition-delay:calc(var(--j)*40ms)}
.method-list li svg{flex:0 0 auto;margin-top:1px;color:var(--green-light)}
.method-card:hover .method-list li{opacity:1;transform:translateX(0)}

.method-cta{margin-top:52px;display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap;
  padding:34px 38px;border-radius:18px;border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02))}
.method-cta-text{max-width:620px}
.method-cta-text h3{font-size:22px;font-weight:600;letter-spacing:-.02em;color:#fff;margin:0 0 8px;line-height:1.25}
.method-cta-text p{font-size:14.5px;line-height:1.6;color:rgba(255,255,255,.62);margin:0}
.method-cta-actions{display:flex;gap:12px;flex-wrap:wrap;flex-shrink:0}
.btn-method-secondary{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);color:#fff}
.btn-method-secondary:hover{background:rgba(255,255,255,.11);border-color:rgba(255,255,255,.28)}

@media(max-width:900px){.method-grid{grid-template-columns:repeat(2,1fr)}.method-cta{flex-direction:column;align-items:flex-start;padding:28px}}
@media(max-width:560px){.method-grid{grid-template-columns:1fr}.method-cta-actions{width:100%}.method-cta-actions .btn{flex:1;justify-content:center}}
@media(prefers-reduced-motion:reduce){
  .method-card,.method-card:before,.method-icon,.method-list li{transition:none!important}
  .method-card:hover{transform:none}
  .method-card:hover .method-icon{transform:none}
  .method-list li{opacity:1;transform:none}
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === PROCESS CAROUSEL === */
.proc-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  flex-wrap: wrap;
  padding: 0 4px;
}
.proc-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 10px 10px 0 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-bottom: none;
  color: var(--fg-soft);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  top: 1px;
}
.proc-tab:hover {
  background: var(--bg);
  color: var(--fg);
}
.proc-tab.active {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--border);
  border-bottom: 1px solid var(--bg);
  font-weight: 600;
  z-index: 1;
}
.proc-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
}
.proc-tab-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  opacity: 0.7;
}
.proc-tab.active .proc-tab-num {
  opacity: 1;
  color: var(--green);
}
.proc-tab-label {
  font-weight: 500;
}
.proc-tab.active .proc-tab-label {
  font-weight: 600;
}

/* Stepper interactivo de la metodología */
.proc-stepper{--proc-progress:0%;position:relative;display:grid;grid-template-columns:repeat(5,1fr);gap:0;padding:10px 4% 16px;border:1px solid var(--border);border-bottom:0;border-radius:14px 14px 0 0;background:var(--bg-soft);overflow:hidden}.proc-stepper:before,.proc-stepper:after{content:'';position:absolute;left:10%;top:32px;height:3px;border-radius:3px}.proc-stepper:before{right:10%;background:var(--border)}.proc-stepper:after{width:calc(var(--proc-progress) * .8);background:linear-gradient(90deg,var(--green),var(--cyan));box-shadow:0 0 8px rgba(6,182,212,.25);transition:width .35s ease}.proc-stepper .proc-tab{position:relative;top:0;z-index:1;min-width:0;padding:0;border:0;border-radius:0;background:transparent;display:flex;flex-direction:column;gap:8px;color:var(--fg-muted)}.proc-stepper .proc-tab:hover,.proc-stepper .proc-tab.active{background:transparent;border:0}.proc-stepper .proc-tab:after{display:none}.proc-tab-node{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:3px solid var(--border);border-radius:50%;background:var(--bg);transition:border-color .25s ease,background .25s ease,box-shadow .25s ease}.proc-stepper .proc-tab.completed .proc-tab-node{border-color:var(--green);background:#effcf5;color:#168b4f}.proc-stepper .proc-tab.active .proc-tab-node{border-color:var(--cyan);background:#ecfeff;color:#078ba1;box-shadow:0 0 0 6px rgba(6,182,212,.1);animation:procNodePulse 2s ease-in-out infinite}.proc-stepper .proc-tab.active .proc-tab-label{color:var(--fg)}.proc-stepper .proc-tab:focus-visible{outline:3px solid rgba(6,182,212,.25);outline-offset:-2px;border-radius:8px}@keyframes procNodePulse{50%{box-shadow:0 0 0 10px rgba(6,182,212,.04)}}.proc-content-enter{animation:procContentEnter .24s ease both}@keyframes procContentEnter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@media(max-width:700px){.proc-stepper{display:flex;flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;justify-content:flex-start;gap:0;padding:10px 14px 16px;scrollbar-width:none;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}.proc-stepper::-webkit-scrollbar{display:none}.proc-stepper:before,.proc-stepper:after{display:none}.proc-stepper .proc-tab{min-width:116px;flex:0 0 116px;scroll-snap-align:center}.proc-tab-node{width:40px;height:40px}.proc-window{padding:26px 20px}.proc-content{min-height:0}}
@media(prefers-reduced-motion:reduce){.proc-stepper:after,.proc-tab-node,.proc-content-enter{animation:none!important;transition:none!important}}

/* Stepper abierto: sin bloque gris ni contenedor pesado. */
.proc-stepper{padding-top:6px;padding-bottom:14px;margin-bottom:24px;border:0;border-radius:0;background:transparent;overflow:visible}.proc-stepper:before{background:linear-gradient(90deg,rgba(34,197,94,.16),rgba(6,182,212,.16))}.proc-stepper .proc-tab,.proc-stepper .proc-tab:hover,.proc-stepper .proc-tab.active{background:transparent}.proc-stepper .proc-tab-label{padding:4px 10px;border-radius:100px;transition:color .2s ease,background .2s ease}.proc-stepper .proc-tab.completed .proc-tab-label{color:#168b4f}.proc-stepper .proc-tab.active .proc-tab-label{background:rgba(6,182,212,.07);color:#087e91}.proc-tab-node{background:var(--bg);box-shadow:0 2px 8px rgba(15,23,42,.06)}.proc-stepper .proc-tab.completed .proc-tab-node{background:var(--bg)}.proc-stepper .proc-tab.active .proc-tab-node{background:var(--bg)}.proc-window{margin-top:0;border-radius:16px;border-color:rgba(15,23,42,.09);box-shadow:0 12px 32px rgba(15,23,42,.055)}
@media(max-width:700px){.proc-stepper{margin:0 -20px 20px;padding-left:20px;padding-right:20px;overflow-x:auto;overflow-y:hidden}.proc-window{border-radius:14px}}

.proc-window {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
  padding: 48px;
  box-shadow: var(--shadow-md);
  margin-top: -1px;
}
.proc-content {
  min-height: 500px;
}
.proc-stage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.proc-stage-dur {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-muted);
}
.proc-stage-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  line-height: 1.2;
}
.proc-stage-desc {
  font-size: 16px;
  color: var(--fg-soft);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 640px;
}

.proc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.proc-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.proc-nav-btn:hover:not(:disabled) {
  background: var(--bg);
  border-color: var(--green);
  color: var(--green);
}
.proc-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.proc-nav-dots {
  display: flex;
  gap: 8px;
}
.proc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.2s ease;
}
.proc-dot.active {
  background: var(--green);
  width: 24px;
  border-radius: 4px;
}

/* === DASHBOARD INTERACTIVE STYLES === */
.dash-table {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.dash-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dash-table-body {
  display: flex;
  flex-direction: column;
}
.dash-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
  transition: background 0.15s;
}
.dash-table-row:hover {
  background: rgba(255,255,255,0.05);
}

.dash-ai-full {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
}
.dash-ai-history {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.dash-ai-msg {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
}
.dash-ai-msg-label {
  font-size: 11px;
  color: var(--fg-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dash-ai-msg p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
}
.dash-ai-msg .hl {
  color: var(--green);
  font-weight: 500;
}
.dash-ai-actions {
  display: flex;
  gap: 8px;
}

.dash-ai-input {
  margin-top: 16px;
}

.dash-settings {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.dash-settings-section h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dash-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dash-setting label {
  font-size: 14px;
  color: var(--fg-soft);
}
.dash-setting input,
.dash-setting select {
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  min-width: 200px;
}

.dash-row-critical .av.critical {
  background: #ef4444;
  color: #fff;
}
.dash-row-warning .av.warning {
  background: #f59e0b;
  color: #fff;
}

/* ============ MOBILE MENU STYLES ============ */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.mobile-menu-btn:hover {
  background: var(--bg-soft);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  z-index: 1000;
  flex-direction: column;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  overscroll-behavior: contain;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

/* Stagger animation for menu items */
.mobile-menu .mobile-menu-logo,
.mobile-menu .mobile-menu-close {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}
.mobile-menu.open .mobile-menu-logo,
.mobile-menu.open .mobile-menu-close {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu .mobile-link {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.15s ease, padding-left 0.15s ease;
}
.mobile-menu.open .mobile-link:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.08s; }
.mobile-menu.open .mobile-link:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.12s; }
.mobile-menu.open .mobile-link:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.16s; }
.mobile-menu.open .mobile-link:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 0.20s; }
.mobile-menu.open .mobile-link:nth-child(5) { opacity: 1; transform: translateX(0); transition-delay: 0.24s; }
.mobile-menu.open .mobile-link:nth-child(6) { opacity: 1; transform: translateX(0); transition-delay: 0.28s; }
.mobile-menu.open .mobile-link:nth-child(7) { opacity: 1; transform: translateX(0); transition-delay: 0.32s; }
.mobile-menu.open .mobile-link:nth-child(8) { opacity: 1; transform: translateX(0); transition-delay: 0.36s; }

.mobile-menu .mobile-cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease 0.35s, transform 0.3s ease 0.35s;
}
.mobile-menu.open .mobile-cta {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.mobile-menu-logo {
  height: 28px;
  width: auto;
}


.mobile-menu-close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-menu-close {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.mobile-menu-close::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}
.mobile-menu-close:hover {
  transform: rotate(90deg) scale(1.1);
  border-color: transparent;
}
.mobile-menu-close:hover::before {
  opacity: 1;
}
.mobile-menu-close:hover svg {
  color: #fff;
  position: relative;
  z-index: 1;
}

.mobile-menu-inner {
  padding: 16px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}

.mobile-link {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 500;
  color: var(--fg);
  transition: all 0.2s ease;
}
.mobile-link:hover {
  background: var(--bg-soft);
}
.mobile-link.active {
  background: var(--grad-soft);
  color: var(--green);
}

.mobile-cta {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.mobile-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 16px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-cta .btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.mobile-cta .btn:active::after {
  width: 300px;
  height: 300px;
}

.desktop-only {
  display: inline-flex;
}

@media (max-width: 880px) {
  .mobile-menu-btn {
    display: inline-flex !important;
  }
  .mobile-menu {
    display: none;
  }
  .mobile-menu.open {
    display: flex !important;
  }
  .desktop-only {
    display: none !important;
  }
  .nav-links {
    display: none !important;
  }
  .megamenu {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    height: 28px;
  }
  .nav-inner {
    height: 64px;
  }
  .mobile-menu-header {
    padding-top: 20px;
  }
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
}

/* === ESCENARIOS DE IMPLEMENTACIÓN === */
.scenario-hero{padding-bottom:64px}.scenario-hero .section-eyebrow{margin:28px 0 10px}.scenario-disclaimer{display:inline-flex;margin:18px 0 0;padding:9px 13px;border:1px solid var(--border);border-radius:8px;background:rgba(255,255,255,.55);color:var(--fg-muted);font-size:12px;line-height:1.5}.scenario-section-wrap{padding:56px 0 84px;background:var(--bg-soft)}
.scenario-tabs{display:flex;overflow-x:auto;overflow-y:hidden;gap:6px;padding:4px 4px 0;border-bottom:1px solid var(--border);scrollbar-width:none;-ms-overflow-style:none}.scenario-tabs::-webkit-scrollbar{display:none;width:0;height:0}.scenario-tab{--accent:var(--cyan);--soft:var(--bg-soft);position:relative;min-width:150px;min-height:54px;padding:13px 20px;border:0;border-radius:10px 10px 0 0;background:transparent;color:var(--fg-muted);display:inline-flex;justify-content:center;align-items:center;gap:9px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;transition:color .2s ease,background .2s ease}.scenario-tab:after{content:'';position:absolute;height:3px;left:18px;right:18px;bottom:-1px;border-radius:3px 3px 0 0;background:var(--accent);transform:scaleX(0);transition:transform .2s ease}.scenario-tab:hover{color:var(--fg);background:rgba(255,255,255,.6)}.scenario-tab.active{color:var(--accent);background:var(--soft);font-weight:700}.scenario-tab.active:after{transform:scaleX(1)}.scenario-tab:focus-visible,.solution-component:focus-visible{outline:3px solid rgba(6,182,212,.25);outline-offset:2px}
.scenario-panel{min-height:720px;padding-top:30px;animation:scenarioEnter .2s ease both}@keyframes scenarioEnter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.scenario-process{position:relative;margin:0 0 24px;padding:16px 7%;list-style:none;display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--border);border-radius:10px;background:var(--bg);overflow:hidden}.scenario-process:before,.scenario-process:after{content:'';position:absolute;left:12.5%;top:31px;height:3px;border-radius:3px}.scenario-process:before{right:12.5%;background:var(--border)}.scenario-process:after{width:75%;background:linear-gradient(90deg,var(--green),var(--cyan));transform:scaleX(0);transform-origin:left center;animation:scenarioProgress 8s linear infinite;box-shadow:0 0 8px rgba(6,182,212,.3)}@keyframes scenarioProgress{0%{transform:scaleX(0)}92%,100%{transform:scaleX(1)}}.scenario-process li{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--fg-muted);font-size:11px;letter-spacing:.04em;text-transform:uppercase;text-align:center;animation:processLabel 8s linear infinite}.scenario-process li:nth-child(2){animation-delay:-2s}.scenario-process li:nth-child(3){animation-delay:-4s}.scenario-process li:nth-child(4){animation-delay:-6s}.scenario-process li:after{display:none}.process-node{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:3px solid var(--border);border-radius:50%;background:var(--bg);color:var(--fg-muted);font:700 10px 'JetBrains Mono',monospace;animation:processNode 8s linear infinite;transition:none}.scenario-process li:nth-child(2) .process-node{animation-delay:-2s}.scenario-process li:nth-child(3) .process-node{animation-delay:-4s}.scenario-process li:nth-child(4) .process-node{animation-delay:-6s}.scenario-process strong{font-size:11px;font-weight:700}@keyframes processNode{0%,72%{border-color:var(--border);background:var(--bg);color:var(--fg-muted);box-shadow:none}78%,96%{border-color:var(--cyan);background:#ecfeff;color:#078ba1;box-shadow:0 0 0 5px rgba(6,182,212,.1)}100%{border-color:var(--border);background:var(--bg);color:var(--fg-muted);box-shadow:none}}@keyframes processLabel{0%,72%{color:var(--fg-muted)}78%,96%{color:var(--fg)}100%{color:var(--fg-muted)}}
.scenario-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.8fr);gap:24px;align-items:stretch}.scenario-main,.impact-panel{border:1px solid var(--border);border-radius:15px;background:var(--bg);box-shadow:0 8px 24px rgba(15,23,42,.04)}.scenario-main{padding:32px}.scenario-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:100px;font-size:11.5px;font-weight:700}.scenario-main>h2{margin:17px 0 28px;font-size:clamp(26px,3vw,36px);line-height:1.15;letter-spacing:-.025em}.scenario-section{margin-top:26px}.scenario-section h3{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:14px}.scenario-title-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;background:var(--bg-soft);color:var(--cyan)}.scenario-section>p{margin:0;color:var(--fg-soft);font-size:14px;line-height:1.7}.scenario-chips{display:flex;flex-wrap:wrap;gap:8px}.scenario-chips span{padding:8px 11px;border:1px solid var(--border);border-radius:8px;background:var(--bg-soft);color:var(--fg-soft);font-size:12px}
.solution-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.solution-component{min-height:70px;display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--border);border-radius:10px;color:var(--cyan);transition:transform .2s ease,border-color .2s ease,background .2s ease}.solution-component:hover,.solution-component:focus{transform:translateY(-2px);border-color:rgba(6,182,212,.35);background:rgba(6,182,212,.035)}.solution-component svg{flex:0 0 auto;margin-top:2px}.solution-component strong,.solution-component small{display:block}.solution-component strong{color:var(--fg);font-size:12.5px;line-height:1.35}.solution-component small{margin-top:4px;color:var(--fg-muted);font-size:10.5px;line-height:1.35}
.impact-panel{padding:28px;display:flex;flex-direction:column}.impact-heading{display:flex;gap:12px;margin-bottom:20px}.impact-heading>span{width:42px;height:42px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;border-radius:10px;color:var(--cyan);background:rgba(6,182,212,.08)}.impact-heading h3{margin:0 0 5px;font-size:19px}.impact-heading p{margin:0;color:var(--fg-muted);font-size:12px;line-height:1.5}.impact-grid{display:grid;gap:9px}.impact-card{display:flex;gap:10px;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--bg);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.impact-card:hover{transform:translateY(-2px);border-color:rgba(6,182,212,.3);box-shadow:0 6px 16px rgba(15,23,42,.05)}.impact-card>svg{flex:0 0 auto;color:var(--green)}.impact-card strong{display:block;font-size:12.5px}.impact-card p{margin:3px 0 0;color:var(--fg-muted);font-size:10.8px;line-height:1.4}.scenario-cta{width:100%;justify-content:center;margin-top:auto;padding-left:14px;padding-right:14px}.scenario-cta-note{display:block;margin-top:10px;color:var(--fg-muted);font-size:10.5px;text-align:center;line-height:1.45}
@media(max-width:960px){.scenario-layout{grid-template-columns:1fr}.scenario-panel{min-height:0}.impact-panel{min-height:560px}.scenario-cta{margin-top:24px}}@media(max-width:640px){.scenario-section-wrap{padding:36px 0 56px}.scenario-tabs{margin-left:-20px;margin-right:-20px;padding-left:20px}.scenario-tab{min-width:135px;min-height:48px;padding:11px 14px}.scenario-process{grid-template-columns:1fr;margin-bottom:16px;padding:14px 16px}.scenario-process:before,.scenario-process:after{left:31px;top:30px;bottom:30px;width:3px;height:auto}.scenario-process:after{height:calc(100% - 60px);transform:scaleY(0);transform-origin:center top;animation-name:scenarioProgressVertical}.scenario-process li{min-height:52px;flex-direction:row;text-align:left;gap:12px}.scenario-main,.impact-panel{padding:20px}.solution-grid{grid-template-columns:1fr}.impact-panel{min-height:0}}@keyframes scenarioProgressVertical{0%{transform:scaleY(0)}92%,100%{transform:scaleY(1)}}

/* Cada nodo se resalta cuando el progreso llega a su etapa. */
.scenario-process li,.scenario-process .process-node{animation-delay:0s!important}.scenario-process li:nth-child(1){animation-name:processText1}.scenario-process li:nth-child(2){animation-name:processText2}.scenario-process li:nth-child(3){animation-name:processText3}.scenario-process li:nth-child(4){animation-name:processText4}.scenario-process li:nth-child(1) .process-node{animation-name:processNode1}.scenario-process li:nth-child(2) .process-node{animation-name:processNode2}.scenario-process li:nth-child(3) .process-node{animation-name:processNode3}.scenario-process li:nth-child(4) .process-node{animation-name:processNode4}
@keyframes processNode1{0%,20%{border-color:var(--cyan);background:#ecfeff;color:#078ba1;box-shadow:0 0 0 5px rgba(6,182,212,.1)}25%,100%{border-color:var(--border);background:var(--bg);color:var(--fg-muted);box-shadow:none}}@keyframes processNode2{0%,23%,50%,100%{border-color:var(--border);background:var(--bg);color:var(--fg-muted);box-shadow:none}28%,45%{border-color:var(--cyan);background:#ecfeff;color:#078ba1;box-shadow:0 0 0 5px rgba(6,182,212,.1)}}@keyframes processNode3{0%,48%,75%,100%{border-color:var(--border);background:var(--bg);color:var(--fg-muted);box-shadow:none}53%,70%{border-color:var(--cyan);background:#ecfeff;color:#078ba1;box-shadow:0 0 0 5px rgba(6,182,212,.1)}}@keyframes processNode4{0%,73%,100%{border-color:var(--border);background:var(--bg);color:var(--fg-muted);box-shadow:none}78%,96%{border-color:var(--cyan);background:#ecfeff;color:#078ba1;box-shadow:0 0 0 5px rgba(6,182,212,.1)}}@keyframes processText1{0%,20%{color:var(--fg)}25%,100%{color:var(--fg-muted)}}@keyframes processText2{0%,23%,50%,100%{color:var(--fg-muted)}28%,45%{color:var(--fg)}}@keyframes processText3{0%,48%,75%,100%{color:var(--fg-muted)}53%,70%{color:var(--fg)}}@keyframes processText4{0%,73%,100%{color:var(--fg-muted)}78%,96%{color:var(--fg)}}
@media(prefers-reduced-motion:reduce){.scenario-panel,.scenario-tab,.scenario-tab:after,.solution-component,.impact-card,.scenario-process:after,.scenario-process li,.process-node{animation:none!important;transition:none!important;scroll-behavior:auto!important}.scenario-process:after{transform:scaleX(1)}.process-node{border-color:var(--cyan);color:var(--cyan)}}

/* El indicador reutiliza las cinco etapas oficiales de la página Proceso. */
.scenario-method>span{display:block;margin:0 0 8px;color:var(--fg-muted);font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.scenario-process{grid-template-columns:repeat(5,1fr);padding-left:5%;padding-right:5%}.scenario-process:before,.scenario-process:after{left:10%;}.scenario-process:before{right:10%}.scenario-process:after{width:80%;animation-duration:10s}.scenario-process li,.scenario-process .process-node{animation-duration:10s}.scenario-process li:nth-child(1){animation-name:processText1}.scenario-process li:nth-child(2){animation-name:processText2}.scenario-process li:nth-child(3){animation-name:processText3}.scenario-process li:nth-child(4){animation-name:processText4}.scenario-process li:nth-child(5){animation:processText5 10s linear infinite}.scenario-process li:nth-child(1) .process-node{animation-name:processNode1}.scenario-process li:nth-child(2) .process-node{animation-name:processNode2}.scenario-process li:nth-child(3) .process-node{animation-name:processNode3}.scenario-process li:nth-child(4) .process-node{animation-name:processNode4}.scenario-process li:nth-child(5) .process-node{animation:processNode5 10s linear infinite}
@keyframes processNode1{0%,15%{border-color:var(--cyan);background:#ecfeff;color:#078ba1;box-shadow:0 0 0 5px rgba(6,182,212,.1)}20%,100%{border-color:var(--border);background:var(--bg);color:var(--fg-muted);box-shadow:none}}@keyframes processNode2{0%,18%,38%,100%{border-color:var(--border);background:var(--bg);color:var(--fg-muted);box-shadow:none}22%,34%{border-color:var(--cyan);background:#ecfeff;color:#078ba1;box-shadow:0 0 0 5px rgba(6,182,212,.1)}}@keyframes processNode3{0%,37%,58%,100%{border-color:var(--border);background:var(--bg);color:var(--fg-muted);box-shadow:none}42%,54%{border-color:var(--cyan);background:#ecfeff;color:#078ba1;box-shadow:0 0 0 5px rgba(6,182,212,.1)}}@keyframes processNode4{0%,57%,78%,100%{border-color:var(--border);background:var(--bg);color:var(--fg-muted);box-shadow:none}62%,74%{border-color:var(--cyan);background:#ecfeff;color:#078ba1;box-shadow:0 0 0 5px rgba(6,182,212,.1)}}@keyframes processNode5{0%,77%,100%{border-color:var(--border);background:var(--bg);color:var(--fg-muted);box-shadow:none}82%,96%{border-color:var(--cyan);background:#ecfeff;color:#078ba1;box-shadow:0 0 0 5px rgba(6,182,212,.1)}}@keyframes processText1{0%,15%{color:var(--fg)}20%,100%{color:var(--fg-muted)}}@keyframes processText2{0%,18%,38%,100%{color:var(--fg-muted)}22%,34%{color:var(--fg)}}@keyframes processText3{0%,37%,58%,100%{color:var(--fg-muted)}42%,54%{color:var(--fg)}}@keyframes processText4{0%,57%,78%,100%{color:var(--fg-muted)}62%,74%{color:var(--fg)}}@keyframes processText5{0%,77%,100%{color:var(--fg-muted)}82%,96%{color:var(--fg)}}
@media(max-width:640px){.scenario-process{grid-template-columns:1fr;padding:14px 16px}.scenario-process:before,.scenario-process:after{left:31px;right:auto}.scenario-process:after{width:3px}}

/* Separación final entre el stepper abierto y la tarjeta de contenido. */
.proc-window{margin-top:0;border-radius:16px;border-color:rgba(15,23,42,.09);box-shadow:0 12px 32px rgba(15,23,42,.055)}
@media(max-width:700px){.proc-window{border-radius:14px}}

/* Conectores móviles: permanecen visibles dentro del carrusel horizontal. */
@media(max-width:700px){.proc-stepper .proc-tab:not(:last-child):after{content:'';display:block;position:absolute;top:20px;left:50%;width:100%;height:3px;background:var(--border);transform:none;z-index:0;border-radius:3px}.proc-stepper .proc-tab.completed:not(:last-child):after{background:linear-gradient(90deg,var(--green),var(--cyan))}.proc-stepper .proc-tab.active:not(:last-child):after{background:linear-gradient(90deg,var(--cyan),var(--border))}.proc-stepper .proc-tab-node{position:relative;z-index:2}}
