/* Expresiones: sistema visual publico. Se carga despues de app.css. */
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/sg-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/sg-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/sg-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/sg-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/sg-500i.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/sg-700i.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/nr-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/nr-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/nr-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #f7f6f9; --surface: #ffffff; --ink: #1d1926; --muted: #625b70; --line: #dfdbe6;
  --accent: #6f2a86; --accent-ink: #ffffff; --accent-2: #6f2a86; --tinted: #efeaf3;
  --good: #146c43; --bad: #a52828; --warn: #8a5b13; --shadow: none;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --ancho: 1240px; --gutter: clamp(1rem, 3.4vw, 2.5rem); --head: 68px;
  --r0: #ebe7f0; --r1: #dcd6e6; --r2: #6f2a86;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16131c; --surface: #211c2a; --ink: #eee9f4; --muted: #aba4b9; --line: #352f40;
    --accent: #d7a2e8; --accent-ink: #1d1926; --accent-2: #d7a2e8; --tinted: #2a2434;
    --good: #6fce9e; --bad: #f19a9a; --warn: #e6bd73;
    --r0: #2a2434; --r1: #352d42; --r2: #d7a2e8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16131c; --surface: #211c2a; --ink: #eee9f4; --muted: #aba4b9; --line: #352f40;
  --accent: #d7a2e8; --accent-ink: #1d1926; --accent-2: #d7a2e8; --tinted: #2a2434;
  --good: #6fce9e; --bad: #f19a9a; --warn: #e6bd73;
  --r0: #2a2434; --r1: #352d42; --r2: #d7a2e8;
  color-scheme: dark;
}

