* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  list-style: none;
  box-sizing: border-box;
}

header {
  background-color: #27ae60;
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-bottom: 1rem;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.nav-links.active {
  display: flex;
  flex-direction: column;
}

.nav-links li {
  padding: 0.5rem 0;
}

.nav-menu a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #d1ffe6;
}

/*SECCION 1*/
section.banner {
  background: linear-gradient(to left, rgb(255 255 255), rgb(234 243 240));
  padding: 3rem 0;
}

.containerB {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  grid-gap: 2rem;
}

.col1 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.imgBanner {
  width: 70%;
  border-radius: 10px;
}

.col2 {
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

h2 {
  font-size: 3rem;
  color: #2c3e50;
}

h3 {
  font-size: 1.5rem;
  color: #020101;
}

#txtBanner {
  margin: 2rem 0;
  font-size: 1.3rem;
  line-height: 2rem;
  text-align: justify;
}

.btnBanner {
  background: #27ae60;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
}

/*SECCION 2- NUESTROS SERVICIOS*/

.Servicios {
  padding: 3rem 0;
}

.subservices {
  text-align: center;
  padding-bottom: 2rem;
  color: #4c4c4c;
}

.containerS {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  grid-gap: 2rem;
}

.boxS {
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 55px 5px rgb(0 0 0 / 6%);
}

.boxS img {
  width: 100px;
  border-radius: 10px;
}

.boxS p {
  text-align: center;
}

/*SECCION 3- PORTAFOLIO*/

.Portafolio {
  padding: 3rem 0;
}

.subportafolio {
  text-align: center;
  padding-bottom: 2rem;
  color: #4c4c4c;
}

.containerP {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  grid-gap: 2rem;
}

.boxP {
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 55px 5px rgb(0 0 0 / 6%);
}

.boxP img {
  width: 100px;
  border-radius: 10px;
}

.boxP p {
  text-align: center;
  margin-bottom: 10px;
}
/* ===== FOOTER===== */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 10px 20px;
  text-align: center;
}

footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

footer .footer-content .contacto {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

footer .footer-content .contacto a {
  color: white;
  text-decoration: none; /* 🔹 Elimina subrayado */
}

footer .redes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

footer .redes img {
  width: 18px;
  margin: 0 10px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

footer .redes img:hover {
  transform: scale(1.2);
}

footer .copyright {
  font-size: 0.85rem;
  color: white;
}

/* ===== MENÚ RESPONSIVE PARA MÓVILES ===== */

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #27ae60;
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .nav-links a {
    font-size: 16px;
  }

  header h1 {
    font-size: 36px;
    margin-top: 40px;
  }
}

/* Pantallas medianas (tablets) */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Pantallas pequeñas (móviles) */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  .nav-links {
    font-size: 0.9rem;
  }
}
