/* HMCDRS V4.7 · Seguir y notificaciones; adaptable claro/oscuro y móvil. */
#globalHeader .hmc-notice{position:relative;flex:0 0 auto;display:flex;align-items:center;min-width:0;}
#globalHeader .hmc-notice-trigger{position:relative;}
#globalHeader .hmc-notice-badge{position:absolute;right:-2px;top:-3px;min-width:17px;height:17px;padding:0 3px;border-radius:20px;display:grid;place-items:center;background:#d94a95;color:white;font:800 10px/1 system-ui;box-shadow:0 0 0 2px #f6f6fa;}
#globalHeader .hmc-notice-badge[hidden]{display:none!important;}
#globalHeader .hmc-notice-panel{position:absolute;right:-75px;top:calc(100% + 13px);width:min(365px,calc(100vw - 24px));max-height:min(490px,75vh);overflow-y:auto;overscroll-behavior:contain;border:1px solid #e4e0ed;border-radius:15px;background:#fff;color:#2b2838;box-shadow:0 16px 48px rgba(40,30,70,.19);z-index:110;font-family:inherit;}
#globalHeader .hmc-notice-panel[hidden]{display:none!important;}
#globalHeader .hmn-panel-head{position:sticky;top:0;z-index:1;background:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 16px 12px;border-bottom:1px solid #ebe7f3;}
#globalHeader .hmn-panel-head h2{font-size:15px;font-weight:850;margin:0;color:inherit;}
#globalHeader .hmn-panel-head p{color:#827c90;font-size:11px;margin:2px 0 0;}
#globalHeader .hmn-panel-head>button{border:none;background:#f4ecfc;color:#825abb;border-radius:8px;padding:8px;font-size:10px;font-weight:800;text-align:right;max-width:145px;}
#globalHeader .hmn-list{display:flex;flex-direction:column;}
#globalHeader .hmn-item{display:flex;align-items:flex-start;gap:10px;text-align:left;width:100%;background:transparent;color:inherit;border:0;border-bottom:1px solid #f0edf5;padding:13px 15px;min-height:68px;}
#globalHeader .hmn-item:last-child{border-bottom:0;}
#globalHeader .hmn-item:hover,#globalHeader .hmn-item:focus-visible{background:#f9f4fe;}
#globalHeader .hmn-item.unread{background:#fbf8ff;}
#globalHeader .hmn-item-icon{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:9px;background:#f1eafa;color:#986ac8;font-size:18px;}
#globalHeader .hmn-item-body{display:block;min-width:0;flex:1;}
#globalHeader .hmn-item-body strong{display:block;font-size:12px;font-weight:800;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
#globalHeader .hmn-item-body small{display:block;line-height:1.5;color:#645d73;font-size:11px;overflow-wrap:anywhere;}
#globalHeader .hmn-item-body time{display:block;margin-top:4px;font-size:10px;color:#9890a4;}
#globalHeader .hmn-unread-dot{margin:6px 0 0;flex:0 0 7px;height:7px;border-radius:50%;background:#e96da9;}
#globalHeader .hmn-empty{text-align:center;padding:27px 17px;color:#736b81;font-size:12px;line-height:1.6;}
#globalHeader .hmn-empty p{margin:0 0 12px;}
#globalHeader .hmn-empty button{padding:9px 15px;background:#eee4f9;color:#8057b6;border:0;border-radius:9px;font-weight:800;font-size:12px;}
#globalHeader .hmn-empty span{display:block;font-size:30px;color:#df83b7;margin-bottom:10px;}
#globalHeader .hmn-warning{padding:9px 14px;background:#fff3e3;color:#906e33;font-size:11px;line-height:1.5;margin:0;}
html.site-dark #globalHeader .hmc-notice-badge{box-shadow:0 0 0 2px #17191f;}
html.site-dark #globalHeader .hmc-notice-panel{background:#1b1c24;color:#f5f2fa;border-color:#41404f;box-shadow:0 20px 50px rgba(0,0,0,.4);}
html.site-dark #globalHeader .hmn-panel-head{background:#1b1c24;border-color:#353542;}
html.site-dark #globalHeader .hmn-panel-head p{color:#ada3bb;}
html.site-dark #globalHeader .hmn-panel-head>button{background:#393045;color:#d7b2fb;}
html.site-dark #globalHeader .hmn-item{border-bottom-color:#343541;}
html.site-dark #globalHeader .hmn-item:hover,html.site-dark #globalHeader .hmn-item:focus-visible{background:#2a2735;}
html.site-dark #globalHeader .hmn-item.unread{background:#272332;}
html.site-dark #globalHeader .hmn-item-icon{background:#3a2c46;color:#d3a9fa;}
html.site-dark #globalHeader .hmn-item-body small,html.site-dark #globalHeader .hmn-empty{color:#c6bfd1;}
html.site-dark #globalHeader .hmn-item-body time{color:#9e95ac;}
html.site-dark #globalHeader .hmn-empty button{background:#41304c;color:#efc6fa;}
html.site-dark #globalHeader .hmn-warning{background:#443520;color:#efca9b;}
/* V4.7.1 — Ficha: la campana es un botón secundario de la misma familia
   que Favoritos y Estado; solo cambia el matiz cuando está activada. */
