/* ===================================
   RESET
=================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --primary:#2563eb;
    --primary-light:#3b82f6;
    --dark:#081120;
    --dark-card:#12203b;
    --text:#ffffff;
    --text-soft:#cbd5e1;
    --border:rgba(255,255,255,.08);

}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Inter',sans-serif;

    background:
    radial-gradient(
        circle at top,
        #102248 0%,
        #081120 60%,
        #050c18 100%
    );

    color:var(--text);

    overflow-x:hidden;

    line-height:1.8;

}

/* ===================================
   PARTICULAS
=================================== */

#particles{

    position:fixed;

    inset:0;

    z-index:-2;

    overflow:hidden;

}

/* ===================================
   CONTENEDOR
=================================== */

.container{

    width:100%;

    max-width:1400px;

    margin:auto;

    padding-left:30px;
    padding-right:30px;

}

/* ===================================
   HEADER
=================================== */

header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    z-index:9999;

    transition:.4s;

}

header.scrolled{

    background:
    rgba(5,10,20,.85);

    backdrop-filter:blur(20px);

    border-bottom:
    1px solid rgba(255,255,255,.05);

}

header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    min-height:90px;

}

.logo img{

    height:70px;

    display:block;

}

nav{

    display:flex;

    gap:35px;

}

nav a{

    color:white;

    text-decoration:none;

    font-weight:500;

    transition:.3s;

}

nav a:hover{

    color:var(--primary-light);

}

.mobile-menu{

    display:none;

    font-size:2rem;

    cursor:pointer;

}

/* ===================================
   HERO
=================================== */

.hero{

    position:relative;

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    overflow:hidden;

}

.hero-glow{

    position:absolute;

    width:900px;

    height:900px;

    background:
    radial-gradient(
        circle,
        rgba(37,99,235,.20),
        transparent 70%
    );

    z-index:-1;

    filter:blur(60px);

}

.hero-content{

    text-align:center;

    max-width:1100px;

}

.badge{

    display:inline-block;

    background:
    rgba(37,99,235,.15);

    border:
    1px solid rgba(59,130,246,.3);

    padding:10px 18px;

    border-radius:30px;

    margin-bottom:30px;

}

.hero h1{

    font-size:3.2rem;

    line-height:1.2;

    letter-spacing:3px;

    font-weight:800;

    margin-bottom:30px;

}

.hero p{

    color:var(--text-soft);

    font-size:1.3rem;

    max-width:900px;

    margin:auto;

    margin-bottom:35px;

}

.hero-list{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:15px;

    margin-bottom:40px;

}

.hero-list span{

    background:
    rgba(255,255,255,.05);

    border:
    1px solid rgba(255,255,255,.05);

    padding:10px 16px;

    border-radius:30px;

}

/* ===================================
   BOTONES
=================================== */

.hero-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

.btn{

    background:var(--primary);

    color:white;

    text-decoration:none;

    padding:16px 34px;

    border-radius:12px;

    transition:.3s;

    font-weight:600;

}

.btn:hover{

    transform:translateY(-4px);

    background:var(--primary-light);

}

.btn-secondary{

    text-decoration:none;

    color:white;

    padding:16px 34px;

    border-radius:12px;

    border:1px solid rgba(255,255,255,.2);

    transition:.3s;

}

.btn-secondary:hover{

    background:white;

    color:#000;

}

/* ===================================
   SECCIONES
=================================== */

.section{

    padding:120px 0;

    position:relative;

}

.dark-section{

    background:
    rgba(255,255,255,.02);

    backdrop-filter:blur(10px);

}

.section-title{

    text-align:center;

    font-size:3rem;

    margin-bottom:20px;

}

.section-subtitle{

    text-align:center;

    color:var(--text-soft);

    max-width:900px;

    margin:auto;

    margin-bottom:70px;

}

/* ===================================
   ESTADISTICAS
=================================== */

.stats{

    padding:80px 0;

}

.stats-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

}

.stat-card{

    background:
    rgba(255,255,255,.03);

    border:
    1px solid var(--border);

    border-radius:20px;

    text-align:center;

    padding:35px;

    transition:.3s;

}

.stat-card:hover{

    transform:translateY(-8px);

    box-shadow:
    0 20px 40px rgba(0,0,0,.3);

}

.stat-card h3{

    font-size:3rem;

    color:var(--primary-light);

    margin-bottom:10px;

}

.stat-card p{

    color:var(--text-soft);

}

/* ===================================
   TARJETAS SERVICIOS
=================================== */

.cards{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(350px,1fr));

    gap:30px;

}

.card{

    background:
    rgba(255,255,255,.03);

    border:
    1px solid var(--border);

    border-radius:24px;

    padding:35px;

    transition:.4s;

}

.card:hover{

    transform:
    translateY(-10px);

    border-color:
    rgba(37,99,235,.4);

    box-shadow:
    0 20px 50px rgba(37,99,235,.15);

}

.card-icon{

    font-size:3rem;

    margin-bottom:20px;

}

.card h3{

    margin-bottom:25px;

    font-size:1.5rem;

}

.card ul{

    list-style:none;

}

