/* EduGenaro Chat V2 — isolated responsive layer */
.egme-profile-v21 .egme-chat-dock{
  position:fixed!important;
  left:auto!important;
  right:18px!important;
  bottom:14px!important;
  width:auto!important;
  transform:none!important;
  z-index:100050!important;
  pointer-events:none!important;
}
.egme-profile-v21 .egme-chat-launcher{
  pointer-events:auto!important;
  min-width:48px!important;
  min-height:48px!important;
}
.egme-profile-v21 .egme-chat-panel{
  pointer-events:auto!important;
  position:absolute!important;
  right:0!important;
  bottom:60px!important;
  width:372px!important;
  height:min(620px,calc(100vh - 100px))!important;
  max-width:calc(100vw - 28px)!important;
  max-height:none!important;
  display:none!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 22px 70px rgba(15,23,42,.28)!important;
}
.egme-profile-v21 .egme-chat-dock.is-expanded .egme-chat-panel{
  display:flex!important;
}
.egme-profile-v21 .egme-chat-panel-head{
  flex:0 0 auto!important;
  min-height:58px!important;
  padding:14px 16px!important;
}
.egme-profile-v21 .egme-float-chat-tabs{
  flex:0 0 auto!important;
  padding:10px!important;
}
.egme-profile-v21 .egme-float-chat-section{
  min-height:0!important;
  flex:1 1 auto!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
.egme-profile-v21 .egme-float-chat-section.is-active{
  display:block!important;
}
.egme-profile-v21 .egme-chat-search-wrap{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:10px 12px 6px!important;
  padding:10px 13px!important;
  border-radius:999px!important;
  background:#f0f2f5!important;
  border:1px solid #e3e6ea!important;
}
.egme-profile-v21 .egme-chat-search{
  width:100%!important;
  min-width:0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  font-size:14px!important;
}
.egme-profile-v21 .egme-chat-contacts,
.egme-profile-v21 .egme-chat-groups-list{
  padding:6px 9px 14px!important;
}
.egme-profile-v21 .egme-chat-contacts a,
.egme-profile-v21 .egme-chat-groups-list a{
  min-height:62px!important;
}
.egme-profile-v21 .egme-chat-empty{
  min-height:260px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  padding:30px 22px!important;
}
.egme-profile-v21 .egme-chat-window{
  width:372px!important;
  max-width:calc(100vw - 28px)!important;
  height:min(620px,calc(100vh - 100px))!important;
  display:flex!important;
  flex-direction:column!important;
}
.egme-profile-v21 .egme-chat-window .egme-chat-messages{
  height:auto!important;
  flex:1 1 auto!important;
}

@media (min-width:701px) and (max-width:1100px){
  .egme-profile-v21 .egme-chat-panel,
  .egme-profile-v21 .egme-chat-window{
    width:400px!important;
    height:min(680px,calc(100vh - 84px))!important;
  }
}

@media (max-width:700px){
  .egme-profile-v21 .egme-chat-dock{
    left:8px!important;
    right:8px!important;
    bottom:8px!important;
  }
  .egme-profile-v21 .egme-chat-launcher{
    margin-left:auto!important;
  }
  .egme-profile-v21 .egme-chat-panel,
  .egme-profile-v21 .egme-chat-window{
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    top:8px!important;
    bottom:8px!important;
    width:auto!important;
    height:auto!important;
    max-width:none!important;
    max-height:none!important;
    border-radius:20px!important;
  }
  .egme-profile-v21 .egme-chat-empty{
    min-height:45vh!important;
  }
}

/* v3.0.0 - Navegación interna del chat */
.egme-profile-v21 .egme-chat-window>header{display:grid!important;grid-template-columns:40px minmax(0,1fr) 40px!important;align-items:center!important;gap:6px!important;padding:12px 10px!important}
.egme-profile-v21 .egme-chat-window>header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.egme-profile-v21 .egme-chat-back{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:25px;line-height:1;cursor:pointer}
.egme-profile-v21 .egme-chat-back:hover{background:rgba(255,255,255,.22);transform:translateX(-2px)}
.egme-profile-v21 .egme-chat-window>header>a{display:grid;place-items:center;width:36px;height:36px;margin-left:auto}
@media(max-width:700px){.egme-profile-v21 .egme-chat-window>header{padding:12px!important}.egme-profile-v21 .egme-chat-back{width:40px;height:40px}}
.egme-presence-select{margin-left:auto;max-width:145px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:inherit;border-radius:999px;padding:6px 10px;font-size:12px}.egme-presence-select option{color:#111;background:#fff}.egme-live-time{display:block;font-size:10px;opacity:.65;margin-top:3px}.egme-live-typing{padding:8px 12px;color:#667085;font-size:13px;font-style:italic}.egme-status-dot.is-dnd,.egme-contact-avatar i.is-dnd{background:#7c3aed!important}.egme-status-dot.is-away,.egme-contact-avatar i.is-away{background:#f59e0b!important}.egme-status-dot.is-offline,.egme-contact-avatar i.is-offline{background:#9ca3af!important}


/* EduGenaro 3.2 - EduMojis, insignias y logros */
.egme-chat-window form{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:end}
.egme-chat-window form textarea{grid-column:2;min-width:0}
.egme-chat-window form>button:last-child{grid-column:3}
.egme-edumoji{position:relative;grid-column:1}
.egme-edumoji-toggle{width:42px;height:42px;border:0;border-radius:50%;background:#f5eef1;font-size:22px;cursor:pointer}
.egme-edumoji-panel{position:absolute;left:0;bottom:50px;width:300px;max-width:82vw;background:#fff;border:1px solid #e9dbe1;border-radius:18px;box-shadow:0 18px 50px rgba(33,18,28,.22);padding:12px;z-index:100500}
.egme-edumoji-tabs{display:flex;gap:6px;margin-bottom:10px}.egme-edumoji-tabs button{flex:1;border:0;border-radius:999px;padding:8px;background:#f3edf0;font-weight:800;cursor:pointer}.egme-edumoji-tabs button.is-active{background:#a8244c;color:#fff}
.egme-edumoji-grid{display:none;grid-template-columns:repeat(6,1fr);gap:6px}.egme-edumoji-grid.is-active{display:grid}.egme-edumoji-grid button{border:0;background:#faf7f8;border-radius:10px;font-size:24px;padding:7px;cursor:pointer}.egme-edumoji-grid button:hover{transform:scale(1.08);background:#f2e4ea}.egme-edumoji-locked{grid-column:1/-1;text-align:center;padding:16px}.egme-edumoji-locked p{font-size:13px;color:#667085}.egme-edumoji-locked a{display:inline-block;background:#a8244c;color:#fff;text-decoration:none;border-radius:999px;padding:9px 14px;font-weight:800}
@media(max-width:600px){.egme-edumoji-panel{position:fixed;left:4vw;right:4vw;bottom:88px;width:auto;max-width:none}.egme-edumoji-grid{grid-template-columns:repeat(6,1fr)}}


/* v3.8.8 — ÚNICAMENTE restaurar chat flotante sin tocar el muro */
html body > .egme-chat-dock,
html body > .egme-chat-dock.egme-chat-dock{
  position:fixed!important;
  left:auto!important;
  right:18px!important;
  top:auto!important;
  bottom:18px!important;
  margin:0!important;
  width:auto!important;
  height:auto!important;
  max-width:calc(100vw - 24px)!important;
  transform:none!important;
  translate:none!important;
  contain:none!important;
  z-index:2147483000!important;
  pointer-events:none!important;
}
html body > .egme-chat-dock .egme-chat-launcher,
html body > .egme-chat-dock .egme-chat-panel,
html body > .egme-chat-dock .egme-chat-window{
  pointer-events:auto!important;
}
html body > .egme-chat-dock .egme-chat-panel{
  position:absolute!important;
  right:0!important;
  left:auto!important;
  top:auto!important;
  bottom:60px!important;
}
@media(max-width:700px){
  html body > .egme-chat-dock,
  html body > .egme-chat-dock.egme-chat-dock{
    left:8px!important;
    right:8px!important;
    bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
    max-width:none!important;
  }
  html body > .egme-chat-dock .egme-chat-launcher{margin-left:auto!important}
  html body > .egme-chat-dock .egme-chat-panel,
  html body > .egme-chat-dock .egme-chat-window{
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    top:8px!important;
    bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;
    height:auto!important;
  }
}


/* v4.0.6 — SOLO botón Enviar visible y dentro del chat */
html body .egme-chat-window form{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) 48px!important;
  gap:8px!important;
  align-items:end!important;
  width:100%!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
html body .egme-chat-window form textarea[name="message"]{
  min-width:0!important;
  width:100%!important;
  box-sizing:border-box!important;
}
html body .egme-chat-window form .egme-chat-send-button{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center!important;
  justify-content:center!important;
  width:48px!important;
  min-width:48px!important;
  height:44px!important;
  padding:0!important;
  border:0!important;
  border-radius:12px!important;
  background:var(--egme-profile-tone,#9c1f5a)!important;
  color:#fff!important;
  font-size:20px!important;
  cursor:pointer!important;
  position:static!important;
  transform:none!important;
}
@media(max-width:700px){
  html body .egme-chat-window form{grid-template-columns:40px minmax(0,1fr) 46px!important;gap:6px!important}
  html body .egme-chat-window form .egme-chat-send-button{width:46px!important;min-width:46px!important}
}

/* v4.0.8 — Botón Enviar visible en TODOS los chats, sin alterar el resto */
html body .egme-chat-window form button[type="submit"],
html body .egme-chat-window form .egme-chat-send-button,
html body .egme-inline-chat-view form button[type="submit"],
html body .egme-group-chat form button[type="submit"],
html body .egme-chat-form button[type="submit"]{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 48px!important;
  width:48px!important;
  min-width:48px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:12px!important;
  background:var(--egme-profile-tone,#9c1f5a)!important;
  color:#fff!important;
  font-size:20px!important;
  line-height:1!important;
  cursor:pointer!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  z-index:2!important;
  overflow:hidden!important;
}
html body .egme-chat-window form button[type="submit"]::before,
html body .egme-inline-chat-view form button[type="submit"]::before,
html body .egme-group-chat form button[type="submit"]::before,
html body .egme-chat-form button[type="submit"]::before{
  content:"➤";
}
html body .egme-chat-window form button[type="submit"] span,
html body .egme-inline-chat-view form button[type="submit"] span,
html body .egme-group-chat form button[type="submit"] span,
html body .egme-chat-form button[type="submit"] span{
  display:none!important;
}
html body .egme-chat-window form,
html body .egme-inline-chat-view form,
html body .egme-group-chat form,
html body .egme-chat-form{
  box-sizing:border-box!important;
  max-width:100%!important;
  overflow:visible!important;
}
@media(max-width:700px){
  html body .egme-chat-window form button[type="submit"],
  html body .egme-inline-chat-view form button[type="submit"],
  html body .egme-group-chat form button[type="submit"],
  html body .egme-chat-form button[type="submit"]{
    flex-basis:46px!important;
    width:46px!important;
    min-width:46px!important;
  }
}

/* v4.0.9 — corrección definitiva: formulario compacto y botón visible */
html body .egme-chat-window form{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  padding:10px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
html body .egme-chat-window form [data-egme-edumoji]{
  flex:0 0 42px!important;
  width:42px!important;
  min-width:42px!important;
}
html body .egme-chat-window form textarea[name="message"]{
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:46px!important;
  min-height:46px!important;
  max-height:110px!important;
  margin:0!important;
  resize:none!important;
  box-sizing:border-box!important;
}
html body .egme-chat-window form .egme-chat-send-button{
  display:inline-flex!important;
  flex:0 0 48px!important;
  width:48px!important;
  min-width:48px!important;
  max-width:48px!important;
  height:46px!important;
  min-height:46px!important;
  margin:0!important;
  padding:0!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  border:0!important;
  border-radius:12px!important;
  background:#9c1f5a!important;
  color:#fff!important;
  font-size:22px!important;
  line-height:1!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  z-index:20!important;
}
html body .egme-chat-window form .egme-chat-send-button::before,
html body .egme-chat-window form .egme-chat-send-button::after{content:none!important;display:none!important}
@media(max-width:700px){
  html body .egme-chat-window form{gap:6px!important;padding:8px!important}
  html body .egme-chat-window form [data-egme-edumoji]{flex-basis:36px!important;width:36px!important;min-width:36px!important}
  html body .egme-chat-window form .egme-chat-send-button{flex-basis:44px!important;width:44px!important;min-width:44px!important;max-width:44px!important}
}

/* v4.1.0 — SOLO CHAT: navegación estable, cabecera visible y mensajes legibles */
html body > .egme-chat-dock .egme-chat-window{
  background:#fff!important;
  overflow:hidden!important;
  border-radius:18px!important;
  box-shadow:0 18px 60px rgba(0,0,0,.30)!important;
}
html body > .egme-chat-dock .egme-chat-window>header{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) 42px!important;
  align-items:center!important;
  gap:8px!important;
  min-height:62px!important;
  padding:10px 12px!important;
  background:#18212b!important;
  color:#fff!important;
  border:0!important;
  visibility:visible!important;
  opacity:1!important;
}
html body > .egme-chat-dock .egme-chat-window>header strong{
  display:block!important;
  color:#fff!important;
  font-size:16px!important;
  text-align:left!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  visibility:visible!important;
  opacity:1!important;
}
html body > .egme-chat-dock .egme-chat-window>header .egme-chat-back,
html body > .egme-chat-dock .egme-chat-window>header a[aria-label="Cerrar chat"]{
  display:grid!important;
  place-items:center!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:12px!important;
  background:#b91f55!important;
  color:#fff!important;
  font-size:22px!important;
  line-height:1!important;
  text-decoration:none!important;
  cursor:pointer!important;
  visibility:visible!important;
  opacity:1!important;
}
html body > .egme-chat-dock .egme-chat-window>header a[aria-label="Cerrar chat"]{justify-self:end!important}
html body > .egme-chat-dock .egme-chat-window .egme-chat-messages{
  min-height:0!important;
  flex:1 1 auto!important;
  overflow-y:auto!important;
  background:#f4f6f8!important;
  padding:12px!important;
  overscroll-behavior:contain!important;
}
html body > .egme-chat-dock .egme-chat-window .egme-chat-messages .is-me{
  align-self:flex-end!important;
  background:#a61e46!important;
  color:#fff!important;
}
html body > .egme-chat-dock .egme-chat-window .egme-chat-messages .is-them{
  align-self:flex-start!important;
  background:#fff!important;
  color:#20242a!important;
  border:1px solid #e6e8eb!important;
}
html body > .egme-chat-dock .egme-chat-window .egme-chat-messages .egme-live-time{
  color:inherit!important;
  opacity:.7!important;
}
html body > .egme-chat-dock .egme-chat-window form{
  flex:0 0 auto!important;
  background:#fff!important;
  border-top:1px solid #e5e7eb!important;
}
html body > .egme-chat-dock .egme-chat-panel-head{
  background:#18212b!important;
  color:#fff!important;
}
@media(max-width:700px){
  html body > .egme-chat-dock .egme-chat-window>header{min-height:58px!important;padding:8px 10px!important}
}


/* v4.1.1 — SOLO CHAT: estado interno estable y selectores compatibles con cualquier contenedor */
html body .egme-chat-dock .egme-chat-hidden{display:none!important}
html body .egme-chat-dock .egme-chat-window:not(.egme-chat-hidden){
  display:flex!important;flex-direction:column!important;background:#fff!important;overflow:hidden!important;
  border-radius:18px!important;box-shadow:0 18px 60px rgba(0,0,0,.30)!important;
}

/* v5.2.31 — barra social compacta y única en mapa/fichas para usuarios registrados */
html body>.egme-map-social-bar.egme-chat-dock{
  left:6px!important;right:6px!important;bottom:6px!important;width:auto!important;max-width:none!important;
  z-index:2147483000!important;pointer-events:none!important;
}
html body>.egme-map-social-bar .egme-map-social-rail{
  pointer-events:auto;min-height:58px;display:grid;grid-template-columns:auto auto minmax(150px,290px) 34px minmax(80px,1fr) 34px auto 44px;
  align-items:center;gap:8px;padding:7px 10px;background:linear-gradient(100deg,#06192d,#10143e);color:#fff;
  border:1px solid #ffb629;border-radius:17px;box-shadow:0 -8px 28px rgba(0,0,0,.28);overflow:hidden;
}
html body>.egme-map-social-bar .egme-map-social-rail button{font:800 13px/1.1 Inter,system-ui,sans-serif;cursor:pointer}
.egme-map-social-main,.egme-map-social-friends,.egme-map-social-tool{min-height:40px;border:1px solid #7d33da;border-radius:11px;padding:0 13px;background:#24115d;color:#fff;display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.egme-map-social-main em{min-width:20px;height:20px;padding:0 5px;border-radius:99px;background:#e22658;font:800 11px/20px Arial;font-style:normal}
.egme-map-social-search{height:40px;display:flex;align-items:center;gap:7px;background:#0a315e;border:1px solid #1688db;border-radius:999px;padding:0 12px;min-width:0}
.egme-map-social-search input{width:100%;min-width:0;border:0!important;outline:0!important;background:transparent!important;color:#fff!important;box-shadow:none!important;font-size:13px!important;padding:0!important}
.egme-map-social-search input::placeholder{color:#cae3f7}.egme-map-social-scroll{width:34px;height:38px;border:1px solid #1688db;border-radius:10px;background:#092a50;color:#fff;font-size:25px!important;padding:0}
.egme-map-social-chips{display:flex;align-items:center;gap:7px;min-width:0;overflow-x:auto;scrollbar-width:none;scroll-behavior:smooth}.egme-map-social-chips::-webkit-scrollbar{display:none}
.egme-map-social-empty{opacity:.65;font-size:12px;white-space:nowrap;padding:0 8px}.egme-map-social-chip{height:40px;flex:0 0 auto;border:1px solid #078ee5;border-radius:999px;background:#0b2d54;color:#fff;display:flex;align-items:center;gap:6px;padding:3px 10px}
.egme-map-social-chip img{width:31px;height:31px;border-radius:50%;object-fit:cover}.egme-map-social-chip.is-photo span{display:none}.egme-map-social-chip.is-photo{width:40px;padding:3px}.egme-map-social-chip.is-name img{display:none}.egme-map-social-chip span{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.egme-map-social-tool{padding:0 11px;background:#481563}.egme-map-social-tool.is-alert{width:44px;padding:0;font-size:19px!important;position:relative}.egme-map-social-tool.is-alert i{position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;border-radius:99px;background:#e22658;color:#fff;font:800 10px/18px Arial;font-style:normal}
body.egme-has-map-social-bar .egme-alert-launcher,body.egme-has-map-social-bar #egme-alert-triangle,body.egme-has-map-social-bar .egme-plaza-launcher,body.egme-has-map-social-bar>.egme-notification-center>.egme-notification-bell{visibility:hidden!important;pointer-events:none!important}
body.egme-has-map-social-bar .egme-map-alert-box{left:auto!important;right:8px!important;top:auto!important;bottom:74px!important}body.egme-has-map-social-bar .egme-map-alert-box>.egme-map-alert-toggle{display:none!important}body.egme-has-map-social-bar .egme-map-alert-drawer{left:auto!important;right:0!important;top:auto!important;bottom:0!important}
body.egme-has-map-social-bar>.egme-notification-center{left:auto!important;right:8px!important;bottom:74px!important}body.egme-has-map-social-bar>.egme-notification-center>.egme-notification-panel{visibility:visible!important;pointer-events:auto!important;left:auto!important;right:0!important;bottom:0!important}
html body>.egme-map-social-bar .egme-chat-panel{right:0!important;bottom:66px!important}
html body>.egme-map-social-bar .egme-chat-window{bottom:66px!important}
@media(max-width:900px){html body>.egme-map-social-bar .egme-map-social-rail{grid-template-columns:auto auto minmax(70px,1fr) 32px auto 42px}.egme-map-social-search,.egme-map-social-scroll.is-prev{display:none}.egme-map-social-friends span,.egme-map-social-tool span{display:none}.egme-map-social-chips{grid-column:auto}.egme-map-social-scroll{width:32px}.egme-map-social-tool{padding:0 10px}.egme-map-social-empty{display:none}}
@media(max-width:560px){html body>.egme-map-social-bar.egme-chat-dock{left:4px!important;right:4px!important;bottom:4px!important}.egme-map-social-main strong{display:none}.egme-map-social-main,.egme-map-social-friends{padding:0 10px}.egme-map-social-tool.is-plaza{display:none}html body>.egme-map-social-bar .egme-map-social-rail{min-height:54px;grid-template-columns:auto auto minmax(54px,1fr) 31px 40px;gap:5px;padding:6px}.egme-map-social-scroll.is-prev{display:none}.egme-map-social-chips{min-width:54px}html body>.egme-map-social-bar .egme-chat-panel,html body>.egme-map-social-bar .egme-chat-window{bottom:4px!important}}
html body .egme-chat-dock .egme-chat-window:not(.egme-chat-hidden)>header{
  display:grid!important;grid-template-columns:42px minmax(0,1fr) 42px!important;align-items:center!important;
  gap:8px!important;flex:0 0 62px!important;min-height:62px!important;height:62px!important;padding:10px 12px!important;
  background:#18212b!important;color:#fff!important;border:0!important;visibility:visible!important;opacity:1!important;
  position:relative!important;z-index:30!important;
}
html body .egme-chat-dock .egme-chat-window>header strong{
  display:block!important;color:#fff!important;font-size:16px!important;text-align:left!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;visibility:visible!important;opacity:1!important;
}
html body .egme-chat-dock .egme-chat-window>header .egme-chat-back,
html body .egme-chat-dock .egme-chat-window>header a[aria-label="Cerrar chat"]{
  display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:40px!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:12px!important;background:#b91f55!important;
  color:#fff!important;font-size:22px!important;line-height:1!important;text-decoration:none!important;cursor:pointer!important;
  visibility:visible!important;opacity:1!important;position:static!important;transform:none!important;
}
html body .egme-chat-dock .egme-chat-window>header a[aria-label="Cerrar chat"]{justify-self:end!important}
html body .egme-chat-dock .egme-chat-window .egme-chat-messages{
  display:flex!important;flex-direction:column!important;gap:9px!important;min-height:0!important;flex:1 1 auto!important;
  overflow-y:auto!important;background:#f4f6f8!important;padding:12px!important;overscroll-behavior:contain!important;
}
html body .egme-chat-dock .egme-chat-window .egme-chat-messages>.is-me,
html body .egme-chat-dock .egme-chat-window .egme-chat-messages>.is-them{
  display:block!important;width:max-content!important;max-width:82%!important;padding:10px 12px!important;border-radius:15px!important;
  font-size:15px!important;line-height:1.35!important;visibility:visible!important;opacity:1!important;word-break:break-word!important;
}
html body .egme-chat-dock .egme-chat-window .egme-chat-messages>.is-me{
  align-self:flex-end!important;background:#a61e46!important;color:#fff!important;border-bottom-right-radius:5px!important;
}
html body .egme-chat-dock .egme-chat-window .egme-chat-messages>.is-them{
  align-self:flex-start!important;background:#fff!important;color:#20242a!important;border:1px solid #e2e5e9!important;border-bottom-left-radius:5px!important;
}
html body .egme-chat-dock .egme-chat-window .egme-chat-messages small{display:block!important;color:inherit!important;opacity:.72!important;font-size:10px!important;margin-top:3px!important}
html body .egme-chat-dock .egme-chat-window form{flex:0 0 auto!important;background:#fff!important;border-top:1px solid #e5e7eb!important;z-index:20!important}
html body .egme-chat-dock .egme-message-pending{opacity:.72!important}

/* 5.2.42 — diferencia clara entre chat gratuito y Premium, manteniendo el botón compacto. */
html body .egme-chat-dock.is-premium .egme-chat-launcher{
  background:linear-gradient(135deg,#17102d,#5b207d)!important;
  border:1px solid #f6c84d!important;color:#fff!important;
  box-shadow:0 10px 28px rgba(25,12,48,.30),0 0 0 2px rgba(246,200,77,.10)!important;
}
html body .egme-chat-dock.is-premium .egme-chat-panel-head{
  background:linear-gradient(100deg,#17102d,#7a245f)!important;color:#fff!important;
  border-bottom:2px solid #f6c84d!important;
}
html body .egme-chat-dock.is-free .egme-chat-launcher{background:#112b48!important;border:1px solid #2d79b8!important;color:#fff!important}
html body.egme-clean-floating-chat-page>.egme-chat-dock{left:12px!important;right:auto!important;bottom:12px!important;width:auto!important;max-width:min(360px,calc(100vw - 24px))!important}
html body.egme-clean-floating-chat-page>.egme-chat-dock .egme-chat-launcher{min-height:44px!important;padding:9px 15px!important;border-radius:999px!important}
html body .egme-chat-dock.is-expanded .egme-chat-panel:not(.egme-chat-hidden){display:flex!important}
@media(max-width:700px){
  html body .egme-chat-dock .egme-chat-window:not(.egme-chat-hidden)>header{flex-basis:58px!important;min-height:58px!important;height:58px!important;padding:8px 10px!important}
}

/* v4.1.2 — estado de mensajes sin leer y cierre estable */
.egme-chat-close-button{width:40px;height:40px;border:0;border-radius:12px;background:#c51e58;color:#fff;font-size:22px;font-weight:900;display:grid;place-items:center;cursor:pointer}
.egme-chat-contacts a[data-chat-name]{position:relative}
.egme-contact-unread{margin-left:auto;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:#e11d48;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:900}
.egme-contact-unread[hidden]{display:none!important}


/* v4.1.3 — SOLO CHAT: volver a la lista sin cerrar, envío estable y contactos legibles */
html body .egme-chat-dock .egme-chat-panel:not(.egme-chat-hidden){display:flex!important;flex-direction:column!important}
html body .egme-chat-dock .egme-chat-panel.egme-chat-hidden{display:none!important}
html body .egme-chat-dock .egme-chat-window.egme-chat-hidden{display:none!important}
html body .egme-chat-dock .egme-chat-contacts a[data-chat-name]{display:flex!important;align-items:center!important;gap:12px!important;padding:9px 10px!important;text-decoration:none!important}
html body .egme-chat-dock .egme-chat-contacts a[data-chat-name] > span:last-of-type{display:flex!important;flex:1 1 auto!important;min-width:0!important;flex-direction:column!important;gap:2px!important}
html body .egme-chat-dock .egme-chat-contacts a[data-chat-name] strong,
html body .egme-chat-dock .egme-chat-contacts a[data-chat-name] small{display:block!important;line-height:1.25!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body .egme-chat-dock .egme-chat-contacts a[data-chat-name] small{font-size:12px!important;color:#64748b!important}
html body .egme-chat-dock .egme-chat-window form textarea[name="message"]{color:#20242a!important;background:#fff!important}


/* v4.1.4 — SOLO CHAT: cabecera de conversación con Volver + nombre */
html body .egme-chat-dock .egme-chat-window>header{
  grid-template-columns:44px minmax(0,1fr)!important;
}
html body .egme-chat-dock .egme-chat-window>header strong{
  grid-column:2!important;
}
html body .egme-chat-dock .egme-chat-window>header [data-egme-chat-close],
html body .egme-chat-dock .egme-chat-window>header a[aria-label="Cerrar chat"],
html body .egme-chat-dock .egme-chat-window>header .egme-chat-close-button{
  display:none!important;
}

/* v4.1.6 — chat un poco más amplio, estilo cubo, sin cambiar su lógica */
@media(min-width:701px){
  html body > .egme-chat-dock .egme-chat-panel,
  html body > .egme-chat-dock .egme-chat-window{width:420px!important;max-width:calc(100vw - 36px)!important;border-radius:22px!important;box-shadow:0 24px 70px rgba(0,0,0,.32)!important}
  html body > .egme-chat-dock .egme-chat-panel{max-height:720px!important}
  html body > .egme-chat-dock .egme-chat-window{height:min(680px,calc(100vh - 110px))!important}
}
html body > .egme-chat-dock .egme-chat-panel,html body > .egme-chat-dock .egme-chat-window{border:1px solid rgba(255,255,255,.12)!important;overflow:hidden!important}
html body > .egme-chat-dock .egme-chat-panel-head,html body > .egme-chat-dock .egme-chat-window>header{box-shadow:0 1px 0 rgba(255,255,255,.08) inset!important}


/* v4.1.7 — SOLO DISEÑO DEL ÍCONO FLOTANTE DEL CHAT (PC, móvil y tablet) */
html body > .egme-chat-dock .egme-chat-launcher{
  position:relative!important;
  width:60px!important;
  min-width:60px!important;
  max-width:60px!important;
  height:60px!important;
  min-height:60px!important;
  max-height:60px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  overflow:visible!important;
  border:2px solid rgba(255,255,255,.88)!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,#6d28d9 0%,#a21caf 48%,#c51e58 100%)!important;
  color:#fff!important;
  box-shadow:0 12px 30px rgba(77,20,120,.38),0 4px 12px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.32)!important;
  transform:translateZ(0)!important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease!important;
  isolation:isolate!important;
}
html body > .egme-chat-dock .egme-chat-launcher:hover,
html body > .egme-chat-dock .egme-chat-launcher:focus-visible{
  transform:translateY(-2px) scale(1.04)!important;
  filter:saturate(1.08)!important;
  box-shadow:0 16px 36px rgba(77,20,120,.45),0 6px 16px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.38)!important;
  outline:none!important;
}
html body > .egme-chat-dock .egme-chat-launcher>span{
  display:block!important;
  margin:0!important;
  line-height:1!important;
  font-size:0!important;
  width:31px!important;
  height:25px!important;
  border-radius:10px!important;
  background:#fff!important;
  position:relative!important;
  box-shadow:0 3px 9px rgba(20,10,35,.22)!important;
}
html body > .egme-chat-dock .egme-chat-launcher>span::before{
  content:''!important;
  position:absolute!important;
  left:7px!important;
  top:10px!important;
  width:4px!important;
  height:4px!important;
  border-radius:50%!important;
  background:#9c1f75!important;
  box-shadow:7px 0 0 #9c1f75,14px 0 0 #9c1f75!important;
}
html body > .egme-chat-dock .egme-chat-launcher>span::after{
  content:''!important;
  position:absolute!important;
  right:4px!important;
  bottom:-5px!important;
  width:10px!important;
  height:10px!important;
  background:#fff!important;
  clip-path:polygon(0 0,100% 0,100% 100%)!important;
}
html body > .egme-chat-dock .egme-chat-launcher>strong{display:none!important}
html body > .egme-chat-dock .egme-chat-launcher>em[data-egme-unread-badge]{
  position:absolute!important;
  z-index:10!important;
  top:-8px!important;
  right:-8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:25px!important;
  height:25px!important;
  padding:0 6px!important;
  border:2px solid #fff!important;
  border-radius:999px!important;
  background:#ef233c!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
  font-style:normal!important;
  line-height:1!important;
  box-shadow:0 4px 12px rgba(239,35,60,.42)!important;
  pointer-events:none!important;
}
html body > .egme-chat-dock .egme-chat-launcher>em[data-egme-unread-badge][hidden]{display:none!important}
html body > .egme-chat-dock .egme-chat-launcher>em[data-egme-unread-badge]:not([hidden]){
  animation:egme-chat-badge-pop .42s cubic-bezier(.2,.9,.2,1.35) both!important;
}
@keyframes egme-chat-badge-pop{
  0%{transform:scale(.35);opacity:0}
  70%{transform:scale(1.14);opacity:1}
  100%{transform:scale(1);opacity:1}
}
@media(max-width:700px){
  html body > .egme-chat-dock .egme-chat-launcher{
    width:58px!important;min-width:58px!important;max-width:58px!important;
    height:58px!important;min-height:58px!important;max-height:58px!important;
    border-radius:19px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html body > .egme-chat-dock .egme-chat-launcher,
  html body > .egme-chat-dock .egme-chat-launcher>em[data-egme-unread-badge]{
    transition:none!important;animation:none!important;
  }
}
/* v5.2.0 — capa final estable para los tres chats */
.egme-chat-window .egme-chat-messages,
.egme-inline-chat-view .egme-inline-chat-messages,
.egme-chat-page-layout .egme-message-stream{scroll-behavior:smooth;overflow-y:auto}
.egme-chat-window .egme-chat-messages>div,
.egme-inline-chat-view .egme-inline-chat-messages>div,
.egme-chat-page-layout .egme-message-stream>div{overflow-wrap:anywhere;white-space:pre-wrap}
.egme-chat-window .egme-chat-messages .is-me,
.egme-inline-chat-view .egme-inline-chat-messages .is-me,
.egme-chat-page-layout .egme-message-stream .is-me{align-self:flex-end;background:#dceeff;color:#102a43}
.egme-chat-window .egme-chat-messages .is-them,
.egme-inline-chat-view .egme-inline-chat-messages .is-them,
.egme-chat-page-layout .egme-message-stream .is-them{align-self:flex-start;background:#f1f3f5;color:#1f2937}
.egme-live-time{display:block;margin-top:3px;font-size:10px;opacity:.68;text-align:right}
.egme-inline-chat-form,.egme-chat-send{display:flex;align-items:flex-end;gap:8px}
.egme-inline-chat-form textarea,.egme-chat-send textarea{min-height:44px;max-height:130px;resize:vertical}
.egme-inline-chat-form button,.egme-chat-send button{min-width:48px;min-height:44px;flex:0 0 auto}

/* v5.2.23 — chat permanente Gratis/Premium en todo EduGenaro */
html body.egme-chat-registered>.egme-chat-dock{z-index:2147483000!important}
html body.egme-chat-registered>.egme-chat-dock .egme-chat-launcher{width:auto!important;min-width:142px!important;max-width:none!important;height:54px!important;min-height:54px!important;padding:0 20px!important;gap:10px!important;border-radius:18px!important}
html body.egme-chat-registered>.egme-chat-dock .egme-chat-launcher>strong{display:block!important;font-size:15px!important;white-space:nowrap!important}
html body.egme-chat-plan-free>.egme-chat-dock .egme-chat-launcher{background:#fff!important;color:#102a56!important;border:2px solid #d85ac3!important;box-shadow:0 10px 30px rgba(94,42,116,.18)!important}
html body.egme-chat-plan-free>.egme-chat-dock .egme-chat-launcher>span{background:linear-gradient(145deg,#fff,#f7eaff)!important;border-color:#c94fc7!important}
html body.egme-chat-plan-premium>.egme-chat-dock .egme-chat-launcher{background:linear-gradient(135deg,#07162d,#162553)!important;color:#fff!important;border:2px solid #ffd333!important;box-shadow:0 0 0 2px rgba(255,211,51,.14),0 12px 34px rgba(0,0,0,.38),0 0 22px rgba(245,38,213,.24)!important}
html body.egme-chat-plan-premium>.egme-chat-dock .egme-chat-launcher>span{background:linear-gradient(145deg,#ffd83d,#ff8a00)!important;border-color:#fff0a3!important}

html body>.egme-chat-dock .egme-chat-panel-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto 38px!important;align-items:center!important;gap:8px!important}
.egme-chat-plan-label{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:900;letter-spacing:.08em}
.egme-chat-plan-free .egme-chat-plan-label{background:#f7e9fb;color:#8b238d}.egme-chat-plan-premium .egme-chat-plan-label{background:#ffd637;color:#432600}
html body.egme-chat-plan-free>.egme-chat-dock .egme-chat-panel,html body.egme-chat-plan-free>.egme-chat-dock .egme-chat-window{background:#fff!important;border:1px solid #e9d9ee!important;color:#172033!important}
html body.egme-chat-plan-free>.egme-chat-dock .egme-chat-panel-head,html body.egme-chat-plan-free>.egme-chat-dock .egme-chat-window>header{background:linear-gradient(90deg,#fff,#f8edff)!important;color:#172a54!important;border-bottom:1px solid #eadcf0!important}
html body.egme-chat-plan-premium>.egme-chat-dock .egme-chat-panel,html body.egme-chat-plan-premium>.egme-chat-dock .egme-chat-window{background:#071426!important;border:1px solid #18c6ff!important;color:#eef8ff!important;box-shadow:0 22px 70px rgba(0,0,0,.5),0 0 24px rgba(22,198,255,.16)!important}
html body.egme-chat-plan-premium>.egme-chat-dock .egme-chat-panel-head,html body.egme-chat-plan-premium>.egme-chat-dock .egme-chat-window>header{background:linear-gradient(100deg,#092250,#26105c)!important;color:#fff!important;border-bottom:1px solid rgba(26,213,255,.55)!important}
html body.egme-chat-plan-premium>.egme-chat-dock .egme-float-chat-tabs{background:#08182d!important}html body.egme-chat-plan-premium>.egme-chat-dock .egme-float-chat-tabs button{color:#bcd5ef!important;background:#102747!important;border-color:#244d7a!important}html body.egme-chat-plan-premium>.egme-chat-dock .egme-float-chat-tabs button.is-active{color:#fff!important;background:linear-gradient(90deg,#7a1bd1,#e519a8)!important;border-color:#ff53d3!important}
html body.egme-chat-plan-premium>.egme-chat-dock .egme-chat-search-wrap{background:#10223c!important;border-color:#1f5076!important}html body.egme-chat-plan-premium>.egme-chat-dock .egme-chat-search{color:#fff!important}html body.egme-chat-plan-premium>.egme-chat-dock .egme-chat-contacts a{color:#eef8ff!important}html body.egme-chat-plan-premium>.egme-chat-dock .egme-chat-contacts a:hover{background:#112b4d!important}html body.egme-chat-plan-premium>.egme-chat-dock .egme-chat-contacts small{color:#8fb7d8!important}
.egme-premium-chat-welcome{display:flex;min-height:250px;padding:28px;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px}.egme-premium-chat-welcome>span{font-size:42px}.egme-premium-chat-welcome p{margin:0 0 8px;color:#718096}.egme-premium-chat-welcome a,.egme-chat-empty a{display:inline-flex;padding:9px 14px;border-radius:999px;background:#b51b66;color:#fff!important;text-decoration:none!important;font-weight:900}.egme-chat-plan-premium .egme-premium-chat-welcome a{background:linear-gradient(90deg,#ffd52e,#ff8a00);color:#321c00!important}
.egme-premium-chat-tools{display:flex!important;align-items:center!important;gap:7px!important;padding:7px 10px!important;background:#0b1c32!important;border-top:1px solid #193c60!important}.egme-premium-chat-tools button{width:34px!important;height:34px!important;border:1px solid #2a5881!important;border-radius:10px!important;background:#102a49!important;color:#fff!important;cursor:pointer!important}.egme-premium-chat-tools span{margin-left:auto;color:#f7d65a;font-size:11px;font-weight:900}.egme-window-controls{display:flex;gap:4px}.egme-window-controls button{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:9px;background:rgba(255,255,255,.12);color:#fff;font-size:18px;cursor:pointer}.egme-premium-chat-window.is-minimized{height:58px!important;overflow:hidden!important}.egme-premium-chat-window.is-minimized>*:not(header){display:none!important}
@media(min-width:901px){html body>.egme-chat-dock .egme-premium-chat-window{right:calc(var(--egme-chat-slot,0) * 432px)!important;transition:right .2s ease!important}}
@media(max-width:900px){html body.egme-chat-registered>.egme-chat-dock .egme-chat-launcher{width:58px!important;min-width:58px!important;max-width:58px!important;padding:0!important}html body.egme-chat-registered>.egme-chat-dock .egme-chat-launcher>strong{display:none!important}html body>.egme-chat-dock .egme-premium-chat-window:not(:last-of-type){display:none!important}}

/* v5.2.26 — Explorar usa exclusivamente su chat interno; evita Messenger duplicado. */
html body.egme-explorer-chat-page>.egme-chat-dock{display:none!important}

/* La barra y el cajón se trasladan a body para permanecer fijos aunque el tema use transformaciones. */
html body.egme-explorer-premium>.egme-explorer-chat-rail{
  background:linear-gradient(100deg,rgba(7,20,39,.98),rgba(20,18,63,.98))!important;
  border:2px solid #ffd533!important;
  box-shadow:0 0 0 2px rgba(239,25,196,.38),0 16px 48px rgba(0,0,0,.48),0 0 24px rgba(31,199,255,.2)!important;
}
html body.egme-explorer-premium>.egme-explorer-chat-rail .egme-rail-title,
html body.egme-explorer-premium>.egme-explorer-chat-rail .egme-rail-friends{
  background:linear-gradient(90deg,#2a0b54,#17104b)!important;color:#fff!important;border-color:#7431cd!important;
}
html body.egme-explorer-premium>.egme-explorer-chat-rail .egme-rail-plan{background:linear-gradient(90deg,#ffd632,#ff9f1c)!important;color:#3b2400!important}
html body.egme-explorer-premium>.egme-explorer-chat-rail .egme-rail-search{background:#082b5a!important;border-color:#177fd0!important;color:#cfeaff!important}
html body.egme-explorer-premium>.egme-explorer-chat-rail .egme-rail-contact{background:#0b2340!important;border-color:#0e8bd1!important;color:#fff!important}
html body.egme-explorer-premium>.egme-explorer-chat-rail .egme-rail-open-all{background:linear-gradient(90deg,#6d18d1,#ed199f)!important;border:1px solid #ff4dcc!important;color:#fff!important}
html body.egme-explorer-premium>.egme-explorer-side{background:#07182b!important;border-color:#21caff!important;color:#eef8ff!important;box-shadow:0 24px 80px rgba(0,0,0,.58),0 0 24px rgba(30,202,255,.18)!important}
html body.egme-explorer-premium>.egme-explorer-side .egme-chat-drawer-head,
html body.egme-explorer-premium>.egme-explorer-side .egme-side-card h3{background:linear-gradient(90deg,#071b36,#21104c)!important;border-color:#1d6695!important;color:#fff!important}
html body.egme-explorer-premium>.egme-explorer-side .egme-chat-drawer-tab{background:#102744!important;border-color:#27527c!important;color:#d9edff!important}
html body.egme-explorer-premium>.egme-explorer-side .egme-chat-drawer-tab.is-active{background:linear-gradient(90deg,#6722d1,#dd188f)!important;border-color:#ff4fc9!important;color:#fff!important}
html body.egme-explorer-premium>.egme-explorer-side .egme-side-card{background:#07182b!important;color:#eef8ff!important}
html body.egme-explorer-premium>.egme-explorer-side .egme-chat-person{color:#fff!important}
html body.egme-explorer-premium>.egme-explorer-side .egme-chat-person small{color:#9cb8d1!important}
html body.egme-explorer-premium>.egme-explorer-side .egme-chat-person:hover{background:#102c4c!important}
html body.egme-explorer-premium>.egme-explorer-side .egme-inline-chat-messages{background:#061525!important}
html body.egme-explorer-premium>.egme-explorer-side .egme-inline-chat-messages .is-them{background:#132d49!important;color:#fff!important}
html body.egme-explorer-premium>.egme-explorer-side .egme-inline-chat-form{background:#091c31!important;border-color:#1b4668!important}
html body.egme-explorer-premium>.egme-explorer-side .egme-inline-chat-form textarea{background:#102945!important;border-color:#28577c!important;color:#fff!important}

/* v5.2.32 — mapa y fichas limpios: únicamente chat privado flotante */
body.egme-clean-floating-chat-page .egme-map-social-rail{display:none!important}
html body>.egme-clean-floating-chat.egme-chat-dock{left:auto!important;right:16px!important;bottom:14px!important;width:auto!important;max-width:calc(100vw - 24px)!important;pointer-events:none!important}
html body>.egme-clean-floating-chat .egme-chat-launcher{pointer-events:auto!important;min-height:46px!important;display:flex!important;align-items:center!important;gap:8px!important;padding:9px 15px!important;border:1px solid #ffbd2e!important;border-radius:16px!important;background:linear-gradient(135deg,#071c35,#151146)!important;color:#fff!important;box-shadow:0 10px 28px rgba(0,0,0,.32)!important}
html body>.egme-clean-floating-chat .egme-chat-launcher em{background:#d91c55!important}
html body>.egme-clean-floating-chat .egme-chat-panel{right:0!important;bottom:58px!important}
html body>.egme-clean-floating-chat .egme-chat-window{right:0!important;bottom:58px!important}
body.egme-clean-floating-chat-page .egme-alert-launcher,
body.egme-clean-floating-chat-page #egme-alert-triangle,
body.egme-clean-floating-chat-page .egme-map-alert-box,
body.egme-clean-floating-chat-page .egme-plaza-launcher,
body.egme-clean-floating-chat-page .egme-pwa-install,
body.egme-clean-floating-chat-page .egme-ios-install-help,
body.egme-clean-floating-chat-page>.egme-notification-center{display:none!important}
@media(max-width:700px){html body>.egme-clean-floating-chat.egme-chat-dock{left:auto!important;right:8px!important;bottom:8px!important;max-width:calc(100vw - 16px)!important}html body>.egme-clean-floating-chat .egme-chat-launcher strong{display:none!important}html body>.egme-clean-floating-chat .egme-chat-launcher{width:48px!important;height:48px!important;min-height:48px!important;border-radius:50%!important;padding:0!important;justify-content:center!important}html body>.egme-clean-floating-chat .egme-chat-launcher em{position:absolute!important;right:-3px!important;top:-4px!important}html body>.egme-clean-floating-chat .egme-chat-panel,html body>.egme-clean-floating-chat .egme-chat-window{left:8px!important;right:8px!important;bottom:8px!important}}

/* v5.2.33 — el chat no tapa la página y se abre al lado contrario del botón */
html body>.egme-clean-floating-chat .egme-chat-panel,
html body>.egme-clean-floating-chat .egme-chat-window{position:fixed!important;left:16px!important;right:auto!important;top:auto!important;bottom:16px!important;width:340px!important;max-width:calc(100vw - 32px)!important;height:min(480px,calc(100vh - 110px))!important;max-height:480px!important}
html body>.egme-clean-floating-chat .egme-chat-window .egme-chat-messages{min-height:0!important;height:auto!important;flex:1 1 auto!important}
@media(max-width:700px){html body>.egme-clean-floating-chat .egme-chat-panel,html body>.egme-clean-floating-chat .egme-chat-window{left:8px!important;right:auto!important;top:auto!important;bottom:8px!important;width:min(310px,calc(100vw - 72px))!important;max-width:calc(100vw - 72px)!important;height:min(430px,calc(100dvh - 100px))!important;max-height:calc(100dvh - 100px)!important;border-radius:16px!important}}

/* v5.2.34 — mapa con chat a la izquierda; fichas con barra integrada */
html body.egme-clean-floating-chat-page>.egme-clean-floating-chat.egme-chat-dock{left:14px!important;right:auto!important;bottom:14px!important}
html body.egme-clean-floating-chat-page>.egme-clean-floating-chat .egme-chat-panel,
html body.egme-clean-floating-chat-page>.egme-clean-floating-chat .egme-chat-window{left:14px!important;right:auto!important}
html body.egme-place-social-page>.egme-place-social-bar .egme-map-social-rail{background:linear-gradient(100deg,rgba(255,255,255,.97),rgba(255,247,250,.97))!important;border:1px solid #b51d52!important;color:#4a1730!important;box-shadow:0 -8px 28px rgba(74,23,48,.20)!important}
html body.egme-place-social-page>.egme-place-social-bar .egme-map-social-main,
html body.egme-place-social-page>.egme-place-social-bar .egme-map-social-friends,
html body.egme-place-social-page>.egme-place-social-bar .egme-map-social-tool{background:linear-gradient(135deg,#8d1944,#bd2760)!important;border-color:#d33b70!important;color:#fff!important}
html body.egme-place-social-page>.egme-place-social-bar .egme-map-social-search{background:#fff!important;border-color:#d88ba8!important;color:#4a1730!important}
html body.egme-place-social-page>.egme-place-social-bar .egme-map-social-search input{color:#4a1730!important}
html body.egme-place-social-page>.egme-place-social-bar .egme-map-social-search input::placeholder{color:#8c6575!important}
html body.egme-place-social-page>.egme-place-social-bar .egme-map-social-scroll,
html body.egme-place-social-page>.egme-place-social-bar .egme-map-social-chip{background:#fff!important;border-color:#c94a78!important;color:#681c3d!important}
html body.egme-place-social-page>.egme-place-social-bar .egme-map-social-empty{color:#745263!important;opacity:1!important}
@media(max-width:700px){html body.egme-clean-floating-chat-page>.egme-clean-floating-chat.egme-chat-dock{left:8px!important;right:auto!important;bottom:8px!important}}

/* 5.2.39 — navegación de cuenta recuperada para el mapa estático oficial. */
.egme-static-account-nav{position:fixed!important;z-index:10010!important;top:10px!important;right:16px!important;display:flex!important;align-items:center!important;gap:8px!important;padding:5px!important;border:1px solid rgba(174,37,88,.18)!important;border-radius:999px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 8px 24px rgba(7,28,53,.14)!important;backdrop-filter:blur(9px)!important;font:700 12px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif!important}
.egme-static-account-nav a{display:flex!important;align-items:center!important;min-height:34px!important;padding:0 13px!important;border:1px solid #ead7df!important;border-radius:999px!important;background:#fff!important;color:#8f1749!important;text-decoration:none!important;white-space:nowrap!important}
.egme-static-account-nav a:hover{background:#a91550!important;border-color:#a91550!important;color:#fff!important}
@media(max-width:700px){.egme-static-account-nav{top:7px!important;right:7px!important;gap:3px!important;padding:3px!important}.egme-static-account-nav a{min-height:31px!important;padding:0 8px!important;font-size:10px!important}}

/* v5.2.35 — herramientas visibles y diferenciadas para Gratis y Premium */
.egme-premium-chat-tools button{display:grid!important;place-items:center!important;font-family:"Segoe UI Emoji","Apple Color Emoji",sans-serif!important;font-size:20px!important;line-height:1!important;text-indent:0!important;overflow:visible!important;visibility:visible!important;opacity:1!important}
.egme-premium-chat-tools.is-free{background:#f8f1f5!important;border-top:1px solid #ead6df!important}.egme-premium-chat-tools.is-free button{background:#fff!important;border-color:#d9a9bc!important;color:#7a1d43!important}.egme-premium-chat-tools.is-free span{color:#7a4560!important}
.egme-chat-extra-panel{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;padding:8px 10px;background:#fff;border-top:1px solid #eadce3;max-height:126px;overflow:auto}.egme-chat-extra-panel[hidden]{display:none!important}.egme-chat-extra-panel button{min-height:34px;border:1px solid #eadce3;border-radius:9px;background:#fff7fa;color:#4d1830;cursor:pointer;font-family:"Segoe UI Emoji","Apple Color Emoji",sans-serif;font-size:19px}.egme-chat-extra-panel button:hover{background:#f4dce7;transform:translateY(-1px)}
.egme-premium-chat-window .egme-chat-extra-panel{background:#0b1c32;border-color:#234565}.egme-premium-chat-window .egme-chat-extra-panel button{background:#122d4d;border-color:#2a5a82;color:#fff}.egme-quick-replies{grid-template-columns:1fr!important}.egme-quick-replies button{font-family:Inter,system-ui,sans-serif!important;font-size:12px!important;text-align:left;padding:7px 10px}
.egme-free-chat-window.is-minimized,.egme-premium-chat-window.is-minimized{height:58px!important;overflow:hidden!important}.egme-free-chat-window.is-minimized>*:not(header),.egme-premium-chat-window.is-minimized>*:not(header){display:none!important}
@media(max-width:520px){.egme-chat-extra-panel{grid-template-columns:repeat(5,minmax(0,1fr))}.egme-premium-chat-tools span{font-size:9px!important}}

/* v5.2.36 — cada herramienta muestra icono y nombre, incluso si el tema oculta emojis */
.egme-premium-chat-tools{flex-wrap:wrap!important;gap:5px!important}
.egme-premium-chat-tools .egme-tool-button{width:auto!important;min-width:62px!important;height:38px!important;padding:4px 7px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;font-family:Inter,system-ui,sans-serif!important;text-indent:0!important}
.egme-premium-chat-tools .egme-tool-button b{display:inline-block!important;visibility:visible!important;opacity:1!important;color:inherit!important;font-family:"Segoe UI Symbol","Segoe UI Emoji","Apple Color Emoji",sans-serif!important;font-size:18px!important;line-height:1!important;font-weight:700!important}
.egme-premium-chat-tools .egme-tool-button small{display:inline-block!important;visibility:visible!important;opacity:1!important;color:inherit!important;font-family:Inter,system-ui,sans-serif!important;font-size:10px!important;line-height:1!important;font-weight:900!important;white-space:nowrap!important}
.egme-premium-chat-tools>span{flex:1 0 100%!important;margin:0!important;text-align:right!important;padding-top:1px!important}
@media(max-width:360px){.egme-premium-chat-tools .egme-tool-button{min-width:58px!important;padding-inline:5px!important}.egme-premium-chat-tools .egme-tool-button small{font-size:9px!important}}
