/* MODAL REUTILIZABLE */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal.show {
  display: flex;
}
/* MODAL REUTILIZABLE */
.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 400px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  position: relative;
  color: #222;
}
.modal-content h2, .modal-content h3 {
  color: #222;
}
.modal-content ul {
  color: #222;
}
.modal-content .btn {
  color: #222 !important;
}
.modal-content .btn,
.modal-content .btn-demo {
  color: #000 !important; /* Cambiar a negro */
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
/* ============================================
   CSS OVERRIDES - Global Patches & Compatibility
   ============================================ */

/* Background images for plab__card */
.plab__card-software {
  /* Use service image for Development card */
  background-image: url('../img/services/serv-dev-soft.webp');
}

.plab__card-agents {
  /* Use assessment image for Assessment card */
  background-image: url('../img/services/serv-assessment.webp');
}

.plab__card-onpremise {
  /* Use ecosystem image for On-premise / Ecosistemas IA card */
  background-image: url('../img/services/serv-ecosistemasIA.webp');
}

/* Service cards added to Performance Lab carousel */
.plab__card-optproc {
  background-image: url('../img/services/serv-optim-prod.webp');
}

.plab__card-integration {
  background-image: url('../img/services/serv-optimizacion-flujos.webp');
}

.plab__card-gemelos {
  background-image: url('../img/services/serv-simulacion.webp');
}

/* Safari compatibility for user-select */
.faq-answer {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Improve readability: single semi-transparent black frame behind the overlay content */
.plab__overlay {
  /* remove the gradient background so we can draw a single box */
  background: transparent !important;
  padding: 24px;
}

.plab__overlay::before {
  content: '';
  position: absolute;
  /* decrease inset further so the dark frame is larger and leaves more inner gap */
  left: 16px;
  right: 16px;
  bottom: 16px;
  top: 16px;
  background: rgba(0,0,0,0.6);
  border-radius: 10px;
  z-index: 1;
  pointer-events: none;
}

.plab__overlay > * {
  position: relative;
  z-index: 2;
}

/* Ensure CTA stays above the frame */
.plab__cta {
  position: relative;
  z-index: 3;
}
