/* ═══ Inicio (#/home) · prefijo .hm- ═══ */
.hm-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 1640px; margin: 0; }
.hm-main, .hm-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (min-width: 1100px) { .hm-wrap { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }

/* saludo */
.hm-hello { gap: 14px; }
.hm-hello h1 { font-size: 24px; line-height: 1.15; }
.hm-date { text-transform: capitalize; margin-bottom: 2px; }
.hm-me { border-radius: 50%; transition: transform var(--t) var(--spring); }
.hm-me:hover { transform: scale(1.06) rotate(-4deg); }
.hm-bell { position: relative; width: 46px; height: 46px; flex: none; }
.hm-bell:hover { transform: translateY(-2px); }
.hm-bell .badge { position: absolute; top: -3px; right: -3px; }

/* encabezados de sección */
.hm-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; min-height: 26px; }
.hm-link { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; color: var(--primary); padding: 6px 0 6px 10px; transition: gap var(--t) var(--ease); }
.hm-link .icon { width: 15px; height: 15px; }
.hm-link:hover { gap: 6px; }
.hm-none { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-radius: var(--r-lg); }

/* fila de avatares conectados */
.hm-people-row { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; margin: 0 -2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.hm-people-row::-webkit-scrollbar { display: none; }
.hm-person { width: 72px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 7px; scroll-snap-align: start; transition: transform var(--t) var(--spring), opacity var(--t) var(--ease); }
.hm-person:hover { transform: translateY(-4px); }
.hm-person:active { transform: scale(.94); }
.hm-person.off { opacity: .55; }
.hm-person.off:hover { opacity: 1; }
.hm-person-name { max-width: 100%; font-size: 12px; font-weight: 600; color: var(--text-2); }
.hm-ring { padding: 3px; border-radius: 50%; border: 2px solid var(--line); transition: border-color var(--t) var(--ease); }
.hm-person:not(.off) .hm-ring { border-color: var(--primary); }
.hm-ring.live { border-color: var(--ok) !important; box-shadow: 0 0 0 4px var(--ok-soft); }
.hm-add { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--muted); color: var(--muted); transition: all var(--t) var(--ease); }
.hm-person:hover .hm-add { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* tarjeta héroe */
.hm-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 230px; padding: 26px; border-radius: var(--r-xl); color: #fff;
  background: linear-gradient(135deg, #4a3fe0 0%, #6f5bff 42%, #3d8bff 100%); box-shadow: 0 22px 46px rgba(84, 72, 240, .36); }
.hm-hero::before, .hm-hero::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(6px); animation: hm-drift 14s var(--ease) infinite alternate; }
.hm-hero::before { width: 340px; height: 340px; right: -90px; top: -140px; background: radial-gradient(circle at 30% 30%, rgba(255, 143, 214, .75), rgba(255, 143, 214, 0) 70%); }
.hm-hero::after { width: 300px; height: 300px; left: 28%; bottom: -190px; background: radial-gradient(circle at 50% 50%, rgba(95, 230, 255, .6), rgba(95, 230, 255, 0) 70%); animation-delay: -6s; }
.hm-hero-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 240px at 0% 100%, rgba(20, 10, 80, .45), transparent 70%); }
.hm-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; max-width: 520px; }
.hm-live-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; }
.hm-live-pill .dot:not(.live) { background: rgba(255, 255, 255, .7); }
.hm-hero h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.12; font-weight: 800; }
.hm-hero h2 em { font-style: normal; color: #ffb3e6; }
.hm-hero p { color: rgba(255, 255, 255, .86); font-size: 14px; max-width: 420px; }
.hm-hero-actions { margin-top: 6px; }
.hm-hero-btn { background: #fff; color: #17153d; padding-left: 7px; box-shadow: 0 12px 26px rgba(10, 5, 70, .3); }
.hm-hero-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(10, 5, 70, .4); }
.hm-hero-btn-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #17153d; color: #fff; transition: transform var(--t) var(--spring); }
.hm-hero-btn:hover .hm-hero-btn-ic { transform: rotate(-8deg) scale(1.06); }
.hm-hero-alt, .hm-hero-alt:hover { color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24); }
.hm-hero-alt:hover { background: rgba(255, 255, 255, .28); transform: translateY(-2px); }
.hm-hero-crowd { position: relative; flex: none; display: flex; align-items: center; }
.hm-hero-crowd .hm-float { display: block; margin-left: -12px; }
.hm-hero-crowd .hm-float:first-child { margin-left: 0; }
.hm-hero-crowd .hm-float .avatar { --s: 38px; border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 22px rgba(10, 5, 70, .35); }
.hm-hero-crowd .hm-hero-wave { margin-left: 10px; }
.hm-hero-wave { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; }
@media (min-width: 620px) {
  .hm-hero-crowd { width: 214px; height: 176px; align-items: flex-end; justify-content: center; padding-right: 8px; }
  .hm-hero-crowd .hm-float { position: absolute; margin: 0; animation: hm-bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); }
  .hm-hero-crowd .hm-float .avatar { --s: 52px; }
  .hm-hero-crowd .hm-float:nth-child(1) { left: 72px; top: 26px; } .hm-hero-crowd .hm-float:nth-child(1) .avatar { --s: 68px; }
  .hm-hero-crowd .hm-float:nth-child(2) { left: 6px; top: 6px; } .hm-hero-crowd .hm-float:nth-child(3) { left: 150px; top: 0; }
  .hm-hero-crowd .hm-float:nth-child(4) { left: 0; top: 74px; } .hm-hero-crowd .hm-float:nth-child(5) { left: 156px; top: 66px; }
  .hm-hero-crowd .hm-hero-wave { margin-left: 0; }
}
@media (max-width: 619px) {
  .hm-hero { flex-direction: column; align-items: stretch; padding: 22px 20px; min-height: 0; }
  .hm-hero-btn, .hm-hero-alt { flex: 1; }
}

