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

body{
font-family:'Poppins',sans-serif;
background:#f5f7fb;
color:#222;
line-height:1.6;
}

.hero{
background:url('fondo.png');
background-size:cover;
background-position:center;
background-repeat:no-repeat;
color:white;
padding:120px 30px 40px;
height:720px;
position:relative;
display:flex;
align-items:center;
justify-content:center;
}

.navbar{
position:fixed;
top:0;
left:0;
width:100%;
display:flex;
justify-content:center;
align-items:center;
gap:30px;
padding:8px 20px;
background:rgba(0,0,0,0.65);
backdrop-filter:blur(4px);
z-index:1000;
min-height:60px;
}

.logo-area{
display:flex;
align-items:center;
}

.logo-area img{
width:180px;
border-radius:12px;
}

.menu{
display:flex;
gap:30px;
align-items:center;
justify-content:center;
}

.menu a{
color:white;
text-decoration:none;
font-weight:600;
font-size:1rem;
transition:0.3s;
}

.menu a:hover{
opacity:0.8;
}

.hero-content{
display:flex;
align-items:center;
justify-content:center;
text-align:center;
width:100%;
margin-top:40px;
}

.hero-text{
max-width:950px;
padding:30px;
border-radius:24px;
}

.hero h1{
font-size:4.2rem;
margin-bottom:25px;
line-height:1;
text-shadow:0 4px 10px rgba(0,0,0,0.45);
}

.hero p{
font-size:1.3rem;
text-shadow:0 2px 8px rgba(0,0,0,0.45);
max-width:850px;
margin:auto;
}

.buttons{
display:flex;
gap:15px;
justify-content:center;
margin-top:25px;
flex-wrap:wrap;
}

.btn{
padding:14px 26px;
border-radius:40px;
text-decoration:none;
font-weight:600;
display:inline-block;
}

.primary{
background:white;
color:#0b4d8c;
}

.secondary{
border:2px solid white;
color:white;
}

.section, .dark-section, .contact{
padding:70px 20px;
max-width:1200px;
margin:auto;
}

h2{
font-size:2.2rem;
margin-bottom:30px;
text-align:center;
}

.cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
gap:20px;
margin-top:30px;
}

.card{
background:white;
padding:25px;
border-radius:18px;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.dark-section{
background:#0f172a;
color:white;
border-radius:20px;
margin-top:40px;
}

.gallery{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
}

.gallery-item{
height:220px;
background:#dbeafe;
border-radius:20px;
display:flex;
align-items:center;
justify-content:center;
font-weight:600;
}

.contact-form{
display:flex;
flex-direction:column;
gap:15px;
max-width:600px;
margin:auto;
}

.contact-form input,
.contact-form textarea{
padding:15px;
border-radius:12px;
border:1px solid #ccc;
}

.contact-form textarea{
min-height:140px;
}

.contact-info{
text-align:center;
margin-top:30px;
}

.socials{
display:flex;
justify-content:center;
gap:20px;
margin-top:20px;
}

.socials a{
text-decoration:none;
color:#0b4d8c;
font-weight:600;
}

.whatsapp-float{
position:fixed;
right:20px;
bottom:20px;
background:#25D366;
color:white;
padding:15px 18px;
border-radius:50px;
text-decoration:none;
font-weight:700;
z-index:999;
max-width:260px;
text-align:center;
box-shadow:0 10px 20px rgba(0,0,0,0.2);
}

footer{
background:#111827;
color:white;
text-align:center;
padding:25px;
margin-top:50px;
}

@media(max-width:768px){

.navbar{
position:fixed;
top:0;
left:0;
width:100%;
display:flex;
justify-content:center;
align-items:center;
gap:30px;
padding:8px 20px;
background:rgba(0,0,0,0.65);
backdrop-filter:blur(4px);
z-index:1000;
min-height:60px;
}

.hero{
background:url('fondo.png');
background-size:cover;
background-position:center;
background-repeat:no-repeat;
color:white;
padding:120px 30px 40px;
height:720px;
position:relative;
display:flex;
align-items:center;
justify-content:center;
}

.hero h1{
font-size:4.2rem;
margin-bottom:25px;
line-height:1;
text-shadow:0 4px 10px rgba(0,0,0,0.45);
}

.hero-text{
max-width:950px;
padding:30px;
border-radius:24px;
}

.menu{
flex-wrap:wrap;
gap:15px;
}
}


@media(max-width:768px){

.hero{
height:auto;
padding:120px 20px 80px;
}

.hero h1{
font-size:2.4rem;
}

.hero p{
font-size:1rem;
}

.navbar{
padding:8px 15px;
}

}

/* ===== GALERIA PROYECTOS ===== */

.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
  margin-top:40px;
}

.gallery-item{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  cursor:pointer;
  min-height:280px;
}

.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:.4s;
}

.gallery-item:hover img{
  transform:scale(1.06);
}

.gallery-item span{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:18px;
  background:rgba(0,0,0,.55);
  color:white;
  font-size:20px;
  font-weight:600;
  text-align:center;
}

/* ===== MODAL ===== */

.modal{
  display:none;
  position:fixed;
  z-index:99999;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.88);
  justify-content:center;
  align-items:center;
  padding:30px;
}

.modal-content{
  background:white;
  width:100%;
  max-width:1200px;
  max-height:90vh;
  overflow-y:auto;
  border-radius:20px;
  padding:25px;
  position:relative;
}

.close-modal{
  position:absolute;
  right:20px;
  top:10px;
  font-size:42px;
  font-weight:bold;
  cursor:pointer;
}

.modal-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
  margin-top:35px;
}

.modal-gallery img{
  width:100%;
  border-radius:14px;
  object-fit:cover;
}
.justificado{
  text-align: justify;
}