body {
  background: linear-gradient(180deg, #042937 0%, #063447 100%);
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

html {
  scroll-behavior: smooth;
}

.residuos {
  margin-top: 30px;
  margin-bottom: 70px;
}

/* HERO */
.residuos-hero {
  min-height: 72vh;
  background-image: url("../imagenes/operadoresresiduos.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}

.residuos-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.68)
  );
}

.residuos-hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 850px;
}

.residuos-tag {
  display: inline-block;
  padding: 8px 18px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(214, 161, 6, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f6d67a;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.residuos-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.residuos-hero p {
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.95);
}

.btn-primary {
  background: linear-gradient(135deg, #d6a106, #b98600);
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(214, 161, 6, 0.28);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c99705, #a77700);
  transform: translateY(-2px);
}

/* INTRO */
.residuos-intro {
  margin-bottom: 40px;
}

.residuos-intro h2,
.residuos-info h2,
.residuos-galeria h2,
.residuos-cta h2 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 14px;
}

.residuos-intro p,
.residuos-galeria p,
.residuos-cta p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.8;
}

/* CARDS */
.residuos-servicios .col-md-6,
.residuos-servicios .col-lg-4 {
  display: flex;
}

.residuos-card {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.residuos-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.icon-box {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d6a106, #b98600);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(214, 161, 6, 0.25);
}

.residuos-card h3 {
  color: rgb(219, 161, 0);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.residuos-card p {
  color: #475569;
  margin: 0;
  line-height: 1.8;
  font-size: 0.96rem;
}

/* DESTACADO */
.residuos-destacado {
  margin-top: 55px;
  background: rgba(255, 255, 255, 0.04);
  padding: 30px;
  border-radius: 24px;
  backdrop-filter: blur(4px);
}

.residuos-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.residuos-info p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
  margin-bottom: 18px;
}

.residuos-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.residuos-info ul li {
  color: #ffffff;
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  line-height: 1.7;
}

.residuos-info ul li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #d6a106;
  position: absolute;
  left: 0;
  top: 1px;
}

/* GALERÍA */
.residuos-galeria {
  margin-top: 55px;
}

.residuo-galeria-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.residuo-galeria-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.residuo-galeria-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* CTA */
.residuos-cta {
  margin-top: 55px;
  background: linear-gradient(
    135deg,
    rgba(6, 207, 214, 0.15),
    rgba(255, 255, 255, 0.04)
  );
  padding: 40px 25px;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .residuos-hero {
    min-height: 62vh;
  }

  .residuos-hero h1 {
    font-size: 2.5rem;
  }

  .residuos-hero p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .residuos {
    margin-top: 20px;
    margin-bottom: 50px;
  }

  .residuos-hero {
    min-height: 55vh;
    padding: 35px 15px;
  }

  .residuos-hero h1 {
    font-size: 2rem;
  }

  .residuos-hero p {
    font-size: 0.97rem;
  }

  .residuos-destacado,
  .residuos-cta {
    padding: 22px;
  }

  .residuos-card:hover,
  .residuo-galeria-card:hover {
    transform: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  }

  .residuo-galeria-img {
    height: 230px;
  }
}

@media (max-width: 576px) {
  .residuos-hero h1 {
    font-size: 1.7rem;
  }

  .btn-primary {
    width: 100%;
    max-width: 260px;
  }

  .residuos-card h3 {
    font-size: 1.08rem;
  }

  .residuos-card p,
  .residuos-intro p,
  .residuos-galeria p,
  .residuos-cta p {
    font-size: 0.93rem;
  }

  .residuo-galeria-img {
    height: 210px;
  }
}