@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --electric-blue: #00f2ff;
    --neon-blue: #4361ee;
    --royal-blue: #3a0ca3;
    --cyber-blue: #4cc9f0;
    --deep-navy: #03045e;
    --midnight-blue: #0a1128;
    --cobalt-blue: #1e4d8c;
    --azure-blue: #007bff;
    --sapphire-blue: #0f52ba;
    --turquoise-blue: #40e0d0;
    
    /* Variables funcionales */
    --primary-color: var(--azure-blue);
    --secondary-color: var(--electric-blue);
    --accent-color: var(--cyber-blue);
    --background-dark: var(--midnight-blue);
    --background-medium: var(--deep-navy);
    --text-white: #ffffff;
    --text-light: #e6f1ff;
    --text-secondary: #a7b7f9;
    
    /* Gradientes dinámicos */
    --main-gradient: linear-gradient(135deg, var(--royal-blue), var(--deep-navy));
    --card-gradient: linear-gradient(135deg, rgba(10, 75, 218, 0.1), rgba(0, 242, 255, 0.05));
    --button-gradient: linear-gradient(45deg, var(--azure-blue), var(--cyber-blue));
    --highlight-gradient: linear-gradient(to right, var(--electric-blue), var(--turquoise-blue));
    --nav-gradient: linear-gradient(to right, rgba(3, 11, 46, 0.95), rgba(30, 77, 140, 0.95));
    
    /* Efectos */
    --glow-effect: 0 0 15px rgba(76, 201, 240, 0.5);
    --neon-glow: 0 0 10px rgba(0, 242, 255, 0.7), 0 0 20px rgba(0, 242, 255, 0.4);
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s;
    --border-light: 1px solid rgba(76, 201, 240, 0.3);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--main-gradient);
    color: var(--text-white);
    line-height: 1.6;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(67, 97, 238, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 242, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(76, 201, 240, 0.05) 0%, transparent 60%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: rgba(76, 201, 240, 0.3);
    pointer-events: none;
    z-index: -1;
}

/* Navegación */
header {
    background: var(--nav-gradient);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: var(--border-light);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(to right, var(--electric-blue), var(--cyber-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    text-shadow: var(--neon-glow);
    position: relative;
    transition: var(--transition-speed);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--highlight-gradient);
    transform: scaleX(0.7);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.logo:hover {
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.9), 0 0 30px rgba(0, 242, 255, 0.6);
}

.logo:hover::after {
    transform: scaleX(1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-speed);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 2px;
    background: var(--electric-blue);
    transition: width 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--electric-blue);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
}

.nav-links a:hover::after {
    width: 100%;
    transform: translateX(-50%) scaleX(1);
}

/* Sección Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, 
                rgba(3, 4, 94, 0.9), 
                rgba(10, 17, 40, 0.7)), 
                url('https://images.unsplash.com/photo-1620121692029-d088224ddc74?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(67, 97, 238, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0, 242, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--midnight-blue), transparent);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 8px;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--electric-blue), var(--cyber-blue), var(--turquoise-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--neon-glow);
    animation: textGlow 3s infinite alternate;
    position: relative;
    display: inline-block;
}

.hero h1::before, .hero h1::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 4px;
    background: var(--electric-blue);
    top: 50%;
    transform: translateY(-50%);
    box-shadow: var(--neon-glow);
}

.hero h1::before {
    left: -40px;
}

.hero h1::after {
    right: -40px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease-out;
    position: relative;
}

.hero p::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--cyber-blue), transparent);
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(0, 242, 255, 0.7), 0 0 20px rgba(0, 242, 255, 0.4);
    }
    100% {
        text-shadow: 0 0 15px rgba(0, 242, 255, 0.9), 0 0 30px rgba(0, 242, 255, 0.6), 0 0 45px rgba(0, 242, 255, 0.3);
    }
}

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

/* Botones */
.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--azure-blue), var(--cyber-blue));
    color: var(--text-white);
    padding: 0.9rem 2.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--cyber-blue), var(--turquoise-blue));
    transition: all 0.5s ease;
    z-index: -1;
}

.btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--electric-blue), var(--cyber-blue), var(--turquoise-blue), var(--azure-blue));
    z-index: -2;
    border-radius: 32px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn:hover {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
    transform: translateY(-3px);
    letter-spacing: 1.5px;
}

.btn:hover::before {
    left: 0;
}

.btn:hover::after {
    opacity: 1;
    animation: rotate 2s linear infinite;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Secciones */
section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(67, 97, 238, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 242, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--highlight-gradient);
    border-radius: 2px;
    box-shadow: var(--neon-glow);
}

/* Tarjetas de Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: rgba(3, 4, 94, 0.4);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    border: var(--border-light);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--highlight-gradient);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(76, 201, 240, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--glow-effect), 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(76, 201, 240, 0.5);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--electric-blue);
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--electric-blue);
}

.service-card p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    min-height: 80px;
}

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

.features-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyber-blue);
    font-weight: bold;
}

.features-list li strong {
    color: var(--electric-blue);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.price {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.price strong {
    color: var(--electric-blue);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    background: rgba(3, 4, 94, 0.4);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    border: var(--border-light);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--highlight-gradient);
    transform: scaleX(0.3);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-effect), 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(76, 201, 240, 0.5);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--electric-blue);
    letter-spacing: 1px;
}

.stat-card p {
    color: var(--text-secondary);
}

/* Testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: rgba(3, 4, 94, 0.4);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.4s ease;
    border: var(--border-light);
    box-shadow: var(--box-shadow);
    position: relative;
    backdrop-filter: blur(10px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(76, 201, 240, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle at top right, rgba(76, 201, 240, 0.15), transparent 70%);
    z-index: -1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-effect), 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(76, 201, 240, 0.5);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    text-align: right;
    font-weight: 600;
    color: var(--cyber-blue);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

/* Tienda */
.services.tienda {
    background: linear-gradient(135deg, #051c55, #071a40);
}

/* Footer */
footer {
    background: linear-gradient(to bottom, rgba(3, 4, 94, 0.95), rgba(10, 17, 40, 0.95));
    padding: 4rem 0 2rem;
    border-top: var(--border-light);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(67, 97, 238, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 242, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--electric-blue);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--electric-blue);
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
}

.footer-links a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(10, 75, 218, 0.2);
    color: var(--text-white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s ease;
    border: 1px solid rgba(76, 201, 240, 0.3);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--button-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.social-icons a:hover {
    transform: translateY(-5px) rotateZ(360deg);
    box-shadow: var(--glow-effect);
    border-color: var(--cyber-blue);
}

.social-icons a:hover::before {
    opacity: 1;
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-top: 20px;
}

.copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--electric-blue), transparent);
}

/* Animaciones y efectos adicionales */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 4rem;
        letter-spacing: 5px;
    }
    
    .hero h1::before, .hero h1::after {
        width: 15px;
        height: 3px;
    }
    
    .hero h1::before {
        left: -30px;
    }
    
    .hero h1::after {
        right: -30px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 3rem;
        letter-spacing: 3px;
    }
    
    .hero h1::before, .hero h1::after {
        display: none;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .service-card {
        transform: scale(1) !important;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .service-card, .stat-card, .testimonial-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}