/* =========================================================
   MODAL FAQ – PREVENIR FLASH DESDE EL PRIMER PAINT
   ========================================================= */
/* El modal se oculta SOLO si tiene el atributo hidden */
#ucHelpModal[hidden] {
  display: none;
}


/* =========================================================
   MODAL BASE
   ========================================================= */
.uc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  font-family: inherit;
}

.uc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.uc-modal__panel {
  position: relative;
  width: min(920px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(14,15,18,.95);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  color: rgba(255,255,255,.92);
  outline: none;
}

/* =========================================================
   HEADER
   ========================================================= */
.uc-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: #050a16;
}

.uc-modal__title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.uc-modal__subtitle {
    margin: 6px 0 0;
    font-size: 15px;
    color: rgb(199 199 199 / 98%);
    line-height: 1.4;
    font-weight: 400;
}

.uc-modal__close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  cursor: pointer;
}

.uc-modal__close:hover {
  background: rgba(255,255,255,.12);
}

/* =========================================================
   BODY
   ========================================================= */
.uc-modal__body {
  padding: 16px;
}

.uc-modal__section {
  padding: 14px 0;
}

.uc-modal__section + .uc-modal__section {
  border-top: 1px solid rgba(255,255,255,.08);
}

.uc-modal__section--note {
  padding-top: 0;
}

.uc-modal__sectionHead {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background: #8846ed61;
    padding: 3px 8px;
}

.uc-modal__h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.uc-modal__p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,.8);
    line-height: 19px;
}

/* =========================================================
   GRID / CARDS
   ========================================================= */
.uc-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}

.uc-modal__card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 12px;
}

.uc-modal__cardTitle {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgb(255 143 0 / 88%);
    margin-bottom: 6px;
}

.uc-modal__list {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.8);
  line-height: 1.55;
}

/* =========================================================
   FOOTER
   ========================================================= */
.uc-modal__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
}

.uc-modal__primary {
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  cursor: pointer;
}

.uc-modal__primary:hover {
  background: rgba(255,255,255,.16);
}

/* =========================================================
   BOTÓN INFO HEADER
   ========================================================= */
.unit-header-infoBtn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor: pointer;
}

.unit-header-infoBtn:hover {
  background: rgba(255,255,255,.12);
}

/* =========================================================
   CARDS GRID
   ========================================================= */
.uc-modal__cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.uc-info-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px;
  transition: all 0.2s ease;
}

.uc-info-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  transform: translateY(-2px);
}

.uc-info-card--full {
  grid-column: 1 / -1;
}

.uc-info-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.uc-info-card__header i {
    color: #83ff00;
    font-size: 18px;
    flex-shrink: 0;
}

.uc-info-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
}

.uc-info-card .uc-modal__p {
    font-size: 15px;
    color: rgba(255,255,255,.75);
}
/* =========================================================
   FOOTER - ACEPTACIÓN
   ========================================================= */
.uc-modal__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.2);
  flex-wrap: wrap;
}

.uc-modal__acceptance {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 200px;
  cursor: pointer;
  user-select: none;
}

.uc-modal__checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #0035ff;
}

.uc-modal__acceptance-text {
  font-size: 13px;
  color: rgba(255,255,255,.80);
  line-height: 1.4;
}

.uc-modal__accept-btn {
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  background: #0035ff;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uc-modal__accept-btn:hover:not(:disabled) {
  background: #0028cc;
  transform: translateY(-2px);
}

.uc-modal__accept-btn:active:not(:disabled) {
  transform: translateY(0);
}

.uc-modal__accept-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}