/* ESTILOS COMPLETOS Y ACTUALIZADOS */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #333;
}

.menu {
  background-color: #003366;
  padding: 0.5em 1em;
}
.menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2em;
}
.menu ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2em;
  background: url("images/bg-hero.jpg") center/cover no-repeat;
  color: white;
  flex-wrap: wrap;
}
.hero-text {
  max-width: 55%;
}
.hero-text h1 {
  font-size: 3em;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
.hero-text p {
  font-size: 1.3em;
  margin-bottom: 1em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}
.btn-cta {
  background-color: #28a745;
  color: white;
  padding: 0.7em 1.5em;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}
.hero-logo img {
  width: 350px;
  max-width: 100%;
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
}
.whatsapp-float img {
  width: 55px;
}

section {
  padding: 3em 1em;
  background: linear-gradient(#f8f9fa, #eef1f4);
}
h2 {
  text-align: center;
  margin-bottom: 1em;
  color: #003366;
  font-size: 2em;
}

.grid-3,
.grid-4,
.clientes-grid,
.etapas {
  display: grid;
  gap: 1em;
}
.grid-3,
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.clientes-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center;
  justify-items: center;
}
.etapas {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: center;
  justify-items: center;
}
.etapas div {
  background-color: #002d5f;
  padding: 1em;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 240px;
}
.etapas img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0.5em;
}
.grid-3 img,
.grid-4 img,
.clientes-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
}
.grid-3 p,
.grid-4 p,
.etapas p {
  text-align: center;
  margin-top: 0.5em;
  font-weight: 600;
  font-size: 1.1em;
  color: #003366;
}
.boton-servicios,
.boton-proyectos {
  text-align: center;
  margin-top: 2em;
}
.btn-secundario {
  background-color: #003366;
  color: white;
  padding: 0.7em 1.5em;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}
.diferencia img,
.maximizamos img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
}

.footer-grid-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2em;
  background-color: #e6f1f7;
  border-radius: 12px;
  padding: 2em;
}
.info-contacto p {
  font-size: 1.1em;
  margin: 0.5em 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: #003366;
}
.info-contacto img {
  height: 28px;
  width: 28px;
}
.info-contacto a {
  color: #003366;
  font-weight: bold;
  text-decoration: underline;
}
.redes-sociales {
  display: flex;
  gap: 2.5em;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.redes-sociales a {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #003366;
  text-decoration: none;
  gap: 0.4em;
}
.redes-sociales img {
  height: 36px;
  width: 36px;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text,
  .hero-logo {
    max-width: 100%;
  }

  .grid-3,
  .grid-4,
  .clientes-grid,
  .etapas {
    grid-template-columns: 1fr;
  }

  .btn-cta,
  .btn-secundario {
    display: inline-block;
    margin-top: 1em;
  }

  .menu ul {
    flex-direction: column;
    gap: 1em;
  }

  .footer-grid-v2 {
    flex-direction: column;
    align-items: flex-start;
  }

  .redes-sociales {
    justify-content: flex-start;
  }
}

