/* ---------- Perfil del profesor (hoja de plano) — usa la paleta de variables.css ---------- */

.home-display {
  font-family: "Space Grotesk", var(--font-body);
}

.home-mono {
  font-family: "IBM Plex Mono", var(--font-mono);
}

.reg-mark {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.reg-mark::before,
.reg-mark::after {
  content: "";
  position: absolute;
  background: rgba(191, 220, 239, 0.35);
}
.reg-mark::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}
.reg-mark::after {
  left: 50%;
  top: 0;
  height: 100%;
  width: 1px;
  transform: translateX(-50%);
}
.reg-mark.tl {
  top: 14px;
  left: 14px;
}
.reg-mark.tr {
  top: 14px;
  right: 14px;
}

/* ---------- HERO (hoja de plano) ---------- */
.profile-sheet {
  --bg: var(--blueprint);
  --surface: var(--blueprint);
  --surface-2: var(--blueprint-deep);
  --text: var(--line);
  --text-muted: var(--line-muted);
  --border: var(--line-dim);

  position: relative;
  background: linear-gradient(rgba(191, 220, 239, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 220, 239, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, var(--surface), var(--bg));
  background-size: 32px 32px, 32px 32px, cover;
  color: var(--text);
  padding: 40px 24px 0;
  overflow: hidden;
}

.profile-sheet-inner {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
}

.profile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 44px;
  font-size: 14px;
}
.profile-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.breadcrumb {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  transition: color var(--transition);
}
.breadcrumb:hover {
  color: var(--accent);
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}
.share-btn:hover,
.share-btn.copied {
  color: var(--accent);
}

.profile-contact a svg,
.profile-contact a .icon {
  color: var(--accent);
  flex-shrink: 0;
}
.breadcrumb svg {
  transform: rotate(180deg);
}

.profile-head {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  padding-bottom: 36px;
  flex-wrap: wrap;
}
.avatar-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 1px solid var(--accent);
  flex-shrink: 0;
  background: rgba(226, 166, 59, 0.08);
}
h1.profile-name {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--text);
}
.profile-role {
  font-size: 14.5px;
  color: var(--line-soft);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 0 16px;
}
.profile-contact {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.profile-contact a {
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.profile-contact a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.title-block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.title-block div {
  padding: 14px 18px 14px 0;
  border-right: 1px solid var(--border);
}
.title-block div:not(:first-child) {
  padding-left: 18px;
}
.title-block div:last-child {
  border-right: none;
}
.tb-label {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.tb-value {
  font-size: 13px;
  color: var(--text);
}
@media (max-width: 720px) {
  .title-block {
    grid-template-columns: repeat(2, 1fr);
  }
  .title-block div:nth-child(2) {
    border-right: none;
  }
}

/* ---------- SECCIONES ---------- */
.profile-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.profile-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}
.profile-section:last-child {
  border-bottom: none;
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
}
.sec-head h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0;
  font-weight: 600;
}
.sec-head span {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-summary p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.profile-summary p:last-child {
  margin-bottom: 0;
}

/* Cursos */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (max-width: 720px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}
.course-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  padding: 24px 22px;
  position: relative;
  transition: background var(--transition);
}
.course-card:hover {
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 100%);
}
.course-card::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(226, 166, 59, 0.35);
  border-left: 1px solid rgba(226, 166, 59, 0.35);
}
.course-card:hover::before {
  border-color: var(--accent);
}
.course-card-wide {
  grid-column: 1 / -1;
}
.course-card h4 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--text);
}
.course-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Aptitudes y tecnologías */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex-shrink: 0;
}

/* Experiencia */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 34px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1.5px solid var(--accent);
}
.timeline-item .period {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.timeline-item h3 {
  font-size: 16.5px;
  margin: 0 0 3px;
  font-weight: 600;
  color: var(--text);
}
.timeline-item .org {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.timeline-item ul {
  margin: 0;
  padding-left: 18px;
}
.timeline-item li {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 4px;
}

/* Educación / certificaciones / idiomas / reconocimientos */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
.simple-list > div {
  margin-bottom: 18px;
}
.simple-list > div:last-child {
  margin-bottom: 0;
}
.item-title {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 3px;
  color: var(--text);
}
.item-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  font-family: var(--font-mono);
}

.profile-footer {
  --bg: var(--blueprint-deep);
  --text-muted: var(--line-muted);
  --border: var(--line-dim);

  background: var(--bg);
  color: var(--text-muted);
  padding: 30px 24px;
  font-size: 12.5px;
  text-align: center;
  border-top: 1px solid var(--border);
}
