/* HMCDRS V4.1 — Ajustes visuales puntuales.
   La ficha usa el mismo HEADER sólido que el inicio (oscuro/claro).
   El header sigue en el flujo normal de la página: no es sticky.
   Revertimos únicamente la extensión del hero detrás del header de V3.5. */

body.hm-v3-ficha-page {
  --hm-v35-glass-depth: 0px;
}

body.hm-v3-ficha-page #globalHeader.hm-v3-global-header .hm-v3-header-main,
body.hm-v3-ficha-page #globalHeader.hm-v3-global-header.is-scrolled .hm-v3-header-main {
  background: var(--hm-v32-chrome) !important;
  border-bottom-color: var(--hm-v32-line) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

/* Restaurar el flujo: el degradado de cada ficha comienza bajo el header. */
body.hm-v3-ficha-page #appRoot {
  margin-top: 0 !important;
}
body.hm-v3-ficha-page #appRoot > .hmc-ficha > section:first-child {
  padding-top: 0 !important;
}


/* HMCDRS V4.9.6 — footer editorial unificado: sin onda azul ni degradados heredados.
   Conserva #globalFooter para no afectar la navegación ni los lectores. */
#globalFooter.hmc-editorial-footer {
  --hmc-footer-bg:#f6f7fa;
  --hmc-footer-secondary:#f0f1f5;
  --hmc-footer-text:#1d2230;
  --hmc-footer-muted:#666e80;
  --hmc-footer-line:#e1e4eb;
  width:100%; margin:0 !important; padding:0;
  background:var(--hmc-footer-bg);color:var(--hmc-footer-text);
  border-top:1px solid var(--hmc-footer-line);
  box-shadow:none;isolation:isolate;
  font-family:Inter,system-ui,sans-serif;
}
html.site-dark #globalFooter.hmc-editorial-footer {
  --hmc-footer-bg:#101114;
  --hmc-footer-secondary:#15161b;
  --hmc-footer-text:#f6f5f9;
  --hmc-footer-muted:#989ba8;
  --hmc-footer-line:#292c34;
  background:var(--hmc-footer-bg);color:var(--hmc-footer-text);
}
#globalFooter.hmc-editorial-footer > .hmc-editorial-footer-main,
html.site-dark #globalFooter.hmc-editorial-footer > .hmc-editorial-footer-main {
  background:var(--hmc-footer-bg) !important;
  background-image:none !important;
  box-shadow:none !important;
  border:0 !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  padding:28px 0;
}
#globalFooter.hmc-editorial-footer .hmc-editorial-footer-inner {
  width:min(1120px,calc(100% - 40px));margin:0 auto;
}
#globalFooter.hmc-editorial-footer .hmc-editorial-footer-main .hmc-editorial-footer-inner {
  display:flex;align-items:center;justify-content:space-between;gap:26px;
}
#globalFooter.hmc-editorial-footer .hmc-editorial-footer-brand {
  display:flex;align-items:center;gap:10px;flex:none;
}
#globalFooter.hmc-editorial-footer .hmc-editorial-footer-brand img {
  width:38px;height:38px;object-fit:contain;display:block;
}
#globalFooter.hmc-editorial-footer .hmc-editorial-footer-brand span {
  display:flex;flex-direction:column;gap:1px;
}
#globalFooter.hmc-editorial-footer .hmc-editorial-footer-brand strong {
  font:900 16px/1.1 'Plus Jakarta Sans',Inter,sans-serif;
  letter-spacing:.06em;color:var(--hmc-footer-text);
}
#globalFooter.hmc-editorial-footer .hmc-editorial-footer-brand small {
  font:750 8px/1.3 Inter,sans-serif;
  letter-spacing:.17em;color:var(--hmc-footer-muted);
}
#globalFooter.hmc-editorial-footer .hmc-editorial-footer-main p,
html.site-dark #globalFooter.hmc-editorial-footer .hmc-editorial-footer-main p {
  max-width:660px;margin:0;
  font:400 11px/1.7 Inter,system-ui,sans-serif;
  color:var(--hmc-footer-muted);text-align:right;
}
#globalFooter.hmc-editorial-footer > .hmc-editorial-footer-legal,
html.site-dark #globalFooter.hmc-editorial-footer > .hmc-editorial-footer-legal {
  background:var(--hmc-footer-secondary) !important;
  background-image:none !important;
  color:var(--hmc-footer-muted) !important;
  border-top:1px solid var(--hmc-footer-line) !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
  box-shadow:none !important;
  padding:11px 0;
  font:500 10px/1.6 Inter,system-ui,sans-serif;
  text-align:center;
}
@media(max-width:660px) {
  #globalFooter.hmc-editorial-footer .hmc-editorial-footer-inner{width:calc(100% - 28px)}
  #globalFooter.hmc-editorial-footer > .hmc-editorial-footer-main,
  html.site-dark #globalFooter.hmc-editorial-footer > .hmc-editorial-footer-main{padding:23px 0}
  #globalFooter.hmc-editorial-footer .hmc-editorial-footer-main .hmc-editorial-footer-inner {
    flex-direction:column;align-items:center;gap:12px;
  }
  #globalFooter.hmc-editorial-footer .hmc-editorial-footer-main p,
  html.site-dark #globalFooter.hmc-editorial-footer .hmc-editorial-footer-main p {
    text-align:center;font-size:11px;max-width:540px;
  }
}


