/* Index Page Specific Styles */



/* Override body background for index page */
    body {
        background: #0a0a0a !important;
        margin: 0;
        padding: 0;
        
    }
    
    /* Hide the main navbar for index page */
    .navbar:not(.hero-navbar) {
        display: none;
    }
    
    /* Hide floating particles from base template */
    .floating-particles {
        display: none;
    }

    /* Nueva sección de servicios compacta */
    .services-section {
        background: transparent;
        padding: 40px 0;
        position: relative;
    }

    .services-content {
        position: relative;
        z-index: 2;
    }

    .services-title {
        font-size: 2.8rem;
        font-weight: 800;
        margin-bottom: 1rem;
        background: linear-gradient(135deg, #78ffd6, #4058a8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1.2;
    }

    .services-subtitle {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 1.5rem;
        max-width: 600px;
        line-height: 1.4;
    }

    .services-buttons {
        display: flex;
        gap: 1rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
    }

    .btn-services {
        padding: 8px 20px;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 25px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .btn-services.btn-primary-services {
        background: linear-gradient(135deg, #78ffd6, #465b94);
        color: #0a0a0a;
        border: none;
    }

    .btn-services.btn-outline-services {
        background: transparent;
        color: #fff;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .btn-services:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(120, 255, 214, 0.3);
    }

    .services-stats {
        display: flex;
        gap: 1.5rem;
        justify-content: flex-start;
    }

    .stat-item {
        text-align: center;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 12px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
        min-width: 120px;
    }

    .stat-item:hover {
        transform: translateY(-3px);
        background: rgba(0, 0, 0, 0.4);
        border-color: rgba(120, 255, 214, 0.3);
    }

    .stat-number {
        font-size: 2rem;
        font-weight: 800;
        background: linear-gradient(135deg, #4f72a1, #3d834c);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: block;
        margin-bottom: 0.3rem;
    }

    .stat-label {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.8rem;
        font-weight: 600;
    }

    .code-snippet {
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(120, 255, 214, 0.3);
        border-radius: 12px;
        padding: 1.5rem;
        font-family: 'JetBrains Mono', 'Consolas', monospace;
        color: #5b67a7;
        font-size: 0.85rem;
        line-height: 1.4;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(15px);
    }

    .code-snippet::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #3e5cbd, #3d7a3b);
    }

    .code-comment {
        color: rgba(255, 255, 255, 0.5);
    }

    .code-keyword {
        color: #ff7893;
    }

    .code-string {
        color: #78ffd6;
    }

    @media (max-width: 768px) {
        .services-title {
            font-size: 2.2rem;
        }
        
        .services-subtitle {
            font-size: 1rem;
        }
        
        .services-buttons {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.8rem;
        }
        
        .btn-services {
            min-width: 150px;
        }

        .services-stats {
            flex-wrap: wrap;
            gap: 1rem;
        }

        .stat-item {
            min-width: 100px;
            padding: 0.8rem;
        }

        .stat-number {
            font-size: 1.6rem;
        }

        .code-snippet {
            padding: 1rem;
            font-size: 0.8rem;
        }
    }

/* Hero Section */
.hero-section {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('../index/fondo1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin: 0;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Efecto de líneas de código en el fondo */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 150, 255, 0.02) 2px,
            rgba(0, 150, 255, 0.02) 4px
        );
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 800;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
}

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

/* Hero Navbar */
.hero-navbar {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.hero-navbar .navbar-brand {
    color: #667eea !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.hero-navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
}

.hero-navbar .nav-link:hover {
    color: #667eea !important;
}

.hero-navbar .nav-link.active {
    color: #667eea !important;
}

/* Hero Buttons */
.btn-hero {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Efecto de partículas flotantes */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 255, 0, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Responsive Design for Index */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .btn-hero {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 280px;
    }
}

