/* dashboard.css — Mi aprendizaje: el panel se trata de ella */

.dash-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; }
.dash-mobilebar { display: none; }

.dash {
  width: 100%;
  padding: clamp(20px, 2.4vw, 48px) clamp(16px, 3vw, 64px) 88px;
}

/* === TARJETA DE LA ALUMNA === */

.profile {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 32px 36px;
  border-radius: var(--r-lg);
  background: var(--brand-deep);
  color: #fff;
}

/* foto con aro del color del nivel */
.avatar {
  position: relative;
  width: 132px;
  height: 132px;
  padding: 6px;
  border-radius: 50%;
  background: var(--ring);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--brand-deep);
}

.avatar-level {
  position: absolute;
  right: -2px;
  bottom: 4px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--ring);
  border: 3px solid var(--brand-deep);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}

.profile-hello {
  font-family: var(--font-hand);
  font-size: 32px;
  line-height: 1;
  color: var(--lime);
}

.profile-name {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 4px 0 14px;
}

.profile-goal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.profile-goal .hand {
  font-size: 26px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
}

.profile-goal .it {
  font-size: 24px;
  line-height: 1.2;
  color: #fff;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.profile-meta span {
  font-size: var(--t-xs);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

/* Insignias */
.badges-box { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }

.badges-box .label { color: rgba(255, 255, 255, 0.7); margin-bottom: 12px; }

.badges { display: flex; gap: 10px; }

.badge {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  border: 2px dashed rgba(255, 255, 255, 0.28);
}

.badge.earned {
  border: 0;
  background: var(--badge);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--brand-deep), 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.badge.earned.is-current {
  box-shadow: 0 0 0 3px var(--brand-deep), 0 0 0 5px var(--lime);
}

.badges-caption {
  margin-top: 14px;
  font-size: var(--t-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.badges-caption strong { color: #fff; }
.badges-caption .role-now { color: var(--lime); }

/* === CUERPO === */

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 25vw, 440px);
  gap: 28px;
  margin-top: 28px;
}

.col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.col.side { gap: 18px; }

/* Seguí donde quedaste */
.continue {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px 30px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1.5px solid var(--line);
}

.big-ring {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  text-align: center;
}

.big-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.big-ring circle { fill: none; stroke-width: 12; }
.big-ring .ring-track { stroke: var(--lilac); }
.big-ring .ring-value { stroke: var(--brand); stroke-linecap: round; }

.big-ring strong {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.big-ring small { position: relative; display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

.continue .label { margin-bottom: 6px; }

.continue h2 {
  font-size: var(--t-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.continue h2 .it { color: var(--brand); font-weight: 400; }

.continue p { margin-top: 8px; font-size: var(--t-sm); color: var(--ink-soft); }

.continue .btn { margin-top: 18px; }

.continue .btn.lime { border-color: var(--ink); }

/* Nota de Leila */
.note {
  container-type: inline-size;
  position: relative;
  padding: 30px 32px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--brand);
}

.note .hand { display: block; font-size: 28px; line-height: 1; color: var(--lime-ink); margin-bottom: 10px; }

.note h2 {
  font-size: var(--t-2xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  max-width: 22ch;
}

.note h2 .it { display: block; color: var(--brand); font-weight: 400; }

.note p { max-width: 64ch; color: var(--ink-soft); line-height: 1.6; }
.note p + p { margin-top: 12px; }
.note p strong { color: var(--ink); }
.note .sign {
  max-width: none;
  margin-top: 6px;
  margin-right: 24px;
  text-align: right;
  font-family: var(--font-sign);
  font-style: normal;
  font-size: 50px;
  line-height: 1;
  color: var(--brand);
  transform: rotate(-4deg);
  transform-origin: right center;
}

/* === COLUMNA LATERAL === */

.search { position: relative; }

.search input {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font: inherit;
  font-size: var(--t-sm);
  color: var(--ink);
}

.search input:focus { outline: none; border-color: var(--brand); }

.search-results {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-float);
  padding: 6px;
}

.search-results a,
.search-results p {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 600;
}

.search-results a:hover { background: var(--lilac); }
.search-results small { display: block; font-size: var(--t-xs); font-weight: 500; color: var(--muted); }
.search-results .is-locked { color: var(--muted); }

.tile { border-radius: var(--r-lg); padding: 22px 22px 24px; }

.tile h3 { font-size: var(--t-lg); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 8px; }
.tile p { font-size: var(--t-sm); line-height: 1.5; color: var(--ink-soft); }

/* Video */
.tile.video {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--brand);
  color: #fff;
}

.tile.video .label { color: var(--lime); }
.tile.video h3 { margin: 2px 0 4px; }
.tile.video p { color: rgba(255, 255, 255, 0.75); }

.play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform var(--fast);
}

.play:hover { transform: scale(1.06); }
.play svg { width: 20px; height: 20px; margin-left: 3px; }

/* Bolsa de trabajo */
.tile.jobs {
  background: var(--lime);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.tile.jobs .label { color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.tile.jobs p { color: rgba(36, 22, 47, 0.8); }

/* Llamadas */
.tile.live { background: var(--surface); border: 1.5px solid var(--line); }

.days { display: flex; gap: 6px; margin: 14px 0 16px; }

.day {
  flex: 1;
  text-align: center;
  padding: 10px 0 8px;
  border-radius: var(--r-sm);
  background: var(--lilac);
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--brand);
}

.day.today { background: var(--brand); color: #fff; }

/* === RESPONSIVE === */

@media (max-width: 1180px) {
  .profile { grid-template-columns: auto minmax(0, 1fr); }
  .badges-box { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 22px; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .col.side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .col.side .search { grid-column: 1 / -1; }
}

/* Pantallas grandes (iMac): todo un poco más grande */
@media (min-width: 1800px) {
  .profile { padding: 40px 48px; }
  .avatar { width: 156px; height: 156px; }
  .badge { width: 54px; height: 54px; font-size: 17px; }
  .big-ring { width: 156px; height: 156px; }
}

@media (max-width: 900px) {
  .dash-mobilebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .dash-mobilebar img { width: 30px; height: 30px; }
  .dash-mobilebar span { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
  .dash { padding: 20px 16px 64px; }
}

@media (max-width: 640px) {
  .profile { grid-template-columns: 1fr; padding: 26px 22px; gap: 20px; text-align: left; }
  .avatar { width: 108px; height: 108px; }
  .badges { gap: 6px; }
  .badge { width: 40px; height: 40px; font-size: 14px; }
  .continue { grid-template-columns: 1fr; padding: 24px 22px; }
  .big-ring { width: 112px; height: 112px; }
  .note { padding: 24px 22px; }
}

/* Nota ancha: título a la izquierda, texto y firma a la derecha */
@container (min-width: 820px) {
  .note-inner { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
  .note-head h2 { margin-bottom: 0; }
  .note-body { padding-top: 6px; }
  .note p { max-width: none; }
}
