@font-face{font-family:"Anton";src:url("categories/anton-regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
/* Category artwork is decorative. Labels, counts and filters remain live HTML. */
.category-section{scroll-margin-top:24px}
.category-photo-card.category-shortcut{width:100%}
.category-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.category-photo-card.category-shortcut{isolation:isolate;container-type:inline-size;overflow:hidden;display:flex;justify-content:space-between;align-items:stretch;min-width:0;aspect-ratio:1.55;min-height:220px;gap:36px;padding:clamp(16px,2vw,28px);border:2px solid #ffffff24;border-radius:18px;background:#10191b;color:var(--category-color);text-align:left;box-shadow:0 1px 2px #08263614;cursor:pointer;touch-action:manipulation;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.category-photo-card::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#030b12a8 0%,transparent 38%,#02071069 100%),linear-gradient(90deg,#020b10a6 0%,#020b1052 46%,#020b1010 80%)}
.category-art{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center;pointer-events:none;transition:transform .5s cubic-bezier(.2,.7,.2,1),filter .3s ease}
.category-photo-card::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--category-color);mix-blend-mode:color;opacity:.24}
.category-photo-card .category-topline,.category-photo-card[aria-pressed="true"] .category-topline{position:relative;z-index:1;color:#fff9ed;font-size:clamp(.85rem,1.15vw,1.1rem);font-weight:700;gap:8px;line-height:1.25}
.category-photo-card .category-name{gap:10px;min-width:0;white-space:nowrap}
.category-photo-card .category-icon{width:clamp(22px,2.4vw,32px);height:clamp(22px,2.4vw,32px);color:var(--category-color)}
.category-photo-card .category-topline b,.category-photo-card[aria-pressed="true"] .category-topline b{font:700 clamp(.9rem,1.3vw,1.2rem)/1 "DM Sans",sans-serif;color:#fff9ed;flex:0 0 auto;min-width:1.3em;text-align:right}
.category-photo-card.category-shortcut>strong{position:relative;z-index:1;display:block;margin:0;max-width:calc(100% - 20px);font-family:"Anton","Arial Narrow",sans-serif;font-size:clamp(1.35rem,11cqi,4rem);font-weight:400;font-synthesis:none;line-height:1.07;letter-spacing:-.018em;text-transform:uppercase;text-wrap:balance;color:var(--category-color);text-shadow:0 2px 10px #02091055}
.category-headline>span{display:block}
.category-photo-card[data-category-art="cine"]>strong{letter-spacing:.005em}
.category-photo-card[data-category-art="teatro"]>strong{letter-spacing:0}
.category-photo-card[data-category-art="literatura"]>strong>span:last-child{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:1.08em;line-height:1.1;text-transform:none;letter-spacing:-.045em}
.category-photo-card[data-category-art="patrimonio"]>strong{letter-spacing:.002em}
.category-photo-card .category-arrow{right:clamp(13px,1.7vw,24px);bottom:clamp(17px,2vw,29px);font-size:clamp(1.5rem,2.5vw,2.5rem);line-height:1;color:#fff9ed;z-index:1}
.category-photo-card.category-shortcut[aria-pressed="true"]{background:#10191b;color:var(--category-color);border-color:var(--category-color);box-shadow:0 0 0 3px var(--ink),0 9px 26px #08263624}
.category-photo-card[aria-pressed="true"] .category-arrow{width:1.2em;height:1.2em;background:var(--category-color);border-radius:50%;color:transparent;transform:none}
.category-photo-card[aria-pressed="true"] .category-arrow::after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;font:800 .75em/1 "DM Sans",sans-serif;color:#0c242b}
.category-photo-card:focus-visible{outline:3px solid var(--ink);outline-offset:5px}
.category-footnote{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:10px 0 0;font-size:.7rem;line-height:1.5;color:var(--muted)}
.category-footnote p{margin:0}
.category-footnote a{color:var(--muted);text-decoration:underline;text-underline-offset:3px;flex-shrink:0;font-size:.65rem}
.category-footnote a:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
/* An open cover and five book spines: selection still uses the original filter. */
.category-shortcuts.is-focused{grid-template-columns:minmax(0,7fr) repeat(5,minmax(48px,1fr));gap:10px;align-items:stretch}
.category-shortcuts.is-focused .category-photo-card.category-shortcut{aspect-ratio:auto;min-height:360px;height:clamp(360px,31vw,470px)}
.category-shortcuts.is-focused .category-photo-card[aria-pressed="true"]{order:-1;animation:category-cover-open .38s ease-out}
.category-shortcuts.is-focused .category-photo-card[aria-pressed="true"]>strong{font-size:clamp(2.5rem,10cqi,5rem);max-width:calc(100% - 40px)}
.category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]){padding:20px 5px;border-radius:12px;box-shadow:inset 5px 0 0 #ffffff15,inset -5px 0 0 #0005}
.category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"])::after{background:linear-gradient(90deg,#010710a6,#01071060 50%,#010710b3)}
.category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-topline{flex-direction:column;height:100%;gap:14px}
.category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-name{flex-direction:column;gap:20px;flex:1;min-height:0}
.category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-spine-label{writing-mode:vertical-rl;transform:rotate(180deg);font-size:1.2rem;letter-spacing:.025em;color:var(--category-color)}
.category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-icon{width:24px;height:24px}
.category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-topline b{font-size:1rem;text-align:center}
.category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"])>strong,.category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-arrow{display:none}
@keyframes category-cover-open{from{opacity:.7}to{opacity:1}}
@media(hover:hover) and (pointer:fine){
  .category-photo-card.category-shortcut:hover{transform:translateY(-3px);border-color:var(--category-color);box-shadow:0 8px 22px #08263622}
  .category-photo-card:hover .category-art{transform:scale(1.045);filter:brightness(1.08)}
  .category-photo-card:not([aria-pressed="true"]):hover .category-arrow{transform:translate(2px,-2px)}
}
.category-photo-card.category-shortcut:active{transform:scale(.99)}
@media(max-width:760px){
  .category-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .category-photo-card.category-shortcut{min-height:210px;aspect-ratio:1.18;padding:16px;border-radius:15px;gap:28px}
  .category-photo-card.category-shortcut>strong{font-size:clamp(1.45rem,12cqi,2.5rem);max-width:calc(100% - 18px)}
  .category-photo-card .category-topline{font-size:.87rem}
  .category-photo-card .category-name{gap:7px}
  .category-photo-card .category-icon{width:23px;height:23px}
  .category-photo-card .category-arrow{right:12px;bottom:17px;font-size:1.55rem}
  .category-shortcuts.is-focused{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
  .category-shortcuts.is-focused .category-photo-card[aria-pressed="true"]{grid-column:1/-1;height:300px;min-height:300px;padding:22px}
  .category-shortcuts.is-focused .category-photo-card[aria-pressed="true"]>strong{font-size:clamp(2.3rem,9cqi,3.8rem)}
  .category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]){height:165px;min-height:165px;padding:12px 3px;border-radius:10px}
  .category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-topline{gap:7px}
  .category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-name{gap:9px}
  .category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-spine-label{font-size:.85rem}
  .category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-icon{width:21px;height:21px}
  .category-shortcuts.is-focused .category-photo-card:not([aria-pressed="true"]) .category-topline b{font-size:.8rem}
}
@media(max-width:440px){
  .category-shortcuts{gap:9px}
  .category-photo-card.category-shortcut{min-height:190px;aspect-ratio:auto;padding:12px 11px 16px;border-radius:13px;gap:28px}
  .category-photo-card.category-shortcut>strong{font-size:clamp(1.18rem,14cqi,1.8rem);max-width:calc(100% - 12px);line-height:1.13}
  .category-photo-card .category-topline,.category-photo-card[aria-pressed="true"] .category-topline{font-size:.74rem;gap:3px}
  .category-photo-card .category-topline b,.category-photo-card[aria-pressed="true"] .category-topline b{font-size:.8rem}
  .category-photo-card .category-name{gap:5px}
  .category-photo-card .category-icon{width:19px;height:19px}
  .category-photo-card .category-arrow{right:10px;bottom:15px;font-size:1.2rem}
  .category-photo-card::after{background:linear-gradient(180deg,#030b12ba 0%,#030b1230 45%,#02071099 100%),linear-gradient(90deg,#020b1080,#020b1015)}
  .category-shortcuts.is-focused .category-photo-card[aria-pressed="true"]{height:255px;min-height:255px;padding:20px}
  .category-shortcuts.is-focused .category-photo-card[aria-pressed="true"] .category-topline{font-size:.9rem}
  .category-shortcuts.is-focused{gap:6px}
  .category-footnote{align-items:flex-start;flex-direction:column;gap:4px;font-size:.65rem}
}
@media(prefers-reduced-motion:reduce){.category-photo-card,.category-photo-card .category-art,.category-photo-card .category-arrow{animation:none!important;transition:none!important;transform:none!important}}
