/* ==========================================================================
   SIPE - Modern Tech Design System (El Salvador ERP & DTE)
   ========================================================================== */

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-card: rgba(18, 26, 47, 0.75);
  --bg-card-hover: rgba(26, 38, 68, 0.85);
  --bg-input: rgba(15, 23, 42, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.35);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --nav-bg: rgba(10, 15, 29, 0.85);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 35px rgba(37, 99, 235, 0.2);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(248, 250, 252, 1);
  --bg-input: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: #2563eb;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --nav-bg: rgba(248, 250, 252, 0.88);
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 35px rgba(37, 99, 235, 0.12);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img, svg {
  vertical-align: middle;
}

.mono {
  font-family: var(--font-mono);
}

.font-bold {
  font-weight: 700;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Typography Helpers */
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-accent { color: var(--accent-cyan); }

/* Section Header */
.section-header {
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
[data-theme="light"] .section-tag {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.2);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--primary-glow);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}
[data-theme="light"] .btn-outline:hover {
  background: rgba(0, 0, 0, 0.04);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
  border-radius: 6px;
}
.btn-lg {
  padding: 15px 30px;
  font-size: 1.02rem;
  border-radius: 10px;
}
.btn-block {
  width: 100%;
}

.pulse-btn {
  position: relative;
}
.pulse-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  border: 1px solid rgba(59, 130, 246, 0.6);
  animation: pulse-ring 2.5s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.08); opacity: 0; }
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
[data-theme="light"] .brand-name {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-link:hover {
  color: #3b82f6;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(15deg);
}
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.menu-toggle-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: 5%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-2 {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(6, 182, 212, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.badge-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: #34d399;
}
[data-theme="light"] .badge-text { color: #059669; }

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 34px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}
.proof-avatars {
  display: flex;
}
.avatar-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: white;
  border: 2px solid var(--bg-primary);
  margin-left: -8px;
}
.avatar-pill:first-child { margin-left: 0; }
.avatar-1 { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.avatar-2 { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.avatar-3 { background: linear-gradient(135deg, #10b981, #059669); }
.proof-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.proof-text strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Dashboard Preview Mockup (Hero Visual)
   ========================================================================== */
.hero-visual {
  position: relative;
}

.dashboard-preview-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  transition: var(--transition);
}

.card-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
}
[data-theme="light"] .card-window-bar {
  background: rgba(0, 0, 0, 0.04);
}

.window-dots {
  display: flex;
  gap: 6px;
}
.window-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.window-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.window-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.card-body {
  padding: 20px;
}

.preview-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.metric-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.metric-value {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.metric-growth {
  font-size: 0.7rem;
  font-weight: 600;
}
.metric-growth.positive { color: var(--accent-emerald); }
.metric-growth.status-ok { color: #3b82f6; }
.metric-growth.neutral { color: var(--text-muted); }

/* Tabs inside Mockup */
.preview-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
[data-theme="light"] .preview-tabs {
  background: rgba(0, 0, 0, 0.05);
}

.preview-tab {
  flex: 1;
  padding: 7px 12px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.preview-tab.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.preview-tab-pane {
  display: none;
}
.preview-tab-pane.active {
  display: block;
}

/* Table inside Mockup */
.table-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.76rem;
}
.table-mini-header {
  display: grid;
  grid-template-columns: 2.2fr 2.5fr 1fr 1.2fr 1.3fr;
  padding: 6px 10px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}
.table-mini-row {
  display: grid;
  grid-template-columns: 2.2fr 2.5fr 1fr 1.2fr 1.3fr;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}
.badge-type {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  width: fit-content;
}
.badge-type.ccf { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.badge-type.fcf { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }

.badge-status.success {
  color: var(--accent-emerald);
  font-weight: 600;
}

/* POS mini tab */
.pos-mini-grid {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.pos-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.pos-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 10px 0;
}
.pos-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.pos-actions-mini {
  display: flex;
  gap: 8px;
}
.pos-btn {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}
.pos-btn.success { background: var(--accent-emerald); color: #022c22; }
.pos-btn.outline { border: 1px solid var(--border-subtle); color: var(--text-primary); }

/* Kardex bars tab */
.kardex-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 0;
}
.bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 10px;
}

/* Floating Hacienda Badge */
.floating-hacienda-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  padding: 10px 16px;
  border-radius: 50px;
  animation: float 4s ease-in-out infinite;
}
.floating-hacienda-badge strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-primary);
  line-height: 1.1;
}
.floating-hacienda-badge span {
  font-size: 0.68rem;
  color: var(--accent-emerald);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   Trust Stats Bar
   ========================================================================== */
.stats-bar-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}
.stats-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.stat-card {
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
}
[data-theme="light"] .stat-number {
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-subtle);
}

/* ==========================================================================
   Facturación DTE Section
   ========================================================================== */
.dte-section {
  padding: 100px 0;
}
.dte-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.dte-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: var(--transition);
}
.dte-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.dte-feature-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.dte-feature-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Modulos ERP (Bento Grid)
   ========================================================================== */
