/* ============================================================
   DESIGN TOKENS - PREMIUM B2B SAAS
   ============================================================ */
:root {
  /* Core Colors */
  --bg-base:        #030509;
  --bg-surface:     #0b101a;
  --bg-surface-h:   #111826;
  --bg-card:        #0f1422;
  
  /* Accents */
  --accent-primary: #ea580c; /* Electric Orange */
  --accent-primary-h:#f97316;
  --accent-secondary:#0d9488; /* Vibrant Teal */
  
  /* Text */
  --text-primary:   #ffffff;
  --text-secondary: #9ca3af;
  --text-muted:     #6b7280;
  
  /* Borders & Effects */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-hover:   rgba(255, 255, 255, 0.15);
  --border-accent:  rgba(234, 88, 12, 0.3);
  
  --shadow-sm:      0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg:      0 20px 40px rgba(0, 0, 0, 0.5);
  --glow-primary:   0 0 30px rgba(234, 88, 12, 0.15);
  
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-full:    9999px;
  
  --transition:     all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ============================================================
   RESET & TYPOGRAPHY
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }

p {
  color: var(--text-secondary);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
  background: var(--accent-primary-h);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-surface-h);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition);
  padding: 24px 0;
}

.navbar.scrolled {
  background: rgba(3, 5, 9, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo {
  width: 36px;
  height: 36px;
  background: var(--accent-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand-text span {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px; /* Offset for navbar */
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.08) 0%, rgba(3, 5, 9, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-image-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg), var(--glow-primary);
  overflow: hidden;
  transform: perspective(1000px) rotateX(2deg);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-image-header {
  height: 32px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
}

.hero-image-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-image-dot.red { background: #ef4444; }
.hero-image-dot.yellow { background: #f59e0b; }
.hero-image-dot.green { background: #10b981; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-value {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================================
   FEATURES / MODULES (PRODUCT)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.icon-orange { background: rgba(234, 88, 12, 0.1); color: var(--accent-primary); }
.icon-teal { background: rgba(13, 148, 136, 0.1); color: var(--accent-secondary); }
.icon-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.icon-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ============================================================
   ARCHITECTURE / SYSTEM (LIST STYLE)
   ============================================================ */
.system-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.system-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.system-item:hover {
  border-color: var(--border-hover);
}

.system-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.system-item-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.system-item-content p {
  font-size: 0.9rem;
}

/* ============================================================
   PRICING / MODELO DE VENTA
   ============================================================ */
.pricing-section {
  background: var(--bg-surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.pricing-plan-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.plan-teal   { background: rgba(20,184,166,.12); color: #14b8a6; }
.plan-indigo { background: rgba(99,102,241,.12);  color: #818cf8; }
.plan-orange { background: rgba(234,88,12,.12);   color: #fb923c; }
.plan-green  { background: rgba(16,185,129,.12);  color: #34d399; }

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.pricing-card.popular {
  border-color: var(--border-accent);
  position: relative;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border-accent);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-name {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.pricing-desc {
  font-size: 0.9rem;
  margin-bottom: 32px;
  min-height: 60px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pricing-features li svg {
  color: var(--accent-secondary);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.pricing-action {
  width: 100%;
}

/* ============================================================
   COMMERCE / AUTOSERVICIO STEPS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.step-title {
  font-size: 1.1rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.step-desc {
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.commerce-alert {
  margin-top: 40px;
  padding: 24px;
  background: rgba(13, 148, 136, 0.05);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.commerce-alert svg {
  color: var(--accent-secondary);
  flex-shrink: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  background: var(--bg-surface);
}

.faq-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}

.faq-header {
  position: sticky;
  top: 120px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-primary);
  font-weight: 300;
  transition: var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 24px;
  font-size: 0.95rem;
}

/* ============================================================
   CTA / FOOTER
   ============================================================ */
.cta-section {
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  background: var(--bg-base);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: var(--text-primary);
}

/* ============================================================
   WSM INTELLIGENCE LAYOUTS
   ============================================================ */
.wsm-section {
  background-color: var(--bg-surface);
}

.wsm-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.wsm-block:last-child {
  margin-bottom: 0;
}

.wsm-block.reverse .wsm-image {
  order: 2;
}

.wsm-block.reverse .wsm-content {
  order: 1;
}

.wsm-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(13, 148, 136, 0.15);
  border: 1px solid var(--border-subtle);
}

.wsm-image img {
  width: 100%;
  height: auto;
  display: block;
}

.wsm-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.wsm-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   HARDWARE & TANK WIDGETS
   ============================================================ */
.hardware-section {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.system-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.system-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(13, 148, 136, 0.1);
  border: 1px solid var(--border-subtle);
}

.system-image img {
  width: 100%;
  height: auto;
  display: block;
}

.system-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.onboarding-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.onboarding-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(234, 88, 12, 0.1);
  border: 1px solid var(--border-subtle);
}

.onboarding-image img {
  width: 100%;
  height: auto;
  display: block;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.hardware-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 60px;
}

.tank-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.tank-widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.tank-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--border-hover);
  background: rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.8), 0 0 20px rgba(13, 148, 136, 0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tank-liquid-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10%;
  transition: height 2s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}

.tank-liquid-body {
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, var(--accent-secondary) 0%, #064e3b 100%);
}

.tank-wave-bg {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 250px;
  height: 250px;
  margin-left: -125px;
  background: rgba(13, 148, 136, 0.4);
  border-radius: 38%;
  animation: wave-spin 5s linear infinite;
}

.tank-wave-front {
  position: absolute;
  top: -30px;
  left: 50%;
  width: 240px;
  height: 240px;
  margin-left: -120px;
  background: var(--accent-secondary);
  border-radius: 42%;
  animation: wave-spin 7s linear infinite reverse;
}

@keyframes wave-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.tank-data {
  text-align: center;
  z-index: 1;
}

.tank-data-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tank-data-label i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.tank-data-label i.active {
  background: var(--accent-secondary);
  box-shadow: 0 0 8px var(--accent-secondary);
  animation: pulse-dot 2s infinite;
}

.tank-data-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.tank-data-value span {
  font-size: 1rem;
  color: var(--accent-secondary);
  font-weight: 600;
}

/* Extended Tank Metrics */
.tank-metrics-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.tank-metric {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.tank-metric-label {
  color: var(--text-secondary);
}

.tank-metric-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
}

.tank-metric-val.ok { color: var(--accent-secondary); }

.pump-widget {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(234, 88, 12, 0.1);
  transform: perspective(1000px) rotateY(-4deg);
  transition: var(--transition);
}

.pump-widget:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(234, 88, 12, 0.2);
}

.pump-widget img {
  width: 100%;
  height: auto;
  display: block;
}

.pump-overlay {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 30px 24px 24px;
  background: linear-gradient(0deg, rgba(3,5,9,0.95) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.pump-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.pump-status i {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulse-dot 1.5s infinite;
}

/* Digital Twin Panels */
.digital-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
}

.digital-panel:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.dp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.dp-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dp-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dp-status i {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
  animation: pulse-dot 2s infinite;
}

/* Integration Cards */
.integration-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.integration-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.integration-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.integration-list li svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

/* ============================================================
   NAV TOGGLE (HAMBURGER)
   ============================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-cta-mobile { display: none; }

/* ============================================================
   ANIMATIONS & RESPONSIVE
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .pricing-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .features-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-container { grid-template-columns: 1fr; gap: 40px; }
  .faq-header { position: static; }
}

@media (max-width: 1024px) {
  /* Pricing grid 5 → 2 columnas en tablet */
  .pricing-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .pricing-desc { min-height: unset; }
}

@media (max-width: 768px) {
  /* Nav — hamburger */
  .nav-toggle { display: flex; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 8px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 9, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 150;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.nav-cta-mobile) {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  /* Section padding */
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 28px; }
  .cta-section { padding: 48px 0; }
  .stats-band { padding: 28px 0; }

  /* Grids */
  .features-grid, .pricing-grid, .pricing-grid-5, .system-grid, .steps-grid,
  .stats-grid, .system-layout, .onboarding-layout, .wsm-block {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Pricing mobile */
  .pricing-desc { min-height: unset; }
  .pricing-grid, .pricing-grid-5 { padding-top: 16px; } /* espacio para el badge */
  .pricing-card { padding: 28px 20px; }
  .pricing-card.popular { margin-top: 8px; } /* badge no se corta */
  .system-image, .onboarding-image,
  .wsm-block.reverse .wsm-image, .wsm-block .wsm-image {
    order: -1;
    margin-bottom: 12px;
  }
  .wsm-block { gap: 16px; margin-bottom: 32px; }
  .wsm-content h3 { font-size: 1.4rem; }

  /* Hero */
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .hero-image-wrapper { transform: none; }

  /* Misc */
  .stat-item::after { display: none; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; }
  .footer-container { flex-direction: column; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 16px; }

  /* Digital twin */
  .twin-container { height: auto; flex-direction: column; }
  .twin-scene { height: 280px; flex: none; }
  .twin-console { height: 260px; flex: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section { padding: 36px 0; }
  .cta-section { padding: 40px 0; }
  .stats-band { padding: 20px 0; }
  .section-header { margin-bottom: 20px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .hero-desc { font-size: 0.95rem; }
  .stat-value { font-size: 2rem; }
  .pricing-card { padding: 22px 16px; }
  .feature-card { padding: 20px 16px; }
  .feature-icon { margin-bottom: 14px; }
  .hero-tags { gap: 6px; margin-bottom: 28px; }
  .hero-tag { font-size: 0.7rem; padding: 4px 9px; }
  .twin-scene { height: 200px; }
  .twin-console { height: 180px; }
  .wsm-block { margin-bottom: 20px; }
  .step-card { padding: 20px 16px; }
  .system-item { padding: 16px; }
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   LIVE DIGITAL TWIN
   ============================================================ */
.digital-twin-section {
  background-color: #020408;
  padding: 100px 0;
  border-top: 1px solid rgba(13, 148, 136, 0.2);
  border-bottom: 1px solid rgba(13, 148, 136, 0.2);
}

.twin-container {
  display: flex;
  gap: 30px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  height: 600px;
}

.twin-scene {
  flex: 2;
  position: relative;
  background: #0a0f18; /* Dark asphalt */
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.twin-console {
  flex: 1;
  background: #000;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  border: 1px solid #333;
  font-family: 'Courier New', Courier, monospace;
}

.console-header {
  background: #111;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #333;
  color: #888;
  font-size: 0.9rem;
}

.console-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.console-dot.red { background: #ff5f56; }
.console-dot.yellow { background: #ffbd2e; }
.console-dot.green { background: #27c93f; }

.console-body {
  padding: 15px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.log-time { color: #888; }
.log-info { color: #0ea5e9; }
.log-success { color: #22c55e; }
.log-warning { color: #f59e0b; }

/* 2D Map Elements */
.twin-floor {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-top: 1px dashed rgba(255,255,255,0.2);
}

.twin-bridge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 140px;
  height: 60px;
  background: rgba(13, 148, 136, 0.1);
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.4);
}
.twin-bridge::before {
  content: "☁️";
  font-size: 24px;
}
.bridge-label {
  position: absolute;
  bottom: -25px;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: bold;
  white-space: nowrap;
}

.twin-tank {
  position: absolute;
  bottom: 20px;
  left: 50px;
  width: 120px;
  height: 60px;
  border-radius: 30px;
  border: 2px solid #555;
  background: #111;
  overflow: hidden;
}
.tank-liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90%;
  background: linear-gradient(0deg, #f59e0b, #fbbf24);
  transition: height 0.5s ease;
}
.tank-label {
  position: absolute;
  bottom: -25px;
  left: 0;
  color: #888;
  font-size: 0.8rem;
  white-space: nowrap;
}
.tank-level-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.twin-pump {
  position: absolute;
  top: 50%;
  left: 150px;
  transform: translateY(-50%);
  width: 50px;
  height: 80px;
  background: #222;
  border: 2px solid #444;
  border-radius: 5px 5px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  z-index: 5;
}
.pump-screen {
  background: #000;
  color: #0ea5e9;
  font-family: monospace;
  font-size: 0.8rem;
  padding: 2px 4px;
  border: 1px solid #0ea5e9;
  border-radius: 3px;
}
.pump-label {
  position: absolute;
  top: -25px;
  color: #888;
  font-size: 0.8rem;
  white-space: nowrap;
}

.twin-pos {
  position: absolute;
  top: 50%;
  left: 350px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #2a2a2a;
  border-radius: 5px;
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.twin-pos::before {
  content: "👤";
  font-size: 20px;
}
.pos-label {
  position: absolute;
  top: -25px;
  color: var(--color-accent);
  font-size: 0.8rem;
  white-space: nowrap;
}

.twin-car {
  position: absolute;
  top: 50%;
  left: -100px; /* Offscreen start */
  transform: translateY(-50%);
  width: 100px;
  height: 40px;
  background: #e2e8f0;
  border-radius: 10px 20px 5px 5px;
  z-index: 10;
  transition: left 2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
}
.twin-car::after {
  content: "🚙";
  font-size: 28px;
}
.twin-car.arriving {
  left: 40px; /* Stops right next to pump */
}
.twin-car.leaving {
  left: 1000px; /* Drives away */
}

/* Data Streams (Pulsing Lines) */
.data-stream {
  position: absolute;
  background: repeating-linear-gradient(90deg, transparent, transparent 5px, rgba(13, 148, 136, 0.5) 5px, rgba(13, 148, 136, 0.5) 10px);
  opacity: 0.1;
  transition: opacity 0.3s;
}
.data-stream.stream-v {
  background: repeating-linear-gradient(0deg, transparent, transparent 5px, rgba(13, 148, 136, 0.5) 5px, rgba(13, 148, 136, 0.5) 10px);
}
.data-stream.active {
  opacity: 1;
  box-shadow: 0 0 10px var(--color-primary);
}
.data-stream.stream-h.active {
  animation: streamMoveH 0.5s linear infinite;
  background: repeating-linear-gradient(90deg, transparent, transparent 5px, var(--color-primary) 5px, var(--color-primary) 10px);
}
.data-stream.stream-v.active {
  animation: streamMoveV 0.5s linear infinite;
  background: repeating-linear-gradient(0deg, transparent, transparent 5px, var(--color-primary) 5px, var(--color-primary) 10px);
}

@keyframes streamMoveH {
  from { background-position: 0 0; }
  to { background-position: -20px 0; }
}
@keyframes streamMoveV {
  from { background-position: 0 0; }
  to { background-position: 0 -20px; }
}

#stream-pump-pos {
  top: calc(50% + 10px); left: 200px; width: 150px; height: 3px;
}
#stream-pos-bridge {
  top: 80px; left: 370px; width: 3px; height: calc(50% - 100px);
}
#stream-tank-bridge {
  top: 80px; left: 110px; width: 3px; height: calc(100% - 160px);
}
#stream-tank-bridge.active {
  box-shadow: 0 0 10px #f59e0b;
  background: repeating-linear-gradient(0deg, transparent, transparent 5px, #f59e0b 5px, #f59e0b 10px);
}

#stream-bridge-out {
  top: 50px; right: 0; width: 20px; height: 3px;
}

/* Responsive Twin */
@media (max-width: 900px) {
  .twin-container {
    flex-direction: column;
    height: 800px;
  }
  .twin-scene { height: 400px; flex: none; }
  .twin-console { height: 400px; flex: none; }
}
