@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* =========================================================================
   D3Apps — Light SaaS Theme
   ========================================================================= */

/* Reset and Core */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-blue: #eff6ff;

  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-deep: #1e3a8a;
  --primary-soft: #dbeafe;
  --primary-softer: #eff6ff;

  --green: #10b981;
  --green-dark: #047857;
  --green-soft: #d1fae5;
  --orange: #f97316;
  --orange-dark: #c2410c;
  --orange-soft: #ffedd5;

  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --muted: #94a3b8;

  --line: #e2e8f0;
  --line-soft: #eef2f7;

  --surface: var(--white);
  --header-bg: rgba(255, 255, 255, 0.82);
  --hero-from: #fbfdff;
  --donut-track: #e2e8f0;
  --scroll-thumb: #cbd5e1;

  --footer-bg: #f8fafc;
  --footer-border: var(--line);
  --footer-title: var(--ink);
  --footer-text: var(--ink-3);
  --footer-hover: var(--primary);
  --footer-icon: var(--primary);
  --footer-social-bg: var(--surface);
  --footer-social-border: var(--line);
  --footer-social-icon: var(--ink-2);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px -8px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px -15px rgba(15, 23, 42, 0.18);
  --shadow-primary: 0 8px 24px -6px rgba(37, 99, 235, 0.45);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1200px;
}

/* =========================================================================
   Dark theme (manual toggle via [data-theme="dark"] on <html>)
   ========================================================================= */
[data-theme="dark"] {
  color-scheme: dark;

  --surface: #111827;
  --bg: #0b1120;
  --bg-soft: #0f172a;
  --bg-blue: #172554;

  --primary: #60a5fa;
  --primary-dark: #93c5fd;
  --primary-soft: #1e3a8a;
  --primary-softer: #172554;

  --green: #34d399;
  --green-dark: #6ee7b7;
  --green-soft: #064e3b;
  --orange: #fb923c;
  --orange-dark: #fdba74;
  --orange-soft: #7c2d12;

  --ink: #f1f5f9;
  --ink-2: #cbd5e1;
  --ink-3: #94a3b8;
  --muted: #64748b;

  --line: #1e293b;
  --line-soft: #182234;

  --header-bg: rgba(11, 17, 32, 0.82);
  --hero-from: #0d1426;
  --donut-track: #26334d;
  --scroll-thumb: #334155;

  --footer-bg: #0b1220;
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-title: var(--white);
  --footer-text: #94a3b8;
  --footer-hover: #60a5fa;
  --footer-icon: #60a5fa;
  --footer-social-bg: rgba(255, 255, 255, 0.06);
  --footer-social-border: rgba(255, 255, 255, 0.1);
  --footer-social-icon: #e2e8f0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px -8px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px -15px rgba(0, 0, 0, 0.6);
  --shadow-primary: 0 8px 24px -6px rgba(37, 99, 235, 0.5);
}

