
body{
font-family: Arial, sans-serif;
margin:0;
line-height:1.6;
}

.hero{
   width:100%;
   transform-origin:top;
   transition:transform 0.5s ease;
   max-height:1000px;
}

.hero img{
 width: 100%;
  display: block;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform-origin: top;
}

body:not(:has(.hero:hover, nav:hover)) .hero img{
   transition: opacity 0.5s ease, transform 0.5s ease;
   transition-delay:0.5s; 
   transform:scaleY(0);
}

/* ocultar fuera de hero o nav */
body:not(:has(.hero:hover, nav:hover)) .hero{
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay:0.5s;
  max-height:0;
}

nav{
background:#222;
color:white;
display:flex;
justify-content:space-between;
align-items:center;
padding:10px 20px;
}

nav ul{
list-style:none;
display:flex;
gap:20px;
margin:0;
padding:0;
}

nav a{
color:white;
text-decoration:none;
font-weight:bold;
}

section{
padding:40px 20px;
max-width:1000px;
margin:auto;
}

#servicesList{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
margin-top:20px;
}

.service{
border:1px solid #ddd;
padding:20px;
border-radius:8px;
}
