/* Import premium Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Light Theme Tokens (Default) */
    --background: #ffffff;
    --foreground: #09090b;
    
    --card: #ffffff;
    --card-foreground: #09090b;
    --card-border: #e4e4e7;
    
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    
    --border: #e4e4e7;
    --input: #e4e4e7;
    --input-focus: #2563eb; /* Vibrant Blue accent */
    
    --primary: #09090b;
    --primary-foreground: #ffffff;
    
    --secondary: #f4f4f5;
    --secondary-foreground: #18181b;
    --secondary-hover: #e4e4e7;

    --accent: #2563eb; /* Vibrant Blue */
    --accent-foreground: #ffffff;
    --accent-subtle: rgba(37, 99, 235, 0.1);
    
    --success: #10b981;
    --success-subtle: rgba(16, 185, 129, 0.1);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --header-bg: rgba(255, 255, 255, 0.8);
    --header-border: rgba(228, 228, 231, 0.6);
}

/* Dark Theme Tokens */
[data-theme="dark"] {
    --background: #09090b;
    --foreground: #f4f4f5;
    
    --card: #18181b;
    --card-foreground: #f4f4f5;
    --card-border: #27272a;
    
    --muted: #27272a;
    --muted-foreground: #a1a1aa;
    
    --border: #27272a;
    --input: #27272a;
    --input-focus: #3b82f6; /* Vibrant Blue accent for Dark Mode */
    
    --primary: #f4f4f5;
    --primary-foreground: #09090b;
    
    --secondary: #27272a;
    --secondary-foreground: #f4f4f5;
    --secondary-hover: #3f3f46;
    
    --accent: #3b82f6; /* Vibrant Blue */
    --accent-foreground: #ffffff;
    --accent-subtle: rgba(59, 130, 246, 0.15);
    
    --success: #34d399;
    --success-subtle: rgba(52, 211, 153, 0.15);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    
    --header-bg: rgba(9, 9, 11, 0.8);
    --header-border: rgba(39, 39, 42, 0.6);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; }
p { color: var(--muted-foreground); font-weight: 400; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--foreground);
}

.section-header p {
    font-size: 1.125rem;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--header-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: -0.03em;
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background-color: var(--accent);
    display: inline-block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--muted-foreground);
    position: relative;
    padding: 0.25rem 0;
}

nav a:hover, nav a.active {
    color: var(--foreground);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    border-radius: var(--radius-full);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle Switch */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background-color: var(--secondary);
    border-color: var(--accent);
}

.theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

.theme-toggle .sun-icon {
    display: block;
}
.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}
[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
    padding: 0.25rem;
}

.mobile-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    gap: 0.5rem;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-accent-ghost {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid transparent;
}

.btn-accent-ghost:hover {
    background-color: var(--accent-subtle);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Inputs and Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-control {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background-color: var(--card);
    border: 1px solid var(--border);
    color: var(--foreground);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-control::placeholder {
    color: var(--muted-foreground);
    opacity: 0.7;
}

.form-error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.has-error .form-control {
    border-color: #ef4444;
}

.form-group.has-error .form-error-msg {
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 9rem;
    padding-bottom: 7rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background-color: var(--accent-subtle);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background-color: var(--accent);
    animation: pulse 2s infinite;
}

.hero-content h1 {
    font-size: 3.75rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
}

.hero-mockup-container {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-mockup-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

#hero-mockups-stack {
    position: relative;
    min-height: 320px;
}

.mockup-stack-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(0.95);
    pointer-events: none;
}

.mockup-stack-item.active {
    position: relative;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(0);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--card-border);
    background-color: var(--card);
    color: var(--foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    background-color: rgba(255,255,255,0.85);
}

[data-theme="dark"] .carousel-btn {
    background-color: rgba(24,24,27,0.85);
}

.carousel-btn:hover {
    background-color: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 0 4px var(--accent-subtle);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: -44px;
}

.carousel-btn-next {
    right: -44px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0 0;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background-color: var(--accent);
    transform: scale(1.3);
}

.mockup-header {
    height: 2rem;
    background-color: var(--muted);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.35rem;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--border);
}

.mockup-content {
    padding: 2rem;
}

.mockup-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-stat .bar {
    height: 8px;
    background-color: var(--muted);
    border-radius: var(--radius-full);
    width: 100%;
}

.mockup-stat .bar-accent {
    height: 8px;
    background-color: var(--accent);
    border-radius: var(--radius-full);
    width: 60%;
}

/* Promoción Emprendedores */
.promo-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    text-align: center;
    padding: 5rem 0;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.promo-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(99,102,241,0.1) 0%, transparent 60%);
    pointer-events: none;
}

[data-theme="dark"] .promo-section {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

.promo-section .container {
    position: relative;
    z-index: 1;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background-color: rgba(37,99,235,0.2);
    border: 1px solid rgba(37,99,235,0.3);
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.promo-title {
    font-size: 2.5rem;
    color: #f8fafc;
    margin-bottom: 1rem;
}

.promo-desc {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.promo-desc strong {
    color: #fbbf24;
    font-weight: 700;
}

.btn-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #fff;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}

.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(37,99,235,0.45);
}

/* Services / Catalog Section */
.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.catalog-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--card);
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    color: var(--foreground);
    border-color: var(--primary);
    background-color: var(--secondary);
}

