/* ═══════════════════════════════════════════════════════════════════
   HOME — Tour guiado de la app (Sprint home-tour, ago-2026)
   Prefijo .tour-* (verificado libre de colisiones). La home NO carga
   tokens.css: valores hex propios, copiados de la paleta real de /app
   (frontend/css/tokens.css). La replica esta construida sobre capturas
   y DOM REALES de /app/dashboard, /app/lms y /app/chat (fidelidad 1:1).
   Disciplina 48.6.x: UNA regla por selector, sin !important, un solo
   bloque responsive (900px). El motor escala un lienzo logico de
   1160x700 (.tour-fit) y hace zoom hacia el hotspot (.tour-canvas).
   ═══════════════════════════════════════════════════════════════════ */

.tour-wrap {
  max-width: 1080px;
  margin: 56px auto 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #05050a;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

/* ── Chrome de ventana ── */
.tour-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #101018;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tour-chrome-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.tour-chrome-dot--r { background: #ff5f57; }
.tour-chrome-dot--y { background: #febc2e; }
.tour-chrome-dot--g { background: #28c840; }
.tour-chrome-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #8b93a7;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 4px 12px;
  margin: 0 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Viewport + lienzo escalable ── */
.tour-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1160 / 700;
  overflow: hidden;
  background: #000000;
}
.tour-fit {
  position: absolute;
  top: 0;
  left: 0;
  width: 1160px;
  height: 700px;
  transform-origin: 0 0;
}
.tour-canvas {
  position: absolute;
  inset: 0;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Replica de la app: shell ── */
.tour-app {
  position: absolute;
  inset: 0;
  display: flex;
  background: #000000;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  text-align: left; /* corta la herencia de .home-inst-hero (text-align:center) */
}

/* Sidebar (replica del real: logo+BETA+campana, user, secciones, TU CUENTA) */
.tour-sb {
  width: 218px;
  flex: 0 0 218px;
  background: #000000;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}
.tour-sb-logo { display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.tour-sb-logo img { height: 18px; max-width: 88px; object-fit: contain; mix-blend-mode: screen; }
.tour-sb-beta {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0a0a0a;
  background: #f5c542;
  border-radius: 4px;
  padding: 1px 4px;
}
.tour-sb-bell { margin-left: auto; position: relative; color: #8b93a7; display: flex; }
.tour-sb-bell i {
  position: absolute;
  top: -5px;
  right: -7px;
  font-style: normal;
  font-size: 7px;
  font-weight: 800;
  color: #ffffff;
  background: #ef4444;
  border-radius: 999px;
  padding: 1px 4px;
}
.tour-sb-user { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.tour-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: #2e5c7c;
}
.tour-av--ring { width: 36px; height: 36px; background: #1a1a1a; color: #f5c542; border: 2px solid #e0a92e; }
.tour-av--xs { width: 18px; height: 18px; font-size: 8px; }
.tour-sb-user-txt { min-width: 0; line-height: 1.2; }
.tour-sb-name { font-size: 12.5px; font-weight: 700; color: #ffffff; }
.tour-sb-mention { font-size: 10px; color: #8b93a7; }
.tour-sb-streakpill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: #e7d3a8;
  background: rgba(120, 72, 20, 0.35);
  border: 1px solid rgba(202, 162, 74, 0.55);
  border-radius: 999px;
  padding: 3px 9px;
  margin: 0 4px;
  width: fit-content;
}
.tour-sb-streakpill b { color: #ffffff; font-weight: 800; }
.tour-sb-nav { flex: 1; min-height: 0; overflow: hidden; }
.tour-sb-lbl {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5e6577;
  padding: 5px 6px 2px;
}
.tour-sb-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  padding: 3px 7px;
  border-radius: 8px;
  white-space: nowrap;
}
.tour-sb-item.is-on { color: #ffffff; background: rgba(255, 255, 255, 0.09); }
.tour-sb-item--gold { color: #f5c542; border: 1px solid rgba(245, 197, 66, 0.4); margin: 1px 0; }
/* Formacion Personalizada: replica del item real (borde serpiente animado,
   sidebar.js .s3l-fp — conic-gradient girando + interior oscuro + dorado) */
.tour-fp-item {
  position: relative;
  display: block;
  border-radius: 9px;
  padding: 2px;
  overflow: hidden;
  margin: 2px 0 4px;
  background: rgba(245, 197, 66, 0.28);
}
.tour-fp-item::before {
  content: '';
  position: absolute;
  left: -150%;
  top: -350%;
  width: 400%;
  height: 800%;
  background: conic-gradient(transparent 0deg, transparent 290deg, #E0A925 315deg, #FFE27A 340deg, transparent 360deg);
  animation: tourFpSpin 3.2s linear infinite;
}
.tour-fp-item-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #0e0e17;
  border-radius: 7px;
  padding: 6px 9px;
  color: #F5C542;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}
.tour-fp-item.is-on .tour-fp-item-inner { background: #15151f; }
@keyframes tourFpSpin { to { transform: rotate(360deg); } }
/* prefers-reduced-motion: bloque unico AL FINAL del archivo (la cascada
   manda: un override aqui arriba seria codigo muerto frente a reglas base
   posteriores de igual especificidad). */
.tour-sb-ico { width: 12px; height: 12px; flex: 0 0 auto; opacity: 0.85; }
.tour-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; margin-left: auto; animation: tourPulse 1.6s infinite; }
.tour-sb-cuenta {
  border: 1px solid rgba(245, 197, 66, 0.45);
  border-radius: 10px;
  padding: 7px 9px;
  background: rgba(245, 197, 66, 0.04);
}
.tour-sb-cuenta-lbl { font-size: 7.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #ffb900; }
.tour-sb-cuenta-badge {
  display: inline-block;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffb900;
  background: rgba(255, 185, 0, 0.14);
  border: 1px solid rgba(255, 185, 0, 0.4);
  border-radius: 999px;
  padding: 2px 8px;
  margin-top: 3px;
}
.tour-sb-cuenta-cad { font-size: 9px; color: #b8b8b8; margin-top: 4px; }
.tour-sb-perfil {
  font-size: 10px;
  font-weight: 600;
  color: #cdcdcd;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 6px 9px;
  line-height: 1.25;
}
.tour-sb-perfil span { font-weight: 400; font-size: 9px; color: #8b93a7; }

/* ── Paginas de la replica ── */
.tour-appmain { flex: 1; position: relative; overflow: hidden; }
.tour-page { position: absolute; inset: 0; padding: 22px 26px; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; overflow: hidden; }
.tour-page.is-on { opacity: 1; pointer-events: auto; }
.tour-page--chat { padding: 0; display: flex; flex-direction: column; }
.tour-h1 { font-size: 21px; font-weight: 800; margin: 0 0 4px; color: #ffffff; }
.tour-sub { font-size: 12.5px; color: #b8b8b8; margin: 0 0 18px; }

/* Escritorio (1:1 con /app/dashboard) */
.tour-dash-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tour-dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 600;
  color: #cdcdcd;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  padding: 3px 9px;
}
.tour-dash-pill i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.tour-dash-date { font-size: 10px; color: #8b93a7; }
.tour-dash-salu { font-size: 10px; color: #8b93a7; }
.tour-dash-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.tour-dash-h1 { font-size: 25px; font-weight: 800; color: #ffffff; margin: 0; letter-spacing: -0.3px; line-height: 1.2; }
.tour-dash-h1 em { font-style: normal; color: #ffb900; }
.tour-ring { width: 74px; height: 74px; flex: 0 0 auto; position: relative; }
.tour-ring svg { width: 74px; height: 74px; transform: rotate(-90deg); }
.tour-ring-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #ffffff; line-height: 1; }
.tour-ring-val i { font-style: normal; font-size: 6.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #8b93a7; margin-top: 2px; }
.tour-dash-flame { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; color: #b8b8b8; margin: 6px 0 14px; max-width: 640px; line-height: 1.45; }
.tour-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.tour-stats::before { content: ''; position: absolute; top: 0; left: 22px; width: 110px; height: 2px; background: #ffb900; }
.tour-stat { padding: 12px 18px; border-left: 1px solid rgba(255, 255, 255, 0.06); }
.tour-stat:first-child { border-left: 0; }
.tour-stat-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255, 255, 255, 0.45); margin-bottom: 4px; }
.tour-stat-val { font-size: 19px; font-weight: 800; color: #ffffff; }
.tour-stat-val i { font-style: normal; font-size: 11px; font-weight: 600; color: #8b93a7; }
.tour-stat-rec { margin-left: 8px; }
.tour-stat-rec b { color: #f5c542; font-weight: 700; }
.tour-neural {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 185, 0, 0.05) 0%, rgba(0, 0, 0, 0) 60%), #05050a;
  padding: 12px 16px;
  margin-top: 12px;
}
.tour-neural-t { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; letter-spacing: 0.8px; color: #ffffff; }
.tour-neural-t i { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: #8b93a7; }
.tour-neural-link { font-size: 10.5px; font-weight: 600; color: #cdcdcd; }
.tour-campusrow { margin-top: 12px; }
.tour-campuscard {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  padding: 11px 15px;
}
.tour-campuscard-h { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #ffffff; }
.tour-campuscard-h i { width: 6px; height: 6px; border-radius: 50%; background: #f5c542; }
.tour-campuscard-h b { margin-left: auto; font-size: 12px; font-weight: 800; }
.tour-campuscard-cont { font-size: 10.5px; color: #ffb900; margin-top: 5px; }
.tour-campuscard-m { font-size: 9.5px; color: #8b93a7; margin-top: 2px; }
.tour-dash-cols { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; margin-top: 12px; }
.tour-dash-col {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  padding: 11px 13px;
  overflow: hidden;
}
.tour-dash-col-h { display: flex; align-items: center; justify-content: space-between; font-size: 9px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: #cdcdcd; margin-bottom: 9px; }
.tour-dash-col-h span { font-weight: 600; letter-spacing: 0; text-transform: none; color: #f5c542; font-size: 9.5px; }
.tour-reprow { display: flex; gap: 9px; padding: 5px 0; align-items: center; }
.tour-reprow img { width: 62px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.tour-reprow div { min-width: 0; line-height: 1.3; }
.tour-reprow i { display: block; font-style: normal; font-size: 7.5px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: #8b93a7; }
.tour-reprow b { display: block; font-size: 10px; font-weight: 600; color: #ffffff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-reprow span { display: block; font-size: 8.5px; color: #5e6577; }
.tour-actrow { display: flex; gap: 8px; padding: 5px 0; align-items: flex-start; }
.tour-actrow span { width: 12px; height: 12px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 4px; flex: 0 0 auto; margin-top: 1px; }
.tour-actrow div { font-size: 10px; color: #cdcdcd; line-height: 1.35; }
.tour-actrow i { display: block; font-style: normal; font-size: 8.5px; color: #5e6577; }
.tour-rankrow { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 600; color: #ffffff; padding: 4px 0; }
.tour-rankrow i { font-style: normal; margin-left: auto; font-size: 9.5px; font-weight: 700; color: #f5c542; }
.tour-rank-n { width: 15px; height: 15px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 800; color: #cdcdcd; background: rgba(255, 255, 255, 0.08); flex: 0 0 auto; }
.tour-rank-n--1 { background: #f5c542; color: #0a0a0a; }
.tour-rank-n--2 { background: #c0c7d1; color: #0a0a0a; }
.tour-rank-n--3 { background: #b4763a; color: #0a0a0a; }

/* Campus / LMS (1:1 con /app/lms) */
.tour-lms { display: flex; gap: 14px; height: 100%; }
.tour-lms-sb { width: 300px; flex: 0 0 300px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.tour-lms-head { line-height: 1.25; padding: 0 2px; }
.tour-lms-head b { font-size: 13px; font-weight: 800; color: #ffffff; display: block; }
.tour-lms-head span { font-size: 9.5px; color: #8b93a7; }
.tour-lms-search {
  font-size: 10.5px;
  color: #5e6577;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.03);
}
.tour-fp-note {
  font-size: 9.5px;
  color: #e7d3a8;
  border: 1px solid rgba(245, 197, 66, 0.35);
  border-radius: 9px;
  padding: 6px 10px;
  background: rgba(245, 197, 66, 0.06);
  line-height: 1.35;
}
.tour-lms-continue {
  font-size: 11px;
  font-weight: 800;
  color: #0a0a0a;
  background: #f5c542;
  border-radius: 9px;
  padding: 8px 11px;
}
.tour-lms-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 11px;
}
.tour-lms-block--open { border-color: rgba(245, 197, 66, 0.35); }
.tour-lms-block-t { font-size: 9.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: #ffffff; display: flex; justify-content: space-between; gap: 8px; }
.tour-lms-block-t span { color: #5e6577; font-weight: 700; }
.tour-lms-lesson { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: #b8b8b8; padding: 4px 2px 0; }
.tour-lms-lesson i { font-style: normal; font-size: 8px; color: #5e6577; width: 10px; flex: 0 0 auto; }
.tour-lms-lesson--on { color: #f5c542; font-weight: 600; }
.tour-lms-main { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tour-player {
  flex: 1;
  border-radius: 12px;
  background: radial-gradient(ellipse at center, #16161e 0%, #0a0a10 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.tour-player-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}
.tour-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(2px);
}
.tour-lms-crumb { font-size: 9px; color: #5e6577; }
.tour-lms-title { font-size: 15px; font-weight: 800; color: #ffffff; }
.tour-lms-badges { display: flex; gap: 6px; }
.tour-lms-badges span { font-size: 8.5px; font-weight: 700; color: #cdcdcd; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 2px 9px; }
.tour-lms-badge--done { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); }
.tour-lesson-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 4px 0 2px; }
.tour-btn-done { font-size: 11px; font-weight: 700; color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.45); border-radius: 10px; padding: 8px 22px; }
.tour-btn-next { font-size: 11px; font-weight: 700; color: #ffffff; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; padding: 8px 22px; }

/* Chat (1:1 con /app/chat) */
.tour-pinrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: #cdcdcd;
  background: #0c0c12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
}
.tour-pinrow b { color: #8b93a7; font-size: 8px; }
.tour-chat { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 9px 18px 12px; }
.tour-chat-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; padding-bottom: 2px; }
.tour-datediv { display: flex; align-items: center; gap: 10px; font-size: 9px; color: #5e6577; font-weight: 600; }
.tour-datediv::before { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.10); }
.tour-datediv::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.10); }
.tour-msg { display: flex; gap: 10px; }
.tour-msg-body { min-width: 0; }
.tour-msg-head { display: flex; align-items: baseline; gap: 7px; }
.tour-msg-name { font-size: 12.5px; font-weight: 700; color: #ffffff; }
.tour-msg-badge { font-size: 9px; font-weight: 700; color: #ffffff; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 8px; padding: 1px 7px; }
.tour-msg-time { font-size: 9.5px; color: #5e6577; }
.tour-msg-txt { font-size: 12.5px; color: #cdcdcd; line-height: 1.45; margin-top: 2px; }
.tour-quote {
  display: block;
  border-left: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 5px 9px;
  margin-bottom: 4px;
  line-height: 1.3;
}
.tour-quote b { display: block; font-size: 10px; color: #ffffff; }
.tour-quote i { display: block; font-style: normal; font-size: 10px; color: #8b93a7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-unread-div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ff5c7a;
}
.tour-unread-div::before { content: ''; flex: 1; height: 1px; background: rgba(255, 92, 122, 0.5); }
.tour-unread-div::after { content: ''; flex: 1; height: 1px; background: rgba(255, 92, 122, 0.5); }
.tour-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12px;
  color: #8b93a7;
}
.tour-composer-img { display: flex; color: #8b93a7; }
.tour-composer-send { margin-left: auto; width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 255, 255, 0.10); display: flex; align-items: center; justify-content: center; }

/* Directos */
.tour-live-card {
  border-radius: 16px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.10), rgba(255, 255, 255, 0.02));
  padding: 26px 28px;
  margin-top: 6px;
}
.tour-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffffff;
  background: #ef4444;
  border-radius: 999px;
  padding: 4px 11px;
  animation: tourPulse 1.6s infinite;
}
.tour-live-t { font-size: 19px; font-weight: 800; color: #ffffff; margin: 12px 0 4px; }
.tour-live-m { font-size: 12px; color: #b8b8b8; margin-bottom: 16px; }
.tour-btn-gold { display: inline-block; font-size: 12.5px; font-weight: 700; color: #0a0a0a; background: #f5c542; border-radius: 11px; padding: 11px 18px; }
.tour-live-count { font-size: 11px; color: #8b93a7; margin-left: 14px; }

/* Repeticiones */
.tour-pills { display: flex; gap: 8px; margin-bottom: 14px; }
.tour-pill { font-size: 11px; font-weight: 600; color: #b8b8b8; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 5px 12px; }
.tour-pill.is-on { color: #0a0a0a; background: #ffffff; border-color: #ffffff; }
.tour-reps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tour-rep {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  overflow: hidden;
}
.tour-rep-thumb { position: relative; aspect-ratio: 16 / 9; background: #16161e; }
.tour-rep-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour-rep-seen {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 9px;
  font-weight: 700;
  color: #06130a;
  background: rgba(46, 204, 113, 0.92);
  border-radius: 7px;
  padding: 2px 7px;
}
.tour-rep-body { padding: 9px 11px 11px; }
.tour-rep-campus { font-size: 8.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #8b93a7; }
.tour-rep-t { font-size: 10.5px; font-weight: 600; color: #ffffff; margin: 3px 0 4px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tour-rep-meta { font-size: 9.5px; color: #5e6577; }

/* Copys */
.tour-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px 18px;
}
.tour-copys { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tour-cpy-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tour-cpy-name { font-size: 13.5px; font-weight: 700; color: #ffffff; }
.tour-cpy-mention { font-size: 10.5px; color: #8b93a7; }
.tour-cpy-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.tour-cpy-stat { background: #0a0a0a; border-radius: 8px; padding: 10px 12px; }
.tour-cpy-stat-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.7px; color: rgba(255, 255, 255, 0.45); margin-bottom: 3px; }
.tour-cpy-stat-val { font-size: 17px; font-weight: 700; color: #ffffff; }
.tour-cpy-stat-val--up { color: #2ecc71; }
.tour-cpy-actions { display: flex; gap: 8px; }
.tour-btn-ghost { flex: 1; text-align: center; font-size: 10.5px; font-weight: 700; color: #cdcdcd; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 9px; padding: 8px 10px; }
.tour-btn-copy { flex: 1; text-align: center; font-size: 10.5px; font-weight: 800; color: #0a0a0a; background: #fbbf24; border-radius: 9px; padding: 8px 10px; }
.tour-disclaimer { grid-column: 1 / -1; font-size: 9.5px; color: #5e6577; text-align: center; margin-top: 4px; }

/* Copys 1:1: cabecera + secciones + ganancia */
.tour-cpy-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.tour-btn-gold--sm { font-size: 10.5px; padding: 8px 13px; border-radius: 9px; }
.tour-cpy-sec { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #ffffff; margin: 4px 0 10px; }
.tour-cpy-sort { margin-left: auto; font-size: 9.5px; font-weight: 500; color: #b8b8b8; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; padding: 4px 10px; }
.tour-cpy-desde { font-size: 9px; color: #5e6577; margin: -4px 0 10px; }
.tour-cpy-gan { background: #0a0a0a; border: 1px solid rgba(46, 204, 113, 0.25); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.tour-cpy-gan i { display: block; font-style: normal; font-size: 8px; text-transform: uppercase; letter-spacing: 0.7px; color: rgba(255, 255, 255, 0.45); }
.tour-cpy-gan b { font-size: 15px; font-weight: 800; color: #2ecc71; }
.tour-copys { margin-bottom: 14px; }

/* Red neuronal 1:1: grafo + leyenda + progreso */
.tour-page--neural { padding: 14px 18px; display: flex; flex-direction: column; }
.tour-neuralmap { position: relative; flex: 1; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); background: radial-gradient(ellipse at 40% 45%, rgba(245, 197, 66, 0.05) 0%, rgba(0, 0, 0, 0) 55%), #05050a; overflow: hidden; }
.tour-neuralmap-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tour-neural-center { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -130%); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #ffffff; }
.tour-neural-tag { position: absolute; font-size: 8px; color: #8b93a7; }
.tour-neural-leyenda { position: absolute; top: 10px; right: 10px; background: rgba(10, 10, 16, 0.92); border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 10px; padding: 8px 11px; display: flex; flex-direction: column; gap: 4px; }
.tour-neural-leyenda b { font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #8b93a7; }
.tour-neural-leyenda span { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #cdcdcd; }
.tour-neural-leyenda i { width: 7px; height: 7px; border-radius: 50%; }
.tour-neural-prog { position: absolute; left: 10px; bottom: 10px; background: rgba(10, 10, 16, 0.92); border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 190px; }
.tour-neural-prog > b { font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #8b93a7; }
.tour-neural-prog-big { font-size: 15px; font-weight: 800; color: #ffffff; }
.tour-neural-prog-big i { font-style: normal; font-size: 9px; font-weight: 500; color: #8b93a7; }
.tour-neural-prog-row { display: flex; justify-content: space-between; font-size: 9.5px; color: #cdcdcd; }
.tour-neural-prog-cont { font-size: 9px; color: #f5c542; }
.tour-neural-pill { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 9.5px; font-weight: 700; color: #0a0a0a; background: #f5c542; border-radius: 999px; padding: 4px 12px; }
.tour-neural-foot { font-size: 10px; color: #8b93a7; text-align: center; margin: 9px 0 0; }

/* Grupos privados 1:1 */
.tour-grp-feedcol { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.tour-grp-head { display: flex; align-items: flex-start; gap: 9px; }
.tour-grp-head-txt { line-height: 1.3; }
.tour-grp-head-txt i { display: block; font-style: normal; font-size: 9px; color: #5e6577; }
.tour-grp-at { font-size: 9.5px; color: #8b93a7; }
.tour-grp-img { display: block; width: 55%; max-width: 330px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); margin-top: 8px; }
.tour-grp-reacts { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.tour-grp-rbtn { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); color: #8b93a7; display: inline-flex; align-items: center; justify-content: center; }
.tour-grp-foot { border-top: 1px solid rgba(255, 255, 255, 0.07); margin-top: 9px; padding-top: 7px; font-size: 9.5px; color: #8b93a7; }
.tour-page--grupos { display: flex; flex-direction: column; }
.tour-grp-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tour-grp-tab { font-size: 11px; font-weight: 700; color: #b8b8b8; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 5px 14px; }
.tour-grp-tab.is-on { color: #0a0a0a; background: #ffffff; border-color: #ffffff; }
.tour-grp-cols { display: flex; gap: 12px; flex: 1; min-height: 0; }
.tour-grp-feed { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; overflow: hidden; }
.tour-grp-post { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 11px 14px; }
.tour-grp-txt { font-size: 11px; color: #cdcdcd; line-height: 1.5; margin-top: 6px; }
.tour-grp-meta { display: flex; align-items: center; gap: 12px; font-size: 9.5px; color: #5e6577; margin-top: 8px; }
.tour-grp-react { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 700; color: #f5c542; border: 1px solid rgba(245, 197, 66, 0.35); border-radius: 999px; padding: 2px 9px; }
.tour-grp-members { width: 165px; flex: 0 0 165px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.tour-grp-members > b { font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #ffffff; }
.tour-grp-members > b i { display: block; font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 8.5px; color: #8b93a7; }
.tour-grp-mlbl { font-size: 7.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #5e6577; margin-top: 3px; }
.tour-grp-m { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 600; color: #cdcdcd; }
.tour-grp-online { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; margin-left: auto; }

/* Soporte (vista alumno) */
.tour-sop-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.tour-sop-field { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 9px; padding: 7px 11px; margin-bottom: 9px; background: rgba(255, 255, 255, 0.03); }
.tour-sop-field i { display: block; font-style: normal; font-size: 8px; text-transform: uppercase; letter-spacing: 0.7px; color: rgba(255, 255, 255, 0.45); }
.tour-sop-field span { font-size: 11px; color: #cdcdcd; }
.tour-sop-field--ta { min-height: 62px; }
.tour-sop-ticket { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 9px 0; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tour-sop-ticket b { font-size: 11px; font-weight: 600; color: #ffffff; flex: 1 1 100%; }
.tour-sop-ticket span { font-size: 9px; color: #5e6577; }
.tour-sop-open { font-style: normal; font-size: 8.5px; font-weight: 800; color: #ff5c7a; border: 1px solid rgba(255, 92, 122, 0.4); border-radius: 999px; padding: 2px 9px; }
.tour-sop-done { font-style: normal; font-size: 8.5px; font-weight: 800; color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.4); border-radius: 999px; padding: 2px 9px; }

/* Ranking 1:1 */
.tour-rk-rules { border: 1px solid rgba(245, 197, 66, 0.3); border-radius: 12px; background: rgba(245, 197, 66, 0.04); padding: 10px 14px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 16px; margin-bottom: 12px; }
.tour-rk-rules b { grid-column: 1 / -1; font-size: 8.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #f5c542; }
.tour-rk-rules span { font-size: 9.5px; color: #cdcdcd; display: flex; justify-content: space-between; gap: 8px; }
.tour-rk-rules span i { font-style: normal; color: #5e6577; white-space: nowrap; }
.tour-rk-gold { color: #f5c542; font-weight: 700; }
.tour-rk-list { display: flex; flex-direction: column; }
.tour-rankrow--top { background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 10px; padding: 6px 10px; margin-bottom: 4px; }
.tour-rk-mention { font-size: 9px; font-weight: 400; color: #5e6577; }

/* Repeticiones: toolbar real (buscador + pills) */
.tour-rep-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.tour-rep-search { flex: 1; font-size: 10.5px; color: #5e6577; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 9px; padding: 7px 11px; background: rgba(255, 255, 255, 0.03); }

/* ── Slides bienvenida / final ── */
.tour-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 40px;
  background: radial-gradient(ellipse at 30% 70%, rgba(245, 197, 66, 0.06) 0%, rgba(0, 0, 0, 0) 55%), #05050a;
  opacity: 0;
  pointer-events: none;
  visibility: hidden; /* saca los controles invisibles del orden de tabulacion */
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
  z-index: 5;
}
.tour-slide.is-on { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 0.45s ease, visibility 0s; }
.tour-slide img { height: 40px; object-fit: contain; mix-blend-mode: screen; }
.tour-slide-t { font-size: 30px; font-weight: 800; color: #ffffff; margin: 6px 0 0; letter-spacing: -0.5px; }
.tour-slide-s { font-size: 14.5px; color: #b8b8b8; max-width: 560px; line-height: 1.55; margin: 0; }
.tour-slide-cta {
  display: inline-block;
  font-size: 15.5px;
  font-weight: 800;
  color: #0a0a0a;
  background: linear-gradient(180deg, #ffe27a, #e8b52e);
  border: 0;
  border-radius: 14px;
  padding: 16px 36px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.2px;
  animation: tourCtaGlow 2.2s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
}
.tour-slide-cta:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.06); }
/* Flecha que baja senalando el CTA: bob suave, solo en la bienvenida */
.tour-slide-arrow { display: block; margin: 2px 0 -4px; animation: tourArrowBob 1.7s cubic-bezier(0.45, 0, 0.55, 1) infinite; filter: drop-shadow(0 0 6px rgba(245, 197, 66, 0.45)); }
@keyframes tourArrowBob {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(8px); opacity: 1; }
}
@keyframes tourCtaGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 197, 66, 0.45), 0 8px 28px rgba(245, 197, 66, 0.18); }
  50% { box-shadow: 0 0 0 9px rgba(245, 197, 66, 0), 0 8px 34px rgba(245, 197, 66, 0.32); }
}
.tour-slide-ghost { display: inline-block; font-size: 12.5px; font-weight: 600; color: #cdcdcd; text-decoration: underline; cursor: pointer; background: none; border: 0; font-family: inherit; }

/* ── Hotspot + tooltip ── */
.tour-hotspot {
  position: absolute;
  border: 2px solid #f5c542;
  border-radius: 12px;
  box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.28), 0 0 22px rgba(245, 197, 66, 0.35);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  z-index: 6;
}
.tour-tip {
  position: absolute;
  width: 265px;
  background: #101018;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 13px 15px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.6);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 7;
  text-align: left; /* corta la herencia de .home-inst-hero (text-align:center) */
}
.tour-tip-title { font-size: 13px; font-weight: 800; color: #ffffff; margin-bottom: 4px; }
.tour-tip-text { font-size: 11.5px; color: #b8b8b8; line-height: 1.5; }
.tour-tip-nav { display: flex; align-items: center; gap: 7px; margin-top: 11px; }
.tour-tip-count { font-size: 10px; font-weight: 700; color: #5e6577; margin-right: auto; }
.tour-tip-btn {
  width: 28px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tour-tip-btn--next { background: #f5c542; border-color: #f5c542; color: #0a0a0a; }

/* ── Barra de progreso ── */
.tour-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 8;
}
.tour-progress-fill { height: 100%; width: 0; background: #f5c542; transition: width 0.5s ease; }

@keyframes tourPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ── Responsive (breakpoint del hero institucional) ── */
@media (max-width: 900px) {
  .tour-wrap { margin-top: 36px; border-radius: 10px; }
  .tour-chrome { padding: 8px 10px; }
  .tour-chrome-title { font-size: 10px; margin: 0 8px; }
  .tour-slide-t { font-size: 26px; }
  .tour-slide-s { font-size: 13px; }
  /* El fit-scale (~0.29 a 375px) empequenece el canvas logico entero:
     compensar CTA y flecha con tamanos logicos mayores. */
  .tour-slide-cta { font-size: 20px; padding: 20px 46px; border-radius: 16px; }
  .tour-slide-arrow { width: 36px; height: 50px; }
}

/* ── Modo movil (.tour-mobile, activado por fitScale cuando s < 0.55) ──
   La replica se queda completa (fit-scale); la UI del tour se CONTRA-ESCALA
   a pixeles visuales: el slide se convierte en un sistema de coordenadas de
   pixeles reales (caja = tamano visual del marco, escalada por 1/s) y el
   tooltip lo contra-escala el motor en JS con dimensiones efectivas. ── */
.tour-mobile .tour-slide {
  inset: auto;
  left: 50%; top: 50%;
  width: calc(100% * var(--tour-scale, 1));
  height: calc(100% * var(--tour-scale, 1));
  transform: translate(-50%, -50%) scale(var(--tour-inv, 1));
  padding: 16px;
  gap: 10px;
}
.tour-mobile .tour-slide img { height: 26px; }
.tour-mobile .tour-slide-t { font-size: 19px; }
.tour-mobile .tour-slide-s { font-size: 12px; max-width: 92%; line-height: 1.45; }
.tour-mobile .tour-slide-cta { font-size: 13.5px; padding: 11px 26px; border-radius: 11px; }
.tour-mobile .tour-slide-arrow { width: 18px; height: 26px; }
.tour-mobile .tour-slide-ghost { font-size: 11px; }
/* Hotspot y progreso visibles a escala real */
.tour-mobile .tour-hotspot {
  border-width: calc(2px * var(--tour-inv, 1));
  border-radius: calc(10px * var(--tour-inv, 1));
}
.tour-mobile .tour-progress { height: calc(3px * var(--tour-inv, 1)); }

/* ── prefers-reduced-motion (bloque UNICO, al final: la cascada decide por
      orden de archivo entre reglas de igual especificidad) ── */
@media (prefers-reduced-motion: reduce) {
  .tour-fp-item::before { animation: none; }
  .tour-slide-arrow { animation: none; }
  .tour-slide-cta { animation: none; box-shadow: 0 8px 28px rgba(245, 197, 66, 0.22); }
  .tour-slide-cta:hover { transform: none; filter: none; }
}