.hmc-ficha .hmc-ficha-follow{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  box-sizing:border-box;flex:0 0 auto;min-width:0;min-height:44px;
  padding:10px 14px;border:1px solid #b9c3d8;border-radius:12px;
  background:rgba(255,255,255,.93);color:#344055;
  font-family:inherit;font-size:12px;font-weight:600;line-height:1.25;
  cursor:pointer;white-space:nowrap;transform:none;
  transition:background-color .17s,border-color .17s,color .17s;
}
.hmc-ficha .hmc-ficha-follow svg{
  display:block;flex:none;width:16px;height:16px;fill:none;stroke:currentColor;
}
.hmc-ficha .hmc-ficha-follow:hover{
  background:#fff5fb;border-color:#df6aa5;color:#9b3676;
}
.hmc-ficha .hmc-ficha-follow.is-following{
  background:#f3edff;border-color:#baadf5;color:#684da8;
}
.hmc-ficha .hmc-ficha-follow.is-following svg{fill:rgba(143,112,211,.12)}
.hmc-ficha .hmc-ficha-follow.is-following:hover{
  background:#ede3ff;border-color:#a990e7;color:#594098;
}
html.site-dark .hmc-ficha .hmc-ficha-follow{
  background:#161d31;border-color:#4d5677;color:#e2e8f0;
}
html.site-dark .hmc-ficha .hmc-ficha-follow:hover{
  background:#20283d;border-color:#9b719c;color:#f6d6eb;
}
html.site-dark .hmc-ficha .hmc-ficha-follow.is-following{
  background:#30284e;border-color:#8270cb;color:#d5c1ff;
}
html.site-dark .hmc-ficha .hmc-ficha-follow.is-following:hover{
  background:#382d55;border-color:#a58ce4;color:#eee2ff;
}
html.site-dark .hmc-ficha .hmc-ficha-follow.is-following svg{fill:rgba(197,168,255,.13)}
.hmc-ficha .hmc-ficha-follow:focus-visible,
#globalHeader .hmc-notice button:focus-visible{
  outline:2px solid #a77adf;outline-offset:3px;
}
@media(min-width:640px){.hmc-ficha .hmc-ficha-follow{font-size:14px}}
@media(max-width:639px){.hmc-ficha .hmc-ficha-follow{width:100%;min-height:44px}}

/* V4.7.1 — Biblioteca: "Siguiendo" usa exactamente la superficie de los
   widgets hermanos; los acentos se reservan al icono y a los estados. */
