/* ==========================================================================
   DAMISOFT - SYSTEM OF DESIGN & CUSTOM STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Common variables */
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-secondary: 'Outfit', sans-serif;
  
  --primary: #06b6d4;
  --primary-rgb: 6, 182, 212;
  --primary-dark: #0891b2;
  --indigo: #6366f1;
  --indigo-rgb: 99, 102, 241;
  
  --grad-primary: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  --grad-primary-hover: linear-gradient(135deg, #0891b2 0%, #4f46e5 100%);
  --grad-accent: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.35);
  
  /* Theme-specific variables (Default: Dark Mode) */
  --bg-main: #070a13;
  --bg-sec: #0c1020;
  --bg-card: rgba(18, 24, 46, 0.7);
  --bg-card-hover: rgba(26, 34, 64, 0.85);
  
  --text-main: #94a3b8;
  --text-muted: #64748b;
  --text-title: #f8fafc;
  
  --border-color: rgba(255, 255, 255, 0.07);
  --border-color-hover: rgba(6, 182, 212, 0.4);
  
  --nav-bg: rgba(7, 10, 19, 0.8);
  --nav-border: rgba(255, 255, 255, 0.05);
  
  --input-bg: rgba(13, 18, 36, 0.8);
  --input-focus-border: #06b6d4;
  
  --grid-color: rgba(99, 102, 241, 0.03);
  --hero-bg-overlay: linear-gradient(to bottom, rgba(7, 10, 19, 0.94), rgba(7, 10, 19, 0.88));
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-sec: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  
  --text-main: #475569;
  --text-muted: #64748b;
  --text-title: #0f172a;
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-hover: rgba(99, 102, 241, 0.3);
  
  --nav-bg: rgba(248, 250, 252, 0.85);
  --nav-border: rgba(15, 23, 42, 0.06);
  
  --input-bg: rgba(255, 255, 255, 0.95);
  --input-focus-border: #6366f1;
  
  --grid-color: rgba(99, 102, 241, 0.04);
  --hero-bg-overlay: linear-gradient(to bottom, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.9));
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-title);
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.25;
  transition: color var(--transition-normal);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 8rem 0;
  position: relative;
}

.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-alt {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid Background */
.bg-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Animated Blur Blobs */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

[data-theme="light"] .glow-blob {
  opacity: 0.08;
}

.glow-blob-primary {
  background: var(--primary);
  width: 400px;
  height: 400px;
  top: -100px;
  right: -50px;
  animation: float-blob-1 25s infinite alternate ease-in-out;
}

.glow-blob-secondary {
  background: var(--indigo);
  width: 500px;
  height: 500px;
  bottom: 10%;
  left: -200px;
  animation: float-blob-2 30s infinite alternate ease-in-out;
}

.glow-blob-tertiary {
  background: #a855f7;
  width: 350px;
  height: 350px;
  top: 40%;
  right: 15%;
  animation: float-blob-1 20s infinite alternate-reverse ease-in-out;
}

@keyframes float-blob-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 80px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

@keyframes float-blob-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, -90px) scale(0.9); }
  100% { transform: translate(40px, -50px) scale(1.15); }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
  background: var(--grad-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(6, 182, 212, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-title);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--text-title);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.03);
}

.btn-large {
  padding: 1.1rem 2.8rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   NAVBAR & HEADER
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background: var(--nav-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--text-title);
}

.logo img {
  height: 38px;
  width: auto;
  border-radius: 8px;
  transition: transform var(--transition-normal);
}

.logo:hover img {
  transform: rotate(5deg) scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-title);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--grad-primary);
  border-radius: 4px;
  transition: width var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Nav Actions & Theme Switcher */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-title);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  outline: none;
}

.theme-toggle-btn:hover {
  background: var(--border-color);
  transform: scale(1.05);
}

.theme-toggle-btn .sun-icon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .moon-icon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: block;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-title);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  padding-top: 10rem;
  padding-bottom: 7rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-image: var(--hero-bg-overlay), url(/hero-bg.png);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse-badge 2s infinite alternate;
}

[data-theme="light"] .hero-badge {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
  color: var(--indigo);
}

@keyframes pulse-badge {
  0% { transform: translateY(0); box-shadow: 0 0 0 rgba(6, 182, 212, 0); }
  100% { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1); }
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

/* 3D Canvas Visual */
.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

#canvas3d {
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  z-index: 5;
  cursor: grab;
  filter: drop-shadow(0 15px 30px rgba(6, 182, 212, 0.15));
}

[data-theme="light"] #canvas3d {
  filter: drop-shadow(0 15px 30px rgba(99, 102, 241, 0.1));
}

#canvas3d:active {
  cursor: grabbing;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

[data-theme="light"] .section-tag {
  color: var(--indigo);
}

.section-header h2 {
  margin-bottom: 1.25rem;
}

.section-header p {
  color: var(--text-main);
  font-size: 1.1rem;
}

