/* Estilos del Orientador Dinámico de Rutas de Aprendizaje (/orientador) */
.ori-shell {
  margin: 1.5rem 0 2.5rem;
}

.ori-card {
  background: var(--card, var(--surface, #ffffff));
  border: 1px solid var(--line, var(--border, rgba(0, 0, 0, 0.12)));
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.ori-welcome {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.ori-welcome h2 {
  margin: 0.4rem 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.ori-welcome p {
  margin: 0 auto 1.25rem;
  max-width: 560px;
  color: var(--muted, #52606d);
}

.ori-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ori-pill {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(23, 77, 57, 0.1);
  color: var(--accent, #174d39);
}

.ori-progress-wrap {
  margin-bottom: 1.25rem;
}

.ori-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.ori-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(23, 77, 57, 0.14);
  overflow: hidden;
}

.ori-progress-fill {
  height: 100%;
  background: var(--accent, #174d39);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.ori-q-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.ori-q-sub {
  margin: 0 0 1rem;
  color: var(--muted, #52606d);
  font-size: 0.95rem;
}

.ori-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

@media (min-width: 680px) {
  .ori-options.ori-options--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ori-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 2px solid var(--line, rgba(0, 0, 0, 0.14));
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ori-option:hover,
.ori-option:focus-visible {
  border-color: var(--accent, #174d39);
  outline: none;
}

.ori-option[aria-pressed="true"] {
  border-color: var(--accent, #174d39);
  background: rgba(23, 77, 57, 0.09);
  font-weight: 600;
}

.ori-option-mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.ori-option[data-multi="true"] .ori-option-mark {
  border-radius: 5px;
}

.ori-error {
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0.5rem 0 0.75rem;
}

.ori-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.ori-loading {
  text-align: center;
  padding: 2.5rem 1rem;
}

.ori-result-head {
  margin-bottom: 1.25rem;
}

.ori-result-head h2 {
  margin: 0.3rem 0 0.5rem;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

.ori-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.ori-stat {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: rgba(23, 77, 57, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
}

.ori-banner {
  padding: 1rem 1.15rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.ori-banner--auth {
  border: 1px solid rgba(23, 77, 57, 0.35);
  background: rgba(23, 77, 57, 0.08);
}

.ori-banner--warn {
  border: 1px solid rgba(180, 83, 9, 0.4);
  background: rgba(245, 158, 11, 0.12);
}

.ori-banner--ok {
  border: 1px solid rgba(21, 128, 61, 0.4);
  background: rgba(22, 163, 74, 0.1);
}

.ori-phase {
  margin-top: 1.5rem;
}

.ori-phase-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ori-items {
  display: grid;
  gap: 0.9rem;
}

.ori-item {
  border: 1px solid var(--line, rgba(0, 0, 0, 0.12));
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ori-item-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.ori-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ori-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
}

.ori-badge--prereq {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.ori-badge--pc {
  background: rgba(180, 83, 9, 0.15);
  color: #92400e;
}

.ori-item h4 {
  margin: 0;
  font-size: 1.08rem;
}

.ori-item-rationale {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted, #52606d);
}

.ori-item-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.ori-cta-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(23, 77, 57, 0.3);
  background: rgba(23, 77, 57, 0.07);
}
