*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Poppins,sans-serif;
}

body{
background:#f4f6f9;
color:#333;
line-height:1.7;
}

.container{
width:90%;
max-width:1100px;
margin:auto;
}

header{
background:#0d6efd;
color:white;
padding:20px;
position:sticky;
top:0;
}

header h1{
font-size:32px;
}

nav{
margin-top:10px;
}

nav a{
color:white;
margin-right:20px;
text-decoration:none;
font-weight:600;
}

.hero{
display:flex;
align-items:center;
justify-content:space-between;
padding:60px 0;
gap:40px;
}

.hero img{
width:250px;
height:250px;
border-radius:50%;
object-fit:cover;
box-shadow:0 0 15px rgba(0,0,0,.2);
}

.btn{
display:inline-block;
margin-top:20px;
background:#0d6efd;
color:white;
padding:12px 25px;
text-decoration:none;
border-radius:8px;
}

section{
padding:60px 0;
}

.cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
gap:20px;
}

.card{
background:white;
padding:20px;
text-align:center;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.proyectos{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
gap:30px;
}

.proyecto{
background:white;
border-radius:10px;
overflow:hidden;
box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.proyecto img{
width:100%;
height:220px;
object-fit:cover;
}

.proyecto h3{
padding:15px;
}

.proyecto p{
padding:0 15px 15px;
}

.proyecto a{
display:inline-block;
margin:15px;
padding:10px 20px;
background:#0d6efd;
color:white;
text-decoration:none;
border-radius:5px;
}

footer{
background:#222;
color:white;
padding:20px;
text-align:center;
}

@media(max-width:768px){

.hero{
flex-direction:column;
text-align:center;
}

}