/* Estilos generales */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

/* Header */
.header {
  background-color: white;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 40px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav ul {
  display: flex;
  gap: 20px;
}

.nav a {
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #007bff;
}

.btn {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #0056b3;
}

/* Hero */
.hero {
  background-image: url('../assets/img/hero-construccion.jpg');
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 40px;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

/* Botón Hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #0a2d64;
  border-radius: 2px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: 15px;
    background-color: white;
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: fixed;
    top: 80px;
    left: 0;
    right: 0; /* 🔧 Esto es nuevo */
    z-index: 999;
    transition: all 0.3s ease;
  }
  

  .nav.active {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .btn {
    align-self: center;
    margin-top: 10px;
  }
}


/* Nuestra Historia */
.historia {
  padding: 60px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.historia h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0a2d64;
}

.historia p {
  max-width: 700px;
  margin: 0 auto 20px;
  font-size: 1rem;
  line-height: 1.6;
}
.valores {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.valores h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #0a2d64;
}

.valores-lista-limpia {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  text-align: left;
}

.valores-lista-limpia li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.servicios {
  padding: 60px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.servicios h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #0a2d64;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.servicio-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-5px);
}

.servicio-card .icon {
  font-size: 2rem;
  margin-bottom: 15px;
  display: block;
}

.servicio-card h3 {
  font-size: 1.2rem;
  color: #0a2d64;
  margin-bottom: 10px;
}

.servicio-card p {
  font-size: 0.95rem;
  color: #555;
}
.proyectos {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.proyectos h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #0a2d64;
}

.grid-proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.proyecto-card {
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.proyecto-card:hover {
  transform: translateY(-5px);
}

.proyecto-card img {
  width: 100%;
  height: auto;
  display: block;
}

.proyecto-card h3 {
  padding: 15px;
  font-size: 1rem;
  color: #0a2d64;
}
.grid-proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.proyecto-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s;
}

.proyecto-card:hover {
  transform: translateY(-5px);
}

.proyecto-card img {
  width: 100%;
  height: 200px; /* Fija la altura */
  object-fit: cover; /* Recorta y ajusta */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.proyecto-card h3 {
  margin: 1rem;
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 600;
}



/* Sección de Contacto */
.contacto {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.contacto h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #0a2d64;
}

.contacto-container {
  max-width: 1000px;
  margin: 0 auto;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  text-align: left;
}

.contacto-info {
  padding-left: 40px;
}


.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contacto-form input,
.contacto-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  resize: none;
}

.contacto-info h3 {
  margin-bottom: 5px;
  font-weight: 600;
  color: #0a2d64;
}

.contacto-info p {
  margin-bottom: 20px;
  color: #444;
}

.mensaje-exito, .mensaje-error {
  margin-top: 16px;
  padding: 12px;
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
}

.mensaje-exito {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.mensaje-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: white;
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
}
.btn-whatsapp {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  max-width: fit-content;
}


.btn-whatsapp:hover {
  background-color: #1DA851;
}


/* Responsive */
@media (max-width: 768px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contacto-info {
    padding-left: 0;
    text-align: center;
  }
}
.footer {
  background-color: #0a2d64;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-logo img {
  height: 50px;
  object-fit: contain;
}

.footer-info p {
  margin: 5px 0;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-info {
    text-align: right;
  }
}