.filter-btn.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.search-box {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-box input {
    padding-left: 2.5rem;
}

.search-box svg {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--muted-foreground);
    pointer-events: none;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.catalog-card {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.catalog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.catalog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.catalog-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.card-pricing {
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.pricing-label {
    color: var(--muted-foreground);
    font-weight: 500;
}

.pricing-value {
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1rem;
}

.pricing-period {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.pricing-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.3rem;
    padding-top: 0.4rem;
    border-top: 1px dashed var(--border);
    font-size: 0.82rem;
    color: var(--muted-foreground);
}

.pricing-total strong {
    color: var(--accent);
    font-weight: 700;
}

.pricing-after {
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted-foreground);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
}

.catalog-expand-wrap {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

.catalog-card-cta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--accent-subtle), var(--card));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.catalog-card-cta .cta-icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    background-color: var(--accent-subtle);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-card-cta .cta-icon svg {
    width: 2rem;
    height: 2rem;
}

.catalog-card-cta .cta-text {
    flex: 1;
}

.catalog-card-cta .cta-text h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.catalog-card-cta .cta-text p {
    font-size: 0.9rem;
    margin: 0;
}

.catalog-card-cta .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .catalog-card-cta {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem;
    }
    .catalog-card-cta .btn {
        width: 100%;
    }
}

.catalog-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Security and Privacy Section */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.security-card {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.security-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    background-color: var(--accent-subtle);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.security-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.security-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.security-card p {
    font-size: 0.925rem;
}

/* About Us Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.about-values {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.about-values li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.about-values svg {
    color: var(--accent);
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    position: relative;
    overflow: hidden;
}

.about-image-placeholder::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: linear-gradient(45deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    animation: shine 4s infinite linear;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
}

.team-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-full);
    background-color: var(--muted);
    margin: 0 auto 1.25rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--muted-foreground);
    border: 2px solid var(--border);
}

.team-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.team-card p {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

/* Interactive Demo / Sandbox Section */
.demo-section {
    background-color: var(--muted);
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.demo-panel {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

.demo-panel h3 {
    margin-bottom: 1.5rem;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-panel h3 .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    background-color: var(--accent-subtle);
    color: var(--accent);
}

.demo-result-container {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.demo-result-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-result-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

.demo-console {
    flex-grow: 1;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--muted-foreground);
    overflow-y: auto;
    max-height: 300px;
}

.console-line {
    margin-bottom: 0.5rem;
}

.console-line.success {
    color: var(--success);
}

.console-line.info {
    color: var(--accent);
}

.demo-mock-screen {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.demo-mock-screen svg {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background-color: #09090b;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

[data-theme="dark"] #back-to-top {
    background-color: #f4f4f5;
    color: #09090b;
}

[data-theme="dark"] #back-to-top:hover {
    background-color: #fff;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    color: var(--foreground);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--accent);
}

.toast.toast-success {
    border-left-color: var(--success);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon.success {
    color: var(--success);
}

.toast-message {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Admin Dashboard Section */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.stat-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.stat-info .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--foreground);
}

.stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    background-color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
}

.stat-card:hover .stat-icon {
    background-color: var(--accent-subtle);
    color: var(--accent);
}

.dashboard-main {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.dashboard-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header-title h3 {
    font-size: 1.25rem;
}

.dashboard-header-actions {
    display: flex;
    gap: 0.75rem;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.dashboard-table th {
    background-color: var(--muted);
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--muted-foreground);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.dashboard-table td {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--foreground);
    vertical-align: middle;
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.dashboard-table tr:hover td {
    background-color: var(--muted);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-pending {
    background-color: var(--muted);
    color: var(--muted-foreground);
    border: 1px solid var(--border);
}

.badge-completed {
    background-color: var(--success-subtle);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Action Dropdown / Buttons in Tables */
.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-btn {
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    color: var(--muted-foreground);
    width: 1.85rem;
    height: 1.85rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.table-btn:hover {
    color: var(--foreground);
    background-color: var(--muted);
}

.table-btn.btn-delete:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.table-btn.btn-complete:hover {
    color: var(--success);
    background-color: var(--success-subtle);
    border-color: rgba(16, 185, 129, 0.2);
}

.table-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    background-color: var(--muted);
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-method-text h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-method-text p {
    font-size: 0.9rem;
}

/* Simulated Vector Map */
.map-container {
    height: 240px;
    background-color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.map-label {
    background-color: var(--card);
    color: var(--foreground);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

/* Footer */
footer {
    padding: 4rem 0;
    background-color: var(--background);
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 280px;
}

.footer-links-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    color: var(--foreground);
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-col a {
    color: var(--muted-foreground);
}

.footer-links-col a:hover {
    color: var(--foreground);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    flex-wrap: wrap;
    gap: 1rem;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes shine {
    0% {
        transform: translate(-30%, -30%) rotate(0deg);
    }
    100% {
        transform: translate(30%, 30%) rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(1rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-grid, .about-grid, .demo-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-badge {
        justify-content: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-mockup-container {
        transform: none;
    }
    
    .hero-mockup-container:hover {
        transform: none;
    }
    
    .about-image-placeholder {
        order: -1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    nav {
        display: none; /* Controlled by JS / CSS active classes for mobile navigation overlay if added */
    }
    
    /* Simple mobile nav drop */
    nav.mobile-active {
        display: block;
        position: absolute;
        top: 4.5rem;
        left: 0;
        width: 100%;
        background-color: var(--background);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem 0;
        box-shadow: var(--shadow-lg);
    }
    
    nav.mobile-active ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
        padding: 0 1.5rem;
    }
    
    nav.mobile-active a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.05rem;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .dashboard-header {
        padding: 1.25rem 1.5rem;
    }
    
    .dashboard-table th, .dashboard-table td {
        padding: 0.85rem 1rem;
    }
}
