/* ==========================================
   FLOW CONTROL SYSTEM - LANDING PAGE
   Modern Design with Dark/Light Theme
   ========================================== */

/* Variables CSS - Tema Claro */
:root {
    /* Colores principales */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --accent: #f59e0b;

    /* Tema claro */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #f59e0b 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #6366f1 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Variables CSS - Tema Oscuro */
.dark-theme {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #334155;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

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

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-lg);
}

.light-theme .sun-icon,
.dark-theme .moon-icon {
    display: block;
}

.light-theme .moon-icon,
.dark-theme .sun-icon {
    display: none;
}

/* Navigation */
.nav {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.version {
    font-size: 0.75rem;
    padding: 4px 8px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    font-weight: 500;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

.btn-nav {
    padding: 10px 24px;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: white !important;
}

.btn-nav::after {
    display: none;
}

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

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/portada-.png') no-repeat center center / cover;
    opacity: 0.5;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-tertiary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: slideDown 0.6s ease;
}

.badge-icon {
    font-size: 1.2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin: 48px 0;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.scroll-line {
    width: 100%;
    height: 30px;
    background: var(--gradient-primary);
    animation: scrollDown 2s ease infinite;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.tag.featured {
    background: var(--gradient-primary);
    color: white;
}

/* Comparison Table */
.comparison {
    padding: 100px 0;
}

.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: var(--border-color);
}

.comparison-header {
    background: var(--bg-tertiary);
}

.comparison-header > div,
.comparison-row > div {
    padding: 20px;
    background: var(--bg-primary);
}

.company-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.company-badge.our {
    background: var(--gradient-primary);
    color: white;
}

.company-badge:not(.our) {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.row-label {
    font-weight: 600;
    color: var(--text-primary);
}

.check {
    color: var(--secondary);
    font-weight: bold;
    margin-right: 8px;
}

.cross {
    color: #ef4444;
    font-weight: bold;
    margin-right: 8px;
}

/* ROI Section */
.roi {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.roi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.roi-card {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

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

.roi-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.roi-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 6px 16px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.roi-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.roi-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.roi-amount {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.roi-amount span {
    font-size: 1.5rem;
    font-weight: 600;
}

.roi-details {
    list-style: none;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.roi-details li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.roi-total {
    text-align: center;
}

.roi-total strong {
    display: block;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.roi-recovery {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
}

/* Tech Stack */
.tech-stack {
    padding: 100px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.tech-logo {
    font-size: 3rem;
    margin-bottom: 16px;
}

.tech-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tech-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--gradient-primary);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

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

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.info-icon {
    font-size: 1.5rem;
}

.info-item strong {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-item p {
    color: var(--text-secondary);
}

.info-item a {
    color: var(--primary);
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 400px;
}

.footer-info p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(200%);
    }
}

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

[data-aos="zoom-in"] {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

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

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
    }

    .col-label {
        font-weight: 700;
        background: var(--bg-tertiary) !important;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}

/* Center all content and improve symmetry */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid,
.roi-cards,
.tech-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
}

.comparison-table {
    margin: 0 auto;
    max-width: 900px;
}

.contact-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Reduce subtitle size */
.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1.5rem auto;
    max-width: 700px;
}

/* Improve feature icons */
.feature-icon svg,
.roi-icon svg,
.tech-logo svg {
    stroke: var(--primary);
}

.dark-theme .feature-icon svg,
.dark-theme .roi-icon svg,
.dark-theme .tech-logo svg {
    stroke: #f59e0b;
}

/* Button outline style */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Improve icon contrast */
.info-item svg {
    stroke: var(--primary);
    flex-shrink: 0;
}


/* Hero Compact - Less spacing */
.hero-compact {
    padding-top: 80px !important;
    min-height: 80vh !important;
}

.hero-compact .hero-content {
    padding-top: 1rem;
}

.hero-compact .hero-badge {
    margin-bottom: 1.5rem;
}

.hero-compact .hero-title {
    margin-bottom: 1rem;
}

.hero-compact .hero-subtitle {
    margin-bottom: 2rem;
    font-size: 1rem;
}

.hero-compact .hero-stats {
    margin: 2rem auto;
}

/* Logo clickable */
.logo {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo:hover .logo-text {
    color: var(--primary);
}

/* Platform Badges */
.platform-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.platform-badge {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Architecture Diagram */
.arch-diagram {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 2px solid var(--border-color);
}

.arch-header {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 1.5rem;
    border: 3px solid var(--primary);
    border-radius: 12px;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    color: white;
}

.arch-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.arch-platform {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.arch-platform h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.arch-platform ul {
    list-style: none;
    padding: 0;
}

.arch-platform li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding: 0.4rem 0;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.service-card li:before {
    content: • ;
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Advertising Features */
.adv-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.adv-feature {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 2px solid var(--border-color);
}

.adv-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.adv-feature h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.adv-feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.adv-admin {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    margin-top: 2rem;
}

.adv-admin h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.adv-admin ul {
    list-style: none;
    padding: 0;
}

.adv-admin li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

/* CTA Buttons Group */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Footer Web Link */
.footer-web {
    margin-top: 1rem;
}

.footer-web a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-web a:hover {
    text-decoration: underline;
}

.footer-info a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-info a:hover {
    color: var(--primary);
}


/* Center last row of services grid when incomplete */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
}

/* When there are only 2 items in last row, center them */
.service-card:nth-last-child(2):nth-child(odd) {
    grid-column: span 1;
}

/* Alternative: Use flexbox for better centering */
@supports (display: grid) {
    .services-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .service-card {
        flex: 0 1 calc(33.333% - 2rem);
        min-width: 280px;
        max-width: 350px;
    }
}

@media (max-width: 1200px) {
    .service-card {
        flex: 0 1 calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    .service-card {
        flex: 0 1 100%;
    }
}


/* Add more spacing between sections */
.services {
    padding-bottom: 6rem;
}

.advertising {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

/* Ensure proper section spacing */
section {
    margin-bottom: 2rem;
}

/* Add breathing room to section headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
}


/* Center admin panel section */
.adv-admin {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    margin-top: 2rem;
    text-align: center;
}

.adv-admin h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.adv-admin ul {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
    margin: 0 auto;
}

.adv-admin li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
}


/* Further reduce hero spacing */
.hero-compact {
    padding-top: 70px !important;
    min-height: 75vh !important;
}

.hero-compact .hero-content {
    padding-top: 0;
}

.hero-compact .hero-badge {
    margin-bottom: 1rem;
}

.hero-compact .hero-title {
    margin-bottom: 0.75rem;
}

.hero-compact .hero-subtitle {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.hero-compact .hero-stats {
    margin: 1.5rem auto;
}

.hero-compact .hero-buttons {
    margin-top: 1.5rem;
}

/* Make logo scroll to top smoothly */
.logo {
    cursor: pointer;
}


/* Modern Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Apply animations to hero elements - OPTIMIZED */
.hero-badge {
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.hero-title {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-title .gradient-text {
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

.hero-subtitle {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both;
}

.hero-stats {
    animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.hero-stats .stat-item {
    opacity: 0;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-stats .stat-item:nth-child(1) {
    animation-delay: 0.6s;
}

.hero-stats .stat-item:nth-child(2) {
    animation-delay: 0.7s;
}

.hero-stats .stat-item:nth-child(3) {
    animation-delay: 0.8s;
}

.hero-stats .stat-item:nth-child(4) {
    animation-delay: 0.9s;
}

.hero-buttons {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1s both;
}

.hero-buttons .btn-primary {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.1s both;
    opacity: 0;
}

.hero-buttons .btn-secondary {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.15s both;
    opacity: 0;
}

/* Smooth transitions for interactive elements */
.hero-buttons a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-buttons a:hover {
    transform: translateY(-3px) scale(1.02);
}

/* Add subtle parallax effect to hero background */
.hero-bg {
    animation: fadeInScale 1.5s ease-out both;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Hero text colors - White texts with white-to-blue gradient title */
.hero-title {
    color: #ffffff !important;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #6366f1 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    background-size: 200% 200%;
}

.hero-subtitle {
    color: #ffffff !important;
    opacity: 0.95;
}

.hero-badge {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.hero-stats .stat-number {
    color: #ffffff !important;
}

.hero-stats .stat-label {
    color: rgba(255, 255, 255, 0.8) !important;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) scale(1.02);
}

