/*=========================
    RESET
=========================*/

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    background:#0f172a;

    color:#f8fafc;

    line-height:1.7;

}

/*=========================
    CONTENEDOR
=========================*/

.container{

    width:min(1200px,90%);
    margin:auto;

}

/*=========================
    HEADER
=========================*/

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    background:rgba(15,23,42,.95);

    backdrop-filter:blur(10px);

    z-index:1000;

    border-bottom:1px solid rgba(255,255,255,.05);

}

header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:75px;

}

.logo{

    font-size:1.4rem;

    font-weight:700;

    color:#38bdf8;

}

nav ul{

    display:flex;

    gap:30px;

    list-style:none;

}

nav a{

    text-decoration:none;

    color:white;

    transition:.3s;

    font-weight:500;

}

nav a:hover{

    color:#38bdf8;

}

/*=========================
    HERO
=========================*/

.hero{

    min-height:100vh;

    display:flex;

    align-items:center;

    background:

    radial-gradient(circle at top right,#2563eb22,transparent 45%),

    radial-gradient(circle at bottom left,#38bdf822,transparent 45%),

    #0f172a;

}

.hero-content{

    display:grid;

    grid-template-columns:1fr 420px;

    gap:60px;

    align-items:center;

}

.badge{

    display:inline-block;

    background:#2563eb;

    padding:8px 18px;

    border-radius:30px;

    margin-bottom:20px;

    font-size:.9rem;

}

.hero h1{

    font-size:3.7rem;

    line-height:1.1;

    margin-bottom:20px;

}

.hero h1 span{

    color:#38bdf8;

}

.hero p{

    margin-bottom:18px;

    color:#cbd5e1;

    font-size:1.05rem;

}

.hero-buttons{

    display:flex;

    gap:20px;

    margin-top:30px;

}

.btn{

    background:#2563eb;

    color:white;

    text-decoration:none;

    padding:14px 26px;

    border-radius:10px;

    transition:.3s;

    font-weight:600;

}

.btn:hover{

    transform:translateY(-3px);

    background:#1d4ed8;

}

.btn-outline{

    background:transparent;

    border:2px solid #38bdf8;

}

.btn-outline:hover{

    background:#38bdf8;

    color:#0f172a;

}
/*=========================
    FOTO HERO
=========================*/

.hero-image{

    display:flex;

    justify-content:center;

    align-items:center;

}

.hero-image img{

    width:360px;

    height:360px;

    object-fit:cover;

    border-radius:50%;

    border:6px solid #38bdf8;

    box-shadow:
        0 0 40px rgba(56,189,248,.35),
        0 20px 40px rgba(0,0,0,.35);

    transition:.4s;

}

.hero-image img:hover{

    transform:scale(1.03);

}

/*=========================
    SECCIONES
=========================*/

section{

    padding:110px 0;

}

section h2{

    font-size:2.6rem;

    text-align:center;

    margin-bottom:50px;

    color:#38bdf8;

}

.section-description{

    max-width:800px;

    margin:0 auto 50px;

    text-align:center;

    color:#cbd5e1;

}

/*=========================
    SOBRE MI
=========================*/

.about-grid{

    max-width:900px;

    margin:auto;

}

.about-grid p{

    color:#cbd5e1;

    margin-bottom:22px;

    font-size:1.08rem;

}

.about-grid strong{

    color:white;

}

/*=========================
    TECNOLOGIAS
=========================*/

.skills-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));

    gap:25px;

}

.skill-card{

    background:#1e293b;

    border:1px solid rgba(255,255,255,.05);

    border-radius:18px;

    padding:35px 20px;

    text-align:center;

    transition:.35s;

}

.skill-card:hover{

    transform:translateY(-10px);

    border-color:#38bdf8;

    box-shadow:0 20px 40px rgba(0,0,0,.35);

}

.skill-card i{

    font-size:60px;

    margin-bottom:18px;

}

.skill-card h3{

    font-size:1.1rem;

    font-weight:600;

}

/*=========================
    EXPERIENCIA
=========================*/

.timeline{

    max-width:900px;

    margin:auto;

}

.timeline-item{

    background:#1e293b;

    padding:35px;

    border-left:5px solid #38bdf8;

    border-radius:12px;

}

.timeline-item .date{

    color:#38bdf8;

    font-weight:600;

}

.timeline-item h3{

    margin-top:12px;

    margin-bottom:8px;

    font-size:1.5rem;

}

.timeline-item h4{

    color:#94a3b8;

    margin-bottom:20px;

    font-weight:500;

}

.timeline-item ul{

    padding-left:20px;

}

.timeline-item li{

    margin-bottom:12px;

    color:#cbd5e1;

}

