/* 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;
}

/* Wider modal variant for embedded forms */
.modal-content.modal-content--wide {
  width: min(920px, 92vw);
  max-width: 920px;
  padding: 18px;
}

.contact-form-iframe {
  width: 100%;
  height: min(72vh, 720px);
  border: 0;
  border-radius: 12px;
}

/* Readability: cards inside light sections should not use muted gray text */
.white-bg .card p,
.white-bg .card h4,
.white-bg .card .mini {
  color: black;
}

.white-bg .card {
  border-color: rgba(0, 0, 0, 0.12);
}

.is-hidden {
  display: none !important;
}
/* ============================================
   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;
}

/* Page-specific hero backgrounds (use local assets only) */
.page-ansys-simulacion .hero {
  background-image: url('../img/services/hero-ansys-simulacion.svg'), url('../img/services/serv-simulacion.webp');
}

.page-ansys-twinbuilder .hero {
  background-image: url('../img/services/hero-ansys-twinbuilder.svg'), url('../img/services/serv-digitaltwin-product.webp');
}

.page-esss-ansys .hero {
  background-image: url('../img/services/hero-esss-ansys.svg'), url('../img/services/serv-integradores.webp');
}
