/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background:#07070a;
    color:white;
    overflow-x:hidden;
}

/* SCROLL */
section{
    scroll-margin-top:100px;
}

/* NAV */
.nav{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 50px;
    background:rgba(0,0,0,.5);

    /* 🔥 FIX MOBILE PERFORMANCE */
    backdrop-filter:none;

    z-index:100;
}

.logo{
    font-size:20px;
    font-weight:bold;
    letter-spacing:2px;
}

.nav nav{
    display:flex;
    gap:25px;
}

.nav a{
    color:white;
    text-decoration:none;
    opacity:.8;
    transition:.3s;
}

.nav a:hover{
    opacity:1;
}

/* HERO */
.hero{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:140px 20px 60px;
    position:relative;
}

.glow{
    position:absolute;
    width:600px;
    height:600px;
    background:radial-gradient(circle,#4f46e5,transparent);
    filter:blur(120px);
    opacity:.4;
    pointer-events:none;
}

.hero-box{
    max-width:900px;
    position:relative;
    z-index:2;
}

.hero-box h1{
    font-size:65px;
    line-height:1.1;
    margin-bottom:25px;
}

.hero-box p{
    opacity:.7;
    font-size:18px;
    line-height:1.7;
    max-width:700px;
    margin:auto;
}

.buttons{
    margin-top:40px;
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.btn{
    display:inline-block;
    text-decoration:none;
    padding:15px 30px;
    border-radius:50px;
    transition:.3s;
    cursor:pointer;
}

.primary{
    background:white;
    color:black;
}

.primary:hover{
    transform:translateY(-4px);
}

.secondary{
    border:1px solid rgba(255,255,255,.3);
    color:white;
}

.secondary:hover{
    background:rgba(255,255,255,.08);
}

/* STATS */
.stats{
    padding:40px;
    display:flex;
    justify-content:center;
    gap:40px;
    flex-wrap:wrap;
}

.stats div{
    background:rgba(255,255,255,.05);
    padding:20px 30px;
    border-radius:15px;
}

/* SECCIONES */
.section{
    padding:120px 50px;
    text-align:center;
}

.section h2{
    font-size:42px;
    margin-bottom:60px;
}

.dark{
    background:#0f0f14;
}

/* GRID */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

/* CARD */
.card{
    background:rgba(255,255,255,.05);

    /* 🔥 FIX MOBILE */
    backdrop-filter:none;

    padding:35px;
    border-radius:20px;
    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
    background:rgba(255,255,255,.08);
}

.card h3{
    margin-bottom:15px;
    font-size:24px;
}

.card p{
    opacity:.7;
    line-height:1.7;
}

/* CONTACTO */
.contact{
    padding:140px 20px;
    text-align:center;
}

.contact h2{
    font-size:50px;
    margin-bottom:20px;
}

.contact p{
    opacity:.7;
    margin-bottom:40px;
}

/* FOOTER */
footer{
    text-align:center;
    padding:40px;
    opacity:.5;
}

/* ANIMACIONES */
.fade-in{
    opacity:0;
    transform:translateY(40px);
    transition:1s;
}

.fade-in.show{
    opacity:1;
    transform:translateY(0);
}

/* =========================
   MOBILE OPTIMIZADO
   ========================= */

@media(max-width:900px){

    .nav{
        padding:20px;
        justify-content:center;
        flex-wrap:wrap;
    }

    .nav nav{
        justify-content:center;
        flex-wrap:wrap;
    }

    .hero-box h1{
        font-size:45px;
    }

    .section{
        padding:100px 20px;
    }

    .contact h2{
        font-size:38px;
    }
}

@media(max-width:600px){

    .hero-box h1{
        font-size:34px;
    }

    .hero-box p{
        font-size:15px;
    }

    .buttons{
        flex-direction:column;
    }

    .btn{
        width:100%;
    }

    .stats{
        flex-direction:column;
    }

    /* 🔥 DESACTIVA GLOW EN MOBILE */
    .glow{
        display:none;
    }

    /* 🔥 animaciones más livianas */
    .fade-in{
        transition:0.4s ease;
    }
}