/**
 * FacilSolución - Estilos Principales (Pro Edition)
 * Diseño moderno, profesional y minimalista
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colores principales - Deeper, richer blues */
    --primary-50: #f0f7ff;
    --primary-100: #e0f0fe;
    --primary-200: #bae2fd;
    --primary-300: #7ccbfd;
    --primary-400: #36b2fa;
    --primary-500: #0c96eb;
    --primary-600: #0077c8; /* Nuevo color principal de marca */
    --primary-700: #015fa2;
    --primary-800: #065186;
    --primary-900: #0a436f;

    /* Superficies y Fondos */
    --surface-0: #ffffff;
    --surface-50: #f8fafc;
    --surface-100: #f1f5f9;
    --surface-200: #e2e8f0;
    --surface-300: #cbd5e1;
    --surface-glass: rgba(255, 255, 255, 0.7);

    /* Colores de acento - Modernos y vibrantes */
    --accent-emerald: #10b981;
    --accent-violet: #8b5cf6;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-cyan: #06b6d4;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    --gradient-accent: linear-gradient(135deg, #0077c8 0%, #8b5cf6 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(56, 189, 248, 0.15), transparent 70%);

    /* Texto */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-inverted: #ffffff;

    /* Tipografía */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', sans-serif; /* Para títulos con mayor peso */
    
    /* Espaciado ajustado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-section: 6rem;

    /* Bordes y Sombras */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px -10px rgba(0, 119, 200, 0.3);
    
    /* Transiciones */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
}

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

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--surface-0);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    letter-spacing: -0.02em; /* Tight tracking for modern feel */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-out);
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-glass {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Animaciones de entrada */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--duration-normal) var(--ease-out);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--surface-200);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 119, 200, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 119, 200, 0.3);
}

.btn-secondary {
    background: var(--surface-100);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--surface-200);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding-top: 140px;
    padding-bottom: var(--spacing-section);
    position: relative;
    overflow: hidden;
}

/* Fondo Dinámico */
.hero-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
    animation: rotate 60s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-50);
    color: var(--primary-700);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    border-top: 1px solid var(--surface-200);
    padding-top: var(--spacing-lg);
}

/* 3D Dashboard Preview */
.hero-visual {
    position: relative;
    perspective: 2000px;
}

/* Floating Elements Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.dashboard-preview {
    background: var(--surface-0);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border: 1px solid var(--surface-200);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform var(--duration-slow) var(--ease-out);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.dashboard-preview:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

/* Estilos internos del dashboard simulado */
.dashboard-header {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid var(--surface-200);
    gap: 1rem;
}
.dashboard-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.dashboard-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    height: 400px;
}
.dashboard-sidebar {
    background: var(--surface-50);
    padding: 1rem;
    border-right: 1px solid var(--surface-200);
}
.sidebar-item {
    height: 10px;
    background: var(--surface-200);
    margin-bottom: 1rem;
    border-radius: 4px;
    width: 80%;
}
.dashboard-main {
    padding: 1.5rem;
    background: var(--surface-0);
}

/* Gráficos simulados */
.chart-sim {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 2rem;
}
.chart-bar {
    flex: 1;
    background: var(--primary-100);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
}
.chart-bar:hover {
    background: var(--primary-500);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: var(--spacing-section) 0;
    background: var(--surface-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--surface-0);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--surface-100);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.feature-desc {
    color: var(--text-muted);
}

/* Stats Counter */
.counter-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
}
.counter-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   TRUSTED BY
   ============================================ */
.trusted-by {
    padding: var(--spacing-2xl) 0;
    border-bottom: 1px solid var(--surface-200);
}
.trusted-logos {
    display: flex;
    justify-content: center;
    gap: 4rem;
    opacity: 0.6;
    filter: grayscale(100%);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0f172a; /* Slate 900 */
    color: #e2e8f0;
    padding: var(--spacing-section) 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.footer ul li { margin-bottom: 0.8rem; }
.footer a { color: #94a3b8; }
.footer a:hover { color: white; }
.footer-brand p { color: #94a3b8; max-width: 300px; margin-top: 1rem; }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-link svg { width: 24px; height: 24px; fill: #94a3b8; }
.social-link:hover svg { fill: white; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-50);
    color: var(--primary-700);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, var(--surface-50) 0%, var(--surface-0) 100%);
    text-align: center;
}

.page-hero-small {
    padding: 140px 0 60px;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   SERVICES DETAIL PAGE
   ============================================ */
.services-detail {
    padding: var(--spacing-section) 0;
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    margin-bottom: var(--spacing-section);
    padding-bottom: var(--spacing-section);
    border-bottom: 1px solid var(--surface-200);
}

.service-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-block.reverse {
    direction: rtl;
}

.service-block.reverse > * {
    direction: ltr;
}

.service-content {
    padding-right: var(--spacing-xl);
}

.service-block.reverse .service-content {
    padding-right: 0;
    padding-left: var(--spacing-xl);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-icon.blue {
    background: rgba(0, 119, 200, 0.1);
    color: var(--primary-600);
}

.service-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
}

.service-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-violet);
}