/* HMCDRS V4.10 — Navegación inferior coherente con Inicio/Series/Biblioteca.
   Solo dock público; no modifica el lector ni su barra de controles. */
@media(max-width:767px){
  #mobileSiteDock.mobile-site-dock:not(.hidden){
    background:#f6f7fa !important;
    background-image:none !important;
    border-top:1px solid #e1e4eb !important;
    box-shadow:0 -4px 16px rgba(29,34,48,.055) !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }
  #mobileSiteDock .mobile-dock-inner{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
    max-width:560px;
    margin:0 auto;
  }
  #mobileSiteDock .mobile-dock-link{
    min-width:0;
    min-height:51px;
    padding:6px 3px;
    border:1px solid transparent;
    border-radius:11px;
    background:transparent;
    color:#666e80;
    font:700 10px/1.25 Inter,system-ui,sans-serif;
    text-align:center;
    white-space:nowrap;
  }
  #mobileSiteDock .mobile-dock-link svg{width:20px;height:20px;stroke-width:1.8;flex:none;}
  #mobileSiteDock .mobile-dock-link.active{
    background:rgba(128,96,206,.11);
    color:#8060ce;
    border-color:rgba(128,96,206,.11);
  }
  #mobileSiteDock .mobile-dock-link:focus-visible{outline:2px solid #8060ce;outline-offset:2px;}
  html.site-dark #mobileSiteDock.mobile-site-dock:not(.hidden){
    background:#101114 !important;
    background-image:none !important;
    border-top-color:#292c34 !important;
    box-shadow:0 -4px 18px rgba(0,0,0,.3) !important;
  }
  html.site-dark #mobileSiteDock .mobile-dock-link{background:transparent;color:#a7a9b5;border-color:transparent;}
  html.site-dark #mobileSiteDock .mobile-dock-link.active{
    background:rgba(173,128,246,.16);
    color:#c8adf8;
    border-color:rgba(173,128,246,.12);
  }
  html.site-dark #mobileSiteDock .mobile-dock-link:focus-visible{outline-color:#ad80f6;}
}


/* HMCDRS V4.9.11 — enlaces sociales en lugar del párrafo del footer. */
#globalFooter.hmc-editorial-footer .hmc-footer-social {
  display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;
}
#globalFooter.hmc-editorial-footer .hmc-footer-social a {
  display:inline-flex;align-items:center;justify-content:center;
  width:43px;height:43px;flex:0 0 43px;
  border:1px solid var(--hmc-footer-line);border-radius:12px;
  color:var(--hmc-footer-muted);background:var(--hmc-footer-secondary);
  text-decoration:none;transition:border-color .18s ease,color .18s ease,background .18s ease,transform .18s ease;
}
#globalFooter.hmc-editorial-footer .hmc-footer-social a svg {width:21px;height:21px;display:block;}
#globalFooter.hmc-editorial-footer .hmc-footer-social a:hover {
  color:#8060ce;border-color:#baadf5;background:#f1eafd;transform:translateY(-2px);
}
html.site-dark #globalFooter.hmc-editorial-footer .hmc-footer-social a:hover {
  color:#d9c6ff;border-color:#675380;background:#2a2433;
}
#globalFooter.hmc-editorial-footer .hmc-footer-social a:focus-visible {
  outline:2px solid #8060ce;outline-offset:3px;
}
html.site-dark #globalFooter.hmc-editorial-footer .hmc-footer-social a:focus-visible {outline-color:#ad80f6;}
@media (max-width:660px) {
  #globalFooter.hmc-editorial-footer .hmc-footer-social {justify-content:center;}
}
@media (prefers-reduced-motion:reduce) {
  #globalFooter.hmc-editorial-footer .hmc-footer-social a {transition:none;}
  #globalFooter.hmc-editorial-footer .hmc-footer-social a:hover {transform:none;}
}

/* V5: crédito visible y accesible a Nyxi, sin modificar el pie general. */
#globalFooter.hmc-editorial-footer .hmc-editorial-footer-legal a {
  color:var(--hmc-footer-text);font-weight:700;text-decoration:underline;text-underline-offset:2px;
}
#globalFooter.hmc-editorial-footer .hmc-editorial-footer-legal a:hover {
  color:#a575db;
}
