:root{
  --negro:#000000;
  --amarillo:#FFED00;
  --grafito:#5B5B5B;
  --carbon:#1C1C1C;
  --blanco:#FFFFFF;
  --papel:#FFFFFF;
  --tinta:#161616;
  --niebla:#B9B9B9;
  --fosforo:#3CFF6E;
  /* Colores de resalte por categoría de libro */
  --violeta:#7358A5;   /* IA (novedad) */
  --rosa:#DFACBD;      /* moda */
  --amarillo-libro:#FFED00; /* diseño gráfico */
  --display:"Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --texto:"Barlow", "Helvetica Neue", Arial, sans-serif;
  --pixel:"VT323", "Courier New", monospace;
  --cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='34' viewBox='0 0 11 17' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='1' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23fff'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23fff'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%23fff'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23fff'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23fff'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23fff'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23fff'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%23fff'/%3E%3Crect x='4' y='6' width='1' height='1' fill='%23fff'/%3E%3Crect x='5' y='6' width='1' height='1' fill='%23fff'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='7' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23fff'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%23fff'/%3E%3Crect x='4' y='7' width='1' height='1' fill='%23fff'/%3E%3Crect x='5' y='7' width='1' height='1' fill='%23fff'/%3E%3Crect x='6' y='7' width='1' height='1' fill='%23fff'/%3E%3Crect x='7' y='7' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='8' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%23fff'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%23fff'/%3E%3Crect x='4' y='8' width='1' height='1' fill='%23fff'/%3E%3Crect x='5' y='8' width='1' height='1' fill='%23fff'/%3E%3Crect x='6' y='8' width='1' height='1' fill='%23fff'/%3E%3Crect x='7' y='8' width='1' height='1' fill='%23fff'/%3E%3Crect x='8' y='8' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='9' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='4' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='5' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='6' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='7' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='8' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='9' y='9' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='10' width='1' height='1' fill='%23fff'/%3E%3Crect x='3' y='10' width='1' height='1' fill='%23fff'/%3E%3Crect x='4' y='10' width='1' height='1' fill='%23fff'/%3E%3Crect x='5' y='10' width='1' height='1' fill='%23fff'/%3E%3Crect x='6' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='7' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='8' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='9' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='10' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='11' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='11' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='11' width='1' height='1' fill='%23fff'/%3E%3Crect x='3' y='11' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='11' width='1' height='1' fill='%23fff'/%3E%3Crect x='5' y='11' width='1' height='1' fill='%23fff'/%3E%3Crect x='6' y='11' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='12' width='1' height='1' fill='%23fff'/%3E%3Crect x='2' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='5' y='12' width='1' height='1' fill='%23fff'/%3E%3Crect x='6' y='12' width='1' height='1' fill='%23fff'/%3E%3Crect x='7' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='13' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='13' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='13' width='1' height='1' fill='%23000'/%3E%3Crect x='5' y='13' width='1' height='1' fill='%23fff'/%3E%3Crect x='6' y='13' width='1' height='1' fill='%23fff'/%3E%3Crect x='7' y='13' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='14' width='1' height='1' fill='%23000'/%3E%3Crect x='5' y='14' width='1' height='1' fill='%23000'/%3E%3Crect x='6' y='14' width='1' height='1' fill='%23fff'/%3E%3Crect x='7' y='14' width='1' height='1' fill='%23fff'/%3E%3Crect x='8' y='14' width='1' height='1' fill='%23000'/%3E%3Crect x='5' y='15' width='1' height='1' fill='%23000'/%3E%3Crect x='6' y='15' width='1' height='1' fill='%23fff'/%3E%3Crect x='7' y='15' width='1' height='1' fill='%23fff'/%3E%3Crect x='8' y='15' width='1' height='1' fill='%23000'/%3E%3Crect x='6' y='16' width='1' height='1' fill='%23000'/%3E%3Crect x='7' y='16' width='1' height='1' fill='%23000'/%3E%3C/svg%3E");
  --cursor-activo:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='34' viewBox='0 0 11 17' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='1' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='4' y='6' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='5' y='6' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='7' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='4' y='7' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='5' y='7' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='6' y='7' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='7' y='7' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='8' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='4' y='8' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='5' y='8' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='6' y='8' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='7' y='8' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='8' y='8' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='9' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='2' y='9' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='4' y='9' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='5' y='9' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='6' y='9' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='7' y='9' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='8' y='9' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='9' y='9' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='2' y='10' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='3' y='10' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='4' y='10' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='5' y='10' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='6' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='7' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='8' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='9' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='10' y='10' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='11' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='11' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='2' y='11' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='3' y='11' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='11' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='5' y='11' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='6' y='11' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='12' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='2' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='5' y='12' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='6' y='12' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='7' y='12' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='13' width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='13' width='1' height='1' fill='%23000'/%3E%3Crect x='4' y='13' width='1' height='1' fill='%23000'/%3E%3Crect x='5' y='13' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='6' y='13' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='7' y='13' width='1' height='1' fill='%23000'/%3E%3Crect x='0' y='14' width='1' height='1' fill='%23000'/%3E%3Crect x='5' y='14' width='1' height='1' fill='%23000'/%3E%3Crect x='6' y='14' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='7' y='14' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='8' y='14' width='1' height='1' fill='%23000'/%3E%3Crect x='5' y='15' width='1' height='1' fill='%23000'/%3E%3Crect x='6' y='15' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='7' y='15' width='1' height='1' fill='%23FFED00'/%3E%3Crect x='8' y='15' width='1' height='1' fill='%23000'/%3E%3Crect x='6' y='16' width='1' height='1' fill='%23000'/%3E%3Crect x='7' y='16' width='1' height='1' fill='%23000'/%3E%3C/svg%3E");
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box}
html{overflow-x:clip;scroll-behavior:smooth;scroll-padding-top:110px;-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--negro);color:var(--blanco);
  font:400 1.125rem/1.6 var(--texto);
  cursor:var(--cursor) 1 1, auto;
  overflow-x:hidden;
}
a,button,.escenario__foto{cursor:var(--cursor-activo) 1 1, pointer}
img{max-width:100%;height:auto;display:block}
a{color:var(--amarillo);text-underline-offset:.2em}
a:hover{color:var(--blanco)}
:focus-visible{outline:3px solid var(--amarillo);outline-offset:3px}
.sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- Cabecera ---------- */
.cabecera{
  position:fixed;inset:0 0 auto;z-index:100;
  display:flex;align-items:center;gap:1.5rem;
  padding:.55rem clamp(1rem,4vw,2.5rem);
  background:rgba(0,0,0,.84);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid #222;
}
.cabecera__marca{display:block;flex-shrink:0}
.cabecera__marca img{width:38px;height:38px}
.menu{display:flex;gap:clamp(.8rem,2.2vw,1.8rem);margin-left:auto;overflow-x:auto;scrollbar-width:none}
.menu::-webkit-scrollbar{display:none}
.menu a{font:1.35rem/1 var(--pixel);text-transform:uppercase;letter-spacing:.06em;color:var(--niebla);text-decoration:none;white-space:nowrap;padding:.3rem 0;border-bottom:3px solid transparent}
.menu a:hover{color:var(--blanco);border-bottom-color:var(--amarillo)}

