:root {
    --dark: #0b1120;
    --primary: #1e2f97;
    --secondary: #243bbf;
    --light: #f1f5f9;
    --white: #ffffff;

    /* Transiciones */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

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

body {
    font-family: "Manrope", sans-serif;
    background: var(--white);
    color: #0f172a;
}

img {
    max-width: 100%;
    height: auto;
}


.header {
    position: fixed;
    width: 100%;
    background: rgba(11, 17, 32, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 6%;
    z-index: 1000;
}

.logo {
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
}

.logo span {
    color: var(--secondary);
}

.header nav a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
}

.btn-nav {
    background: var(--secondary);
    padding: 0.6rem 1.3rem;
    border-radius: 8px;
}

section {
    position: relative;
    overflow: hidden;
}

h2 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--dark), #111827);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 6%;
    color: white;

}

.hero {
    background-attachment: fixed;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
}

.hero p {
    max-width: 600px;
    margin: auto;
    opacity: 0.8;
    margin-bottom: 2rem;
}

#network {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.btn-primary {
    background: var(--secondary);
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    margin-right: 1rem;
}

.btn-secondary {
    border: 1px solid white;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    color: white;
    text-decoration: none;
}

.services {
    padding: 7rem 6%;
    background: var(--light);
    text-align: center;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    transition: 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.industries {
    padding: 6rem 6%;
    text-align: center;
}

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

.metrics {
    background: var(--dark);
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 4rem 6%;
    text-align: center;
}

.metrics h3 {
    font-size: 2.5rem;
}

.cta {
    padding: 6rem 6%;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.cta p {
    margin-bottom: 1.5rem;
}

footer {
    background: #0a0f1e;
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width:768px) {
    .header nav {
        display: none;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 6%;
        background: #0b1120;
        padding: 1rem;
        border: .05px solid grey;
        border-radius: 8px;
        animation: animatetop var(--transition-slow);

    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        color: white;
    }

    .metrics {
        flex-direction: column;
        gap: 2rem;
    }

   
}
@media (max-width:478px) {
 .hero-buttons {
        display: flex;
        flex-direction: column;
        
        
       
    }
    .btn-primary{
       
        margin-bottom: 1.5rem;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@keyframes animatetop {
    from {
        right: -50px;
        opacity: 0.8;
    }

    to {
        right: 6%;
        opacity: 0.8;
        filter: alpha(opacity=50);
    }
}