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

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

html{
    scroll-behavior:smooth;
}

body{

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

    background:#eef2f7;

    color:#1e293b;

    line-height:1.7;

}

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

.container{

    width:min(1100px,92%);
    margin:auto;

}

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

header{

    background:linear-gradient(135deg,#0f172a,#1e40af);

    color:white;

    padding:70px 0;

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

}

.hero{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:50px;

}

.hero h1{

    font-size:3.3rem;

    font-weight:700;

    margin-bottom:8px;

}

.hero h2{

    font-size:1.3rem;

    font-weight:500;

    color:#cbd5e1;

}

.subtitle{

    margin-top:20px;

    color:#94a3b8;

    font-size:1rem;

}

.contact{

    background:rgba(255,255,255,.08);

    padding:25px;

    border-radius:16px;

    min-width:300px;

    backdrop-filter:blur(10px);

}

.contact p{

    margin-bottom:12px;

}

/* =====================================
   MAIN
===================================== */

main{

    margin:50px auto;

}

/* =====================================
   TARJETAS
===================================== */

.card{

    background:white;

    border-radius:18px;

    padding:35px;

    margin-bottom:30px;

    border:1px solid #dbe4ef;

    box-shadow:0 10px 25px rgba(15,23,42,.06);

    transition:.3s;

}

.card:hover{

    transform:translateY(-5px);

    box-shadow:0 18px 40px rgba(15,23,42,.12);

}

.card h3{

    color:#2563eb;

    font-size:1.5rem;

    margin-bottom:18px;

}

.card h4{

    margin-bottom:8px;

    font-size:1.2rem;

}

.card p{

    color:#475569;

    margin-bottom:12px;

}

.card ul{

    padding-left:22px;

}

.card li{

    margin-bottom:10px;

}

/* =====================================
   GRID
===================================== */

.grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:30px;

    margin-bottom:30px;

}
/* =====================================
   SKILLS
===================================== */

.skills{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

    margin-top:10px;

}

.skills span{

    background:#2563eb;

    color:white;

    padding:10px 18px;

    border-radius:999px;

    font-size:.9rem;

    font-weight:500;

    transition:.3s;

    cursor:default;

}

.skills span:hover{

    background:#1d4ed8;

    transform:translateY(-3px);

}

/* =====================================
   BOTONES
===================================== */

.button{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    margin-top:20px;

    margin-right:15px;

    padding:14px 28px;

    border-radius:10px;

    text-decoration:none;

    background:#2563eb;

    color:white;

    font-weight:600;

    transition:.3s;

}

.button:hover{

    background:#1d4ed8;

    transform:translateY(-3px);

}

.secondary{

    background:#334155;

}

.secondary:hover{

    background:#1e293b;

}

/* =====================================
   HR
===================================== */

hr{

    border:none;

    border-top:1px solid #dbe4ef;

    margin:25px 0;

}

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

footer{

    background:#0f172a;

    color:#94a3b8;

    text-align:center;

    padding:35px 0;

    margin-top:60px;

}

/* =====================================
   ANIMACIÓN
===================================== */

@keyframes fadeInUp{

    from{

        opacity:0;

        transform:translateY(25px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.card{

    animation:fadeInUp .5s ease;

}

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

@media (max-width:900px){

    .hero{

        flex-direction:column;

        align-items:flex-start;

    }

    .contact{

        width:100%;

        min-width:unset;

    }

    .grid{

        grid-template-columns:1fr;

    }

}

@media (max-width:768px){

    header{

        padding:50px 0;

    }

    .hero h1{

        font-size:2.3rem;

    }

    .hero h2{

        font-size:1.1rem;

    }

    .card{

        padding:25px;

    }

    .button{

        display:block;

        width:100%;

        margin-right:0;

        margin-bottom:15px;

        text-align:center;

    }

}

@media (max-width:480px){

    body{

        font-size:15px;

    }

    .hero{

        text-align:center;

        align-items:center;

    }

    .contact{

        text-align:center;

    }

    .hero h1{

        font-size:2rem;

    }

    .skills{

        justify-content:center;

    }

}

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

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#e5e7eb;

}

::-webkit-scrollbar-thumb{

    background:#2563eb;

    border-radius:999px;

}

::-webkit-scrollbar-thumb:hover{

    background:#1d4ed8;

}

/* =====================================
   SELECCIÓN
===================================== */

::selection{

    background:#2563eb;

    color:white;

}