/* ==========================================================================
   ServiMax - Landing Page Stylesheet
   Modern, high-conversion SaaS landing page for automotive workshops & servitecas
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-darker: #0f172a;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.35);

  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;
  --accent-glow: rgba(245, 158, 11, 0.4);

  --secondary: #0ea5e9;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0b1329;
  --bg-dark-card: #132247;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border-light: #e2e8f0;
  --border-dark: #1e293b;

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

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.15);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.25);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

img, svg {
  vertical-align: middle;
}

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

button, input, select, textarea {
  font-family: inherit;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Utility Classes & Badges
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

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

.badge-accent {
  background-color: var(--accent-light);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-dark {
  background-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.text-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-title.text-white {
  color: #ffffff;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.section-desc.text-white {
  color: #94a3b8;
}

.section-header {
  text-align: center;
}

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

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

.btn-accent {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.topbar-alert {
  background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 8px 16px;
  text-align: center;
  font-weight: 500;
}

.topbar-alert a {
  color: #fde047;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 6px;
}

.topbar-alert a:hover {
  color: #ffffff;
}

.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

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

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

.brand-logo-img {
  height: 44px;
  width: auto;
}

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

.nav-link {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

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

.btn-login {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-login:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
  background: radial-gradient(1000px 500px at 50% -10%, #e0e7ff 0%, #ffffff 80%);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
  filter: blur(50px);
}

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

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--primary-darker);
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 34px;
}

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

.hero-guarantees {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-guarantees span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-guarantees i {
  color: var(--success);
}

/* Hero Showcase Mockup */
.hero-mockup-wrapper {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  z-index: 2;
}

.mockup-window {
  background: #0f172a;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-dots {
  display: flex;
  gap: 8px;
}

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

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

.mockup-url-bar {
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-full);
  padding: 4px 18px;
  color: #94a3b8;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-content {
  display: flex;
  min-height: 520px;
  background: #f8fafc;
}

/* Mockup Sidebar */
.mock-sidebar {
  width: 230px;
  background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%);
  color: #c7d2fe;
  padding: 18px 14px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.mock-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.mock-sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: #c7d2fe;
  cursor: pointer;
  transition: var(--transition);
}

.mock-nav-item.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 600;
}

.mock-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Mockup Main View */
.mock-main {
  flex: 1;
  padding: 24px;
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mock-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.mock-title h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.mock-title p {
  font-size: 0.8rem;
  color: #64748b;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mock-kpi-card {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.mock-kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.mock-kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.mock-kpi-sub {
  font-size: 0.72rem;
  color: #10b981;
  font-weight: 600;
  margin-top: 4px;
}

/* Mock Kanban Columns */
.mock-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  flex: 1;
}

.mock-kanban-col {
  background: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 4px;
}

.mock-col-badge {
  background: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.mock-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-left: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-card.alert {
  border-left-color: var(--accent);
}

.mock-card.success {
  border-left-color: var(--success);
}

.mock-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
}

.mock-card-plate {
  background: #0f172a;
  color: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.mock-card-vehicle {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}

.mock-card-service {
  font-size: 0.78rem;
  color: #64748b;
}

.mock-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  margin-top: 4px;
  color: #94a3b8;
}

/* Floating Floating Cards */
.hero-floater {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 10;
  animation: floatAnim 4s ease-in-out infinite;
}

.floater-1 {
  top: 15%;
  left: -40px;
  animation-delay: 0s;
}

.floater-2 {
  bottom: 20%;
  right: -30px;
  animation-delay: 2s;
}

.floater-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.floater-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}

.floater-icon.green {
  background: #ecfdf5;
  color: #10b981;
}

.floater-text h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.floater-text p {
  font-size: 0.78rem;
  color: #64748b;
}

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

/* ==========================================================================
   Trust / Stats Bar
   ========================================================================== */
.stats-bar {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0;
}

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

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   Comparison Section (Problem vs Solution)
   ========================================================================== */
.comparison-section {
  padding: 100px 0;
  background-color: var(--bg-subtle);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1060px;
  margin: 0 auto;
}

.comp-card {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}

.comp-card.bad {
  background: #ffffff;
  border: 1px solid #fee2e2;
  box-shadow: var(--shadow-sm);
}

