*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#0f172a;
    color:#fff;
    overflow-x:hidden;
}

/* Fondo partículas */

#particles-js{
    position:fixed;
    width:100%;
    height:100%;
    top:0;
    left:0;
    z-index:-1;
}

/* Header */

header{
    position:fixed;
    top:0;
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    background:rgba(15,23,42,.8);
    backdrop-filter:blur(10px);
    z-index:1000;
}

.logo{
    font-size:2rem;
    font-weight:700;
}

.logo span{
    color:#38bdf8;
}

nav a{
    color:white;
    text-decoration:none;
    margin-left:25px;
    transition:.3s;
}

nav a:hover{
    color:#38bdf8;
}

/* HERO */

.hero{
    position:relative;
    overflow:hidden;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:120px 10%;
}

.hero-content{
    max-width:700px;
    margin-top:80px;
    position:relative;
    z-index:3;
}

/* Logo principal */

.hero-logo{
    display:flex;
    justify-content:center;
    margin-bottom:100px;
}

.hero-logo img{
    width:100px;
    max-width:700%;
    filter:drop-shadow(0 0 50px #38bdf8);
    animation:flotar 5s ease-in-out infinite;
}

/* Título */

.hero h1{
    font-size:2.8rem;
    line-height:1.3;
    margin-bottom:30px;
}

.hero p{
    font-size:1.2rem;
    color:#cbd5e1;
    margin-bottom:40px;
}

/* Lluvia de código */

#matrix{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:350px;
    z-index:0;
}

/* Header */

header{
    position:fixed;
    top:0;
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    background:rgba(15,23,42,.8);
    backdrop-filter:blur(10px);
    z-index:1000;
}

/* Animación */

@keyframes flotar{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-15px);
    }

    100%{
        transform:translateY(0);
    }

}

/* BOTONES */

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.btn-primary,
.btn-secondary,
.btn-whatsapp{
    text-decoration:none;
    padding:15px 30px;
    border-radius:50px;
    font-weight:600;
    transition:.3s;
}

.btn-primary{
    background:#2563eb;
    color:white;
    box-shadow:0 0 20px rgba(37,99,235,.5);
}

.btn-primary:hover{
    transform:translateY(-5px);
    box-shadow:0 0 35px rgba(37,99,235,.8);
}

.btn-secondary{
    border:2px solid #38bdf8;
    color:#38bdf8;
}

.btn-secondary:hover{
    background:#38bdf8;
    color:#0f172a;
}

/* SECCIONES */

section{
    padding:100px 10%;
}

section h2{
    text-align:center;
    font-size:2.5rem;
    margin-bottom:50px;
}

/* SERVICIOS */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.card{
    background:rgba(255,255,255,.05);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,.1);
    border-radius:20px;
    padding:35px;
    text-align:center;
    transition:.4s;
}

.card:hover{
    transform:translateY(-10px);
    border-color:#38bdf8;
    box-shadow:0 0 25px rgba(56,189,248,.3);
}

.card h3{
    margin:15px 0;
}

.card p{
    color:#cbd5e1;
}

/* PROCESO */

.steps{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:40px;
    max-width:1200px;
    margin:0 auto;
}

.step{
    width:250px;
    text-align:center;
}

.step span{
    width:70px;
    height:70px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:auto;
    border-radius:50%;
    background:#2563eb;
    color:white;
    font-size:1.5rem;
    font-weight:bold;
    margin-bottom:20px;
    box-shadow:0 0 20px rgba(37,99,235,.5);
}

.step h3{
    margin-bottom:15px;
    font-size:1.5rem;
}

.step p{
    color:#cbd5e1;
    line-height:1.6;
}


/* CONTACTO */

.contact{
    text-align:center;
}

.contact p{
    color:#cbd5e1;
    margin-bottom:30px;
}

.btn-whatsapp{
    background:#25D366;
    color:white;
    display:inline-block;
}

.btn-whatsapp:hover{
    transform:scale(1.05);
}

/* FOOTER */

footer{
    text-align:center;
    padding:30px;
    border-top:1px solid rgba(255,255,255,.1);
    color:#94a3b8;
}

/* RESPONSIVE */

@media(max-width:768px){

    header{
        flex-direction:column;
        gap:15px;
    }

    nav{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero h1{
        font-size:2.3rem;
    }

    .hero p{
        font-size:1rem;
    }

    section h2{
        font-size:2rem;
    }



}
/* Animaciones Scroll */

.card,
.step{
    opacity:0;
    transform:translateY(40px);
    transition:.8s ease;
}

.card.visible,
.step.visible{
    opacity:1;
    transform:translateY(0);
}
.whatsapp-float{
    position:fixed;
    bottom:25px;
    right:25px;
    width:65px;
    height:65px;
    background:#25D366;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:30px;
    text-decoration:none;
    color:white;
    box-shadow:0 0 25px rgba(37,211,102,.5);
    z-index:9999;
    transition:.3s;
}

.whatsapp-float:hover{
    transform:scale(1.1);
}
#matrix{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-2;
}
.hero-image img{
    width:50px;
    animation:flotar 4s ease-in-out infinite;
}

@keyframes flotar{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-20px);
    }

    100%{
        transform:translateY(0);
    }

}
.hero{
    position:relative;
    overflow:hidden;
}

/* Logo gigante de fondo */

.hero-logo-bg{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    z-index:2;
    opacity:1;
    pointer-events:none;
}

.hero-logo-bg img{
    width:1000px;
    max-width:none;
    opacity:0.55;
    filter:drop-shadow(0 0 40px #38bdf8);
    animation:flotar 8s ease-in-out infinite;
}

/* Lluvia de código */

#matrix{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:0;
    header{
    z-index:1000;
}
}

/* Texto por encima */

.hero-content{
    position:relative;
    z-index:3;
}

.hero-logo{
    display:flex;
    justify-content:center;
    margin-bottom:40px;
}

.hero-logo img{
    width:500px;
    max-width:90%;
    animation:flotar 5s ease-in-out infinite;
    filter:drop-shadow(0 0 25px #38bdf8);
}