/* ==========================================================================
   SERVICES GRID LAYOUT (FLAT CARDS)
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2.25rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

/* 2D subtle hover glow */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(6, 182, 212, 0.04), transparent 45%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .service-card:hover {
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.08);
}

.service-card .icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 2;
  transition: all var(--transition-normal);
}

.service-card:hover .icon-box {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  transform: scale(1.06) rotate(3deg);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.25);
}

[data-theme="light"] .service-card .icon-box {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
  color: var(--indigo);
}

[data-theme="light"] .service-card:hover .icon-box {
  background: var(--grad-primary);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.service-card .icon-box i {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-title);
  position: relative;
  z-index: 2;
}

.service-card p {
  color: var(--text-main);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.service-card-badge {
  position: absolute;
  top: 15px;
  right: -35px;
  background: var(--grad-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.35rem 2.5rem;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(168, 85, 247, 0.2);
  z-index: 5;
}

/* ==========================================================================
   BILLING (FACTURACION ELECTRONICA) SECTION
   ========================================================================== */

.billing-section {
  position: relative;
  background: var(--bg-main);
  transition: background-color var(--transition-normal);
}

.billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.billing-content {
  position: relative;
  z-index: 10;
}

.billing-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.billing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.billing-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

[data-theme="light"] .billing-feature-icon {
  background: rgba(99, 102, 241, 0.08);
  color: var(--indigo);
}

.billing-feature-icon i {
  width: 14px;
  height: 14px;
}

.billing-feature-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-title);
}

.billing-feature-text p {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 0;
}

/* Billing Mockup 3D Dashboard Styling */
.billing-mockup-container {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  z-index: 10;
}

.billing-mockup {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: border-color var(--transition-normal), background-color var(--transition-normal);
  transform-style: preserve-3d;
}

.billing-mockup:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

/* Dashboard Mock Header */
.mock-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mock-dot-red { background: #ef4444; }
.mock-dot-yellow { background: #eab308; }
.mock-dot-green { background: #22c55e; }
 
.mock-header-title {
  font-family: var(--font-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.sri-badge {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sri-badge i {
  width: 12px;
  height: 12px;
}

/* Dashboard Mock Content */
.mock-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Billing Stats Widgets */
.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mock-stat-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
}

.mock-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 0.25rem;
}

.mock-stat-value {
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-title);
}

.mock-stat-value.value-green {
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.15);
}

/* Income Chart Mockup */
.mock-chart-container {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
}

.mock-chart-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 1rem;
  display: block;
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100px;
  padding-top: 10px;
}

.mock-chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 14%;
}

.mock-chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--grad-primary);
  transition: height 1s ease-out;
  position: relative;
}

.mock-chart-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, transparent, rgba(255, 255, 255, 0.15));
  border-radius: 4px 4px 0 0;
}

.mock-chart-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Mock Recent Invoice Rows */
.mock-invoices-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mock-invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.mock-inv-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mock-inv-no {
  font-weight: 700;
  color: var(--text-title);
}

.mock-inv-client {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.mock-inv-amount {
  font-weight: 700;
  color: var(--text-title);
  margin-right: 1rem;
}

.mock-inv-status {
  font-size: 0.7rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mock-inv-status i {
  width: 10px;
  height: 10px;
}

/* Custom responsive rules for Billing Section */
@media (max-width: 900px) {
  .billing-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  
  .billing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .billing-features {
    text-align: left;
  }
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats-section {
  background: var(--bg-sec);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 5rem 0;
  position: relative;
  z-index: 2;
  transition: background-color var(--transition-normal);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-color);
}

@media (max-width: 768px) {
  .stat-item:not(:last-child)::after {
    display: none;
  }
}

.stat-number {
  display: block;
  font-size: clamp(3rem, 6vw, 4.25rem);
  font-family: var(--font-secondary);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-title);
  opacity: 0.9;
}

/* ==========================================================================
   WORKFLOW SECTION (PROCESS)
   ========================================================================== */

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 2px;
  height: calc(100% - 20px);
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 4rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 4px solid var(--primary);
  z-index: 2;
  transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary);
  transform: scale(1.15);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  margin-left: 1.5rem;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.timeline-item:hover .timeline-content {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  transform: translateX(5px);
}

.timeline-step {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

[data-theme="light"] .timeline-step {
  color: var(--indigo);
}

.timeline-content h3 {
  margin-bottom: 0.75rem;
}

.timeline-content p {
  margin-bottom: 0;
  color: var(--text-main);
  font-size: 0.95rem;
}

/* ==========================================================================
   FAQ SECTION (ACCORDION)
   ========================================================================== */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.faq-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 0;
  padding-right: 1.5rem;
}

.faq-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-title);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.faq-item:hover .faq-icon-box {
  color: var(--primary);
  border-color: var(--border-color-hover);
}

.faq-icon-box i {
  transition: transform var(--transition-normal);
  width: 18px;
  height: 18px;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--transition-normal) ease-out, opacity var(--transition-normal) ease-out;
}

.faq-content {
  padding: 0 2rem 1.75rem;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Active FAQ states */
.faq-item.active {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.15);
}

