/* =========================
   NUBA - Purchase Type Modal (Mobile First)
   ========================= */
:root {
  --ptm-bg: rgba(17, 17, 17, 0.6);
  --ptm-panel: #fff;
  --ptm-text: #1f2328;
  --ptm-muted: #6b7280;
  --ptm-line: #e5e7eb;
  --ptm-brand: #111111; /* negro NUBA */
  --ptm-ok: #16a34a;
  --ptm-radius: 16px;
  --ptm-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

/* Overlay */
.nuba-ptm__overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 99999;
  transition: opacity 0.25s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Abierto (aria-hidden="false") */
.nuba-ptm__overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Si usás el atributo HTML hidden, forzá display none */
.nuba-ptm__overlay[hidden] {
  display: none !important;
}
/* Dialog */
.nuba-ptm__dialog {
  background: var(--ptm-panel);
  color: var(--ptm-text);
  width: 100%;
  max-width: 980px;
  border-radius: var(--ptm-radius);
  box-shadow: var(--ptm-shadow);
  transform: translateY(12px);
  transition: transform 0.25s ease;
  position: relative;
  outline: none;
  padding: 1rem 0;
  overflow-y: auto;
  max-height:calc(var(--real-vh, 1vh) * 90);;
}
.nuba-ptm__overlay[aria-hidden="false"] .nuba-ptm__dialog {
  transform: translateY(0);
}
.nuba-ptm__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--ptm-muted);
  z-index: 1;
}
.nuba-ptm__close:hover {
  color: var(--ptm-text);
}

/* Header */
.nuba-ptm__header {
  padding: 20px 20px 8px;
  text-align: left;
}
.nuba-ptm__header h2 {
  margin: 0 0 4px;
  font-family: Quicksand, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
}
.nuba-ptm__subtitle {
  margin: 0;
  color: var(--ptm-muted);
  font-size: 0.95rem;
}

/* Cards Grid */
.nuba-ptm__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 12px 12px 8px;
  align-items: stretch; /* ⬅ clave */
}
@media (min-width: 768px) {
  .nuba-ptm__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px 16px 8px;
  }
}

/* Card */
.nuba-ptm__card {
  text-align: left;
  border: 1px solid var(--ptm-line);
  border-radius: 14px;
  background: #fafafa;
  padding: 16px 16px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}
.nuba-ptm__card:hover,
.nuba-ptm__card:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
  outline: none;
}
.nuba-ptm__badge {
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.nuba-ptm__title {
  font-size: 1.15rem;
  margin: 0 0 6px;
  font-weight: 700;
}
.nuba-ptm__price {
  margin: 0 0 10px;
  color: var(--ptm-brand);
  font-weight: 700;
  font-size: 0.98rem;
}
.nuba-ptm__list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  color: var(--ptm-muted);
  font-size: 0.95rem;
}
.nuba-ptm__list li {
  padding-left: 20px;
  position: relative;
  margin: 6px 0;
}
.nuba-ptm__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 50%;
  line-height: 1;
  color: var(--ptm-ok);
  transform: translateY(-50%);
}
.nuba-ptm__cta {
  margin-top: auto;
  display: inline-block;
  border: 1px solid var(--ptm-text);
  color: #fff;
  background: var(--ptm-text);
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
}
.nuba-ptm__card:hover .nuba-ptm__cta {
  border-color: #000;
  background: #000;
}

/* Footer */
.nuba-ptm__footer {
  border-top: 1px solid var(--ptm-line);
  padding: 12px 16px 16px;
  display: flex;
  justify-content: flex-end;
}
.nuba-ptm__remember {
  color: var(--ptm-muted);
  font-size: 0.92rem;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* A11y helpers */
.nuba-ptm__dialog:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* Overlay + Dialog + Header + Cards: igual que la versión anterior... */

/* Opción con radio “invisible” pero accesible */
/* El label ocupa todo el alto de su celda */
.nuba-ptm__option {
  display: block;
  height: 100%; /* ⬅ clave */
}
.nuba-ptm__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Card base */
.nuba-ptm__card {
  text-align: left;
  border: 2px solid var(--ptm-line);
  border-radius: 14px;
  background: #fafafa;
  padding: 16px 16px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Hover/focus */
.nuba-ptm__option:hover .nuba-ptm__card,
.nuba-ptm__option:focus-within .nuba-ptm__card {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

/* Seleccionado: borde negro marcado */
.nuba-ptm__radio:checked + .nuba-ptm__card {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* Badge, títulos, lista y demás: igual que antes */
.nuba-ptm__hint {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ptm-text);
}
/* Estados deshabilitados en el modal de PT */
.nuba-ptm__option.is-disabled {
  position: relative;
  pointer-events: none;           /* bloquea clicks */
  user-select: none;
  opacity: 0.65;                  /* visualmente “apagado” */
  filter: grayscale(10%);
}

.nuba-ptm__option.is-disabled .nuba-ptm__radio {
  pointer-events: none;
}

/* Cinta/badge “Próximamente” */
.nuba-ptm__comingsoon {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: #000;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Asegura stacking dentro de la card */
.nuba-ptm__option.is-disabled .nuba-ptm__card {
  position: relative;
  overflow: hidden;
}
.nuba-ptm__blurb {
  margin-top: .35rem;
  font-size: .92rem;
  opacity: .85;
  text-align: center;
}
.nuba-ptm__option.is-disabled .nuba-ptm__blurb {
  opacity: .55;
}