.service-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-amber);
}

.service-icon.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
}

.service-icon.pink {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-rose);
}

.service-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.service-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.service-features {
    margin-bottom: var(--spacing-xl);
}

.service-feature {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.service-feature svg {
    width: 24px;
    height: 24px;
    color: var(--accent-emerald);
    flex-shrink: 0;
    margin-top: 2px;
}

.service-feature strong {
    display: block;
    margin-bottom: 0.25rem;
}

.service-feature span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Service Mockups */
.service-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-mockup {
    background: var(--surface-0);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--surface-200);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.mockup-header {
    background: var(--surface-50);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--surface-200);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.mockup-content {
    padding: 1.5rem;
}

.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mockup-card {
    background: var(--surface-50);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-100);
}

.mockup-card-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.mockup-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.mockup-card-trend {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.mockup-card-trend.up {
    color: var(--accent-emerald);
}

.mockup-card-trend.down {
    color: var(--accent-rose);
}

/* Pipeline Mockup */
.pipeline-columns {
    display: flex;
    gap: 0.75rem;
}

.pipeline-column {
    flex: 1;
    background: var(--surface-50);
    border-radius: var(--radius-md);
    padding: 0.75rem;
}

.pipeline-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.pipeline-card {
    background: var(--surface-0);
    height: 40px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    border: 1px solid var(--surface-200);
}

.pipeline-card.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-emerald);
}

/* Invoice Mockup */
.mockup-invoice {
    padding: 2rem;
    text-align: center;
}

.invoice-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.invoice-number {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.invoice-details {
    border-top: 1px solid var(--surface-200);
    border-bottom: 1px solid var(--surface-200);
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.invoice-line-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.invoice-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.invoice-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.invoice-status.paid {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
}

/* Stock Mockup */
.stock-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--surface-50);
    border-radius: var(--radius-md);
}

.stock-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stock-sku {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stock-level {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.level-bar {
    width: 80px;
    height: 8px;
    background: var(--surface-200);
    border-radius: 4px;
    overflow: hidden;
}

.level-bar::before {
    content: '';
    display: block;
    height: 100%;
    width: var(--level);
    border-radius: 4px;
}

.stock-level.high .level-bar::before {
    background: var(--accent-emerald);
}

.stock-level.medium .level-bar::before {
    background: var(--accent-amber);
}

.stock-level.low .level-bar::before {
    background: var(--accent-rose);
}

.stock-level span {
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

/* Code Mockup */
.code-mockup .mockup-content {
    background: #1e293b;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
}

.code-line {
    color: #e2e8f0;
}

.code-keyword {
    color: #c084fc;
}

.code-class {
    color: #fbbf24;
}

.code-this {
    color: #f87171;
}

.code-boolean {
    color: #34d399;
}

.code-function {
    color: #60a5fa;
}

.code-string {
    color: #34d399;
}

/* ============================================
   SERVICES PREVIEW (Home Page Tabs)
   ============================================ */
.services-preview {
    padding: var(--spacing-section) 0;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--surface-100);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.tab-btn:hover {
    background: var(--surface-200);
}

.tab-btn.active {
    background: var(--primary-600);
    color: white;
}

.tab-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.tab-panel.active {
    display: grid;
}

.tab-image {
    display: flex;
    justify-content: center;
}

.tab-info h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
}

.tab-info p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.feature-list svg {
    width: 20px;
    height: 20px;
    color: var(--accent-emerald);
}

/* Service Illustrations */
.service-illustration {
    width: 300px;
    height: 250px;
    background: var(--surface-50);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--surface-200);
}

.illustration-modules {
    display: grid;
    grid-template-columns: repeat(2, 80px);
    gap: 0.75rem;
    position: relative;
}

.module {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.module.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-600);
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.illustration-funnel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.funnel-stage {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    width: var(--width);
    text-align: center;
}

.illustration-invoice {
    text-align: center;
}

.illustration-invoice .invoice-header {
    width: 150px;
    height: 20px;
    background: var(--surface-200);
    border-radius: var(--radius-sm);
    margin: 0 auto 1rem;
}

.invoice-lines .invoice-line {
    width: 180px;
    height: 12px;
    background: var(--surface-200);
    border-radius: var(--radius-sm);
    margin: 0.5rem auto;
}

.invoice-total {
    width: 100px;
    height: 16px;
    background: var(--primary-200);
    border-radius: var(--radius-sm);
    margin: 1rem auto 0;
}

.invoice-stamp {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent-emerald);
    color: var(--accent-emerald);
    font-weight: 700;
    border-radius: var(--radius-sm);
    transform: rotate(-5deg);
}