.hml-follow-widget{min-width:0}
.hml-follow-widget .hml-follow-heading{
  display:flex;align-items:center;gap:9px;margin:0 0 8px;
}
.hml-follow-widget .hml-follow-heading>span{
  display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;
  border-radius:8px;background:var(--hml-total-bg);color:var(--hml-total);
  font-size:0!important;line-height:1;
}
/* Sustituye el emoji inconsistente entre sistemas por una campana monocroma. */
.hml-follow-widget .hml-follow-heading>span::before{
  content:"";display:block;width:16px;height:16px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9Z'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9Z'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hml-follow-widget .hml-follow-heading h3{margin:0;line-height:1.3;color:var(--hml-ink)}
.hml-follow-widget>p{margin:0 0 13px;color:var(--hml-muted);line-height:1.55}
.hml-follow-list{display:flex;flex-direction:column;min-width:0}
.hml-follow-item{
  display:flex;align-items:center;gap:9px;min-width:0;padding:11px 0;
  border-top:1px solid var(--hml-line);
}
.hml-follow-open{
  display:flex;align-items:center;gap:9px;text-align:left;min-width:0;flex:1;
  padding:0;border:0;background:transparent;color:var(--hml-ink);cursor:pointer;
}
.hml-follow-open img{
  display:block;width:36px;height:50px;flex:0 0 36px;object-fit:cover;
  border:1px solid var(--hml-line);border-radius:6px;background:var(--hml-surface2);
}
.hml-follow-open>span{flex:1;min-width:0}
.hml-follow-open strong{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;font-size:11px;font-weight:800;line-height:1.4;color:var(--hml-ink);
}
.hml-follow-open small{display:block;font-size:10px;margin-top:4px;color:var(--hml-muted)}
.hml-follow-open:hover strong{color:var(--hml-total)}
.hml-follow-widget .hml-unfollow{
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  min-height:34px;padding:7px 10px;
  border:1px solid var(--hml-line);border-radius:8px;
  background:var(--hml-surface);color:var(--hml-muted);
  font-size:10px;font-weight:700;line-height:1.2;cursor:pointer;
  transition:background-color .16s,border-color .16s,color .16s;
}
.hml-follow-widget .hml-unfollow:hover{
  background:var(--hml-fav-bg);color:var(--hml-fav);border-color:var(--hml-fav);
}
.hml-follow-undo{
  display:block;min-width:0;margin-top:11px;padding:10px 11px;
  border:1px solid var(--hml-line);border-radius:8px;
  background:var(--hml-surface2);color:var(--hml-muted);
  font-size:10px;line-height:1.6;overflow-wrap:anywhere;
}
.hml-follow-undo button{
  display:inline;border:0;background:transparent;color:var(--hml-total);
  font-weight:800;font-size:11px;text-decoration:underline;text-underline-offset:2px;
  padding:0 3px;
}
@media(max-width:760px){
  #globalHeader .hmc-notice-panel{right:-70px;max-height:min(72dvh,480px)}
  .hml-aside{grid-template-columns:minmax(0,1fr)}
  .hml-follow-widget{width:100%}
  .hml-follow-item{gap:11px}
  .hml-follow-widget .hml-unfollow{min-height:38px;padding:9px 11px;font-size:11px}
}
@media(max-width:520px){
  #globalHeader .hmc-notice-panel{width:min(345px,calc(100vw - 18px));right:-100px}
  .hml-aside{grid-template-columns:minmax(0,1fr)}
  .hml-follow-item{min-height:67px}
}
@media(max-width:360px){
  #globalHeader .hmc-notice-panel{
    position:fixed;right:9px;left:9px;top:calc(60px + env(safe-area-inset-top,0px));
    width:auto;max-height:70dvh;
  }
}
@media(prefers-reduced-motion:reduce){
  .hmc-ficha .hmc-ficha-follow,.hml-follow-widget .hml-unfollow{transition:none}
}

/* V4.9.9 — Sin cuentas públicas: no mostrar acciones que requieren autenticar visitantes.
   Si ya existe una sesión editorial válida, la lógica de seguimiento permanece intacta. */
body:not(.hmc-account-authenticated) #globalHeader #hmcNoticeWrap,
body:not(.hmc-account-authenticated) .hmc-ficha #hmcFollowFicha {display:none!important;}
