/* Marca raster original, con transparencia y sin el emblema de energía anterior. */
.insanos-emblem{display:block;width:36px;height:36px;flex:none;object-fit:contain;filter:drop-shadow(0 0 7px rgba(255,0,110,.18));transition:transform .25s ease,filter .25s ease}
a:hover>.insanos-emblem{transform:rotate(-5deg) scale(1.08);filter:drop-shadow(0 0 12px rgba(255,0,110,.5))}
.footer-logo>.insanos-emblem{width:48px;height:48px}
.auth-brand>.insanos-emblem{width:56px;height:56px;margin:auto}
.setup-brand>.insanos-emblem{width:64px;height:64px}
.acceso-logo-nombre{display:flex!important;align-items:center;justify-content:center;gap:.7rem}
.acceso-logo-nombre>.insanos-emblem{width:44px;height:44px}
.insanos-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.insanos-info-grid article{min-width:0;padding:1.5rem;border-top:2px solid var(--in-pink);background:var(--in-card)}
.insanos-info-grid article>svg{width:24px;height:24px;color:var(--in-cyan)}
.insanos-info-grid h3{font:700 .8rem Orbitron,system-ui,sans-serif;color:var(--in-text);margin:1rem 0}
.insanos-info-grid p,.rights-inner p{color:var(--in-muted);line-height:1.6}
.insanos-info-grid a{display:inline-flex;align-items:center;gap:.5rem;color:var(--in-cyan);font-weight:700;text-decoration:none;min-height:44px}
.insanos-info-grid a svg,.rights-contact svg{width:16px;height:16px;flex:none}
.rights-section{border-top:1px solid var(--in-line)}
.rights-inner{display:flex;align-items:center;justify-content:space-between;gap:2rem}
.rights-inner>div{max-width:750px}
.rights-inner h2{font:700 clamp(1.1rem,3vw,1.5rem) Orbitron,system-ui,sans-serif;color:var(--in-text)}
.rights-contact{display:inline-flex!important;flex:none;gap:.6rem;min-height:44px}
.site-footer .footer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem;max-width:800px;margin:2rem auto;text-align:left}
.footer-links>div{display:grid;align-content:start;gap:.65rem}
.footer-links h3{margin:0 0 .25rem;font:700 .66rem Orbitron,system-ui,sans-serif;letter-spacing:.12em;color:var(--in-cyan);text-transform:uppercase}
.site-footer .footer-links a{display:flex;align-items:center;min-height:32px;line-height:1.4}
#about,#dmca{scroll-margin-top:90px}
@media(max-width:700px){
  .site-header .insanos-emblem{width:28px;height:28px}
  .site-header .insanos-logo{font-size:.86rem;letter-spacing:.12em;gap:.45rem}
  .insanos-info-grid{grid-template-columns:minmax(0,1fr)}
  .rights-inner{align-items:flex-start;flex-direction:column;gap:1rem}
  .site-footer .footer-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
  .site-footer .footer-links a{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.insanos-emblem{transition:none}a:hover>.insanos-emblem{transform:none}}

/* Una sola firma de marca: brillo vivo, nunca letras que desaparecen. */
.insanos-logo>span,.insanos-brand-name>span{
  display:inline-block;background:none!important;-webkit-text-fill-color:#ff2b85!important;color:#ff2b85!important;
  text-shadow:0 0 8px rgba(255,0,110,.45),0 0 24px rgba(255,0,110,.2)!important;
  animation:insanos-sign-breathe 4.5s ease-in-out infinite!important;transition:filter .25s ease;
}
.insanos-logo:hover>span,.insanos-logo:focus-visible>span,
.insanos-wordmark:hover .insanos-brand-name>span,.insanos-wordmark:focus-visible .insanos-brand-name>span,
.admin-brand:hover .insanos-brand-name>span,.admin-brand:focus-visible .insanos-brand-name>span,
.auth-brand:hover .insanos-brand-name>span{
  animation:insanos-sign-hover 1.2s ease-in-out infinite!important;filter:brightness(1.3);
}
.hero h1.insanos-hero-wordmark{animation:none;overflow:visible;padding-block:.08em}
.insanos-hero-wordmark .brand-letter{
  display:inline-block;animation:insanos-letter-wave 5.6s ease-in-out infinite;animation-delay:calc(var(--letter)*.14s);
}
.insanos-hero-wordmark:hover .brand-letter{animation-duration:2.8s}
@keyframes insanos-sign-breathe{0%,100%{filter:brightness(1)}50%{filter:brightness(1.25)}}
@keyframes insanos-sign-hover{0%,100%{transform:translateY(0)}50%{transform:translateY(-1px)}}
@keyframes insanos-letter-wave{
  0%,65%,100%{transform:translateY(0);filter:brightness(1)}
  30%{transform:translateY(-.025em);filter:brightness(1.3)}
}

/* Herramientas del catálogo: un carril compartido, no una fila de cajas. */
html[data-theme] body.reader-catalog .reader-actions{
  gap:6px!important;padding:3px!important;border:1px solid rgba(142,148,180,.1);border-radius:28px;
  background:rgba(15,15,26,.72);min-height:50px;
}
html[data-theme] body.reader-catalog .reader-actions .reader-icon-button,
html[data-theme] body.reader-catalog .reader-actions .reader-nav-link,
html[data-theme] body.reader-catalog .reader-actions .music-toggle{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;min-width:44px!important;
  width:44px;height:44px;min-height:44px!important;padding:0!important;border:0!important;border-radius:24px!important;
  background:transparent!important;color:#a9adc6!important;box-shadow:none!important;line-height:1!important;
}
html[data-theme] body.reader-catalog .reader-actions .reader-nav-link{width:auto;padding:0 14px!important;font:600 .83rem Rajdhani,system-ui,sans-serif}
html[data-theme] body.reader-catalog .reader-actions button:hover,
html[data-theme] body.reader-catalog .reader-actions a:hover{color:#00e5ff!important;background:rgba(0,229,255,.08)!important;transform:none!important}
html[data-theme] body.reader-catalog .reader-actions svg{width:19px;height:19px;flex:none;display:block}
html[data-theme] body.reader-catalog .reader-actions .reader-profile{
  display:flex!important;align-items:center;gap:9px;padding:0 11px!important;border:0!important;min-width:0;flex:none;
}
html[data-theme] body.reader-catalog .reader-actions .reader-profile .profile-avatar{
  display:grid;place-items:center;width:36px;height:36px;min-width:36px;border-radius:50%!important;border:0!important;
  background:#281329!important;color:#ff5ca0!important;font:800 .9rem Rajdhani,system-ui,sans-serif;
}
html[data-theme] body.reader-catalog .reader-actions .reader-profile-copy{
  display:grid!important;grid-template-columns:auto auto;align-items:center;gap:1px 7px;min-width:0;max-width:180px;
}
html[data-theme] body.reader-catalog .reader-profile-copy strong{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 .85rem/1.15 Rajdhani,system-ui,sans-serif}
html[data-theme] body.reader-catalog .reader-profile-copy small{grid-column:1/-1;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:.69rem/1.2 Rajdhani,system-ui,sans-serif}
html[data-theme] body.reader-catalog .reader-nav .reader-profile-copy #membership-badge{
  display:inline-flex!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:none!important;color:#00e5ff!important;font:700 .61rem/1 Rajdhani,system-ui,sans-serif;letter-spacing:.07em;
}
html[data-theme] body.reader-catalog .reader-nav .reader-profile-copy #membership-badge.guest{color:#b1b5cd!important}
html[data-theme] body.reader-catalog .reader-nav .reader-profile-copy #membership-badge.vip{color:#ffd55e!important}
html[data-theme] body.reader-catalog .reader-menu nav button{
  display:flex;align-items:center;gap:8px;min-height:44px;padding:.6rem;border:0;background:none;color:#a9adc6;
  font:700 .8rem Rajdhani,system-ui,sans-serif;letter-spacing:.06em;text-align:left;cursor:pointer;
}
.reader-menu nav button svg{width:18px;height:18px;flex:none}
.reader-menu nav button:hover{color:#00e5ff;background:rgba(0,229,255,.05)}
body.reader-catalog.guest-mode .reader-menu [data-reader-tool]{display:none}
.studio-return-link[hidden]{display:none!important}
body.reader-catalog .studio-return-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:44px;color:#ff5ca0!important;font:700 .8rem Rajdhani,system-ui,sans-serif;white-space:nowrap;text-decoration:none}
body.reader-catalog .reader-actions .studio-return-link{padding:0 12px;border-right:1px solid #302033}
body.reader-catalog .studio-return-link svg{display:block;width:18px;height:18px;flex:none}
body.reader-catalog .studio-return-mobile{display:none!important}
body.reader-catalog .studio-return-link:hover{color:#ff95c3!important}
body.reader-catalog .studio-return-link:focus-visible{outline:2px solid #00e5ff;outline-offset:3px}

/* Estudio: acciones claras y estado real de los trabajos, sin sello online ficticio. */
html[data-theme] body.admin-page .tb-status-row{
  display:flex;align-items:center;gap:8px!important;padding:5px;border:1px solid rgba(142,148,180,.1);
  border-radius:30px;background:#0c0c16;max-width:100%;flex-wrap:wrap;
}
html[data-theme] body.admin-page #worker-status-chip{
  display:inline-flex;align-items:center;gap:7px;padding:0 10px;min-height:44px;color:#a9adc6;font:600 .8rem Rajdhani,system-ui,sans-serif;
}
html[data-theme] body.admin-page #worker-status-chip #worker-status-text{display:inline!important}
html[data-theme] body.admin-page .tb-status-row .tb-action{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 17px!important;
  border:0!important;border-radius:24px!important;background:#ff006e!important;color:#fff!important;
  box-shadow:none!important;font:700 .78rem Rajdhani,system-ui,sans-serif!important;letter-spacing:.045em;
}
html[data-theme] body.admin-page .tb-status-row .tb-action:hover{background:#ff2b85!important;box-shadow:0 0 22px rgba(255,0,110,.22)!important}
html[data-theme] body.admin-page .tb-status-row .command-button,
html[data-theme] body.admin-page .tb-status-row .music-toggle{
  display:inline-grid;place-items:center;min-width:44px;width:44px;height:44px;min-height:44px!important;
  padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#a9adc6!important;
}
html[data-theme] body.admin-page .tb-status-row .command-button:hover,
html[data-theme] body.admin-page .tb-status-row .music-toggle:hover{color:#00e5ff!important;background:rgba(0,229,255,.08)!important}
html[data-theme] body.admin-page .tb-status-row svg{display:block;width:19px;height:19px;flex:none}
html[data-theme] body.admin-page .sidebar-footer a,html[data-theme] body.admin-page .sidebar-footer button{min-width:44px!important;min-height:44px!important}
.reader-actions :is(button,a):focus-visible,.tb-status-row button:focus-visible,.reader-menu summary:focus-visible,.reader-menu nav button:focus-visible{
  outline:2px solid #00e5ff!important;outline-offset:3px;
}
@media(max-width:1000px){
  html[data-theme] body.reader-catalog .reader-actions .reader-nav-link{width:44px;padding:0!important}
}
@media(max-width:1100px){
  html[data-theme] body.reader-catalog .reader-nav{grid-template-columns:minmax(0,1fr) auto auto!important;column-gap:8px!important}
  body.reader-catalog .studio-return-mobile:not([hidden]){display:inline-flex!important;grid-row:1;grid-column:2;justify-self:end}
  body.reader-catalog .reader-actions .studio-return-desktop{display:none!important}
  body.reader-catalog .reader-menu nav .studio-return-link{justify-content:flex-start;gap:8px}
}
@media(max-width:700px){
  html[data-theme] body.reader-catalog .reader-actions{gap:4px!important;min-height:50px;justify-content:flex-end;padding:2px!important}
  html[data-theme] body.reader-catalog .reader-actions .reader-profile{padding:0 6px!important;gap:6px}
  html[data-theme] body.reader-catalog .reader-actions .reader-profile-copy{grid-template-columns:minmax(0,1fr);gap:3px;max-width:80px}
  html[data-theme] body.reader-catalog .reader-profile-copy strong{max-width:80px;font-size:.8rem}
  html[data-theme] body.reader-catalog .reader-profile-copy small{display:none!important}
  html[data-theme] body.admin-page .tb-status-row{border-radius:18px;gap:4px!important}
  html[data-theme] body.admin-page #worker-status-chip{padding-inline:6px;font-size:.75rem}
  html[data-theme] body.admin-page .tb-status-row .tb-action{padding-inline:12px!important}
}
@media(max-width:420px){
  html[data-theme] body.reader-catalog .reader-actions #open-notifications{display:none!important}
  body.reader-catalog .reader-menu summary span{display:none}
  body.reader-catalog .reader-menu summary{min-width:44px;width:44px;justify-content:center}
}
@media(prefers-reduced-motion:reduce){
  .insanos-logo>span,.insanos-brand-name>span,.insanos-logo:hover>span,.insanos-logo:focus-visible>span,
  .insanos-wordmark:hover .insanos-brand-name>span,.insanos-wordmark:focus-visible .insanos-brand-name>span,
  .admin-brand:hover .insanos-brand-name>span,.admin-brand:focus-visible .insanos-brand-name>span,
  .auth-brand:hover .insanos-brand-name>span,.insanos-hero-wordmark .brand-letter{animation:none!important;transition:none!important;filter:none!important;transform:none!important}
}

/* Biblioteca personal: acciones y búsqueda sin escaparates públicos. */
html[data-theme] body.admin-page .admin-sidebar #admin-nav button.active[aria-current="page"]{
  color:var(--in-pink)!important;background:rgba(255,0,110,.08)!important;
  box-shadow:inset 0 -2px var(--in-pink),0 5px 16px -10px var(--in-pink)!important;
  animation:insanos-nav-enter .28s ease-out both
}
html[data-theme] body.admin-page .admin-sidebar #admin-nav button.active[aria-current="page"] span{color:inherit!important}
@keyframes insanos-nav-enter{from{filter:brightness(.8) drop-shadow(0 0 0 transparent)}to{filter:brightness(1) drop-shadow(0 0 5px rgba(255,0,110,.2))}}
@media(prefers-reduced-motion:reduce){html[data-theme] body.admin-page .admin-sidebar #admin-nav button.active[aria-current="page"]{animation:none}}

html[data-theme] body.personal-library-page #personal-library-title{
  color:var(--in-text);font:900 clamp(1.8rem,4vw,3.4rem)/1.25 var(--insanos-display);margin:0;letter-spacing:-.04em;overflow-wrap:anywhere
}
body.personal-library-page .library-heading-actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;justify-content:flex-end}
body.personal-library-page .library-explore-link{display:inline-flex;gap:.6rem;align-items:center;min-height:44px;padding:.7rem 1rem;text-decoration:none;white-space:nowrap}
body.personal-library-page .library-explore-link svg{width:18px;height:18px}
body.personal-library-page .personal-library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:1.7rem 0;color:var(--in-muted)}
body.personal-library-page .personal-library-toolbar .reader-search{width:min(100%,420px);margin:0;min-height:50px}
body.personal-library-page .library-search-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
body.personal-library-page .personal-library-empty a{display:inline-flex;gap:.5rem;align-items:center;justify-content:center;min-height:44px;padding:.7rem 1rem;text-decoration:none;border:1px solid var(--in-line);color:var(--in-cyan)}
@media(max-width:700px){
  body.personal-library-page .library-heading-actions{justify-content:flex-start;width:100%}
  body.personal-library-page .personal-library-toolbar .reader-search{width:100%}
}