.tono-guaria { --t-bg: #5b2170; --t-fg: #fff4fb; --r0: #6c2c83; --r1: #7f3b98; --r2: #f2b632; }
.tono-anil { --t-bg: #1f3a7a; --t-fg: #f1f5ff; --r0: #2a478f; --r1: #3a58a5; --r2: #f0a93b; }
.tono-achiote { --t-bg: #bf3f19; --t-fg: #fff6ef; --r0: #cd4f27; --r1: #da623a; --r2: #ffd166; }
.tono-musgo { --t-bg: #2d5a45; --t-fg: #f0f8f2; --r0: #386a53; --r1: #467b63; --r2: #e8c547; }
.tono-cafe { --t-bg: #3e2a20; --t-fg: #fbf1e7; --r0: #4d372b; --r1: #5f4739; --r2: #d98d4f; }
.tono-maiz { --t-bg: #f0b429; --t-fg: #2b1e05; --r0: #f4c04d; --r1: #f8d078; --r2: #a94e1a; }
.tono-noche { --t-bg: #16131c; --t-fg: #f3eef8; --r0: #241f2e; --r1: #332b41; --r2: #c88ae0; }
.tono-papel { --t-bg: #f7f6f9; --t-fg: #1d1926; --r0: #ebe7f0; --r1: #dcd6e6; --r2: #6f2a86; }

html { scroll-padding-top: calc(var(--head) + 1rem); }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 800; letter-spacing: -.018em; line-height: 1.12; text-wrap: balance; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }
.rueda { display: block; }
.wrap { max-width: var(--ancho); margin-inline: auto; padding-inline: var(--gutter); }

/* Formularios y botones heredados */
button, .button { font-family: var(--sans); font-weight: 700; border-radius: 999px; padding: .6rem 1.15rem; min-height: 2.6rem; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transition: background-color .15s, color .15s, border-color .15s; }
.button.ghost, button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover, button.ghost:hover { border-color: var(--accent); color: var(--accent); }
.button.acento { padding-inline: 1.5rem; }
.link-button { background: transparent; color: var(--accent); border: 0; min-height: auto; padding: 0; border-radius: 0; font-weight: 500; }
input, select, textarea { background: var(--surface); color: var(--ink); border-color: var(--line); border-radius: 10px; font-family: var(--sans); }
textarea { font-family: var(--sans); }
.public-filter-check { background: var(--surface); border-radius: 10px; }
th, td { border-color: var(--line); }
.wiki-content table, .issue-list, .audit-list, .editor-form, .revision-preview { background: var(--surface); }

/* Cabecera */
.x-skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 60; border-radius: 0 0 8px 0; }
.x-skip:focus { left: 0; }
.x-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.x-head-in { max-width: var(--ancho); height: var(--head); margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 1.6rem; }
.x-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.28rem; letter-spacing: -.03em; flex: none; }
.x-brand-rueda { width: 34px; height: 34px; --r0: var(--accent); --r1: color-mix(in srgb, var(--accent) 45%, var(--bg)); --r2: var(--accent); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.x-brand:hover .x-brand-rueda { transform: rotate(180deg); }
.x-nav { display: flex; gap: 1.25rem; flex: 1; min-width: 0; }
.x-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; padding: .3rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.x-nav a:hover { color: var(--accent); }
.x-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.x-tools { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.x-search input { width: 11rem; min-height: 2.4rem; padding: .35rem .9rem; border-radius: 999px; background: var(--tinted); border-color: transparent; }
.x-tool { position: relative; width: 2.5rem; height: 2.5rem; min-height: 0; padding: .55rem; border: 0; border-radius: 50%; background: transparent; color: var(--ink); display: inline-grid; place-items: center; }
.x-tool:hover { background: var(--tinted); color: var(--ink); }
.x-tool svg { width: 1.4rem; height: 1.4rem; }
.x-tool b { position: absolute; top: 0; right: 0; min-width: 1.05rem; height: 1.05rem; line-height: 1.05rem; padding-inline: 3px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .66rem; text-align: center; }
.x-menu { border-top: 1px solid var(--line); background: var(--surface); }
.x-menu-in { max-width: var(--ancho); margin: 0 auto; padding: 1.8rem var(--gutter) 2.2rem; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
.x-menu p, .x-foot-nav p { margin: 0 0 .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.x-menu ul, .x-foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .32rem; }
.x-menu a, .x-foot-nav a { color: var(--ink); text-decoration: none; }
.x-menu a:hover, .x-foot-nav a:hover { color: var(--accent); text-decoration: underline; }

.x-crumbs { max-width: var(--ancho); margin: 0 auto; padding: .9rem var(--gutter) 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .88rem; color: var(--muted); }
.x-crumbs a { color: var(--muted); text-decoration: none; }
.x-crumbs a:hover { color: var(--accent); text-decoration: underline; }
.x-crumbs [aria-current] { color: var(--ink); }

.site-main { max-width: var(--ancho); padding: 1.5rem var(--gutter) 4.5rem; }
.x-main { padding-bottom: 4.5rem; }

/* Pie */
.x-foot { background: var(--surface); border-top: 1px solid var(--line); }
.x-foot-in { max-width: var(--ancho); margin: 0 auto; padding: 3.4rem var(--gutter) 2rem; display: grid; gap: 2.6rem; }
.x-foot-brand { display: flex; gap: 1rem; align-items: center; max-width: 40rem; }
.x-foot-brand p { margin: 0; color: var(--muted); }
.x-foot-brand strong { color: var(--ink); }
.x-foot-rueda { width: 58px; height: 58px; flex: none; --r0: var(--accent); --r1: color-mix(in srgb, var(--accent) 45%, var(--surface)); --r2: var(--accent); }
.x-foot-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
.x-foot-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.x-foot-legal a { color: var(--muted); }

/* Encabezados de pagina y secciones */
.cabeza, .hero.compact { padding: 1.4rem 0 1.6rem; margin: 0; display: grid; gap: .5rem; background: none; border: 0; }
.cabeza h1, .hero.compact h1, .texts-hero h1, .cafe-hero h1, .reading-playlist-head h1, .gift-composer-hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); margin: 0; }
.cabeza p, .hero.compact p { margin: 0; color: var(--muted); font-size: 1.15rem; max-width: 42rem; }
.cabeza form { margin-top: .6rem; }
.cabeza-accion { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.eyebrow { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { color: var(--muted); }
.rotulo { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: .55rem; border-bottom: 2px solid var(--ink); }
.rotulo h2 { margin: 0; font-size: 1.5rem; }
.rotulo a { font-size: .95rem; font-weight: 500; }
.bloque { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* Filtros */
.filter-pills { gap: .45rem; margin-bottom: 1rem; }
.filter-pills a { min-height: 2.3rem; padding: .3rem .95rem; background: transparent; color: var(--ink); border-color: var(--line); font-weight: 500; font-size: .95rem; }
.filter-pills a:hover { border-color: var(--accent); color: var(--accent); }
.filter-pills a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.letras a { min-width: 2.3rem; justify-content: center; padding-inline: .55rem; }
.filtros { margin-bottom: 1.8rem; }
.filtros summary { cursor: pointer; display: inline-flex; list-style: none; font-weight: 700; padding: .35rem 0; color: var(--ink); }
.filtros summary::-webkit-details-marker { display: none; }
.filtros summary::after { content: "+"; margin-left: .5rem; color: var(--accent); }
.filtros[open] summary::after { content: "−"; }
.public-filters { margin: .7rem 0 0; background: var(--surface); border-radius: 14px; }
.cafe-filters.public-filters { margin-bottom: 1.8rem; }

/* Portada tipografica */
.portadas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 2rem 1.3rem; }
.fila { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 1.3rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .6rem; scrollbar-width: thin; }
.fila .portada-item { scroll-snap-align: start; }
.portada-item { display: grid; gap: .45rem; align-content: start; min-width: 0; }
.portada-item form { margin: 0; }
.portada { position: relative; aspect-ratio: 2 / 3; overflow: hidden; display: flex; flex-direction: column; padding: .95rem; background: var(--t-bg); color: var(--t-fg); text-decoration: none; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.portada:hover { transform: translateY(-4px); }
.portada { --r2: color-mix(in srgb, var(--r1) 40%, var(--t-bg)); }
.portada-rueda { position: absolute; width: 118%; right: -58%; bottom: -14%; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.portada-titulo, .portada-autor { text-shadow: 0 0 8px var(--t-bg), 0 0 2px var(--t-bg); }
.portada:hover .portada-rueda { transform: rotate(72deg); }
.portada-tipo { position: relative; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .86; }
.portada-verso { position: relative; margin-top: .75rem; font-family: var(--serif); font-style: italic; font-size: 1.04rem; line-height: 1.32; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.portada-pie { position: relative; margin-top: auto; display: grid; gap: .2rem; padding-top: .7rem; }
.portada-titulo { margin: 0; color: inherit; font-size: 1.14rem; line-height: 1.12; }
.portada-autor { font-size: .84rem; line-height: 1.25; opacity: .9; }
.portada-guardar { background: transparent; border: 0; color: var(--muted); padding: 0; min-height: 0; border-radius: 0; font-weight: 500; font-size: .86rem; }
.portada-guardar:hover { background: transparent; color: var(--accent); }

/* Voces */
.voces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); gap: 1.8rem 1.2rem; }
.fila-voces { grid-template-columns: repeat(auto-fit, minmax(min(46%, 118px), 1fr)); }
.voz a { display: grid; gap: .55rem; justify-items: center; text-align: center; color: var(--ink); text-decoration: none; }
.voz-foto { display: block; width: 100%; max-width: 160px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: top; transition: transform .25s; }
.voz a:hover .voz-foto { transform: scale(1.04); }
.voz-mono { position: relative; overflow: hidden; background: var(--t-bg); color: var(--t-fg); display: grid; place-items: center; }
.voz-rueda { position: absolute; inset: 4%; width: 92%; height: 92%; }
.voz-mono b { position: relative; display: grid; place-items: center; width: 48%; aspect-ratio: 1; border-radius: 50%; background: var(--t-bg); font-size: clamp(1.15rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }
.perfil-foto .voz-mono b { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.head-actions { justify-content: flex-start; gap: .55rem; }
.voz-nombre { margin: 0; color: var(--ink); font-size: 1.04rem; line-height: 1.18; }
.voz a:hover .voz-nombre { color: var(--accent); }
.voz-dato { color: var(--muted); font-size: .85rem; }

/* Obras */
.obras { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 165px), 1fr)); gap: 2rem 1.4rem; }
.obra a { display: grid; gap: .22rem; color: var(--ink); text-decoration: none; }
.obra-marco { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 2 / 3; margin-bottom: .55rem; }
.obra-marco img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 10px 22px rgba(29, 25, 38, .2); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.obra a:hover img { transform: translateY(-5px); }
.obra-autor, .obra-dato { color: var(--muted); font-size: .88rem; }
.obra-titulo { margin: 0; color: var(--ink); font-size: 1.08rem; line-height: 1.15; font-style: italic; font-weight: 700; }
.obra a:hover .obra-titulo { color: var(--accent); }
.obra-vacia { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--t-bg); }

/* Portada del sitio */
.hoy { position: relative; overflow: hidden; background: var(--t-bg); color: var(--t-fg); }
.hoy-rueda { position: absolute; width: min(82vw, 780px); right: max(-14vw, -170px); top: 50%; translate: 0 -50%; animation: girar 2.4s cubic-bezier(.16,.8,.24,1) both; }
@keyframes girar { from { transform: rotate(-120deg); } to { transform: rotate(0); } }
.hoy-in { position: relative; max-width: var(--ancho); margin: 0 auto; padding: clamp(3.2rem, 8vw, 6.4rem) var(--gutter); display: grid; gap: 1.4rem; }
.hoy-rotulo { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; opacity: .86; }
.hoy-verso { margin: 0; max-width: 21em; font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 4.7vw, 3.5rem); line-height: 1.16; }
.hoy-verso.largo { font-size: clamp(1.55rem, 3.1vw, 2.4rem); line-height: 1.22; }
@media (min-width: 1021px) { .hoy-verso { max-width: 62%; } }
.hoy-fuente { margin: 0; font-size: 1.1rem; }
.hoy-fuente a { color: inherit; font-weight: 700; }
.hoy-acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.hoy-btn { padding: .68rem 1.3rem; border-radius: 999px; background: var(--t-fg); color: var(--t-bg); border: 1px solid var(--t-fg); text-decoration: none; font-weight: 700; }
.hoy-btn.alt { background: transparent; color: var(--t-fg); }
.hoy-btn:hover { opacity: .86; }
.manifiesto { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; padding-block: clamp(2rem, 4vw, 3rem) 0; }
.manifiesto p { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.22; max-width: 26em; }
.manifiesto em { color: var(--accent); }
.manifiesto dl { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); margin: 0; }
.manifiesto dl div { display: flex; flex-direction: column-reverse; }
.manifiesto dt { color: var(--muted); font-size: .85rem; }
.manifiesto dd { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.regalo { position: relative; overflow: hidden; margin-top: clamp(3rem, 6vw, 4.5rem); background: var(--accent); color: var(--accent-ink); --r0: color-mix(in srgb, var(--accent-ink) 9%, var(--accent)); --r1: color-mix(in srgb, var(--accent-ink) 17%, var(--accent)); --r2: color-mix(in srgb, var(--accent-ink) 34%, var(--accent)); }
.regalo-rueda { position: absolute; width: 520px; max-width: 90vw; left: -130px; top: 50%; translate: 0 -50%; }
.regalo-in { position: relative; padding-block: clamp(2.8rem, 6vw, 4.2rem); display: grid; justify-items: end; text-align: right; gap: .8rem; }
.regalo-in h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.2rem); color: inherit; }
.regalo-in p { margin: 0; max-width: 31rem; font-size: 1.12rem; }
.regalo-btn { margin-top: .4rem; padding: .7rem 1.4rem; border-radius: 99px; background: var(--accent-ink); color: var(--accent); text-decoration: none; font-weight: 700; }

.itinerarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.2rem; }
.itinerario { position: relative; overflow: hidden; display: grid; align-content: end; gap: .3rem; min-height: 230px; padding: 1.3rem; background: var(--t-bg); color: var(--t-fg); text-decoration: none; }
.itinerario-rueda { position: absolute; width: 300px; right: -90px; top: -90px; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.itinerario:hover .itinerario-rueda { transform: rotate(72deg); }
.itinerario-num { position: relative; font-size: .8rem; font-weight: 700; opacity: .86; }
.itinerario h3 { position: relative; margin: 0; color: inherit; font-size: 1.55rem; }
.itinerario p { position: relative; margin: 0; font-size: .98rem; line-height: 1.35; }

.testimonios { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2rem; }
.testimonio blockquote { margin: 0 0 .9rem; font-family: var(--serif); font-size: 1.22rem; line-height: 1.36; }
.testimonio h3 { margin: 0; font-size: 1.05rem; }
.testimonio p { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.noticias { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2rem; }
.noticias article { display: grid; gap: .35rem; align-content: start; }
.noticias time { color: var(--muted); font-size: .88rem; }
.noticias h3 { margin: 0; font-size: 1.22rem; }
.noticias h3 a { color: var(--ink); text-decoration: none; }
.noticias h3 a:hover { color: var(--accent); text-decoration: underline; }
.noticias p { margin: 0; color: var(--muted); }

/* Lectura */
.lectura { max-width: 41rem; margin: 0 auto; }
.lectura-cabeza { padding-top: 1.4rem; display: grid; justify-items: center; gap: .55rem; text-align: center; }
.lectura-sello { width: 76px; height: 76px; border-radius: 50%; padding: 8px; background: var(--t-bg); }
.lectura-cabeza h1 { margin: .15rem 0 0; font-size: clamp(2.3rem, 6vw, 3.9rem); }
.lectura-autor { margin: 0; font-size: 1.2rem; }
.lectura-autor a { font-weight: 500; }
.lectura-imagen { width: 100%; margin-top: 2rem; }
.lectura-texto { margin-top: 2.6rem; font-family: var(--serif); font-size: clamp(1.24rem, 2.3vw, 1.4rem); line-height: 1.62; }
.lectura-texto p { margin: 0 0 1.45em; }
.lectura-acciones { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin-top: 2.8rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.lectura-acciones form { margin: 0; }
.lectura-ficha { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 1rem 1.5rem; margin: 2rem 0 0; }
.lectura-ficha dt, .perfil-datos dt, .ficha-datos dt { color: var(--muted); font-size: .82rem; }
.lectura-ficha dd, .perfil-datos dd, .ficha-datos dd { margin: 0; }
.lectura-voz { max-width: 41rem; margin: 3rem auto 0; padding: 1.4rem; display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 1.4rem; align-items: center; background: var(--tinted); }
.lectura-voz p { margin: 0 0 .5rem; color: var(--muted); }

/* Autor y obra */
.perfil, .ficha { display: grid; gap: clamp(1.6rem, 4vw, 3.2rem); padding-top: 1.4rem; align-items: start; }
.perfil { grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); }
.ficha { grid-template-columns: minmax(180px, 320px) minmax(0, 1fr); }
.perfil-foto img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: top; }
.perfil-foto .voz-foto { max-width: none; }
.perfil-texto, .ficha-texto { display: grid; gap: .9rem; min-width: 0; }
.perfil-texto h1, .ficha-texto h1 { margin: 0; font-size: clamp(2.4rem, 5.6vw, 4rem); }
.ficha-texto h1 { font-style: italic; }
.perfil-bio, .ficha-resumen { margin: 0; font-family: var(--serif); font-size: 1.26rem; line-height: 1.5; max-width: 40rem; white-space: pre-line; }
.ficha-autor { margin: 0; font-size: 1.2rem; }
.perfil-datos, .ficha-datos { display: flex; flex-wrap: wrap; gap: .8rem 2.2rem; margin: 0; }
.ficha-portada img { width: 100%; box-shadow: 0 18px 38px rgba(29, 25, 38, .24); }
.ficha-portada .obra-vacia { aspect-ratio: 2 / 3; }

/* Premios y fuentes de la obra */
.ficha-lista { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.ficha-lista li { display: flex; flex-wrap: wrap; gap: .2rem .8rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.ficha-lista li span { color: var(--muted); font-size: .95rem; }
.ficha-lista a { overflow-wrap: anywhere; }

/* Compartir */
.x-share { max-width: 41rem; margin: 2.8rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem 1.5rem; }
.x-share-text { display: flex; align-items: center; gap: .9rem; }
.x-share-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.x-share-links .link-button { font-size: 1rem; text-decoration: underline; }
.estudio { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
.estudio-vista { position: sticky; top: calc(var(--head) + 1rem); margin: 0; display: flex; justify-content: center; }
.estudio-vista img { max-width: 100%; max-height: calc(100vh - var(--head) - 2.5rem); width: auto; box-shadow: 0 16px 40px rgba(29, 25, 38, .24); transition: opacity .2s; }
.estudio-vista img.is-loading { opacity: .45; }
.estudio-panel { display: grid; gap: 1.5rem; min-width: 0; }
.estudio-panel fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.estudio-panel legend { font-weight: 800; font-size: 1.1rem; padding: 0; margin-bottom: .55rem; }
.estudio-opciones { display: grid; gap: .45rem; }
.estudio-op input, .estudio-marco input, .estudio-frag input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.estudio-op span { display: grid; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.estudio-op small { color: var(--muted); }
.estudio-op input:checked + span, .estudio-frag input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.estudio-op input:focus-visible + span, .estudio-marco input:focus-visible + span, .estudio-frag input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.estudio-marcos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.estudio-marco span { display: grid; justify-items: center; gap: .25rem; font-size: .86rem; cursor: pointer; }
.estudio-marco i { display: block; width: 100%; height: 44px; background: var(--t-bg); border: 1px solid var(--line); }
.estudio-marco input:checked + span i { outline: 2px solid var(--accent); outline-offset: 2px; }
.estudio-fragmentos { display: grid; gap: .4rem; max-height: 330px; overflow-y: auto; padding: 2px; }
.estudio-frag span { display: block; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-family: var(--serif); font-style: italic; line-height: 1.3; }
.estudio-acciones { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Componentes anteriores con la nueva identidad */
.content-card, .index-group, .strip-grid article, .timeline article, .toc, .mini-index, .infobox, .cafe-card, .event-card, .reading-playlist-list li, .gift-composer-preview, .gift-link-panel, .empty-state { background: var(--surface); border-color: var(--line); border-radius: 14px; box-shadow: none; }
.wiki-aside .toc, .wiki-aside .mini-index { position: static; }
.wiki-content { font-family: var(--serif); font-size: 1.24rem; line-height: 1.6; }
.wiki-content h2, .wiki-content h3 { font-family: var(--sans); }
.wiki-content a { text-underline-offset: 3px; }
.cafe-card { border-radius: 14px; }
.cafe-card blockquote { font-family: var(--serif); font-size: 1.14rem; border-left-color: var(--accent); }
.cafe-cover, .cafe-cover.placeholder, .event-card-media, .event-card-date, .cafe-detail-cover { background: var(--tinted); }
.text-author-line { color: var(--accent); }
.timeline h2 { margin: .25rem 0; }
.timeline h2 a, .content-card h2 a, .page-list a { text-decoration: none; }
.infinite-pagination, .pagination { border-top: 0; }
.pagination-links a, .pagination-links span { background: var(--surface); border-radius: 10px; }
.flash { border-radius: 10px; background: var(--surface); }
.no-hallada { display: grid; justify-items: center; text-align: center; gap: 1rem; padding-block: 3rem; }
.no-hallada-rueda { width: 170px; }
.no-hallada h1 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 18em; }
.no-hallada p { margin: 0; color: var(--muted); }
.no-hallada .search-large { width: min(100%, 32rem); }

@media (max-width: 1160px) {
  .x-search input { width: 8rem; }
  .x-nav { gap: .95rem; }
}
@media (max-width: 1020px) {
  .x-nav, .x-search { display: none; }
  .x-menu-in, .x-foot-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .estudio { grid-template-columns: minmax(0, 1fr); }
  .estudio-vista { position: static; }
  .estudio-vista img { max-height: 70vh; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .x-menu-in, .x-foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cabeza-accion, .manifiesto { grid-template-columns: minmax(0, 1fr); }
  .portadas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .85rem; }
  .fila { grid-auto-columns: 62%; }
  .portada-verso { font-size: .96rem; -webkit-line-clamp: 5; }
  .perfil, .ficha { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .perfil-foto { width: min(62vw, 240px); }
  .ficha-portada { width: min(66vw, 260px); }
  .lectura-voz { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .regalo-in { justify-items: start; text-align: left; }
  .regalo-rueda { left: auto; right: -160px; }
  .hoy-rueda { width: 118vw; right: -58vw; opacity: .72; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .x-head, .x-foot, .x-crumbs, .x-share, .lectura-acciones { display: none; }
}