/* mini-estadísticas */
.hm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hm-stat { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; min-width: 0;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.hm-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hm-stat:active { transform: scale(.97); }
.hm-stat-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.hm-stat-ic.ok { background: var(--ok-soft); color: var(--ok); } .hm-stat-ic.info { background: var(--primary-soft); color: var(--primary); }
.hm-stat-ic.danger { background: var(--danger-soft); color: var(--danger); } .hm-stat-ic.warn { background: var(--warn-soft); color: var(--warn); }
.hm-stat-txt { display: flex; flex-direction: column; min-width: 0; }
.hm-stat-txt b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-stat-txt small { font-size: 11.5px; color: var(--muted); font-weight: 600; line-height: 1.25; }
.hm-stat-sk { width: 44px; height: 22px; margin-bottom: 3px; }
@media (max-width: 560px) {
  .hm-stats { gap: 8px; }
  .hm-stat { flex-direction: column; align-items: flex-start; gap: 9px; padding: 12px; }
  .hm-stat-ic { width: 34px; height: 34px; border-radius: 11px; } .hm-stat-ic .icon { width: 17px; height: 17px; }
  .hm-stat-txt b { font-size: 18px; }
}

/* tarjetas pastel de salas */
.hm-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.hm-room { --tint: #a98bff; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px; border-radius: 26px; cursor: pointer; position: relative; overflow: hidden;
  background: var(--card); background: color-mix(in srgb, var(--tint) 24%, var(--card)); border: 1px solid color-mix(in srgb, var(--tint) 34%, transparent);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.hm-room::after { content: ''; position: absolute; width: 130px; height: 130px; right: -40px; top: -50px; border-radius: 50%; background: color-mix(in srgb, var(--tint) 30%, transparent); pointer-events: none; transition: transform var(--t-slow) var(--ease); }
.hm-room:hover { transform: translateY(-4px); box-shadow: 0 18px 34px color-mix(in srgb, var(--tint) 34%, transparent); }
.hm-room:hover::after { transform: scale(1.25); }
.hm-room:active { transform: scale(.975); }
.hm-room > * { position: relative; z-index: 1; }
.hm-room-emoji { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: var(--card); box-shadow: var(--shadow); margin-bottom: 8px; }
.hm-room h4 { font-size: 15px; }
.hm-room-sub { color: var(--text-2); opacity: .8; }
.hm-room-mid { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; margin-top: 8px; }
.hm-room .avatar-stack .avatar { border-color: color-mix(in srgb, var(--tint) 24%, var(--card)); }
.hm-more { background: var(--text) !important; color: var(--card); font-size: 11px; }
.hm-room-timer { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; background: var(--card); color: var(--text-2); }
.hm-room-timer .icon { width: 13px; height: 13px; }
.hm-room-foot { margin-top: 10px; padding-top: 10px; border-top: 1px dashed color-mix(in srgb, var(--tint) 55%, transparent); font-size: 13px; }
.hm-room-go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow); transition: transform var(--t) var(--spring), background var(--t) var(--ease), color var(--t) var(--ease); }
.hm-room-go .icon { width: 16px; height: 16px; }
.hm-room:hover .hm-room-go { transform: translateX(3px); background: var(--text); color: var(--card); }
@media (max-width: 700px) {
  .hm-rooms { display: flex; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hm-rooms::-webkit-scrollbar { display: none; }
  .hm-room { flex: 0 0 172px; scroll-snap-align: center; }
}

/* accesos rápidos con degradados */
.hm-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hm-qa { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 22px; min-height: 148px; padding: 14px; border-radius: 26px; color: #fff; text-align: left;
  box-shadow: 0 14px 28px rgba(40, 30, 110, .2); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.hm-qa::before, .hm-qa::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; transition: transform var(--t-slow) var(--ease); }
.hm-qa::before { width: 190px; height: 190px; right: -70px; bottom: -60px; background: rgba(255, 255, 255, .2); }
.hm-qa::after { width: 130px; height: 130px; right: -20px; bottom: -64px; background: rgba(255, 255, 255, .22); }
.hm-qa:hover { transform: translateY(-4px); box-shadow: 0 20px 36px rgba(40, 30, 110, .3); }
.hm-qa:hover::before { transform: scale(1.12) translate(-8px, -6px); } .hm-qa:hover::after { transform: scale(1.18); }
.hm-qa:active { transform: scale(.97); }
.hm-qa.violet { background: linear-gradient(140deg, #b06bff, #6a4df5); } .hm-qa.blue { background: linear-gradient(140deg, #5cc8ff, #3f6bff); }
.hm-qa.pink { background: linear-gradient(140deg, #ff8fb8, #f0559c 55%, #a44df0); } .hm-qa.green { background: linear-gradient(140deg, #4fd8a5, #14a38b); }
.hm-qa-ic { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #17153d; box-shadow: 0 8px 18px rgba(10, 5, 70, .22); }
.hm-qa-ic .badge { position: absolute; top: -4px; right: -6px; }
.hm-qa-txt { display: flex; flex-direction: column; gap: 2px; }
.hm-qa-txt b { font-size: 14.5px; font-weight: 800; line-height: 1.2; }
.hm-qa-txt small { font-size: 11.5px; color: rgba(255, 255, 255, .85); font-weight: 600; line-height: 1.3; }
@media (min-width: 700px) and (max-width: 1099px) { .hm-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* próximas publicaciones */
.hm-posts { padding: 8px; border-radius: 26px; }
.hm-post { padding: 10px; }
.hm-post-thumb { width: 50px; height: 50px; border-radius: 15px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--card-2); color: var(--muted); }
.hm-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hm-post-meta { gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.hm-post-meta .platform { width: 18px; height: 18px; border-radius: 6px; font-size: 9px; }
.hm-post-sk { display: flex; align-items: center; gap: 12px; padding: 10px; }
.hm-post-sk > .skeleton { width: 50px; height: 50px; border-radius: 15px; flex: none; }
.hm-post-sk .col { gap: 7px; } .hm-post-sk .col .skeleton { height: 12px; } .hm-post-sk .col .skeleton:last-child { width: 55%; }
@media (max-width: 420px) { .hm-post .pill { display: none; } }

@keyframes hm-drift { to { transform: translate(-30px, 24px) scale(1.12); } }
@keyframes hm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
