:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #1e293b;
    --accent: #f59e0b;
    --success: #10b981;
    --dark: #0f172a;
    --light: #f8fafc;
    --gradient-main: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-hero: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    --shadow-soft: 0 10px 40px rgba(37, 99, 235, 0.1);
    --shadow-strong: 0 20px 60px rgba(37, 99, 235, 0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
    min-height: 80px;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-main);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Espacio para la navbar fija */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero .highlight {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 2px;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 400;
}

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

.btn-primary-custom {
    background: var(--gradient-main);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    color: white;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-secondary-custom {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

/* Hero Cards Container */
.hero-cards-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.hero-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-strong);
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.hero-card-main {
    width: 200px;
    transform: rotate(-5deg);
    animation-delay: 0s;
    z-index: 3;
}

.hero-card-secondary {
    width: 160px;
    position: relative;
}

.hero-card-reports {
    transform: rotate(5deg);
    animation-delay: 2s;
    z-index: 2;
    margin-left: -40px;
}

.hero-card-sales {
    transform: rotate(-3deg);
    animation-delay: 4s;
    z-index: 1;
    margin-right: -40px;
}

.hero-card:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 25px 80px rgba(37, 99, 235, 0.2);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 15%;
    right: 8%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
    animation-duration: 8s;
}

.floating-element:nth-child(2) {
    top: 45%;
    right: 15%;
    width: 60px;
    height: 60px;
    animation-delay: 1.5s;
    animation-duration: 6s;
}

.floating-element:nth-child(3) {
    top: 75%;
    right: 5%;
    width: 100px;
    height: 100px;
    animation-delay: 3s;
    animation-duration: 10s;
}

.floating-element:nth-child(4) {
    top: 30%;
    right: 25%;
    width: 70px;
    height: 70px;
    animation-delay: 0.8s;
    animation-duration: 7s;
}

.floating-element:nth-child(5) {
    top: 60%;
    right: 30%;
    width: 50px;
    height: 50px;
    animation-delay: 2.2s;
    animation-duration: 5s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) translateX(0px); 
    }
    25% { 
        transform: translateY(-15px) rotate(2deg) translateX(5px); 
    }
    50% { 
        transform: translateY(-25px) rotate(5deg) translateX(-3px); 
    }
    75% { 
        transform: translateY(-10px) rotate(-2deg) translateX(3px); 
    }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--gradient-dark);
    color: white;
}

.pricing .section-title h2,
.pricing .section-title p {
    color: white;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.popular::before {
    content: 'Más Popular';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gradient-main);
    color: white;
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pricing-card .price-period {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.pricing-features li i {
    color: var(--success);
    margin-right: 0.5rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient-main);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: 70px;
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-cards-container {
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .hero-card-main {
        width: 180px;
        padding: 1.5rem;
    }
    
    .hero-card-secondary {
        width: 140px;
        padding: 1.5rem;
    }
    
    .hero-card-reports {
        margin-left: -20px;
    }
    
    .hero-card-sales {
        margin-right: -20px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .pricing-card.popular {
        transform: none;
        margin-top: 2rem;
    }
    
    .navbar {
        min-height: 70px;
        padding: 0.5rem 0;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
