/* ================= GLOBAL RESET ================= */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family:'Poppins',sans-serif;
  background:#f4f6f8;
  color:#222;
  line-height:1.7;
  padding-top:90px;
}

/* ================= HEADER ================= */
header{
  position:fixed;
  top:0;
  width:100%;
  background:#1e3a5f;
  padding:12px 0;
  z-index:1000;
}

.nav{
  width:90%;
  max-width:1200px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.nav a{
  color:white;
  margin-left:30px;
  text-decoration:none;
  font-weight:500;
  transition:.3s;
}

.nav a:hover{
  opacity:.8;
}

/* Logo limpio */
.logo{
  height:70px;
  width:auto;
  display:block;
}

/* ================= HERO ================= */
.hero{
  height:90vh;
  background:url('../images/hero.webp') center/cover no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:white;
  position:relative;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:800px;
}

/* Marca institucional en hero */
.hero-brand{
  text-transform:uppercase;
  letter-spacing:8px;
  font-size:15px;
  font-weight:400;
  margin-bottom:25px;
  opacity:.9;
}

/* ================= SECTIONS ================= */
.section{
  padding:80px 0 90px 0;
}

.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

h1{
  font-size:2.4rem;
  margin-bottom:35px;
  text-align:center;
}

h2{
  font-size:1.8rem;
  margin-bottom:15px;
}

.section > .container > h2{
  text-align:center;
  margin-bottom:50px;
}

/* ================= PROJECTS ================= */
.project-section{
  margin-bottom:120px;
  padding-bottom:60px;
  border-bottom:1px solid #e2e6ea;
}

.project-block{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  align-items:center;
  margin-bottom:35px;
}

.project-block img{
  width:100%;
  border-radius:12px;
  box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.project-text{
  padding:0 15px;
}

.project-text p{
  color:#444;
  margin-top:12px;
}

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

.gallery img{
  width:100%;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  transition:.3s;
}

.gallery img:hover{
  transform:scale(1.04);
}

/* ================= TEAM ================= */
.team-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:40px;
  text-align:center;
}

.team-grid img{
  width:180px;
  height:180px;
  object-fit:cover;
  border-radius:50%;
  margin-bottom:12px;
}

/* ================= CONTACT V1.2 ================= */
.contact-intro{
  text-align:center;
  max-width:700px;
  margin:0 auto 50px;
  color:#555;
}

.contact-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:60px;
  align-items:start;
  margin-top:40px;
}

.contact-form,
.contact-info{
  background:white;
  padding:35px;
  border-radius:10px;
  box-shadow:0 8px 25px rgba(0,0,0,.05);
}

.contact-info h3{
  margin-bottom:15px;
}

.contact-info p{
  color:#444;
  line-height:1.6;
}

form input,
form textarea{
  width:100%;
  padding:12px;
  margin-bottom:15px;
  border:1px solid #ccc;
  border-radius:6px;
  font-family:'Poppins',sans-serif;
}

button{
  background:#c7a14a;
  color:white;
  border:none;
  padding:12px 30px;
  border-radius:4px;
  cursor:pointer;
  transition:.3s;
}

button:hover{
  opacity:.85;
}

/* ================= FOOTER ================= */
footer{
  background:#1e3a5f;
  color:white;
  text-align:center;
  padding:28px;
  margin-top:60px;
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px){

  .project-block{
    grid-template-columns:1fr;
  }

  .contact-grid{
    grid-template-columns:1fr;
    gap:40px;
  }

}