.comp-card.good {
  background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
  border: 2px solid #93c5fd;
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.12);
}

.comp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.comp-badge.bad {
  background: #fee2e2;
  color: #b91c1c;
}

.comp-badge.good {
  background: #dbeafe;
  color: #1d4ed8;
}

.comp-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--text-main);
  line-height: 1.5;
}

.comp-list li i {
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.comp-card.bad .comp-list li i {
  color: #ef4444;
}

.comp-card.good .comp-list li i {
  color: #10b981;
}

/* ==========================================================================
   Segments (Servitecas & Talleres)
   ========================================================================== */
.segments-section {
  padding: 100px 0;
  background: #ffffff;
}

.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.segment-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.segment-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: #93c5fd;
}

.segment-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.segment-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.segment-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
  line-height: 1.55;
}

.segment-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.segment-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 500;
}

.segment-features li i {
  color: var(--primary);
  font-size: 0.85rem;
}

/* ==========================================================================
   Interactive Modules Deep Dive
   ========================================================================== */
.modules-section {
  padding: 100px 0;
  background: #0b1329;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.modules-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.modules-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  position: relative;
  z-index: 2;
}

.module-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.module-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.module-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
}

/* Module Showcase Box */
.module-showcase {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 44px;
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.module-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.module-info h3 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
}

.module-info p {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.6;
}

.module-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.module-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.module-checklist li i {
  color: var(--accent);
  margin-top: 4px;
}

/* Module Screen Visual Container */
.module-screen-container {
  background: #111c33;
  border: 1px solid #1e2d4a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.module-screen-header {
  background: #182849;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e2d4a;
}

.module-screen-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e7eef7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-screen-body {
  padding: 24px;
  min-height: 380px;
}

/* Mini visual components inside screen */
.screen-ot-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.screen-card-box {
  background: #192744;
  border: 1px solid #283d66;
  border-radius: var(--radius-sm);
  padding: 14px;
}

.screen-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.screen-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.screen-photo-thumb {
  background: #0b1220;
  border-radius: 6px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px dashed #3b507d;
  color: #64748b;
  position: relative;
  overflow: hidden;
}

.screen-photo-thumb.has-photo {
  background-size: cover;
  background-position: center;
  border-style: solid;
  border-color: #3b82f6;
}

.screen-photo-thumb span {
  position: absolute;
  bottom: 2px;
  left: 4px;
  font-size: 0.65rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 4px;
  border-radius: 3px;
}

/* ==========================================================================
   Interactive ROI Calculator
   ========================================================================== */
.roi-section {
  padding: 100px 0;
  background: var(--bg-subtle);
}

.roi-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.roi-control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roi-label-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-main);
}

.roi-val-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
}

.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #e2e8f0;
  outline: none;
  transition: var(--transition);
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--primary-glow);
  border: 2px solid #ffffff;
  transition: var(--transition);
}

.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.roi-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--primary-glow);
  border: 2px solid #ffffff;
}

