:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary), transparent);
}

.blob-2 {
    bottom: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary), transparent);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Glassmorphism Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Typography & Utilities */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-10 { margin-bottom: 3rem; }
.w-full { width: 100%; }
.mt-auto { margin-top: auto; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.icon-logo {
    color: var(--secondary);
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn-primary, .btn-primary-outline, .btn-secondary, .btn-demo {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

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

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

.btn-primary-outline:hover {
    background: rgba(59, 130, 246, 0.1);
}

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

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.btn-demo {
    background: var(--secondary);
    color: white;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 5%;
    gap: 4rem;
    padding-top: 80px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Mockup */
.mockup {
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.mockup-header {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.mockup-body {
    padding: 2rem;
}

.mockup-body h2 {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
}

.mockup-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 150px;
}

.bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    animation: growUp 1s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: all 0.8s ease-in-out;
}

.bar-low {
    background: linear-gradient(to top, #475569, #94a3b8); /* Gris tenue */
    opacity: 0.6;
}

.bar-regular {
    background: linear-gradient(to top, var(--primary), var(--secondary)); /* Azul a verde */
}

.bar-high {
    background: linear-gradient(to top, #10b981, #34d399); /* Verde brillante */
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.7); /* Resplandor */
    opacity: 1;
}
}

.bar.h-60 { height: 60%; animation-delay: 0.1s;}
.bar.h-80 { height: 80%; animation-delay: 0.2s;}
.bar.h-40 { height: 40%; animation-delay: 0.3s;}
.bar.h-100 { height: 100%; animation-delay: 0.4s;}
.bar.h-50 { height: 50%; animation-delay: 0.5s;}

@keyframes growUp {
    to { transform: scaleY(1); }
}

/* Features */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.features {
    padding: 6rem 5%;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Modules */
.modules {
    padding: 6rem 5%;
}

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

.modules-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.module-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.6s ease-out forwards;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-card:nth-child(1) { animation-delay: 0.1s; }
.module-card:nth-child(2) { animation-delay: 0.2s; }
.module-card:nth-child(3) { animation-delay: 0.3s; }
.module-card:nth-child(4) { animation-delay: 0.4s; }
.module-card:nth-child(5) { animation-delay: 0.5s; }
.module-card:nth-child(6) { animation-delay: 0.6s; }
.module-card:nth-child(7) { animation-delay: 0.7s; }
.module-card:nth-child(8) { animation-delay: 0.8s; }
.module-card:nth-child(9) { animation-delay: 0.9s; }
.module-card:nth-child(10) { animation-delay: 1.0s; }
.module-card:nth-child(11) { animation-delay: 1.1s; }

.module-card:hover {
    border-color: var(--card-color);
    box-shadow: 0 0 25px rgba(0,0,0,0.4), inset 0 0 10px rgba(255,255,255,0.02);
    transform: translateY(-5px);
}

.icon-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.custom-icon {
    width: 60px;
    height: 60px;
    color: var(--card-color);
    animation: floatingIcon 3s ease-in-out infinite;
    z-index: 2;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
}

.icon-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15px;
    width: 35px;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    animation: floatShadow 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes floatingIcon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes floatShadow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(0.6); opacity: 0.2; }
}

.module-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--card-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* =========================================
   CUSTOM SVG ANIMATIONS (BESPOKE WIDGETS)
========================================== */

/* 1. Dashboard */
.d-sq { transform-origin: center; animation: pulseSq 2s infinite alternate; }
.d-sq1 { animation-delay: 0s; }
.d-sq2 { animation-delay: 0.5s; }
.d-sq3 { animation-delay: 1s; }
.d-sq4 { animation-delay: 1.5s; }
@keyframes pulseSq { 0% { transform: scale(0.8); opacity: 0.5; } 100% { transform: scale(1.1); opacity: 1; } }

/* 2. Ventas (POS) */
.v-bar { transform-origin: bottom; animation: growBar 2s infinite ease-in-out alternate; }
.v-bar1 { animation-delay: 0s; }
.v-bar2 { animation-delay: 0.4s; }
.v-bar3 { animation-delay: 0.8s; }
@keyframes growBar { 0% { transform: scaleY(0.5); opacity: 0.7;} 100% { transform: scaleY(1.1); opacity: 1;} }
.v-arrow { stroke-dasharray: 100; stroke-dashoffset: 100; animation: drawArrow 3s infinite; }
@keyframes drawArrow { 0% { stroke-dashoffset: 100; } 50%, 100% { stroke-dashoffset: 0; } }

/* 3. Inventario */
.i-box { transform-origin: center; animation: floatBox 3s infinite ease-in-out; }
.i-box-top { animation-delay: 0s; }
.i-box-mid { animation-delay: 0.3s; }
.i-box-bot { animation-delay: 0.6s; }
@keyframes floatBox { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* 4. Clientes */
.c-head1, .c-body1 { animation: bounceAvatar 2s infinite ease-in-out; }
.c-head2, .c-body2 { animation: bounceAvatar 2s infinite ease-in-out 1s; }
@keyframes bounceAvatar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* 5. Vehículos */
.v-car-body { animation: carBump 1s infinite alternate ease-in-out; }
.v-wheel { transform-origin: center; animation: spinWheel 2s infinite linear; }
@keyframes carBump { 0% { transform: translateY(0); } 100% { transform: translateY(-2px); } }
@keyframes spinWheel { 100% { transform: rotate(360deg); } }

/* 6. Usuarios */
.u-gear { transform-origin: center; animation: spinGear 6s infinite linear; }
@keyframes spinGear { 100% { transform: rotate(360deg); } }

/* 7. Cotizaciones */
.c-line { stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawLine 3s infinite; }
.l1 { animation-delay: 0s; }
.l2 { animation-delay: 0.5s; }
.l3 { animation-delay: 1s; }
@keyframes drawLine { 0% { stroke-dashoffset: 40; } 30%, 100% { stroke-dashoffset: 0; } }

/* 8. Servicios */
.s-wrench { transform-origin: 20px 20px; animation: tightenWrench 2s infinite ease-in-out; }
@keyframes tightenWrench { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(30deg); } }

/* 9. Caja */
.c-bill { animation: slideBill 2.5s infinite ease-in-out; }
@keyframes slideBill { 0%, 100% { transform: translateY(0); opacity: 0; } 50% { transform: translateY(-25px); opacity: 1; } }

/* 10. Reportes */
.r-pie1 { transform-origin: 50px 50px; animation: popPie 2s infinite ease-in-out alternate; }
@keyframes popPie { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.05) translate(2px, -2px); } }

/* 11. Configuración */
.cfg-gear1 { transform-origin: 35px 40px; animation: spinGear 4s infinite linear; }
.cfg-gear2 { transform-origin: 70px 65px; animation: spinGearReverse 4s infinite linear; }
@keyframes spinGearReverse { 100% { transform: rotate(-360deg); } }

.icon-wrapper.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }
.icon-wrapper.orange { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }
.icon-wrapper.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4); }
.icon-wrapper.green { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); }

.module-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.module-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.demo-card {
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    animation: scan 3s infinite linear;
    z-index: 10;
}

@keyframes scan {
    0% { top: 0; opacity: 0;}
    10% { opacity: 1;}
    90% { opacity: 1;}
    100% { top: 100%; opacity: 0;}
}

.input-demo {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-family: monospace;
    font-size: 1.5rem;
    color: var(--secondary);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

/* Pricing */
.pricing {
    padding: 6rem 5%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.85);
    transform: scale(1.05);
}

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

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Outfit';
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list li::before {
    content: 'done';
    font-family: 'Material Symbols Outlined';
    color: var(--secondary);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 5%;
    margin-top: 4rem;
}

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

/* Responsive */
@media (max-width: 900px) {
    .hero, .modules-container {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}