.illustration-warehouse {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.warehouse-shelf {
    display: flex;
    gap: 0.5rem;
}

.shelf-box {
    width: 50px;
    height: 40px;
    background: var(--primary-100);
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary-200);
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-us {
    padding: var(--spacing-section) 0;
    background: var(--surface-50);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.why-us-content .section-badge {
    display: inline-block;
}

.why-us-content .section-title {
    text-align: left;
    margin-bottom: var(--spacing-lg);
}

.why-us-content > p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.why-us-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.why-feature {
    display: flex;
    gap: var(--spacing-md);
}

.why-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-feature-icon svg {
    width: 24px;
    height: 24px;
}

.why-feature h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.why-feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Testimonial Card */
.testimonial-card {
    background: var(--surface-0);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote svg {
    width: 40px;
    height: 40px;
    color: var(--primary-200);
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    color: var(--text-main);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-info strong {
    display: block;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: var(--spacing-section) 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.cta p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: var(--primary-700);
}

.btn-white:hover {
    background: var(--surface-100);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--surface-300);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-600);
    color: var(--primary-600);
}

.btn-block {
    width: 100%;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-teaser {
    padding: var(--spacing-section) 0;
    background: var(--surface-50);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--surface-0);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    border: 1px solid var(--surface-200);
    position: relative;
    transition: all var(--duration-normal);
}

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

.pricing-card.featured {
    border-color: var(--primary-600);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

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

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-600);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pricing-price {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--surface-200);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price-period {
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-emerald);
    font-weight: 700;
}

/* ============================================
   ABOUT PAGE - MISSION & VISION
   ============================================ */
.mission-vision {
    padding: var(--spacing-section) 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.mv-card {
    background: var(--surface-50);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.mv-icon svg {
    width: 40px;
    height: 40px;
}

.mv-card h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.mv-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Values Section */
.values {
    padding: var(--spacing-section) 0;
    background: var(--surface-50);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.value-card {
    background: var(--surface-0);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--surface-200);
}

.value-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-100);
    margin-bottom: var(--spacing-md);
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Story Section */
.story {
    padding: var(--spacing-section) 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
}

.story-content .section-badge {
    display: inline-block;
}

.story-content h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
}

.story-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

/* Timeline */
.story-timeline {
    position: relative;
    padding-left: var(--spacing-xl);
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--surface-200);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--spacing-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--spacing-xl) - 5px);
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--surface-200);
    border-radius: 50%;
}

.timeline-item.active::before {
    background: var(--primary-600);
}

.timeline-year {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
    padding: var(--spacing-section) 0;
    background: var(--surface-50);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--surface-0);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 800;
}

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

/* Team Section */
.team {
    padding: var(--spacing-section) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.team-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--surface-50);
    border-radius: var(--radius-xl);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-md);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.team-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--primary-600);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.team-bio {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
    padding: var(--spacing-section) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-3xl);
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.contact-method {
    display: flex;
    gap: var(--spacing-md);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 24px;
    height: 24px;
}

.contact-method-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-method-info a {
    color: var(--primary-600);
    font-weight: 500;
}

.contact-method-info span {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.contact-social h4 {
    margin-bottom: var(--spacing-md);
}

.contact-faq {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--surface-200);
}

.contact-faq h4 {
    margin-bottom: var(--spacing-md);
}

.faq-item {
    margin-bottom: var(--spacing-md);
}

.faq-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--surface-50);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
}

.form-header {
    margin-bottom: var(--spacing-xl);
}

.form-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.form-header p {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--surface-300);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--duration-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--accent-rose);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
}

.form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-weight: 400;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.form-checkbox a {
    color: var(--primary-600);
}

/* Form States */
.contact-form.hidden {
    display: none;
}

.form-success {
    display: none;
    text-align: center;
    padding: var(--spacing-3xl);
}

.form-success.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.form-success p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

/* Button Loading State */
.btn .btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Contact CTA */
.contact-cta {
    padding: var(--spacing-section) 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

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

.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.cta-icon svg {
    width: 40px;
    height: 40px;
}

.contact-cta h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.contact-cta p {
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
}

/* ============================================
   FOOTER ADDITIONS
   ============================================ */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-legal a {
    font-size: 0.875rem;
}

.footer-description {
    color: #94a3b8;
    max-width: 300px;
    margin-top: 1rem;
    line-height: 1.6;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-info svg {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* ============================================
   NAV ACTIONS & TOGGLE
   ============================================ */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: all var(--duration-fast);
}

/* ============================================
   RESPONSIVE ADDITIONS
   ============================================ */
@media (max-width: 1024px) {
    .service-block {
        grid-template-columns: 1fr;
    }

    .service-block.reverse {
        direction: ltr;
    }

    .service-content {
        padding-right: 0;
    }

    .service-block.reverse .service-content {
        padding-left: 0;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .mv-grid,
    .story-grid,
    .why-us-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tab-panel.active {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--duration-normal);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 1.75rem;
    }

    .values-grid,
    .stats-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        max-width: 100%;
    }

    .dashboard-preview {
        transform: none;
        animation: none;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
        height: auto;
    }

    .dashboard-sidebar {
        display: none;
    }
}
