/* Marca y navegación lateral. */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
  color: #ffffff;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: #303ca2;
  background: #ffffff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
}

.main-nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 650;
}

.nav-link > span:first-child {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font-size: 1.15rem;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.sidebar__footer {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar__footer p {
  margin-bottom: 4px;
  font-weight: 700;
}

.sidebar__footer small {
  color: rgba(255, 255, 255, 0.7);
}

/* Controles del encabezado. */
.eyebrow {
  margin-bottom: 3px;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.grade-control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px 7px 13px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  font-size: 0.9rem;
  font-weight: 650;
}

.grade-control select {
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  background: var(--color-surface);
  cursor: pointer;
  font-size: 1.25rem;
}

.icon-button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Identifica de forma permanente esta copia como versión de revisión. */
.review-mode-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid #a9dcce;
  border-radius: 999px;
  color: #176953;
  background: #e8f8f3;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Presentación de la pantalla de inicio. */
.welcome-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 24px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius-large);
  color: #ffffff;
  background: linear-gradient(125deg, #4354d4 0%, #6b4dcc 100%);
  box-shadow: var(--shadow-soft);
}

.welcome-card::after {
  position: absolute;
  right: -65px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border: 42px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.welcome-card__content,
.welcome-card__visual {
  position: relative;
  z-index: 1;
}

.welcome-card h2 {
  max-width: 680px;
  margin-bottom: 12px;
}

.welcome-card p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.82);
}

.welcome-card__visual {
  display: grid;
  place-items: center;
}

.welcome-card__symbol {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-size: 4.4rem;
  transform: rotate(4deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}

.button--light {
  color: #3441ac;
  background: #ffffff;
}

.button--primary {
  color: #ffffff;
  background: var(--color-primary);
}

.button--secondary {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: var(--color-surface);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.button:hover {
  transform: translateY(-2px);
}

/* Tarjetas reutilizadas en varias vistas. */
.card,
.stat-card,
.empty-state,
.help-item {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.card {
  display: flex;
  min-height: 255px;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-medium);
}

.card__icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 14px;
  color: var(--color-primary);
  background: var(--color-surface-soft);
  font-size: 1.4rem;
}

.card h3 {
  margin-bottom: 8px;
}

.card__eyebrow {
  margin-bottom: 7px !important;
  color: var(--color-primary) !important;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card p {
  margin-bottom: 20px;
  color: var(--color-text-muted);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: var(--color-surface-soft);
  font-size: 0.76rem;
  font-weight: 750;
}

.status-pill--locked {
  color: var(--color-text-muted);
  background: var(--color-background);
}

.status-pill--planned {
  color: #76530b;
  background: #fff3ce;
}

.text-link {
  color: var(--color-primary);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.stat-card {
  padding: 20px;
  border-radius: var(--radius-medium);
}

.stat-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.7rem;
}

.stat-card span {
  color: var(--color-text-muted);
}

.progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: var(--color-border);
}

.progress-track__fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.empty-state {
  padding: clamp(30px, 6vw, 60px);
  border-radius: var(--radius-large);
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 22px;
  color: var(--color-primary);
  background: var(--color-surface-soft);
  font-size: 2rem;
}

.empty-state p {
  max-width: 600px;
  margin-inline: auto;
  color: var(--color-text-muted);
}

.help-list {
  display: grid;
  gap: 14px;
}

.help-item {
  padding: 20px 22px;
  border-radius: var(--radius-medium);
}

.help-item summary {
  cursor: pointer;
  font-weight: 750;
}

.help-item p {
  margin: 14px 0 0;
  color: var(--color-text-muted);
}

.notification {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 18px;
  border-radius: 12px;
  color: #ffffff;
  background: #20253a;
  box-shadow: var(--shadow-soft);
}

/* Recorrido y avisos exclusivos de la versión para dirección. */
.review-callout,
.project-explanation,
.review-guide,
.authorship-card,
.credit-item,
.review-note,
.review-mini-bar {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.review-callout {
  padding: clamp(22px, 4vw, 34px);
  border-color: #bbc3ff;
  border-radius: var(--radius-large);
  background: linear-gradient(135deg, var(--color-surface), var(--color-surface-soft));
}

.review-callout__heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.review-callout__icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 800;
}

.review-callout > p,
.project-explanation > p,
.credit-item p,
.authorship-card p,
.review-guide li {
  color: var(--color-text-muted);
}

.review-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.review-steps a {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  color: var(--color-text);
  background: var(--color-surface);
  text-decoration: none;
}

.review-steps a:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.review-steps strong,
.project-flow strong {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-primary);
  font-size: 0.78rem;
}

.review-steps span {
  font-size: 0.8rem;
  font-weight: 750;
}

.project-explanation {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius-medium);
}

.project-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-flow span:not([aria-hidden]) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--color-surface-soft);
  font-weight: 700;
}

.review-guide {
  padding: clamp(22px, 4vw, 32px);
  border-top: 5px solid var(--color-primary);
  border-radius: var(--radius-medium);
}

.review-guide ol {
  display: grid;
  gap: 11px;
  margin: 18px 0;
  padding-left: 24px;
}

.review-guide__tip {
  margin: 0;
  padding: 13px 15px;
  border-radius: 12px;
  color: var(--color-primary-dark);
  background: var(--color-surface-soft);
}

.review-note {
  padding: 18px 20px;
  border-left: 5px solid #d39b20;
  border-radius: var(--radius-medium);
  color: var(--color-text-muted);
}

.review-mini-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border-radius: 13px;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.review-mini-bar a {
  flex: 0 0 auto;
  color: var(--color-primary);
  font-weight: 750;
}

.authorship-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: clamp(24px, 5vw, 42px);
  border-radius: var(--radius-large);
  background: linear-gradient(125deg, var(--color-surface), var(--color-surface-soft));
}

.authorship-card__mark {
  display: grid;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  place-items: center;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.authorship-card h3 {
  margin-bottom: 5px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.authorship-card__role {
  margin-bottom: 6px;
  font-weight: 750;
}

.credit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.credit-item {
  padding: 22px;
  border-radius: var(--radius-medium);
}

.credit-item > span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  color: var(--color-primary);
  background: var(--color-surface-soft);
  font-size: 1.25rem;
}

.credit-item h3 {
  margin-bottom: 7px;
}