.faq-item.active .faq-icon-box {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
}

.faq-item.active .faq-icon-box i {
  transform: rotate(180deg);
}

.faq-item.active .faq-body {
  opacity: 1;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-container {
  background: var(--bg-sec);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 5;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color var(--transition-normal);
}

.cta-container::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 60%);
  pointer-events: none;
}

.cta-container::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 60%);
  pointer-events: none;
}

.cta-container h2 {
  margin-bottom: 1.25rem;
}

.cta-container p {
  color: var(--text-main);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  position: relative;
  z-index: 10;
}

.contact-info h2 {
  margin-bottom: 1.25rem;
}

.contact-info > p {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 3rem;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.info-card:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.info-card .info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.info-card:hover .info-icon {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
}

.info-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.info-card p,
.info-card a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 0;
}

/* Contact Form Styles */
.contact-form {
  background: var(--bg-card);
  padding: 3.5rem 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
  transition: border-color var(--transition-normal);
}

.contact-form:focus-within {
  border-color: var(--border-color-hover);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-title);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-normal);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group label {
  position: absolute;
  left: 1.25rem;
  top: 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  pointer-events: none;
  background: transparent;
  padding: 0 0.25rem;
}

/* Floating Label Effects */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-main);
  border-radius: 4px;
}

[data-theme="light"] .form-group input:focus ~ label,
[data-theme="light"] .form-group input:not(:placeholder-shown) ~ label,
[data-theme="light"] .form-group textarea:focus ~ label,
[data-theme="light"] .form-group textarea:not(:placeholder-shown) ~ label {
  color: var(--indigo);
  background: var(--bg-card);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.contact-form button {
  width: 100%;
  font-size: 1.05rem;
  padding: 1.1rem 2rem;
}

/* Button Loading State */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background-color: var(--bg-sec);
  border-top: 1px solid var(--border-color);
  padding: 6rem 0 2rem;
  position: relative;
  z-index: 10;
  transition: background-color var(--transition-normal);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand .logo {
  margin-bottom: 0;
}

.footer-brand p {
  color: var(--text-main);
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--text-title);
  margin-bottom: 1.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-secondary);
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-main);
  font-size: 0.95rem;
  align-self: flex-start;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

[data-theme="light"] .footer-links a:hover {
  color: var(--indigo);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.footer-contact i {
  color: var(--primary);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

[data-theme="light"] .footer-contact i {
  color: var(--indigo);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition-normal);
  outline: none;
  border: none;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  background-color: #20ba5a;
}

.whatsapp-float i {
  width: 28px;
  height: 28px;
}

/* Pulse radar effect */
.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: pulse-whatsapp 2s infinite;
  opacity: 0.4;
}

@keyframes pulse-whatsapp {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--bg-sec);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 440px;
  width: 90%;
  position: relative;
  animation: slideIn var(--transition-normal);
  transition: background-color var(--transition-normal);
}

@keyframes slideIn {
  0% { transform: translateY(-30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.close-modal:hover {
  color: var(--text-title);
}

#modalIcon {
  margin-bottom: 1.5rem;
  display: inline-flex;
  justify-content: center;
}

#modalTitle {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

#modalMessage {
  color: var(--text-main);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

#closeModalBtn {
  width: 100%;
  max-width: 200px;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON & PULSE ANIMATION
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  color: #fff;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 25px;
  height: 25px;
  display: block;
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.7;
  z-index: -1;
  animation: waPulsePulse 2.2s infinite;
}

@keyframes waPulsePulse {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}


/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
  opacity: 0;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-fade {
  transform: scale(0.98);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Delay helpers for animations */
.reveal.visible.delay-100 { transition-delay: 0.1s; }
.reveal.visible.delay-200 { transition-delay: 0.2s; }
.reveal.visible.delay-300 { transition-delay: 0.3s; }
.reveal.visible.delay-400 { transition-delay: 0.4s; }
.reveal.visible.delay-500 { transition-delay: 0.5s; }

/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {
  .section-padding {
    padding: 6rem 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero p {
    margin: 0 auto 2.5rem;
  }
  
  .hero-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .billing-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .billing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .billing-features {
    text-align: left;
    width: 100%;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .footer-content {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }
  
  .footer-contact {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline-content {
    padding: 1.75rem;
    margin-left: 0.75rem;
  }
  
  .timeline-dot {
    left: -1.75rem;
  }
  
  .contact-form {
    padding: 2.5rem 1.75rem;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .whatsapp-float {
    display: none !important; /* Hide floating button completely on mobile screens */
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-contact {
    grid-column: span 1;
  }
  
  .cta-container {
    padding: 4rem 1.5rem;
  }
  
  .modal-content {
    padding: 2.25rem 1.25rem;
  }
  
  /* Prevent CTA and other button text overflows on small screens */
  .btn {
    white-space: normal !important;
    text-align: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.88rem;
  }
  
  .btn-large {
    padding: 0.95rem 1.8rem;
    font-size: 0.92rem;
  }
}
