/* Estante infinito (página Publicaciones): idea de la plantilla Infinite Gallery de motionsites.ai, rehecha para el sitio.
   Un lienzo oscuro sin bordes con las portadas de las publicaciones; al moverlo, las portadas se estiran en una estela de color. */
.estante { --e-fondo: #04121c; --e-tinta: #eef6f8; --e-suave: rgba(238, 246, 248, .7); --e-acento: #2bb3c9; --gut: clamp(16px, 2.4vw, 34px);
  position: relative; height: min(86vh, 820px); min-height: 520px; overflow: hidden; background: var(--e-fondo); color: var(--e-tinta);
  margin: clamp(.5rem, 2vw, 1.5rem) 0 clamp(2rem, 5vw, 3.5rem); touch-action: pan-y; cursor: none; user-select: none; -webkit-user-select: none; outline: none; }
.estante:focus-visible { box-shadow: inset 0 0 0 3px var(--e-acento); }
.estante canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.estante a, .estante button { cursor: pointer; }

.es-barra { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: var(--gut); pointer-events: none;
  background: linear-gradient(rgba(4,18,28,.78), rgba(4,18,28,0)); transition: opacity .4s; }
.es-barra h2 { margin: 0; font: 400 clamp(26px, 3vw, 44px)/1.04 var(--display); letter-spacing: -.03em; color: var(--e-tinta); }
.es-barra h2 em { font: italic 400 1.08em var(--cita); letter-spacing: -.01em; }
.es-barra p { margin: .45rem 0 0; max-width: 30em; font-size: 13px; line-height: 1.45; color: var(--e-suave); }
.es-cuenta { flex: none; margin: 0; font: 500 12px var(--mono); color: var(--e-suave); text-align: right; font-variant-numeric: tabular-nums; }

.es-dock { position: absolute; z-index: 3; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 6px; border-radius: 999px;
  background: rgba(10, 30, 42, .78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: opacity .38s, translate .38s; }
.es-dock button { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border: 0; border-radius: 999px; background: none; font: 500 13.5px var(--titular); color: rgba(238,246,248,.76); white-space: nowrap; transition: color .2s, background .2s; }
.es-dock button:hover { color: #fff; }
.es-dock button.on { background: rgba(255,255,255,.1); color: #fff; }
.es-dock i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--e-tinta)); }
.es-dock sup { font: 500 9px var(--mono); color: var(--e-suave); top: -.4em; }
.es-dock button:focus-visible, .es-pv a:focus-visible, .es-pv button:focus-visible { outline: 2px solid var(--e-acento); outline-offset: 2px; }
.estante.abierto .es-dock { opacity: 0; translate: 0 90px; pointer-events: none; }
.estante.abierto .es-barra { opacity: 0; }

.es-pv { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.es-pv[hidden] { display: none; }
.es-pv::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4,18,28,.82), rgba(4,18,28,.5) 42%, rgba(4,18,28,0) 58%); animation: es-sombra .6s ease both; }
@keyframes es-sombra { from { opacity: 0; } }
.es-pv a, .es-pv button { pointer-events: auto; }
.es-texto { position: absolute; left: var(--gut); top: 50%; translate: 0 -50%; width: min(44%, 560px); }
.es-tipo { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 1rem; font: 500 11.5px var(--mono); color: var(--e-suave); }
.es-tipo span { display: inline-flex; align-items: center; gap: 7px; }
.es-tipo span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.es-titulo { margin: 0; font: 400 clamp(24px, 2.6vw, 42px)/1.1 var(--display); letter-spacing: -.025em; color: var(--e-tinta); }
.es-titulo span { display: block; overflow: hidden; padding-bottom: .08em; }
.es-titulo i { display: block; font-style: normal; will-change: transform; }
.es-autores { margin: .9rem 0 0; font-size: 14px; line-height: 1.5; color: var(--e-suave); }
.es-datos { display: flex; gap: clamp(22px, 3vw, 48px); margin: 1.6rem 0 0; }
.es-datos b { display: block; font: 400 clamp(22px, 2.2vw, 34px)/1 var(--display); letter-spacing: -.02em; }
.es-datos small { display: block; margin-top: 8px; font-size: 12px; color: var(--e-suave); }
.es-enlaces { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.6rem 0 0; }
.es-enlaces a { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; font: 600 13.5px var(--titular); text-decoration: none; color: var(--e-tinta); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.es-enlaces a:first-child { background: var(--e-acento); color: #03141d; box-shadow: none; }
.es-cerrar { position: absolute; right: var(--gut); top: var(--gut); display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; font: 500 13px var(--titular); color: var(--e-tinta);
  background: rgba(10,30,42,.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }

.es-cur { position: absolute; z-index: 4; left: 0; top: 0; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.72); display: grid; place-items: center;
  font: 500 12px var(--titular); color: #fff; pointer-events: none; transition: width .25s, height .25s, margin .25s, background .25s, opacity .25s; will-change: transform; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.es-cur.down { width: 52px; height: 52px; margin: -26px 0 0 -26px; background: rgba(255,255,255,.12); }
.es-cur.off { opacity: 0; }
@media (hover: none) { .es-cur { display: none; } .estante { cursor: auto; } }

@media (max-width: 760px) {
  .estante { height: 74vh; min-height: 540px; }
  .es-barra p { display: none; }
  .es-dock { left: 12px; right: 12px; bottom: 14px; transform: none; overflow-x: auto; scrollbar-width: none; }
  .es-dock::-webkit-scrollbar { display: none; }
  .es-dock button { padding: 0 12px; font-size: 13px; }
  .es-pv::before { background: linear-gradient(0deg, rgba(4,18,28,.9), rgba(4,18,28,.6) 50%, rgba(4,18,28,0) 62%); }
  .es-texto { left: var(--gut); right: var(--gut); top: auto; bottom: var(--gut); translate: none; width: auto; }
  .es-titulo { font-size: 21px; }
  .es-titulo i { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .es-autores { font-size: 12.5px; margin-top: .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .es-tipo { margin-bottom: .6rem; }
  .es-datos { margin-top: .9rem; }
  .es-datos b { font-size: 20px; }
  .es-enlaces { margin-top: 1rem; }
  .es-enlaces a { height: 38px; padding: 0 14px; font-size: 13px; }
}
