/* 🎨 Estilos generales */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #0a2a7a, #0e5fb1);
  color: white;
}

/* 🔹 Encabezado */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 30, 0.4);
  padding: 15px 40px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 55px;
  margin-right: 10px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffd000;
}

/* 🖥️ Sección principal */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px;
  flex-wrap: wrap;
}

.texto-hero {
  max-width: 500px;
}

.texto-hero h2 {
  font-size: 2rem;
  line-height: 1.3;
}

.botones {
  margin-top: 20px;
}

button {
  padding: 10px 25px;
  margin-right: 15px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn1 {
  background-color: #007bff;
  color: white;
}

.btn2 {
  background-color: transparent;
  border: 1px solid white;
  color: white;
}

.hero-img {
  max-width: 45%;
  border-radius: 12px;
}

/* 💼 Servicios */
.servicios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px 10px;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin: 10px;
  text-align: center;
  width: 220px;
  transition: 0.3s;
}

.card:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* 🏢 Rubros */
.rubros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
}

.rubro {
  margin: 8px 20px;
  font-size: 1.1em;
}

/* ⚫ Pie de página */
footer {
  background-color: rgba(0, 0, 30, 0.6);
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
}

/* 📱 Diseño responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav {
    margin-top: 10px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }

  .hero-img {
    max-width: 90%;
    margin-top: 20px;
  }

  .servicios {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 80%;
  }

  .rubros {
    flex-direction: column;
  }

  button {
    width: 80%;
    margin-bottom: 10px;
  }
}
