/* ============================================================
   SERVICIOS GENERALES - HERMES GAIBOR
   Archivo: servicios-generales.css
   ============================================================ */

html,
body {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}

#wrapper.home-page {
  width: 100%;
  max-width: none;
  overflow-x: hidden;
}

.hg-servicios-page {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  background: #f4f8ff;
}

/* ============================================================
   BANNER
   ============================================================ */

.hg-servicios-banner {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #005dcc;
  line-height: 0;
}

.hg-servicios-banner img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
  object-position: center center;
}

/* ============================================================
   SECCIÓN SERVICIOS
   ============================================================ */

.hg-servicios-generales {
  position: relative;
  padding: 70px clamp(18px, 4vw, 74px) 82px;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 93, 204, 0.11), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(38, 179, 106, 0.13), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.hg-servicios-generales::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #005dcc 0%, #00a3ff 50%, #26b36a 100%);
}

.hg-servicios-generales-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.hg-servicios-generales-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
}

.hg-servicios-generales-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(0, 93, 204, 0.10);
  color: #005dcc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.hg-servicios-generales-title {
  margin: 0;
  color: #063d83;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.hg-servicios-generales-head p {
  margin: 0;
  color: #4f6177;
  font-size: 15px;
  line-height: 1.75;
}

.hg-servicios-generales-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ============================================================
   TARJETAS
   ============================================================ */

.hg-servicio-card {
  position: relative;
  min-height: 305px;
  padding: 28px 26px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 93, 204, 0.12);
  box-shadow: 0 22px 50px rgba(12, 54, 105, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hg-servicio-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: linear-gradient(90deg, #005dcc, #00a3ff);
}

.hg-servicio-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -72px;
  top: -70px;
  border-radius: 50%;
  background: rgba(0, 93, 204, 0.055);
  pointer-events: none;
}

.hg-servicio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 93, 204, 0.28);
  box-shadow: 0 30px 70px rgba(12, 54, 105, 0.16);
}

.hg-servicio-icon {
  position: relative;
  z-index: 2;
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #005dcc, #0aa3ff);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 31px;
  box-shadow: 0 14px 26px rgba(0, 93, 204, 0.22);
}

.hg-servicio-meta {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin-bottom: 11px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(38, 179, 106, 0.12);
  color: #116b40;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.hg-servicio-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  color: #062f63;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.24;
}

.hg-servicio-card p {
  position: relative;
  z-index: 2;
  flex: 1;
  margin: 0 0 22px;
  color: #526275;
  font-size: 14px;
  line-height: 1.7;
}

.hg-servicio-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  margin-top: auto;
  padding: 11px 17px;
  border-radius: 999px;
  background: #063d83;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hg-servicio-link:hover,
.hg-servicio-link:focus {
  background: #005dcc;
  transform: translateX(3px);
}

/* ============================================================
   VARIANTES
   ============================================================ */

.hg-servicio-card.is-digital::before {
  background: linear-gradient(90deg, #005dcc, #00a3ff);
}

.hg-servicio-card.is-digital .hg-servicio-icon {
  background: linear-gradient(135deg, #005dcc, #00a3ff);
}

.hg-servicio-card.is-remesa::before {
  background: linear-gradient(90deg, #005dcc, #8b5cf6);
}

.hg-servicio-card.is-remesa .hg-servicio-icon {
  background: linear-gradient(135deg, #005dcc, #7c3aed);
}

.hg-servicio-card.is-mies::before {
  background: linear-gradient(90deg, #005dcc, #26b36a);
}

.hg-servicio-card.is-mies .hg-servicio-icon {
  background: linear-gradient(135deg, #005dcc, #26b36a);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .hg-servicios-generales-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hg-servicios-banner {
    line-height: 0;
    background: #0b5fc0;
  }

  .hg-servicios-banner img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center center;
  }

  .hg-servicios-generales {
    padding: 34px 18px 56px;
  }

  .hg-servicios-generales-head {
    display: block;
    margin-bottom: 26px;
  }

  .hg-servicios-generales-head p {
    margin-top: 14px;
  }

  .hg-servicios-generales-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hg-servicio-card {
    min-height: auto;
    padding: 25px 22px 24px;
    border-radius: 24px;
  }

  .hg-servicio-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
}