.card li{

    margin-bottom:12px;

    color:var(--text-soft);

}

/* ===================================
   BENEFICIOS EMPRESAS
=================================== */

.benefits-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:20px;

}

.benefit{

    background:
    rgba(255,255,255,.03);

    border:
    1px solid var(--border);

    padding:25px;

    border-radius:18px;

    text-align:center;

    transition:.3s;

}

.benefit:hover{

    transform:translateY(-5px);

    border-color:
    rgba(37,99,235,.4);

}

/* ===================================
   TECNOLOGIAS
=================================== */

.tech-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));

    gap:20px;

}

.tech{

    background:
    rgba(37,99,235,.10);

    border:
    1px solid rgba(37,99,235,.20);

    border-radius:15px;

    padding:20px;

    text-align:center;

    font-weight:600;

    transition:.3s;

}

.tech:hover{

    background:
    rgba(37,99,235,.25);

    transform:scale(1.05);

}

/* ===================================
   SOBRE MI
=================================== */

.about-box{

    max-width:1000px;

    margin:auto;

    text-align:center;

}

.about-box p{

    margin-bottom:25px;

    color:var(--text-soft);

}

.skills{

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:15px;

    margin-top:30px;

}

.skills span{

    background:
    var(--primary);

    padding:10px 18px;

    border-radius:30px;

    font-size:.95rem;

}

/* ===================================
   CONTACTO
=================================== */

.contact-box{

    max-width:900px;

    margin:auto;

    background:
    rgba(255,255,255,.03);

    border:
    1px solid var(--border);

    border-radius:25px;

    padding:50px;

}

.contact-item{

    margin-bottom:30px;

    text-align:center;

}

.contact-item h3{

    margin-bottom:10px;

}

.contact-item p{

    color:var(--text-soft);

}

.contact-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

    margin-top:40px;

}

/* ===================================
   CTA
=================================== */

.cta-section{

    padding:120px 0;

}

.cta-box{

    text-align:center;

    background:
    linear-gradient(
    135deg,
    rgba(37,99,235,.25),
    rgba(59,130,246,.08));

    border:
    1px solid rgba(59,130,246,.2);

    border-radius:30px;

    padding:70px 40px;

}

.cta-box h2{

    font-size:2.5rem;

    margin-bottom:20px;

}

.cta-box p{

    color:var(--text-soft);

    margin-bottom:30px;

}

/* ===================================
   FOOTER
=================================== */

footer{

    border-top:
    1px solid rgba(255,255,255,.05);

    padding:80px 0 30px;

}

.footer-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:40px;

    margin-bottom:50px;

}

.footer-grid h3{

    margin-bottom:20px;

}

.footer-grid p,
.footer-grid li{

    color:var(--text-soft);

}

.footer-grid ul{

    list-style:none;

}

.footer-grid li{

    margin-bottom:10px;

}

.footer-copy{

    text-align:center;

    color:#94a3b8;

    padding-top:25px;

    border-top:
    1px solid rgba(255,255,255,.05);

}

/* ===================================
   REVEAL ANIMATION
=================================== */

.reveal{

    opacity:0;

    transform:
    translateY(60px);

    transition:
    opacity .8s ease,
    transform .8s ease;

}

.reveal.active{

    opacity:1;

    transform:
    translateY(0);

}

/* ===================================
   RESPONSIVE
=================================== */

@media(max-width:1000px){

    .hero h1{

        font-size:3.5rem;

    }

}

@media(max-width:768px){

    nav{

        display:none;

    }

    .mobile-menu{

        display:block;

    }

    .hero h1{

        font-size:2rem;

        letter-spacing:2px;

    }

    .section-title{

        font-size:2.2rem;

    }

    .cards{

        grid-template-columns:1fr;

    }

    .stats-grid{

        grid-template-columns:1fr 1fr;

    }

}

@media(max-width:600px){

    .stats-grid{

        grid-template-columns:1fr;

    }

    .hero-buttons{

        flex-direction:column;

        align-items:center;

    }

    .btn,
    .btn-secondary{

        width:100%;

        max-width:320px;

        text-align:center;

    }

    .contact-box{

        padding:30px 20px;

    }

}

/* PARTICULAS */

.particle{

    position:absolute;

    display:block;

    border-radius:50%;

    background:
    rgba(59,130,246,.6);

    animation:
    particleFloat linear infinite;

}

@keyframes particleFloat{

    0%{

        transform:
        translateY(0);

        opacity:0;

    }

    50%{

        opacity:1;

    }

    100%{

        transform:
        translateY(-100vh);

        opacity:0;

    }

}

/* BOTON TOP */

#topButton{

    position:fixed;

    right:25px;

    bottom:25px;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    background:#2563eb;

    color:white;

    font-size:22px;

    cursor:pointer;

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:9999;

}

#topButton.show{

    opacity:1;

    visibility:visible;

}

/* MENU MOVIL */

@media(max-width:768px){

    nav.mobile-open{

        display:flex;

        position:absolute;

        top:90px;

        left:0;

        width:100%;

        background:
        rgba(10,15,30,.95);

        flex-direction:column;

        padding:20px;

        gap:20px;

        text-align:center;

    }

}
