/* Certificaciones CIP / SIU opcionales — checkout web y campus */
.checkout-cert-program + .checkout-cert-program {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #d8e5f7;
}

.checkout-cert-program__title {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.35;
}

.checkout-order-programs__lead {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  color: #64748b;
}

.checkout-order-programs__list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.checkout-order-programs__item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.88rem;
}

.checkout-order-programs__name {
  color: #1e293b;
  line-height: 1.35;
}

.checkout-order-programs__price {
  color: #0e5183;
  white-space: nowrap;
}

.checkout-cert-panel {
  margin: 0 0 1.15rem;
  padding: 1rem 1.05rem;
  border: 1px solid #cfddf1;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.checkout-cert-panel__title {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: #223161;
  letter-spacing: -0.02em;
}

.checkout-cert-panel__intro {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #48638f;
}

.checkout-cert-panel__hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #64748b;
}

.checkout-cert-options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.checkout-cert-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid #d8e5f7;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.checkout-cert-option:hover {
  border-color: #62ade3;
  box-shadow: 0 0 0 3px rgba(98, 173, 227, 0.12);
}

.checkout-cert-option__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.checkout-cert-option__box {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  border-radius: 5px;
  border: 2px solid #39aae6;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.checkout-cert-option__input:focus-visible + .checkout-cert-option__box {
  outline: 2px solid #86b8e7;
  outline-offset: 2px;
}

.checkout-cert-option__input:checked + .checkout-cert-option__box {
  background: #223161;
  border-color: #223161;
}

.checkout-cert-option__input:checked + .checkout-cert-option__box::after {
  content: "";
  width: 0.28rem;
  height: 0.52rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.checkout-cert-option__input:checked ~ .checkout-cert-option__text .checkout-cert-option__name {
  color: #223161;
}

.checkout-cert-option:has(.checkout-cert-option__input:checked) {
  border-color: #62ade3;
  background: #f0f7ff;
  box-shadow: 0 0 0 3px rgba(98, 173, 227, 0.1);
}

.checkout-cert-option__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.checkout-cert-option__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.checkout-cert-option__meta {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
}

.checkout-cert-option__price {
  font-weight: 700;
  color: #0e5183;
}

[data-bs-theme="dark"] .checkout-cert-panel {
  border-color: var(--border-light, #334155);
  background: var(--bg-tertiary, #1e293b);
}

[data-bs-theme="dark"] .checkout-cert-panel__title {
  color: var(--text-primary, #f1f5f9);
}

[data-bs-theme="dark"] .checkout-cert-panel__intro,
[data-bs-theme="dark"] .checkout-cert-panel__hint {
  color: var(--text-secondary, #94a3b8);
}

[data-bs-theme="dark"] .checkout-cert-option {
  background: var(--bg-primary, #0f172a);
  border-color: var(--border-light, #334155);
}

[data-bs-theme="dark"] .checkout-cert-option:has(.checkout-cert-option__input:checked) {
  background: rgba(57, 170, 230, 0.08);
  border-color: #39aae6;
}

[data-bs-theme="dark"] .checkout-cert-option__name {
  color: var(--text-primary, #f1f5f9);
}

[data-bs-theme="dark"] .checkout-cert-program + .checkout-cert-program {
  border-top-color: var(--border-light, #334155);
}

[data-bs-theme="dark"] .checkout-cert-program__title,
[data-bs-theme="dark"] .checkout-order-programs__name {
  color: var(--text-primary, #f1f5f9);
}

[data-bs-theme="dark"] .checkout-order-programs__lead {
  color: var(--text-secondary, #94a3b8);
}

[data-bs-theme="dark"] .checkout-order-programs__price {
  color: #7dd3fc;
}