[data-theme="dark"] .hero-badge {
  border-color: #3b82f6;
}
[data-theme="dark"] .option-icon--purple {
  background: #312e81;
  color: #c4b5fd;
}
[data-theme="dark"] .kpi-trend.down {
  background: #7f1d1d;
  color: #fca5a5;
}
[data-theme="dark"] select.input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
[data-theme="dark"] .cta-band .btn-white {
  color: #1e40af;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 2.5rem 0;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 6px;
  border: 2px solid var(--bg-soft);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
  line-height: 1.2;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 45%, #1d4ed8 100%);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(37, 99, 235, 0.55);
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink-2);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-green {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: var(--white);
  box-shadow: 0 8px 24px -6px rgba(16, 185, 129, 0.45);
}
.btn-green:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-orange {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  color: var(--white);
  box-shadow: 0 8px 24px -6px rgba(249, 115, 22, 0.45);
}
.btn-orange:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-lg {
  padding: 1rem 2.1rem;
  font-size: 1.02rem;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* Anchor offset for sticky header */
section[id],
[id="contacto"],
[id="soluciones"],
[id="sectores"],
[id="nosotros"],
[id="inicio"] {
  scroll-margin-top: 76px;
}

/* =========================================================================
   Header / Navigation
   ========================================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow var(--transition-normal);
}
header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-links a {
  color: var(--ink-3);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}
.nav-links a:hover {
  color: var(--primary);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.theme-toggle svg {
  width: 19px;
  height: 19px;
}
.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition-fast);
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.5rem 1.5rem;
  animation: menu-in 0.3s ease;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu a {
  display: block;
  padding: 0.8rem 0;
  color: var(--ink-2);
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a:last-of-type {
  border-bottom: none;
}
.mobile-menu .btn {
  margin-top: 1rem;
  width: 100%;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  padding: 5rem 0 6rem;
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 85% -10%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(620px 380px at 8% 10%, rgba(16, 185, 129, 0.08), transparent 60%),
    linear-gradient(180deg, var(--hero-from) 0%, var(--surface) 55%, var(--bg-soft) 100%);
}

/* Animated particle & grid background (canvas) inside the hero */
#background-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-blue);
  color: var(--primary-dark);
  border: 1px solid #bfdbfe;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.42rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.4rem;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.hero h1 {
  font-size: 3.15rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary) 0%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .accent-green {
  background: linear-gradient(120deg, #10b981 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--ink-3);
  font-size: 1.12rem;
  margin-bottom: 1.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.hero-actions .btn {
  white-space: nowrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.hero-trust .avatars {
  display: flex;
}
.hero-trust .avatars span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  margin-left: -8px;
}
.hero-trust .avatars span:first-child {
  margin-left: 0;
}

/* =========================================================================
   Hero entrance animations — word-by-word + scale-in
   ========================================================================= */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}
.hero-word.word-reveal {
  animation: hero-word-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes hero-word-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-scale {
  opacity: 0;
  transform: scale(0.92);
}
.hero-scale.scale-in {
  animation: hero-scale-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes hero-scale-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.hero-impact {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-top: 0.6rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(12px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.hero-impact.word-reveal {
  animation: hero-word-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.8s;
}
.hero-impact-btn {
  vertical-align: middle;
}

/* Hero Questions */
.hero-questions {
  position: relative;
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.hero-photo {
  line-height: 0;
}
.hero-photo-img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-question-list {
  position: absolute;
  inset: 0;
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.4rem;
  background: linear-gradient(90deg, rgba(11, 17, 32, 0.82) 0%, rgba(11, 17, 32, 0.45) 62%, rgba(11, 17, 32, 0) 100%);
}
.hero-question {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition-normal);
  opacity: 0;
}
.hero-question.q-visible {
  animation: hero-q-cinematic 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes hero-q-cinematic {
  0% {
    opacity: 0;
    transform: scale(2.2) translateY(20px);
    filter: blur(6px);
  }
  40% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}
.hero-question:hover {
  transform: translateX(6px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
}
.hero-question .q-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-question .q-icon svg {
  width: 20px;
  height: 20px;
}
.q-icon--blue {
  background: var(--primary-soft);
  color: var(--primary);
}
.q-icon--green {
  background: var(--green-soft);
  color: var(--green-dark);
}
.q-icon--orange {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

/* =========================================================================
   Dashboard Mockup
   ========================================================================= */
.hero-visual {
  position: relative;
}
.hero-visual .glow {
  position: absolute;
  inset: -12%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(37, 99, 235, 0.16), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.dashboard {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dashboard-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.dashboard-link:hover .dashboard {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 50px -12px rgba(37, 99, 235, 0.25);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.dashboard-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}
.dashboard-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dashboard-bar .dot:nth-child(1) {
  background: #fca5a5;
}
.dashboard-bar .dot:nth-child(2) {
  background: #fcd34d;
}
.dashboard-bar .dot:nth-child(3) {
  background: #6ee7b7;
}
.dashboard-bar .url {
  margin-left: 0.8rem;
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 9999px;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.32rem 0.9rem;
  font-family: var(--font-mono);
}

.dashboard-body {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.kpi {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.8rem;
}
.kpi-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.2rem;
}
.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  margin-top: 0.3rem;
}
.kpi-trend.up {
  background: var(--green-soft);
  color: var(--green-dark);
}
.kpi-trend.down {
  background: #fee2e2;
  color: #b91c1c;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.9rem;
}
.chart-card .chart-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chart-card .chart-title .legend {
  display: flex;
  gap: 0.6rem;
  font-size: 0.66rem;
  color: var(--muted);
  font-weight: 500;
}
.chart-card .legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chart-card .legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 110px;
}
.bars .bar {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  position: relative;
  transition: transform var(--transition-normal);
}
.bars .bar:hover {
  transform: scaleY(1.04);
}
.bars .bar--alt {
  background: linear-gradient(180deg, #34d399, #059669);
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.donut {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: conic-gradient(#2563eb 0% 62%, var(--donut-track) 62% 100%);
  position: relative;
  flex-shrink: 0;
}
.donut::after {
  content: '62%';
  position: absolute;
  inset: 10px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}
.donut-legend {
  font-size: 0.72rem;
  color: var(--ink-3);
  line-height: 1.7;
}
.donut-legend b {
  color: var(--ink);
}

.dashboard-side {
  display: grid;
  gap: 1rem;
  grid-template-rows: auto auto;
}
.activity {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.9rem;
}
.activity .a-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.7rem;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.76rem;
  color: var(--ink-3);
}
.activity-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.activity-item .a-check {
  margin-left: auto;
  color: var(--green);
  font-weight: 700;
}

/* =========================================================================
   Dashboard hero video
   ========================================================================= */
.dashboard-video {
  display: block;
  width: 100%;
  height: auto;
  background: #0a0f1e;
}

/* =========================================================================
   Section headers
   ========================================================================= */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.4rem;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.section-label::before,
.section-label::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--primary-soft);
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1rem;
}
.section-title .accent {
  background: linear-gradient(120deg, var(--primary), #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-desc {
  color: var(--ink-3);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* =========================================================================
   "Dudas" / About section
   ========================================================================= */
.about-section {
  background: var(--surface);
}
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.about-hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.about-hero-img {
  display: flex;
  justify-content: center;
}
.about-hero-img .about-video-player {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #000;
  transition: transform 0.4s ease;
}
.about-hero-img .about-video-player:hover {
  transform: scale(1.02);
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.about-card {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.7rem;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  align-items: center;
  transition: var(--transition-normal);
}
.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
  background: var(--surface);
}
.about-card .a-icon {
  /*width: 46px;
  height: 46px;*/
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-card .a-icon svg {
  width: 22px;
  height: 22px;
}
.about-card .a-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.about-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
}
.about-card p {
  grid-column: 1 / -1;
  margin-top: 0.9rem;
  color: var(--ink-3);
  font-size: 0.92rem;
  line-height: 1.65;
}
.about-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-soft), var(--shadow-md);
  background: var(--surface);
}
.about-card {
  cursor: pointer;
}
.about-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.about-cta .btn {
  gap: 0.5rem;
}
.about-quote {
  margin-top: 3rem;
  text-align: center;
}
.about-quote blockquote {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.4;
  letter-spacing: -0.01em;
 /* max-width: 780px;*/
  margin: 0 auto 1.5rem;
}
.about-quote blockquote mark {
  background: linear-gradient(180deg, transparent 55%, var(--primary-soft) 55%);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0 0.2em;
}
@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-hero-img .about-video-player {
    max-width: 100%;
  }
  .about-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .about-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .about-cta .btn {
    justify-content: center;
  }
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.mv-card {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.7rem;
  transition: var(--transition-normal);
}
.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
  background: var(--surface);
}
.mv-card .a-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.mv-card .a-icon svg {
  width: 22px;
  height: 22px;
}
.mv-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.mv-card p {
  color: var(--ink-3);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* =========================================================================
   Options section ("¿Qué quieres empezar a gestionar?")
   ========================================================================= */
.options-section {
  background: var(--bg-soft);
}
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.option-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #6366f1);
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.option-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #bfdbfe;
}
.option-card:hover::before {
  opacity: 1;
}
.option-card--green::before {
  background: linear-gradient(90deg, var(--green), #0ea5e9);
}
.option-card--orange::before {
  background: linear-gradient(90deg, var(--orange), #f59e0b);
}
.option-card--purple::before {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.option-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
}
.option-icon svg {
  width: 30px;
  height: 30px;
}
.option-icon--blue {
  background: var(--primary-soft);
  color: var(--primary);
}
.option-icon--green {
  background: var(--green-soft);
  color: var(--green-dark);
}
.option-icon--orange {
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.option-icon--purple {
  background: #ede9fe;
  color: #6d28d9;
}

.option-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.option-card p {
  color: var(--ink-3);
  font-size: 0.98rem;
  line-height: 1.65;
  flex: 1;
}
.option-card .option-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition-normal);
  margin-top: 0.4rem;
}
.option-card:hover .option-arrow {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateX(4px);
}

/* =========================================================================
   Sectors section
   ========================================================================= */
.sectors-section {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--surface) 100%);
}
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.sector-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}
.sector-card .s-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sector-card .s-icon svg {
  width: 24px;
  height: 24px;
}
.sector-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
}
.sector-card .btn {
  margin-top: auto;
}

.sectors-note {
  text-align: center;
  margin-top: 2.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================================================
   Demo / Diagnostic section
   ========================================================================= */
.demo-section {
  background: var(--surface);
  overflow: hidden;
}
.demo-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.08), transparent);
  pointer-events: none;
}
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}
.demo-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--ink);
}
.demo-info p {
  color: var(--ink-3);
  font-size: 1.02rem;
  margin-bottom: 1.8rem;
  line-height: 1.7;
}
.demo-points {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}
.demo-point {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.demo-point .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.demo-point .check svg {
  width: 13px;
  height: 13px;
}

.demo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.2rem;
}
.demo-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.demo-card > p {
  color: var(--ink-3);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
}
.input-field,
select.input-field,
textarea.input-field {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 0.72rem 0.95rem;
  border-radius: 10px;
  outline: none;
  transition: var(--transition-fast);
  appearance: none;
}
select.input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}
.input-field::placeholder {
  color: var(--muted);
}
.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  background: var(--surface);
}
textarea.input-field {
  resize: vertical;
  min-height: 84px;
}
.demo-card .btn {
  width: 100%;
  margin-top: 1.1rem;
}
.form-note {
  text-align: center;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.form-success {
  display: none;
  background: var(--green-soft);
  border: 1px solid #a7f3d0;
  color: var(--green-dark);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
  align-items: center;
  gap: 0.6rem;
}
.form-success.show {
  display: flex;
  animation: fade-up 0.4s ease;
}
.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  border: 0;
  padding: 0;
}

