body {
  background: linear-gradient(180deg, #042937 0%, #063447 100%);
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  color: #f8f9fa;
}

html {
  scroll-behavior: smooth;
}

.servicio {
  margin-top: 30px;
  margin-bottom: 70px;
}

/* HERO */
.servicio-hero {
  min-height: 72vh;
  background-image: url("../imagenes/reparacion-galpon-melipilla.jpeg");
  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;
}

.servicio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.42),
    rgba(0, 0, 0, 0.66)
  );
}

.servicio-hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
  color: #ffffff;
}

.servicio-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.18);
  color: #f6d67a;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.servicio-hero h1 {
  font-size: 3.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.servicio-hero p {
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 0 auto 28px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.95);
}

.servicio-hero .btn-primary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 700;
  color: #ffffff;
  backdrop-filter: blur(4px);
  box-shadow: none;
  transition: all 0.3s ease;
}

.servicio-hero .btn-primary:hover {
  background: #d6a106;
  border-color: #d6a106;
  color: #042937;
  transform: translateY(-2px);
}

/* SECCIONES */
.servicio section {
  margin-top: 70px;
}

.servicio h2 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 16px;
}

.servicio p {
  line-height: 1.8;
}

/* INTRO */
.servicio-intro {
  text-align: center;
  margin-bottom: 10px;
}

.servicio-intro p {
  max-width: 820px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.84);
}

/* DETALLE */
.servicio-detalle {
  margin-top: 50px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 30px;
  backdrop-filter: blur(4px);
}

.servicio-texto-box {
  background-color: #ffffff;
  color: #1e293b;
  border-radius: 20px;
  padding: 32px 26px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  height: 100%;
}

.servicio-texto-box h3 {
  color: rgb(219, 161, 0);
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.servicio-texto-box p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 18px;
}

.servicio-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.servicio-lista li {
  color: #334155;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  position: relative;
  line-height: 1.7;
}

.servicio-lista li:last-child {
  border-bottom: none;
}

.servicio-lista li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #d6a106;
  position: absolute;
  left: 0;
  top: 13px;
}

.servicio-img-principal {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.20);
  display: block;
}

/* GALERÍA */
.servicio-galeria {
  margin-top: 55px;
}

.servicio-galeria p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.galeria-card {
  background-color: #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;
}

.galeria-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.20);
}

.galeria-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.galeria-img-grande {
  height: 320px;
}

/* BENEFICIOS */
.servicio-beneficios {
  margin-top: 55px;
}

.beneficio-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px 22px;
  height: 100%;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beneficio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.20);
}

.beneficio-card h4 {
  color: rgb(219, 161, 0);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.beneficio-card p {
  color: #475569;
  margin: 0;
  line-height: 1.8;
  font-size: 0.96rem;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .servicio-hero {
    min-height: 62vh;
  }

  .servicio-hero h1 {
    font-size: 2.5rem;
  }

  .servicio-hero p {
    font-size: 1rem;
  }

  .servicio-img-principal {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .servicio {
    margin-top: 20px;
    margin-bottom: 50px;
  }

  .servicio-hero {
    min-height: 55vh;
    padding: 35px 15px;
  }

  .servicio-hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .servicio-hero p {
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 22px;
  }

  .servicio section {
    margin-top: 55px;
  }

  .servicio-detalle {
    padding: 22px;
  }

  .servicio-texto-box {
    padding: 26px 18px;
  }

  .servicio-img-principal {
    height: 260px;
  }

  .galeria-img {
    height: 220px;
  }

  .galeria-img-grande {
    height: 240px;
  }

  .beneficio-card {
    padding: 24px 18px;
  }

  .galeria-card:hover,
  .beneficio-card:hover {
    transform: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  }
}

@media (max-width: 576px) {
  .servicio-hero h1 {
    font-size: 1.75rem;
  }

  .servicio-tag {
    font-size: 0.84rem;
    padding: 7px 15px;
  }

  .servicio-hero p,
  .servicio-intro p,
  .servicio-galeria p {
    font-size: 0.93rem;
  }

  .servicio-hero .btn-primary {
    width: 100%;
    max-width: 260px;
  }

  .servicio-texto-box h3 {
    font-size: 1.25rem;
  }

  .galeria-img {
    height: 210px;
  }
}