/* =========================
   SECCION SERVICIOS NUEVA
   ========================= */

.services-showcase {
  position: relative;
  padding: 80px 0 90px;
  background:
    radial-gradient(circle at 10% 85%, rgba(120, 132, 255, 0.10), transparent 18%),
    radial-gradient(circle at 90% 20%, rgba(98, 173, 255, 0.10), transparent 20%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  overflow: hidden;
}

.services-showcase::before {
  content: "";
  position: absolute;
  left: -30px;
  bottom: 50px;
  width: 170px;
  height: 220px;
  opacity: 0.22;
  background:
    radial-gradient(circle at 30% 20%, #9aa9ff 0 18px, transparent 20px),
    radial-gradient(circle at 55% 42%, #9aa9ff 0 18px, transparent 20px),
    radial-gradient(circle at 70% 65%, #9aa9ff 0 18px, transparent 20px),
    linear-gradient(30deg, transparent 0 35%, #9aa9ff 35% 40%, transparent 40% 100%);
  filter: blur(0.4px);
  pointer-events: none;
}

.services-showcase::after {
  content: "";
  position: absolute;
  right: -140px;
  top: 0;
  width: 420px;
  height: 100%;
  background:
    repeating-radial-gradient(
      ellipse at center,
      rgba(143, 167, 255, 0.14) 0 2px,
      transparent 2px 22px
    );
  opacity: 0.18;
  pointer-events: none;
  transform: rotate(8deg);
}

.services-showcase .container {
  position: relative;
  z-index: 2;
}

.services-head {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.services-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf1ff 0%, #dfe8ff 100%);
  color: #3558e6;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(92, 114, 210, 0.10);
}

.services-head h3 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.04;
  font-weight: 800;
  color: #0d2159;
  letter-spacing: -0.03em;
}

.services-head h3 span {
  color: #3b6ff5;
}

.services-head p {
  margin: 0 auto;
  max-width: 760px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #5f6f8d;
}

.services-grid-beauty {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.service-pretty {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 640px;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(208, 218, 245, 0.85);
  border-radius: 30px;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(75, 98, 155, 0.08),
    0 2px 8px rgba(103, 126, 184, 0.06);
  backdrop-filter: blur(8px);
}

.service-pretty-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 22px 0;
}

.service-pretty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.7rem;
  box-shadow: 0 12px 22px rgba(93, 110, 200, 0.18);
}

.service-pretty-body {
  padding: 18px 22px 0;
}

.service-pretty-body h4 {
  margin: 0;
  color: #14234d;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.service-pretty-body p {
  margin: 0;
  color: #566987;
  font-size: 1rem;
  line-height: 1.75;
}

.service-line {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  margin: 18px 0 18px;
}

.service-dots {
  width: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 4px;
  opacity: 0.65;
}

.service-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #bfd0f5;
  display: block;
}

.service-pretty-image-wrap {
  margin-top: auto;
  position: relative;
  padding-top: 10px !important;
}

.service-pretty-image-wrap::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: 0;
  height: 220px;
  border-radius: 50% 50% 0 0 / 24% 24% 0 0;
  background: rgba(230, 237, 255, 0.95);
}

.service-pretty-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
  border-radius: 46% 46% 0 0 / 18% 18% 0 0;
}

/* Variantes color */
.service-purple .service-pretty-icon {
  background: linear-gradient(135deg, #6b48f2 0%, #8d57ff 100%);
}
.service-purple .service-line {
  background: #7b53ff;
}
.service-purple .service-pretty-image-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: linear-gradient(90deg, #7b53ff 0%, #ca8bff 100%);
  z-index: 3;
}

.service-blue .service-pretty-icon {
  background: linear-gradient(135deg, #2e72f4 0%, #4d90ff 100%);
}
.service-blue .service-line {
  background: #3d7cff;
}
.service-blue .service-pretty-image-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: linear-gradient(90deg, #2e72f4 0%, #9ec3ff 100%);
  z-index: 3;
}

.service-cyan .service-pretty-icon {
  background: linear-gradient(135deg, #1fbcc9 0%, #38d3de 100%);
}
.service-cyan .service-line {
  background: #29c6d3;
}
.service-cyan .service-pretty-image-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: linear-gradient(90deg, #1fbcc9 0%, #9bf3f5 100%);
  z-index: 3;
}

/* Ajustes generales para no chocar con estilos anteriores */
#servicios .services-grid-beauty .service-pretty h4,
#servicios .services-grid-beauty .service-pretty p {
  text-align: left;
}

#servicios {
  position: relative;


}

#servicios {
  background: url('../img/fondo_servicios.png') left / cover no-repeat;
  /*border: 2px solid red;  solo para probar */
}

#servicios::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0.9)),
    url('../img/fondo_servicios.png') center / cover no-repeat !important;
  z-index: 0;
}

#servicios .services-grid-beauty .tag {
  display: none;
}



#servicios {
  position: relative;
}

#servicios::before {
  z-index: 0;
}

#servicios .container {
  position: relative;
  z-index: 2;
}

/* Responsive */
@media (max-width: 1100px) {
  .services-grid-beauty {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .services-showcase {
    padding: 64px 0 70px;
  }

  .services-head {
    margin-bottom: 28px;
  }

  .services-head p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .services-grid-beauty {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-pretty {
    min-height: auto;
    border-radius: 24px;
  }

  .service-pretty-top {
    padding: 20px 18px 0;
  }

  .service-pretty-body {
    padding: 16px 18px 0;
  }

  .service-pretty-body h4 {
    font-size: 1.45rem;
  }

  .service-pretty-body p {
    font-size: 0.97rem;
  }

  .service-pretty-icon {
    width: 56px;
    height: 56px;
    font-size: 1.45rem;
  }

  .service-pretty-image {
    height: 215px;
  }
}

@media (max-width: 480px) {
  .services-pill {
    padding: 9px 18px;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
  }

  .service-pretty-body h4 {
    font-size: 1.28rem;
  }

  .service-pretty-image {
    height: 200px;
  }
}