.turnstile-wrap {
  min-height: 65px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0.4rem 0 0.2rem;
}

.signup-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
  line-height: 1.5;
}
.signup-error.show {
  display: flex;
  animation: fade-up 0.4s ease;
}

[data-theme="dark"] .signup-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: var(--container);
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 65%);
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 65%);
  pointer-events: none;
}
.cta-band h2 {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 760px;
  margin: 0 auto 1rem;
}
.cta-band p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto 2.2rem;
  font-size: 1.05rem;
}
.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-band .btn-white {
  background: var(--white);
  color: var(--primary-dark);
}
.cta-band .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}
.cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* =========================================================================
   Pricing & token value table
   ========================================================================= */
.pricing-section {
  background: var(--surface);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 2.8rem;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.3rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.price-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}
.price-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.85rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-primary);
  white-space: nowrap;
}
.price-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.price-tokens {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-3);
}
.price-units {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.price-num {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.price-num small {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.35rem;
  letter-spacing: 0;
}
.price-card p {
  color: var(--ink-3);
  font-size: 0.92rem;
  line-height: 1.6;
}
.price-card ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 0.4rem;
  flex: 1;
}
.price-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.price-card ul li svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}
.price-card .btn {
  margin-top: 1.2rem;
}

.token-table-wrap {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.6rem 0.6rem;
  overflow-x: auto;
}
.token-table-wrap h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--ink);
}
.token-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.token-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.7rem 0.9rem;
  border-bottom: 2px solid var(--line);
}
.token-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
  color: var(--ink-2);
}
.token-table tr:last-child td {
  border-bottom: none;
}
.token-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}
.token-table .row-featured {
  background: var(--primary-softer);
}
.token-table .tag {
  display: inline-flex;
  align-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.token-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.token-note b {
  color: var(--ink-2);
}

/* =========================================================================
   Pricing hero (pricing.html)
   ========================================================================= */
.pricing-hero {
  padding: 5.5rem 0 2.5rem;
  background: var(--surface);
  text-align: center;
}
.pricing-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0.6rem auto 1rem;
  max-width: 18ch;
  line-height: 1.05;
}
.pricing-hero-sub {
  font-size: 1.1rem;
  color: var(--ink-3);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* ----- Add-ons (Amplía tu capacidad) ----- */
.addons-section {
  background: var(--bg-soft);
}
.addon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.addon-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.addon-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}
.addon-units {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.addon-price {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1;
}
.addon-price small {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.3rem;
}
.addon-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

/* ----- How it works (Usage Units) ----- */
.howitworks-section {
  background: var(--surface);
}
.how-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  max-width: 820px;
  margin: 0 auto;
}
.how-box p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
}