/* ---------- Portada ---------- */
.portada{display:flex;justify-content:center;padding:4.2rem 0 2.5rem}
.escenario{
  /* misma proporción que la imagen original: foto + franja del logo */
  --foto:max(300px, min(1180px, 96vw, calc((100svh - 120px) * 1.02)));
  --logo:calc(var(--foto) * .896);
  position:relative;width:100%;
  display:flex;flex-direction:column;align-items:center;
}
.composicion{position:relative;width:var(--foto)}
.escenario__foto{position:relative;z-index:10;-webkit-tap-highlight-color:transparent}
.escenario__foto img{width:100%;animation:carga 1.1s steps(14) both}
.escenario__foto::after{ /* líneas de barrido de monitor */
  content:"";position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(to bottom, rgba(0,0,0,.28) 0 1px, transparent 1px 3px);
  opacity:.3;transition:opacity .3s;
}
.escenario__foto::before{ /* brillo de la lente */
  content:"";position:absolute;left:53.5%;top:35.8%;width:12%;aspect-ratio:1;z-index:2;
  transform:translate(-50%,-50%) scale(.4);border-radius:50%;pointer-events:none;
  background:radial-gradient(circle, rgba(255,237,0,.55), rgba(255,0,170,.25) 45%, transparent 70%);
  opacity:0;transition:opacity .4s, transform .6s cubic-bezier(.2,.9,.3,1.3);
  mix-blend-mode:screen;
}
.escenario.activo .escenario__foto::after{opacity:.55}
.escenario.activo .escenario__foto::before{opacity:1;transform:translate(-50%,-50%) scale(1);animation:latido 2.4s ease-in-out .6s infinite}
@keyframes latido{50%{transform:translate(-50%,-50%) scale(1.25);opacity:.7}}
@keyframes carga{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0 0 0 0)}}