/* ROI Output Dashboard */
.roi-results-box {
  background: linear-gradient(145deg, #1e3a8a 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  color: #ffffff;
  box-shadow: 0 15px 40px rgba(30, 58, 138, 0.3);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.roi-results-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.roi-result-header h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #93c5fd;
  margin-bottom: 6px;
}

.roi-result-main-val {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fde047;
}

.roi-result-sub {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.roi-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.roi-metric h5 {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.roi-metric p {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
  padding: 100px 0;
  background: #ffffff;
}

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 50px;
}

.toggle-label {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.pricing-switch {
  position: relative;
  width: 56px;
  height: 30px;
  background: #cbd5e1;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.pricing-switch.active {
  background: var(--primary);
}

.switch-circle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.pricing-switch.active .switch-circle {
  left: 29px;
}

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

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 15px 45px rgba(37, 99, 235, 0.15);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 42px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.plan-currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.plan-period {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.plan-features li i {
  color: var(--success);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.plan-features li.disabled {
  color: #94a3b8;
}

.plan-features li.disabled i {
  color: #cbd5e1;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-section {
  padding: 100px 0;
  background: var(--bg-subtle);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.test-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: flex;
  gap: 3px;
}

.test-quote {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 24px;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.test-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.test-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.test-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 100px 0;
  background: #ffffff;
}

.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-icon {
  font-size: 0.95rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 22px;
}

/* ==========================================================================
   Demo & Contact Form (Lead Gen)
   ========================================================================== */
.demo-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: #ffffff;
  position: relative;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 50px;
  align-items: center;
}

.demo-content h2 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.demo-content p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.demo-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.demo-bullets li i {
  color: var(--accent);
  font-size: 1.2rem;
}

.demo-form-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  color: var(--text-main);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.demo-form-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.demo-form-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-main);
  background: #f8fafc;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 18px 0;
  color: #94a3b8;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-floating {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: var(--transition);
  animation: waPulse 2.5s infinite;
}

.wa-btn:hover {
  transform: scale(1.1);
  background: #20ba5c;
}

.wa-tooltip {
  background: #ffffff;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: var(--transition);
}

.whatsapp-floating:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-title { font-size: 2.8rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .segments-grid { grid-template-columns: 1fr; }
  .module-showcase { grid-template-columns: 1fr; gap: 30px; padding: 30px; }
  .roi-card { grid-template-columns: 1fr; gap: 36px; padding: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-8px); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .floater-1, .floater-2 { display: none; }
}

@media (max-width: 768px) {
  .hero { padding: 40px 0 60px; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .section-title { font-size: 1.9rem; }
  .nav-menu {
    position: fixed;
    top: 74px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .mobile-toggle { display: block; }
  .nav-actions .btn-primary { display: none; }
  .comparison-grid { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
  .mock-kanban { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}


/* ---- Pantallas reales de la app (hero y módulos) ---- */
.mock-sidebar { overflow-y: auto; }
.mock-sidebar-menu { gap: 2px; }
.mock-sidebar .mock-nav-item { padding: 6px 10px; font-size: 0.78rem; }
.mock-sidebar .mock-nav-item:focus-visible { outline: 2px solid #60a5fa; outline-offset: 1px; }
.mock-userinfo {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-direction: column; gap: 3px; font-size: 0.7rem; color: #c7d2fe;
}
.mock-userinfo strong { color: #fff; font-size: 0.74rem; }
.mock-userinfo i { width: 14px; opacity: .8; }
.mock-main.mock-shot { padding: 0; gap: 0; background: #f1f5f9; position: relative; min-height: 0; }
.mock-main.mock-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.mockup-content { min-height: 0; height: clamp(420px, 46vw, 640px); }
.module-screen-body { padding: 0; min-height: 0; }
.module-shot { display: block; width: 100%; height: auto; }
.video-section { padding: 90px 0; background: #f8fafc; }
.video-frame { max-width: 960px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(15,23,42,.25); background: #0f172a; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0f172a; }
.video-link { text-align: center; margin-top: 16px; }
.video-link a { color: var(--primary); font-weight: 600; }
@media (max-width: 900px) { .mockup-content { height: auto; } .mock-main.mock-shot { min-height: 260px; aspect-ratio: 1344 / 900; } }

/* Ajustes: menú del hero completo (20 ítems) y barra superior sin saltos de línea */
.mockup-content { height: auto; min-height: 0; }
.mock-sidebar { overflow-y: visible; padding: 14px 12px; }
.mock-sidebar .mock-nav-item { padding: 4px 10px; font-size: 0.74rem; }
.mock-sidebar-brand { margin-bottom: 8px; }
.mock-main.mock-shot { min-height: 0; background: #f1f5f9; }
.mock-main.mock-shot img { position: static; width: 100%; height: auto; object-fit: initial; }
.nav-link { white-space: nowrap; }
.nav-menu { gap: 18px; }
.btn-login { white-space: nowrap; }
@media (max-width: 1180px) { .nav-menu { gap: 12px; } .nav-link { font-size: 0.85rem; } }
.floater-1 { top: -34px; left: auto; right: 60px; }
.floater-2 { bottom: -28px; right: 40px; }
@media (max-width: 768px) { .btn-login { white-space: normal; } .nav-actions { min-width: 0; } }
@media (max-width: 768px) {
  .mockup-url-bar { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.7rem; padding: 4px 10px; }
  .mockup-header > div:last-child { display: none; }
}