.modulos-section {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.01);
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}
.bento-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.bento-large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.bento-medium {
  grid-column: span 3;
}

.bento-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.bento-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.bento-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bento-list li {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

.bento-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.stock-mini-widget {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.stock-row:last-child { border-bottom: none; }
.stock-good { color: var(--accent-emerald); font-weight: 600; font-family: var(--font-mono); }
.stock-low { color: var(--accent-rose); font-weight: 600; font-family: var(--font-mono); }

.bento-highlight {
  margin-top: auto;
  padding: 10px 14px;
  background: rgba(37, 99, 235, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  font-size: 0.84rem;
  color: var(--text-primary);
}

/* ==========================================================================
   Simulator / Calculator Section
   ========================================================================== */
.simulator-section {
  padding: 100px 0;
}
.simulator-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 50px;
  box-shadow: var(--shadow-lg);
  max-width: 920px;
  margin: 0 auto;
}
[data-theme="light"] .simulator-card {
  background: #ffffff;
}

.sim-header {
  text-align: center;
  margin-bottom: 38px;
}
.sim-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.sim-header p {
  color: var(--text-secondary);
}

.slider-wrapper {
  margin-bottom: 40px;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.slider-labels strong {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 1.3rem;
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}
[data-theme="light"] .range-slider {
  background: rgba(0, 0, 0, 0.1);
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 15px var(--primary-glow);
  transition: transform 0.15s ease;
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.recommendation-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
}
[data-theme="light"] .recommendation-box {
  background: #f8fafc;
}

.rec-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.rec-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.rec-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
}
.rec-features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.rec-features-grid span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Ventajas Competitivas
   ========================================================================== */
.ventajas-section {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.015);
}
.comparative-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.comp-card {
  border-radius: var(--radius-lg);
  padding: 36px;
}
.highlight-card {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}
.faded-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  opacity: 0.85;
}
.comp-badge {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.highlight-card .comp-badge { color: #60a5fa; }
.faded-card .comp-badge { color: var(--text-muted); }

.comp-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 22px;
}
.comp-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.comp-list.good .icon {
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 1.1rem;
}
.comp-list.bad .icon {
  color: var(--accent-rose);
  font-weight: 800;
  font-size: 1.1rem;
}

/* ==========================================================================
   Contact Section & Form
   ========================================================================== */
.contact-section {
  padding: 110px 0;
  position: relative;
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.contact-title {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}
.contact-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 34px;
}

.contact-points {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.point-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.point-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.point-details {
  display: flex;
  flex-direction: column;
}
.point-details .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.point-details .value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.point-details a.value:hover {
  color: #3b82f6;
}

.contact-form-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.form-group {
  margin-bottom: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.92rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
  padding: 12px;
  border-radius: var(--radius-sm);
}
.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.form-status.error {
  display: block;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 0;
}
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand .brand-logo {
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 14px;
}
.footer-location {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-links-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
}
.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-col a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.footer-links-col a:hover {
  color: #3b82f6;
}

.footer-contact-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.footer-contact-item a:hover {
  color: #3b82f6;
}

.footer-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #34d399;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 30px;
  }
  .hero-cta-group, .hero-proof {
    justify-content: center;
  }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-large {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }
  .bento-medium {
    grid-column: span 2;
  }
  .comparative-grid {
    grid-template-columns: 1fr;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    display: none;
  }
  .nav-menu.open {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .menu-toggle-btn {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  
  .stats-container {
    flex-direction: column;
    gap: 24px;
  }
  .stat-divider {
    display: none;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-large, .bento-medium {
    grid-column: span 1;
  }
  
  .preview-metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .table-mini-header,
  .table-mini-row {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .table-mini-header span:nth-child(2),
  .table-mini-header span:nth-child(4),
  .table-mini-row span:nth-child(2),
  .table-mini-row span:nth-child(4) {
    display: none;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