.nombre{position:relative;z-index:15;margin:0;width:var(--logo);margin-left:4.45%}
.nombre img{width:100%;animation:barra .7s steps(9) .8s both;transform-origin:left}
@keyframes barra{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.lema{
  position:relative;z-index:16;
  width:var(--logo);margin:calc(var(--logo) * .016) 0 0 4.45%;
  font:24px/1 var(--pixel);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;
  animation:aparece .4s steps(4) 1.5s both;
}
/* en pantallas estrechas el lema pasa debajo del logo */
.lema.lema--libre{white-space:normal;font-size:1.05rem;line-height:1.15;margin-top:.5rem;width:var(--logo)}
@keyframes aparece{from{opacity:0}to{opacity:1}}

.orbita{position:absolute;inset:0;z-index:40;pointer-events:none}
.orbe{
  --w:clamp(62px, calc(var(--foto) * .115), 136px);
  position:absolute;left:0;top:0;width:var(--w);padding:0;border:0;background:none;color:inherit;
  opacity:0;transform-origin:50% 50%;will-change:transform,opacity;pointer-events:none;
}
.escenario.activo .orbe{pointer-events:auto}
.orbe img{width:100%;aspect-ratio:342/440;object-fit:cover;box-shadow:0 0 0 2px var(--negro), 6px 6px 0 0 var(--amarillo);transition:box-shadow .2s, filter .3s}
.orbe.fondo img{filter:brightness(.55) grayscale(.4)}
.orbe__etiqueta{
  position:absolute;left:50%;bottom:calc(100% + 12px);transform:translateX(-50%);
  width:max-content;max-width:200px;padding:.2rem .55rem .1rem;
  font:1.15rem/1 var(--pixel);letter-spacing:.05em;text-transform:uppercase;
  color:var(--negro);background:var(--blanco);text-align:center;
  box-shadow:3px 3px 0 var(--negro);
  opacity:0;transition:opacity .25s;
}
.orbe__etiqueta::before{ /* piquito pixelado */
  content:"";position:absolute;left:50%;bottom:-8px;width:8px;height:8px;margin-left:-4px;
  background:inherit;clip-path:polygon(0 0,100% 0,100% 50%,75% 50%,75% 100%,25% 100%,25% 50%,0 50%);
}
.orbe.delante .orbe__etiqueta{opacity:1}
.orbe:hover img,.orbe:focus-visible img{box-shadow:0 0 0 2px var(--negro), 6px 6px 0 0 var(--blanco);filter:none}
.orbe:hover .orbe__etiqueta,.orbe:focus-visible .orbe__etiqueta{opacity:1;background:var(--amarillo)}
.orbe:focus-visible{outline:none}

.controles{display:flex;align-items:center;justify-content:center;gap:.8rem;margin-top:1.6rem;animation:aparece .4s steps(4) 1.9s both}
.flecha{
  width:42px;height:42px;padding:0;border:2px solid var(--amarillo);
  background:var(--negro);color:var(--amarillo);display:grid;place-items:center;
  opacity:0;visibility:hidden;transition:opacity .25s, visibility .25s, background .15s, color .15s;
}
.flecha svg{width:16px;height:16px}
.escenario.activo .flecha{opacity:1;visibility:visible}
.flecha:hover{background:var(--amarillo);color:var(--negro)}
.pista{
  padding:.4rem .9rem;border:1px solid #333;background:none;color:var(--niebla);
  font:1.3rem/1 var(--pixel);letter-spacing:.04em;text-transform:uppercase;
}
.pista:hover{color:var(--amarillo);border-color:var(--amarillo)}
.pista__tactil,.pista__activo{display:none}
@media (hover:none){.pista__raton{display:none}.pista__tactil{display:inline}}
.escenario.activo .pista__raton,.escenario.activo .pista__tactil{display:none}
.escenario.activo .pista__activo{display:inline}
.pista::after{content:"_";animation:parpadeo 1s steps(1) infinite}
@keyframes parpadeo{50%{opacity:0}}

/* ---------- Bloques de contenido ---------- */
.bloque{max-width:1160px;margin:0 auto;padding:clamp(4rem,9vw,7rem) clamp(1.25rem,5vw,3rem) 0}
h2{
  margin:0 0 1.6rem;max-width:22ch;
  font:400 clamp(2.4rem, 5.4vw, 4.4rem)/.92 var(--pixel);letter-spacing:.03em;text-transform:uppercase;
  overflow-wrap:break-word;
}
h2::before{content:"> ";color:var(--amarillo)}

/* Ventana tipo sistema operativo */
.ventana{
  background:var(--papel);color:var(--tinta);
  border:3px solid var(--blanco);box-shadow:9px 9px 0 var(--amarillo);
  max-width:50rem;
}
.ventana__barra{
  display:flex;align-items:center;gap:6px;
  background:var(--grafito);color:var(--blanco);
  padding:.35rem .4rem .35rem .7rem;font:1.2rem/1 var(--pixel);letter-spacing:.06em;text-transform:uppercase;
}
.ventana__barra span{margin-right:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ventana__barra i{flex:none;width:16px;height:16px;background:var(--blanco);box-shadow:inset -3px -3px 0 #A9A9A9}
.ventana__barra i:last-child{background:var(--amarillo);box-shadow:inset -3px -3px 0 #BFA800}
.ventana__cuerpo{padding:clamp(1.4rem,3.6vw,2.6rem)}
.ventana p{margin:0 0 1.1em;color:var(--tinta)}
.ventana p:last-child{margin-bottom:0}
.ventana strong{color:#000;font-weight:600}
.ventana a{color:#000;text-decoration:none;background:linear-gradient(transparent 58%, var(--amarillo) 58%)}
.ventana a:hover{background:var(--amarillo)}
.entradilla{font-size:1.28rem;line-height:1.5;font-weight:500}
.fosforo{background:#000;color:var(--fosforo);text-shadow:0 0 6px rgba(60,255,110,.6);font-family:var(--pixel);font-size:1.25em;line-height:1;padding:0 .3em;white-space:nowrap}
.firma{background:var(--amarillo);color:#000;font-weight:600;padding:0 .25em}
.ventana hr{border:0;border-top:2px dashed #CFCFCF;margin:1.8rem 0}

/* Ventana larga con apartados */
.ventana--larga{max-width:58rem;margin:0 auto}
.ventana--larga .ventana__cuerpo{padding:clamp(1.5rem,5vw,3.5rem) clamp(1.25rem,6vw,4.5rem)}
.apartado{max-width:44rem;scroll-margin-top:110px}
.apartado + .apartado{margin-top:2.6rem;padding-top:2.4rem;border-top:2px dashed #CFCFCF}
.tipo{margin:0 0 .35rem!important;font:1.1rem/1 var(--pixel);letter-spacing:.06em;color:#8A8A8A!important}
.apartado h2{max-width:none;margin:0 0 1.1rem;font-size:clamp(1.9rem,4vw,2.7rem);color:#000}
.apartado h2::before{color:var(--grafito)}

/* Libro más reciente */
.novedad{display:grid;gap:2.5rem 3rem;align-items:start}
@media (min-width:960px){.novedad{grid-template-columns:1fr 1fr}.novedad figure{position:sticky;top:90px}}
.novedad figure{margin:0;border-top:10px solid #7B5CB0}
.novedad h3{font:400 clamp(2.4rem,4.4vw,3.4rem)/.92 var(--pixel);letter-spacing:.03em;text-transform:uppercase;margin:0 0 .6rem;color:#000}
.subtitulo{font:1.45rem/1.1 var(--pixel);letter-spacing:.04em;text-transform:uppercase}
.novedad .subtitulo{color:#000;background:var(--amarillo);display:inline;padding:0 .2em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.novedad .meta{margin:1rem 0 1.4rem!important;font:1.25rem/1.2 var(--pixel);letter-spacing:.04em;text-transform:uppercase;color:var(--grafito)!important}
.boton{
  display:inline-block;padding:.7rem 1.2rem .55rem;background:var(--amarillo);color:var(--negro)!important;
  font:1.45rem/1 var(--pixel);letter-spacing:.06em;text-transform:uppercase;text-decoration:none;
  border:2px solid var(--negro);box-shadow:5px 5px 0 var(--negro);
  transition:transform .12s steps(2), box-shadow .12s steps(2);
}
.boton:hover{transform:translate(3px,3px);box-shadow:2px 2px 0 var(--negro);background:var(--amarillo)!important}

/* Catálogo */
.catalogo{display:grid;grid-template-columns:repeat(auto-fill,minmax(172px,1fr));gap:2.5rem 1.8rem;margin-top:1rem}
.libro{display:flex;flex-direction:column}
.libro__portada{position:relative;display:block;padding:0;border:0;background:none;margin-bottom:1rem}
.libro__portada img{width:100%;aspect-ratio:342/440;object-fit:cover;box-shadow:6px 6px 0 var(--carbon);transition:box-shadow .15s steps(2), transform .15s steps(2)}
.libro__portada:hover img{transform:translate(-3px,-3px);box-shadow:9px 9px 0 var(--amarillo)}
.libro__edicion{margin:0 0 .3rem;font:1.2rem/1 var(--pixel);letter-spacing:.04em;text-transform:uppercase;color:var(--amarillo)}
.libro__titulo{margin:0;font:400 1.9rem/.95 var(--pixel);letter-spacing:.03em;text-transform:uppercase}
.libro__subtitulo{margin:.35rem 0 .6rem;font:1.15rem/1.1 var(--pixel);letter-spacing:.04em;text-transform:uppercase;color:var(--niebla)}
.libro__desc{margin:0 0 1rem;font-size:.98rem;line-height:1.5;color:#CFCFCF;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.libro__datos{display:none}
.libro__enlace{margin:0 0 .9rem;font:1.1rem/1.1 var(--pixel);letter-spacing:.03em;color:var(--blanco);text-decoration:none;border-bottom:2px solid var(--amarillo);align-self:flex-start;overflow-wrap:anywhere;font-size:1.05rem}
.libro__enlace:hover{color:var(--amarillo)}
.libro__ficha{margin-top:auto;align-self:flex-start;padding:.4rem .8rem .3rem;background:var(--blanco);border:0;color:var(--negro);font:1.2rem/1 var(--pixel);letter-spacing:.05em;text-transform:uppercase;box-shadow:4px 4px 0 var(--grafito)}
.libro__ficha:hover{background:var(--amarillo)}

/* ---------- Ficha (ventana emergente) ---------- */
.ficha{
  width:min(1060px, calc(100% - 2rem));max-height:calc(100svh - 2rem);padding:0;
  border:3px solid var(--blanco);background:var(--negro);color:var(--tinta);overflow:auto;
  box-shadow:10px 10px 0 var(--amarillo);
}
.ficha::backdrop{background:rgba(0,0,0,.8);backdrop-filter:blur(3px)}
.ficha[open]{animation:ficha-entra .35s steps(6)}
@keyframes ficha-entra{from{clip-path:inset(50% 0 50% 0)}to{clip-path:inset(0)}}
.ficha .ventana__barra{position:sticky;top:0;z-index:2;border-bottom:4px solid var(--acento, var(--amarillo))}
.ficha__btn{width:34px;height:34px;display:grid;place-items:center;padding:0;background:var(--blanco);border:0;color:var(--negro);box-shadow:inset -3px -3px 0 #A9A9A9}
.ficha__btn svg{width:14px;height:14px}
.ficha__btn:hover{background:var(--amarillo);box-shadow:inset -3px -3px 0 #BFA800}
.ficha__cuerpo{display:grid}
@media (min-width:860px){.ficha__cuerpo{grid-template-columns:minmax(0,.92fr) minmax(0,1fr)}}
.ficha__imagen{background:var(--fondo-imagen,#0a0a0a);display:flex;align-self:stretch}
.ficha__imagen img{width:100%;aspect-ratio:4/3;object-fit:cover;object-position:center}
.ficha__texto{background:var(--papel);padding:clamp(1.25rem,3vw,2.2rem)}
.ficha__texto .libro__edicion{color:#000;background:var(--amarillo);display:inline-block;padding:.1rem .35rem 0;font-size:1.3rem}
.ficha__texto h3{font:400 clamp(2.2rem,4.2vw,3.1rem)/.92 var(--pixel);letter-spacing:.03em;text-transform:uppercase;margin:.6rem 0 .5rem;color:#000}
.ficha__texto .subtitulo{margin:0 0 1rem;color:var(--grafito)}
.ficha__texto .desc{margin:0 0 1.2rem;color:var(--tinta);font-size:1.03rem}
.ficha__texto ul{list-style:none;margin:0 0 1.6rem;padding:0;border-top:2px dashed #CFCFCF}
.ficha__texto li{padding:.5rem 0;border-bottom:2px dashed #CFCFCF;font-size:.98rem;color:#3A3A3A}
.ficha__texto li b{color:#000;font-weight:600}
.ficha__web{margin:0 0 .5rem;font:1.1rem/1 var(--pixel);letter-spacing:.06em;text-transform:uppercase;color:#8A8A8A}
.ficha .boton{text-transform:none;letter-spacing:.02em;font-size:1.4rem;max-width:100%;overflow-wrap:anywhere}
.ficha.cambio .ficha__cuerpo{animation:cambio .3s steps(5)}
@keyframes cambio{0%{opacity:0;clip-path:inset(0 100% 0 0)}100%{opacity:1;clip-path:inset(0)}}

/* ---------- Pie ---------- */
.pie{margin-top:clamp(5rem,10vw,8rem);border-top:4px solid var(--amarillo);padding:3rem clamp(1.25rem,5vw,3rem) 2rem}
.pie__dentro{max-width:1160px;margin:0 auto;display:grid;gap:2rem}
@media (min-width:800px){.pie__dentro{grid-template-columns:1.2fr 1fr;align-items:end}}
.pie__marca{width:min(460px,100%)}
.pie__marca img{width:100%}
.pie__marca p{margin:.5rem 0 0;font:1.05rem/1.2 var(--pixel);letter-spacing:.05em;text-transform:uppercase;color:var(--blanco)}
.pie address{font-style:normal;font:1.35rem/1.5 var(--pixel);letter-spacing:.03em;color:var(--niebla)}
.pie address a{color:var(--blanco);text-decoration:none;border-bottom:2px solid var(--amarillo)}
.pie address a:hover{color:var(--amarillo)}
.pie small{display:block;margin:2rem auto 0;color:var(--grafito);font-size:.9rem;max-width:1160px}

@media (max-width:640px){
  .portada{padding-top:4rem}
  .controles{gap:.5rem}
  .flecha{width:36px;height:36px}
  .pista{font-size:1.05rem;padding:.4rem .6rem}
  .menu{gap:1rem}
  .menu a{font-size:1.15rem}
  .orbe__etiqueta{font-size:.95rem;max-width:130px}
  .ventana{box-shadow:6px 6px 0 var(--amarillo)}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}

/* Aviso de listado completo */
.aviso-libros{margin-top:1.6rem!important;padding:1rem 1.2rem;border:2px solid var(--tinta);box-shadow:5px 5px 0 var(--amarillo);font-weight:500}

/* ---------- Página de libros publicados ---------- */
.cabecera-pagina{max-width:1160px;margin:0 auto;padding:7rem clamp(1.25rem,5vw,3rem) 0}
.cabecera-pagina h1{margin:0 0 1rem;font:400 clamp(2.8rem,7vw,5.2rem)/.9 var(--pixel);letter-spacing:.03em;text-transform:uppercase}
.cabecera-pagina h1::before{content:"> ";color:var(--amarillo)}
.cabecera-pagina p{max-width:44rem;color:#DADADA;margin:0 0 .6rem}
.volver{display:inline-block;margin-bottom:1.6rem;font:1.25rem/1 var(--pixel);letter-spacing:.05em;text-transform:uppercase;color:var(--niebla);text-decoration:none;border-bottom:2px solid var(--amarillo)}
.volver:hover{color:var(--amarillo)}
.obra{display:grid;grid-template-columns:minmax(0,1fr);gap:1.2rem 2rem}
@media (min-width:700px){.obra{grid-template-columns:176px minmax(0,1fr)}}
.obra + .obra{margin-top:2.4rem;padding-top:2.4rem;border-top:2px dashed #CFCFCF}
.obra__cubierta{width:176px}
.obra__cubierta img{width:176px;height:auto}
.obra--agotada .obra__cubierta img{filter:grayscale(1);opacity:.8}
.obra h2{margin:.1rem 0 .6rem;font-size:clamp(1.7rem,3.4vw,2.4rem);line-height:.95;color:#000;max-width:none}
.obra h2::before{content:none}
.obra h2 a{color:#000;background:none!important;text-decoration:none;border-bottom:3px solid var(--amarillo)}
.obra h2 a:hover{background:var(--amarillo)!important}
.etiqueta{display:inline-block;margin:0 0 .7rem;padding:.12rem .45rem 0;font:1.2rem/1.1 var(--pixel);letter-spacing:.05em;text-transform:uppercase;background:var(--amarillo);color:#000}
.etiqueta--agotado{background:#E4E4E4;color:#444}
.obra dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.25rem 1rem;margin:0 0 1rem;font-size:.98rem}
.obra dt{font-weight:600;color:#000}
.obra dd{margin:0;color:#3A3A3A}
.obra .boton{font-size:1.25rem;text-transform:none;letter-spacing:.02em}
.ventana--larga .tipo + .etiqueta{margin-top:.2rem}

/* ---------- Color de resalte por categoría ---------- */
[data-cat]{--acento:var(--amarillo-libro);--acento-txt:#000}
[data-cat="moda"]{--acento:var(--rosa);--acento-txt:#000}
[data-cat="ia"]{--acento:var(--violeta);--acento-txt:#fff}
.orbe img{box-shadow:0 0 0 2px var(--negro), 6px 6px 0 0 var(--acento)}
.orbe:hover .orbe__etiqueta,.orbe:focus-visible .orbe__etiqueta{background:var(--acento);color:var(--acento-txt)}
.libro .libro__edicion{display:inline-block;align-self:flex-start;background:var(--acento);color:var(--acento-txt);padding:.12rem .4rem 0;margin-bottom:.5rem}
.libro__portada:hover img{box-shadow:9px 9px 0 var(--acento)}
.libro__enlace{border-bottom-color:var(--acento)}
.libro__ficha{box-shadow:4px 4px 0 var(--acento)}
.libro__ficha:hover{background:var(--acento);color:var(--acento-txt)}
.ficha .ventana__barra{border-bottom-color:var(--acento)}
.ficha__texto .libro__edicion{background:var(--acento);color:var(--acento-txt)}
.ficha .boton{background:var(--acento)!important;color:var(--acento-txt)!important}
#novedad figure{border-top-color:var(--violeta)}
#novedad .subtitulo{background:var(--violeta);color:#fff}
#novedad .boton{background:var(--violeta)!important;color:#fff!important}
.obra[data-cat] .etiqueta:not(.etiqueta--agotado){background:var(--acento);color:var(--acento-txt)}
.obra[data-cat] h2 a{border-bottom-color:var(--acento)}
.obra[data-cat] .boton{background:var(--acento)!important;color:var(--acento-txt)!important}
.ficha[data-cat]{box-shadow:10px 10px 0 var(--acento)}
#novedad .ventana{box-shadow:9px 9px 0 var(--violeta)}

@media (min-width:860px){.ficha__imagen img{height:100%;aspect-ratio:auto;object-fit:contain}}
