/* ==========================================================================
   LEAL CONTROL ERP 2.0 - PUBLIC WEBSITE STYLESHEET (LIGHT THEME)
   ========================================================================== */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  
  --ink-main: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #64748b;
  --ink-light: #94a3b8;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #dbeafe;
  --accent-glow: rgba(37, 99, 235, 0.25);

  --emerald: #10b981;
  --emerald-light: #d1fae5;
  --indigo: #6366f1;
  --amber: #f59e0b;
  --rose: #f43f5e;

  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

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

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

/* Typography Helpers */
h1, h2, h3, h4 {
  color: var(--ink-main);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

p {
  color: var(--ink-soft);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn.secondary {
  background: var(--bg-surface);
  color: var(--ink-main);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
  background: var(--bg-alt);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--ink-soft);
}

.btn.ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink-main);
}

.btn.lg {
  padding: 15px 30px;
  font-size: 1.05rem;
  border-radius: 16px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
}

.badge.primary {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge.success {
  background: var(--emerald-light);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 58px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo:hover img {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

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

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

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background: radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.08) 0%, transparent 65%);
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--ink-main);
}

.hero h1 span.gradient {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.subtitle {
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-weight: 500;
  margin-bottom: 60px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hero Mockup Preview Window */
.hero-mockup-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  text-align: left;
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.window-dots {
  display: flex;
  gap: 6px;
}

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

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

.window-url {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 24px;
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--ink-muted);
}

.mockup-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 520px;
  background: #ffffff;
}

.mockup-sidebar {
  background: #f8fafc;
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mockup-nav-item.active {
  background: var(--accent-light);
  color: var(--accent);
}

.mockup-main {
  padding: 24px 28px;
  background: #ffffff;
}

/* Feature Modules Showcase */
.section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-head h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 1.1rem;
}

.modules-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.tab-pill {
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #ffffff;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-pill:hover {
  background: var(--bg-alt);
  border-color: var(--line-strong);
}

.tab-pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Module Showcase Card */
.module-showcase {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
}

.module-info h3 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.module-info p {
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.module-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.module-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-main);
}

.module-features-list li span.check {
  color: var(--emerald);
  font-weight: 900;
  font-size: 1.1rem;
}

.module-preview-box {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: var(--bg-alt);
}

/* Pricing Section */
.pricing-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 16px 36px -8px var(--accent-glow);
}

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

.pricing-price {
  font-size: 2.8rem;
  font-weight: 900;
  margin: 16px 0 8px;
  color: var(--ink-main);
}

.pricing-price span.period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-muted);
}

/* Modal "Solicitá tu Demo" */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 36px;
  transform: translateY(20px) scale(0.98);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.modal-close:hover {
  background: var(--bg-alt);
  color: var(--ink-main);
}

/* Form inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
}

.checkbox-label:hover {
  border-color: var(--line-strong);
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.5rem; }
  .module-showcase { grid-template-columns: 1fr; }
  .mockup-inner { grid-template-columns: 1fr; }
  .mockup-sidebar { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
