/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
}

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

.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background-color var(--transition-base), backdrop-filter var(--transition-base);
    padding: var(--spacing-4) 0;
}

.navbar.scrolled {
    background-color: rgba(6, 9, 19, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: var(--spacing-3) 0;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-5);
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Offset for navbar */
    position: relative;
}

.tagline {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-4);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-4);
    margin-top: var(--spacing-6);
}

/* Dashboard Mockup (Hero 3D) */
.hero-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-mockup {
    width: 100%;
    max-width: 500px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-light);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* For JS tracking */
}

.dash-header {
    background: var(--bg-surface-light);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.dash-circles {
    display: flex;
    gap: 6px;
    margin-right: 1rem;
}

.dash-circles i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.dash-circles i:nth-child(1) { background: #ef4444; }
.dash-circles i:nth-child(2) { background: #eab308; }
.dash-circles i:nth-child(3) { background: #22c55e; }

.dash-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.dash-body {
    padding: 1.5rem;
    gap: 1rem;
}

.dash-card {
    background: var(--bg-surface-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.dash-card.full-width {
    grid-column: 1 / -1;
}

.dash-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.dash-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dash-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-main);
    border-radius: 2px;
    overflow: hidden;
}

.dash-bar-fill {
    height: 100%;
    background: var(--primary);
}

.dash-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
}
.dash-list-item:last-child {
    border-bottom: none;
}

.badge {
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* Cards & Services */
.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: var(--spacing-5);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-4);
}

/* Problems Card */
.problem-card {
    text-align: left;
}
.problem-card svg {
    margin-bottom: var(--spacing-3);
}

/* CRM Mockup (Soluciones) */
.crm-mockup {
    width: 100%;
    height: 400px;
    background: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.crm-sidebar {
    width: 60px;
    background: var(--bg-main);
    border-right: 1px solid var(--border-color);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sidebar-item {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: var(--border-color);
}
.sidebar-item.active {
    background: var(--primary);
}

.crm-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.crm-header {
    height: 50px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.crm-search {
    width: 150px;
    height: 20px;
    background: var(--bg-main);
    border-radius: 4px;
}

.crm-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border-color);
}

.crm-kanban {
    flex: 1;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    overflow: hidden;
}

.kanban-col {
    flex: 1;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.k-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.k-card {
    height: 60px;
    background: var(--bg-surface-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

/* Feature List */
.feature-list {
    margin-top: var(--spacing-4);
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Portfolio */
.portfolio-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.portfolio-image {
    height: 240px;
    background: var(--bg-surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.placeholder-content {
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
}

.portfolio-content {
    padding: var(--spacing-5);
}

.portfolio-tech {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

/* Timeline (Proceso) */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-step {
    display: flex;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-6);
    position: relative;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    z-index: 2;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.25rem;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: var(--bg-surface);
    padding: var(--spacing-12) 0 var(--spacing-6);
    border-top: 1px solid var(--border-color);
}

.footer-col h4 {
    margin-bottom: var(--spacing-4);
    font-size: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul a {
    color: var(--text-muted);
}
.footer-col ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: var(--spacing-12);
    padding-top: var(--spacing-6);
    border-top: 1px solid var(--border-color);
}

/* Glow Effects */
.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.glow-bg-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: var(--spacing-4);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .hero {
        text-align: center;
        padding-top: 120px;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }

    .timeline::before {
        left: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
}