/*=========================
    FORMACION
=========================*/

.education-card{

    max-width:850px;

    margin:auto;

    background:#1e293b;

    border-radius:15px;

    padding:40px;

    text-align:center;

}

.education-card h3{

    font-size:1.8rem;

    margin-bottom:15px;

}

.education-card p{

    margin-bottom:15px;

    color:#cbd5e1;

}
/*=========================
    PORTFOLIO
=========================*/

.projects-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));

    gap:35px;

}

.project-card{

    background:#1e293b;

    border-radius:18px;

    overflow:hidden;

    transition:.35s;

    border:1px solid rgba(255,255,255,.05);

}

.project-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 45px rgba(0,0,0,.4);

    border-color:#38bdf8;

}

.project-card img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.project-content{

    padding:25px;

}

.project-content h3{

    font-size:1.5rem;

    margin-bottom:15px;

}

.project-content p{

    color:#cbd5e1;

    margin-bottom:20px;

}

.project-tags{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:25px;

}

.project-tags span{

    background:#2563eb;

    padding:6px 14px;

    border-radius:20px;

    font-size:.85rem;

}

.project-link{

    display:inline-block;

    color:#38bdf8;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}

.project-link:hover{

    color:white;

}

/*=========================
    CONTACTO
=========================*/

.contact-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:25px;

}

.contact-card{

    background:#1e293b;

    padding:35px;

    border-radius:18px;

    text-decoration:none;

    color:white;

    transition:.3s;

    border:1px solid rgba(255,255,255,.05);

}

.contact-card:hover{

    transform:translateY(-8px);

    border-color:#38bdf8;

}

.contact-card h3{

    margin-bottom:15px;

    color:#38bdf8;

}

.contact-card p{

    color:#cbd5e1;

}

/*=========================
    FOOTER
=========================*/

footer{

    background:#020617;

    padding:35px 0;

    margin-top:80px;

    text-align:center;

    border-top:1px solid rgba(255,255,255,.08);

}

footer p{

    color:#94a3b8;

}

/*=========================
    SCROLLBAR
=========================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#0f172a;

}

::-webkit-scrollbar-thumb{

    background:#2563eb;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#38bdf8;

}
/*=========================
    ANIMACIONES
=========================*/

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(30px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

.hero-text{

    animation:fadeUp .8s ease;

}

.hero-image{

    animation:fadeUp 1.1s ease;

}

.project-card{

    animation:fadeUp .8s ease;

}

.skill-card{

    animation:fadeUp .7s ease;

}

/*=========================
    RESPONSIVE TABLET
=========================*/

@media(max-width:992px){

    .hero-content{

        grid-template-columns:1fr;
        text-align:center;

    }

    .hero-image{

        order:-1;

        margin-bottom:40px;

    }

    .hero-image img{

        width:280px;
        height:280px;

    }

    .hero-buttons{

        justify-content:center;

    }

    nav ul{

        gap:18px;

    }

    .hero h1{

        font-size:3rem;

    }

}

/*=========================
    RESPONSIVE MOVIL
=========================*/

@media(max-width:768px){

    header .container{

        flex-direction:column;

        height:auto;

        padding:18px 0;

    }

    nav{

        margin-top:15px;

    }

    nav ul{

        flex-wrap:wrap;

        justify-content:center;

        gap:15px;

    }

    section{

        padding:90px 0;

    }

    .hero{

        padding-top:120px;

    }

    .hero h1{

        font-size:2.4rem;

    }

    section h2{

        font-size:2rem;

    }

    .hero-buttons{

        flex-direction:column;

        align-items:center;

    }

    .btn{

        width:220px;
        text-align:center;

    }

    .projects-grid{

        grid-template-columns:1fr;

    }

    .skills-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .contact-grid{

        grid-template-columns:1fr;

    }

}

/*=========================
    MOVILES PEQUEÑOS
=========================*/

@media(max-width:480px){

    body{

        font-size:15px;

    }

    .hero h1{

        font-size:2rem;

    }

    .hero-image img{

        width:220px;

        height:220px;

    }

    .skills-grid{

        grid-template-columns:1fr;

    }

    .timeline-item{

        padding:25px;

    }

    .education-card{

        padding:25px;

    }

    .project-content{

        padding:20px;

    }

    .contact-card{

        padding:25px;

    }

}

/*=========================
    SELECCIÓN DE TEXTO
=========================*/

::selection{

    background:#38bdf8;

    color:#0f172a;

}

/*=========================
    IMÁGENES
=========================*/

img{

    max-width:100%;

    display:block;

}

/*=========================
    ENLACES
=========================*/

a{

    transition:.3s;

}