/* =========================================================================
   Franchise section
   ========================================================================= */
.franchise-section {
  background: var(--bg-soft);
}
.franchise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.franchise-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition-normal);
}
.franchise-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}
.franchise-logo {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}
.franchise-logo.f2 {
  background: linear-gradient(135deg, #10b981, #047857);
}
.franchise-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.franchise-card .f-role {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.franchise-card p {
  color: var(--ink-3);
  font-size: 0.93rem;
  line-height: 1.65;
  flex: 1;
}
.franchise-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.franchise-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}
.franchise-cta .demo-layout {
  align-items: center;
}
.franchise-cta h3 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4.5rem 0 2rem;
  margin-top: 5rem;
  border-top: 1px solid var(--footer-border);
}
#footer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.footer .container {
  position: relative;
  z-index: 1;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--footer-border);
}
.footer-brand .brand {
  color: var(--footer-title);
  margin-bottom: 0.9rem;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}
.footer-col h4 {
  color: var(--footer-title);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
.footer-col ul {
  display: grid;
  gap: 0.65rem;
}
.footer-col a {
  font-size: 0.92rem;
  color: var(--footer-text);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-col a:hover {
  color: var(--footer-hover);
}
.footer-col a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
}
.footer-contact li svg {
  width: 16px;
  height: 16px;
  color: var(--footer-icon);
  flex-shrink: 0;
}
.social-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.1rem;
}
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--footer-social-bg);
  border: 1px solid var(--footer-social-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.social-row a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.social-row a:hover svg {
  color: var(--white);
}
.social-row svg {
  width: 18px;
  height: 18px;
  color: var(--footer-social-icon);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  font-size: 0.82rem;
}
.footer-bottom .fb-links {
  display: flex;
  gap: 1.4rem;
}
.footer-bottom .fb-links a:hover {
  color: var(--footer-hover);
}

/* =========================================================================
   Product pages
   ========================================================================= */
.product-hero {
  padding: 4.5rem 0 5.5rem;
  background:
    radial-gradient(640px 380px at 88% 0%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(520px 320px at 4% 100%, rgba(16, 185, 129, 0.08), transparent 60%),
    linear-gradient(180deg, var(--hero-from) 0%, var(--surface) 100%);
}
.product-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.product-hero .breadcrumb a:hover {
  color: var(--primary);
}
.product-hero .breadcrumb svg {
  width: 14px;
  height: 14px;
}
.product-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.product-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.product-title-row .badge {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-title-row .badge svg {
  width: 28px;
  height: 28px;
}
.product-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
}
.product-hero .lead {
  color: var(--ink-3);
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 34rem;
  margin-bottom: 1.6rem;
}
.product-hero .hero-actions {
  margin-bottom: 0;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.8rem;
}
.product-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
}
.product-meta .meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

/* Benefits */
.benefits-section {
  background: var(--bg-soft);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.benefit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.7rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}
.benefit-card .b-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-card .b-icon svg {
  width: 22px;
  height: 22px;
}
.benefit-card h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
}
.benefit-card p {
  color: var(--ink-3);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Features */
.features-section {
  background: var(--surface);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.feature-item {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: var(--transition-normal);
}
.feature-item:hover {
  background: var(--surface);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.feature-item .f-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.feature-item .f-icon svg {
  width: 19px;
  height: 19px;
}
.feature-item span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* Diagnostic on product pages */
.diagnostic-section {
  background: var(--bg-soft);
}
.diagnostic-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}
.diagnostic-layout .demo-info h2 {
  font-size: 2rem;
}
.diag-questions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.diag-question {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.diag-question .q-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =========================================================================
   Reveal animations
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .demo-layout,
  .diagnostic-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 0.5rem 0;
  }
  .nav-links,
  .nav-actions .nav-btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    padding: 3.5rem 0 4.5rem;
  }
  .hero h1 {
    font-size: 2.15rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
  .hero-question-list {
    width: 78%;
    padding: 1.1rem;
  }
  .hero-question-list .hero-question {
    padding: 0.65rem 0.9rem;
  }
  .section-title {
    font-size: 1.9rem;
  }
  .about-cards,
  .benefits-grid,
  .sectors-grid,
  .pricing-grid,
  .addon-grid,
  .franchise-grid {
    grid-template-columns: 1fr;
  }
  .mv-grid {
    grid-template-columns: 1fr;
  }
  .franchise-cta {
    padding: 2rem 1.5rem;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .demo-card {
    padding: 1.6rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cta-band {
    padding: 3rem 1.6rem;
    border-radius: var(--radius-md);
  }
  .cta-band h2 {
    font-size: 1.9rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .product-hero h1 {
    font-size: 2.3rem;
  }
  .product-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-body {
    grid-template-columns: 1fr;
  }
  .dashboard-side {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .kpis {
    grid-template-columns: 1fr;
  }
  .dashboard-side {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }
}
