/* Importamos tipografías */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Poppins:wght@400;600&display=swap');

body {
  font-family: "Poppins", Arial, sans-serif;
  background: #f5f5f5;
  color: rgb(71, 75, 78);
  line-height: 1.6;
  margin: 0;
}

/* Header */
header {
  background: #282b2d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 60px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header img {
  height: 80px;
}

/* Navbar */
nav {
  display: flex;
  gap: 35px;
}
nav a {
  color: white;
  font-weight: 600;
  text-decoration: none;
  font-size: 22px;
  transition: 0.3s;
  letter-spacing: 0.5px;
}
nav a:hover {
  color: #f8b500;
}

/* Botón hamburguesa (solo se ve en móvil) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}
.menu-toggle span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* Hero */
.hero {
  background: url("img/hero_construccion.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 140px 20px;
}
.hero h1 {
  font-family: "Merriweather", serif;
  font-size: 56px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.hero p {
  font-size: 20px;
  background: rgba(71, 75, 78, 0.7);
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
}

/* Contenedor */
.container {
  width: 85%;
  max-width: 1200px;
  margin: 60px auto;
}
h2 {
  font-family: "Merriweather", serif;
  color: #f8b500;
  margin-bottom: 25px;
  font-size: 32px;
}

/* Tarjetas */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card h3 {
  padding: 15px;
  color: #A7593D;
}
.card p {
  padding: 0 15px 20px;
}

/* Soluciones */
.soluciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.soluciones-text {
  flex: 1;
}
.soluciones-text h2 {
  font-size: 34px;
  margin-bottom: 15px;
}
.soluciones-text p {
  font-size: 18px;
  line-height: 1.7;
}
.soluciones img {
  flex: 1;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Footer */
footer {
  background: #282b2d;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}
.footer-logo {
  height: 60px;
  margin-bottom: 10px;
}

/* Hero específico servicios */
.hero-servicios {
  background: linear-gradient(90deg, #f8b500, #A7593D);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 80px;
  gap: 20px;
}
.hero-servicios-text h1 {
  font-family: "Merriweather", serif;
  font-size: 42px;
  margin-bottom: 10px;
}
.hero-servicios-text p {
  font-size: 18px;
  max-width: 500px;
}
.hero-servicios img {
  max-width: 120px;
  filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.4));
}

/* Hero contacto */
.hero-contacto {
  background: linear-gradient(90deg, #f8b500, #A7593D);
  color: white;
  text-align: center;
  padding: 60px 20px;
}
.hero-contacto h1 {
  font-family: "Merriweather", serif;
  font-size: 42px;
  margin-bottom: 15px;
}
.hero-contacto p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Contacto grid */
.contacto-grid {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.contacto-info {
  flex: 1;
  display: grid;
  gap: 20px;
}
.contact-card {
  background: white;
  border-radius: 10px;
  text-align: left;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 15px;
}
.contact-card img {
  height: 40px;
}
.contact-card h3 {
  color: #f8b500;
  margin: 0;
}
.contact-card p {
  margin: 0;
}
.contacto-mapa {
  flex: 1;
  min-width: 300px;
}
.contacto-mapa h2 {
  margin-bottom: 15px;
  font-family: "Merriweather", serif;
  color: #f8b500;
  font-size: 22px;
}
.contacto-mapa iframe {
  width: 100%;
  height: 280px;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  /* Header */
  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #282b2d;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    display: none;
  }
  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}
