/* ============================
   MODAL SERVICIOS — ESTILO NUESTRA GENTE
   =========================== */

body.modal-open {
  overflow: hidden;
}

.service-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.service-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

/* Caja del modal */
.service-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 92vw);
  max-height: 80vh;
  background: #121216;
  border-radius: 1.2rem;
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(209, 168, 85, 0.6);
  overflow-y: auto;
}

/* Detalle superior dorado */
.service-modal-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 3px solid #d1a855;
  opacity: 0.9;
  pointer-events: none;
}

/* Botón cerrar */
.service-modal-close {
  position: absolute;
  right: 1rem;
  top: 0.8rem;
  border: none;
  background: transparent;
  color: #f1f1f1;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}

.service-modal-close:hover {
  color: #d1a855;
}

/* Título y cuerpo */
#serviceModalTitle {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
  color: #ffffff;
}

.service-modal-body {
  font-size: 0.96rem;
  line-height: 1.7;
  color: #d7d7dc;
}

/* Justificación y viñetas */
.service-modal-body p {
  margin: 0 0 0.8rem;
  text-align: justify;
}

.service-modal-body ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
}

.service-modal-body li {
  margin-bottom: 0.3rem;
  text-align: justify;
}

/* Responsivo */
@media (max-width: 640px) {
  .service-modal-dialog {
    width: 94vw;
    padding: 1.4rem 1.2rem;
    max-height: 85vh;
  }

  #serviceModalTitle {
    font-size: 1.25rem;
  }
}
