/* ==========================================================================
   Eco — cienciaficcion.es
   Sala de control: azul noche, fósforo ámbar de las pantallas de radar antiguas,
   Unbounded para los titulares y Literata para leer.
   ========================================================================== */

@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/unbounded-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/unbounded-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/literata-latin-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/literata-latin-ext-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(../fonts/literata-latin-opsz-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(../fonts/literata-latin-ext-opsz-italic.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --noche: #0d1726;
  --casco: #12203a;
  --panel: #172943;
  --linea: #2a3d5c;
  --texto: #ece6d7;
  --tenue: #9ca8ba;
  --fosforo: #f4b840;
  --cumplida: #7fd1c7;
  --plausible: #f4b840;
  --imposible: #ef8f9d;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Literata", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(4rem, 3rem + 4vw, 7.5rem);
  --radius: 10px;
  color-scheme: dark;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--noche); color: var(--texto);
  font-family: var(--text); font-size: 1.15rem; line-height: 1.65;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--fosforo) 55%, transparent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--fosforo); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--fosforo); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--fosforo); color: var(--noche); }
.muted { color: var(--tenue); }
.shell { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.shell--text { max-width: calc(42rem + 2 * var(--gutter)); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; z-index: 100; background: var(--fosforo); color: var(--noche); padding: .6em 1em; }
.skip:focus { left: 1rem; top: 1rem; }
.site-main { min-height: 60vh; }

.btn { display: inline-flex; align-items: center; padding: .75em 1.35em; border: 1px solid var(--linea); border-radius: 999px; font-family: var(--display); font-size: .85rem; font-weight: 500; text-decoration: none; letter-spacing: 0; background: transparent; cursor: pointer; transition: border-color .2s, background .2s; }
.btn:hover { border-color: var(--fosforo); color: var(--texto); }
.btn--glow { background: var(--fosforo); color: var(--noche); border-color: var(--fosforo); }
.btn--glow:hover { color: var(--noche); background: #ffcb5c; }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--fosforo); text-decoration: underline; text-underline-offset: .2em; font-size: 1rem; }
.chip { display: inline-block; font-family: var(--display); font-size: .74rem; font-weight: 500; padding: .35em .85em; border: 1px solid var(--linea); border-radius: 999px; text-decoration: none; margin: 0 .3rem .4rem 0; }
.chip:hover { border-color: var(--fosforo); }

/* ── Cabecera ── */
.bridge { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--noche) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.bridge__inner { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--texto); }
.brand:hover { color: var(--texto); }
.brand__mark { color: var(--fosforo); flex: none; }
.brand__beam { transform-origin: 16px 16px; animation: brand-sweep 6s linear infinite; }
.brand__blip { fill: var(--fosforo); }
@keyframes brand-sweep { to { transform: rotate(360deg); } }
.brand__name { font-family: var(--display); font-size: 1.12rem; font-weight: 700; letter-spacing: -0.03em; }
.brand__name span { font-weight: 300; }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.nav__list a { font-family: var(--display); font-size: .82rem; font-weight: 500; text-decoration: none; padding: .4rem 0; }
.nav__list .current-menu-item > a, .nav__list a[aria-current] { color: var(--fosforo); }
.bridge__tools { display: flex; gap: .2rem; }
.iconbtn { background: none; border: 0; padding: .55rem; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.iconbtn:hover { color: var(--fosforo); }
.nav-toggle { display: none; }
.searchbar { border-top: 1px solid var(--linea); }
.searchbar__form { display: flex; gap: 1rem; padding-block: 1rem; }
.searchbar input, .bigsearch input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--tenue); padding: .3em 0; font-size: 1.6rem; font-family: var(--text); }
.searchbar input:focus, .bigsearch input:focus { outline: none; border-bottom-color: var(--fosforo); }
.searchbar button, .bigsearch button { background: none; border: 0; color: var(--fosforo); cursor: pointer; font-family: var(--display); font-size: .9rem; }
.bigsearch { display: flex; gap: 1rem; align-items: end; margin-top: 2rem; max-width: 44rem; }
@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .bridge__tools { margin-left: auto; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--noche); border-bottom: 1px solid var(--linea); display: none; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.2rem; }
  .nav__list a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--linea); font-size: 1rem; }
}

/* ── Portada ── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) var(--gap); }
.hero__title { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.hero__lead { font-size: 1.3rem; line-height: 1.55; margin: 1.6rem 0 0; max-width: 32rem; color: var(--tenue); }
.legend { margin: 2rem 0 0; display: grid; gap: .45rem; max-width: 30rem; }
.legend > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-bottom: .45rem; border-bottom: 1px solid var(--linea); font-size: 1rem; }
.legend dt { font-family: var(--display); font-size: .78rem; font-weight: 500; color: var(--fosforo); padding-top: .15rem; }
.legend dd { margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero__scope { order: -1; } }

/* ── Radar ── */
.radar { margin: 0; position: relative; }
.radar--grande { max-width: 680px; margin-inline: auto; }
.radar__scope { width: 100%; overflow: visible; }
.radar__face { fill: #0f1e34; stroke: none; }
.radar__ring { fill: none; stroke: var(--fosforo); stroke-opacity: .17; stroke-width: .4; }
.radar__edge { fill: none; stroke: var(--fosforo); stroke-opacity: .55; stroke-width: .7; }
.radar__spoke { stroke: var(--fosforo); stroke-opacity: .13; stroke-width: .4; stroke-dasharray: 1.5 2; }
.radar__ticks line { stroke: var(--fosforo); stroke-opacity: .5; stroke-width: .5; }
.radar__ringlabel { font-family: var(--text); font-size: 4.6px; fill: var(--tenue); }
.radar__sector text { font-family: var(--display); font-size: 6px; font-weight: 500; fill: var(--texto); opacity: .78; transition: fill .2s, opacity .2s; }
.radar__sector:hover text, .radar__sector:focus text { fill: var(--fosforo); opacity: 1; }
.radar__beam { stroke: var(--fosforo); stroke-width: .8; stroke-opacity: .9; }
.radar__center { fill: var(--fosforo); }
.blip { cursor: pointer; outline: none; }
.blip__hit { fill: transparent; }
.blip__dot { fill: var(--fosforo); filter: drop-shadow(0 0 2px var(--fosforo)); transition: r .15s; }
.blip.is-active .blip__dot, .blip:focus-visible .blip__dot { opacity: 1 !important; r: 4px; fill: #fff3d1; }
.blip:focus-visible .blip__hit { stroke: var(--fosforo); stroke-width: .6; }
.radar.is-static .radar__sweep { display: none; }
.radar.is-static .blip__dot { opacity: 1; }
.radar.is-reading .blip:not(.is-active) .blip__dot { opacity: .25 !important; }
.radar__readout { display: grid; gap: .1rem; margin-top: 1rem; text-align: center; min-height: 3.4rem; }
.radar__readout-title { font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--fosforo); }
.radar__readout-meta { color: var(--tenue); font-size: 1rem; }
.radar--mini { max-width: 260px; margin-inline: auto; }

/* ── Consola (widgets de portada) ── */
.console { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; padding-bottom: var(--gap); align-items: start; }
.widget { background: var(--casco); border: 1px solid var(--linea); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.6rem; }
.widget__title { display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 600; margin-bottom: 1.2rem; }
.widget__title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fosforo); box-shadow: 0 0 8px var(--fosforo); flex: none; }
.widget__more { margin: 1rem 0 0; text-align: center; font-size: 1rem; }
.widget ul { padding-left: 1.1em; }

/* ── Tarjetas ── */
.deck { padding-bottom: var(--gap); }
.deck__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.deck__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
.deck > .deck__title { margin-bottom: 2rem; }
.deck__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; }
.deck__grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .deck__grid, .deck__grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .deck__grid, .deck__grid--three { grid-template-columns: 1fr; } }

.card { min-width: 0; }
.card__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img { transform: scale(1.03); }
.card__signal { display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 1.2rem 1.3rem; color: var(--texto);
  background:
    radial-gradient(circle at 78% 30%, hsl(var(--h) 70% 62% / .55) 0 2px, transparent 3px),
    repeating-radial-gradient(circle at 78% 30%, hsl(var(--h) 60% 60% / .16) 0 1px, transparent 1px 26px),
    conic-gradient(from var(--a) at 78% 30%, hsl(var(--h) 60% 55% / .22), transparent 25%),
    linear-gradient(160deg, hsl(var(--h) 45% 20%), var(--casco)); }
.card__signal span { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.15; letter-spacing: -0.02em; max-width: 14ch; }
.card__body { padding-top: 1.1rem; }
.card__kicker { margin: 0 0 .5rem; font-family: var(--display); font-size: .74rem; font-weight: 500; }
.card__kicker a { color: var(--fosforo); text-decoration: none; }
.card__title { font-size: 1.15rem; font-weight: 600; line-height: 1.22; }
.card__title a { text-decoration: none; }
.card__excerpt { color: var(--tenue); font-size: 1.02rem; margin: .7rem 0 0; }
.card__book { font-size: .95rem; margin: .6rem 0 0; font-style: italic; }
.card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.card--feature .card__media { aspect-ratio: 16 / 9; }
.card--feature .card__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.08; }
.card--feature .card__excerpt { font-size: 1.2rem; }
.card--feature .card__signal span { font-size: clamp(1.6rem, 1rem + 2vw, 2.8rem); }
.card--compact { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.card--compact .card__body { padding-top: 0; }
.card--compact .card__signal span { font-size: .8rem; }
@media (max-width: 760px) { .card--feature { grid-template-columns: 1fr; gap: 1rem; } }

/* ── Sagas y laboratorio en portada ── */
.sagas { padding-bottom: var(--gap); }
.sagas__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .75rem; }
.sagas__list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.2rem 1.3rem; border: 1px solid var(--linea); border-radius: var(--radius); text-decoration: none; height: 100%; }
.sagas__list a:hover { border-color: var(--fosforo); color: var(--texto); }
.sagas__list a:hover { background: var(--casco); }
.sagas__name { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.sagas__count { color: var(--tenue); font-size: .95rem; white-space: nowrap; }
.lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem 4rem; padding-bottom: var(--gap); }
.lab__list { display: grid; gap: 2rem; }
@media (max-width: 860px) { .lab { grid-template-columns: 1fr; } }

/* ── Cabecera de archivo ── */
.pagehead { padding-block: clamp(3rem, 2rem + 4vw, 6rem) 3rem; }
.pagehead__title { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.035em; }
.pagehead__lead { color: var(--tenue); font-size: 1.25rem; max-width: 40rem; margin-top: 1.2rem; }
.pagehead__lead p { margin: 0; }
.saga-page { max-width: 44rem; padding-bottom: var(--gap); }

.pagination { margin-block: 4rem var(--gap); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-family: var(--display); font-size: .9rem; }
.pagination .page-numbers { text-decoration: none; }
.pagination .current { color: var(--fosforo); }

/* ── Entrada ── */
.entry__head { padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) 2.5rem; }
.entry__head > * { max-width: 62rem; }
.entry__kicker { font-family: var(--display); font-size: .82rem; font-weight: 500; margin-bottom: 1.2rem; }
.entry__kicker a { color: var(--fosforo); text-decoration: none; }
.entry__title { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.entry__lead { font-size: 1.35rem; line-height: 1.5; color: var(--tenue); margin: 1.6rem 0 0; max-width: 46rem; }
.entry__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: center; margin-top: 1.8rem; color: var(--tenue); font-size: 1rem; }
.entry__meta p { margin: 0; }
.entry__chips { margin-left: auto; }
.entry__image { margin-block: 0 3.5rem; }
.entry__image img { width: 100%; border-radius: var(--radius); max-height: 76vh; object-fit: cover; }

.manifest { margin-top: 2.2rem; border: 1px solid var(--linea); border-radius: var(--radius); padding: 1.3rem 1.5rem; background: var(--casco); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem 2.5rem; align-items: center; }
.manifest__data { margin: 0; display: grid; gap: .35rem; }
.manifest__data > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; }
.manifest__data dt { font-family: var(--display); font-size: .76rem; font-weight: 500; color: var(--fosforo); padding-top: .2rem; }
.manifest__data dd { margin: 0; }
.manifest__light { margin: 0; color: var(--tenue); font-size: 1.02rem; border-left: 1px solid var(--linea); padding-left: 1.5rem; }
.manifest__light strong { color: var(--texto); font-weight: 600; }
@media (max-width: 760px) { .manifest { grid-template-columns: 1fr; } .manifest__light { border-left: 0; padding-left: 0; } }

.entry__layout { display: grid; grid-template-columns: minmax(0, 42rem) minmax(0, 20rem); justify-content: space-between; gap: 3rem 4rem; padding-bottom: var(--gap); }
.entry__side { display: grid; gap: 1.25rem; align-content: start; position: sticky; top: 96px; }
@media (max-width: 1040px) { .entry__layout { grid-template-columns: minmax(0, 1fr); } .entry__side { position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); } }

.sagnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: var(--gap); }
.sagnav a { display: block; padding: 1.3rem 1.5rem; border: 1px solid var(--linea); border-radius: var(--radius); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.sagnav a:hover { border-color: var(--fosforo); color: var(--texto); }
.sagnav span { display: block; font-family: var(--text); font-weight: 400; font-size: .95rem; color: var(--tenue); margin-bottom: .3rem; }
.sagnav__next { grid-column: 2; text-align: right; }

/* ── Texto ── */
.prose { font-size: 1.18rem; line-height: 1.72; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.6rem; margin-top: 2.3em; }
.prose h3 { font-size: 1.22rem; font-weight: 600; margin-top: 2em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--fosforo); }
.prose blockquote { margin-inline: 0; padding-left: 1.3em; border-left: 2px solid var(--fosforo); font-style: italic; }
.prose figcaption { color: var(--tenue); font-size: .95rem; margin-top: .6em; }
.prose img { border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.prose th, .prose td { text-align: left; padding: .6em .8em .6em 0; border-bottom: 1px solid var(--linea); vertical-align: top; }
.prose th { font-family: var(--display); font-size: .82rem; font-weight: 600; color: var(--fosforo); }
.prose hr { border: 0; border-top: 1px solid var(--linea); margin-block: 2.5em; }
.prose code { background: var(--panel); padding: .1em .35em; border-radius: 4px; font-size: .9em; }

/* Recuadro «¿Ciencia o ficción?» */
.cof-box { margin-block: 2.5em !important; padding: 1.6rem 1.7rem 1.8rem; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--cumplida) 10%, var(--casco)), var(--casco) 60%); border: 1px solid color-mix(in srgb, var(--cumplida) 35%, var(--linea)); }
.cof-box > * + * { margin-top: .9em; }
.cof-box h2, .cof-box h3 { margin-top: 0 !important; display: flex; align-items: center; gap: .7rem; font-size: 1.3rem; color: var(--cumplida); }
.cof-box h2::before, .cof-box h3::before { content: ""; width: 26px; height: 26px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M9 3h6M10 3v6l-5.5 9.5A1.7 1.7 0 0 0 6 21h12a1.7 1.7 0 0 0 1.5-2.5L14 9V3'/%3E%3Cpath d='M7.5 15h9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M9 3h6M10 3v6l-5.5 9.5A1.7 1.7 0 0 0 6 21h12a1.7 1.7 0 0 0 1.5-2.5L14 9V3'/%3E%3Cpath d='M7.5 15h9'/%3E%3C/svg%3E") center / contain no-repeat; }
.cof-box h3 { font-size: 1.05rem; color: var(--texto); }
.cof-box h3::before { width: 0; }

/* Spoilers plegados */
.spoiler { margin-block: 2.3em !important; border: 1px dashed color-mix(in srgb, var(--imposible) 60%, transparent); border-radius: var(--radius); padding: 0 1.4rem; }
.spoiler summary { cursor: pointer; list-style: none; padding: 1.2rem 0; display: grid; gap: .3rem; }
.spoiler summary::-webkit-details-marker { display: none; }
.spoiler summary h2, .spoiler summary h3 { margin: 0 !important; font-size: 1.25rem; }
.spoiler__label { color: var(--imposible); font-size: .98rem; }
.spoiler__label::before { content: "+ "; font-family: var(--display); }
.spoiler[open] .spoiler__label::before { content: "– "; }
.spoiler[open] { padding-bottom: 1.4rem; }
.spoiler > :not(summary) + :not(summary) { margin-top: 1em; }

/* Orden de lectura (secuencia) */
.reading-order { margin-block: 2.3em !important; }
.reading-order > * + * { margin-top: 1em; }
.reading-order ol { list-style: none; padding: 0; counter-reset: ro; border-top: 1px solid var(--linea); }
.reading-order ol > li { counter-increment: ro; display: grid; grid-template-columns: 3.2rem 1fr; padding: .9rem 0; border-bottom: 1px solid var(--linea); margin: 0; }
.reading-order ol > li::before { content: counter(ro, decimal-leading-zero); font-family: var(--display); font-weight: 300; font-size: 1.35rem; color: var(--fosforo); line-height: 1.2; }

/* Fuentes y FAQ que añade AI Content Generator Pro */
.prose .aicgp-sources { font-size: 1rem; color: var(--tenue); }
.prose .aicgp-sources a { color: var(--texto); }
.crosslink { margin-top: 2.5em !important; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--casco); border: 1px solid var(--linea); }
.crosslink p { margin: 0; }

/* ── Widgets: ¿Ciencia o ficción? ── */
.cof__deck { list-style: none; margin: 0; padding: 0; }
.cof__claim { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.015em; margin-bottom: .6rem; }
.cof__origin { color: var(--tenue); font-size: .95rem; font-style: italic; }
.cof__options { display: grid; gap: .5rem; margin-top: 1rem; }
.cof__opt { text-align: left; background: transparent; border: 1px solid var(--linea); border-radius: 8px; padding: .65rem .9rem; cursor: pointer; font-size: 1rem; transition: border-color .2s, background .2s; }
.cof__opt:hover:not(:disabled) { border-color: var(--fosforo); }
.cof__opt:disabled { cursor: default; opacity: .55; }
.cof__opt.is-right { opacity: 1; border-color: var(--cumplida); background: color-mix(in srgb, var(--cumplida) 14%, transparent); }
.cof__opt.is-wrong { opacity: 1; border-color: var(--imposible); background: color-mix(in srgb, var(--imposible) 12%, transparent); }
.cof__answer { margin-top: 1.1rem; }
.cof__verdict { font-family: var(--display); font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.cof__verdict--cumplida { color: var(--cumplida); }
.cof__verdict--plausible { color: var(--plausible); }
.cof__verdict--imposible { color: var(--imposible); }
.cof__why { font-size: 1rem; color: var(--texto); margin: 0; }
.cof__next { margin-top: 1.2rem; }

/* ── Widget: Hoy en la ciencia ficción ── */
.hoy__when { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.hoy__big { font-family: var(--display); font-weight: 700; font-size: 2rem; letter-spacing: -0.03em; color: var(--fosforo); line-height: 1; }
.hoy__date { color: var(--tenue); font-size: 1rem; }
.hoy__text { font-size: 1.05rem; }
.hoy__ago { color: var(--tenue); font-size: .95rem; margin: 0; }

/* ── Widget: Orden de lectura ── */
.saga__name { font-family: var(--display); font-weight: 600; font-size: 1rem; margin-bottom: .8rem; }
.saga__name a { text-decoration: none; }
.saga__list { list-style: none; margin: 0; padding: 0; counter-reset: saga; }
.saga__item { counter-increment: saga; display: grid; grid-template-columns: auto 1.8rem 1fr auto; gap: .6rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--linea); }
.saga__item::before { content: counter(saga); grid-column: 2; grid-row: 1; font-family: var(--display); font-size: .82rem; color: var(--fosforo); }
.saga__check { grid-column: 1; grid-row: 1; }
.saga__check input { accent-color: var(--fosforo); width: 1.05rem; height: 1.05rem; cursor: pointer; vertical-align: -2px; }
.saga__item a { grid-column: 3; text-decoration: none; font-size: 1.02rem; line-height: 1.3; }
.saga__item a:hover { text-decoration: underline; }
.saga__item.is-current a { color: var(--fosforo); }
.saga__item.is-read a { color: var(--tenue); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--tenue) 60%, transparent); }
.saga__year { grid-column: 4; color: var(--tenue); font-size: .9rem; }
.saga__progress { margin: .8rem 0 0; color: var(--tenue); font-size: .95rem; min-height: 1.4em; }

/* ── Widget: test de subgénero ── */
.quiz__q { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; min-width: 0; }
.quiz__text { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; margin-bottom: .6rem; padding: 0; }
.quiz__n { display: block; font-family: var(--text); font-weight: 400; font-size: .9rem; color: var(--tenue); margin-bottom: .4rem; }
.quiz__a { text-align: left; background: transparent; border: 1px solid var(--linea); border-radius: 8px; padding: .65rem .9rem; cursor: pointer; font-size: 1rem; }
.quiz__a:hover { border-color: var(--fosforo); }
.quiz__verdict { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--fosforo); line-height: 1.2; }
.quiz__result p { font-size: 1.02rem; }
.quiz__again { display: block; margin-top: .8rem; }

/* ── Widget: salto al hiperespacio ── */
.salto { text-align: center; }
.salto__text { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.salto__btn { position: relative; overflow: hidden; width: 100%; padding: 1rem 1.2rem; border-radius: 999px; border: 1px solid var(--fosforo); background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--fosforo) 45%, transparent), transparent 70%); color: var(--texto); font-family: var(--display); font-weight: 600; font-size: .92rem; cursor: pointer; }
.salto__btn:hover { background-color: color-mix(in srgb, var(--fosforo) 18%, transparent); }
.salto__hint { color: var(--tenue); font-size: .92rem; margin: .7rem 0 0; }
.warp { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .2s; }
.warp.is-on { opacity: 1; pointer-events: auto; }
.warp canvas { width: 100%; height: 100%; display: block; background: var(--noche); }

/* ── Widget: desde el puente ── */
.puente__icon { color: var(--fosforo); margin-bottom: 1rem; }
.puente__name { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin-bottom: .6rem; }
.puente__bio { color: var(--tenue); font-size: 1.02rem; }
.puente__bio p { margin-bottom: .6em; }

/* ── 404 ── */
.lost { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 3rem; align-items: center; padding-block: clamp(3rem, 2rem + 5vw, 7rem) var(--gap); }
.lost .salto { max-width: 22rem; margin-top: 2.5rem; text-align: left; }
@media (max-width: 760px) { .lost { grid-template-columns: 1fr; } }

/* ── Comentarios ── */
.comments { border-top: 1px solid var(--linea); padding-block: 3rem var(--gap); }
.comments__title { font-size: 1.4rem; margin-bottom: 1.5rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; background: var(--casco); border: 1px solid var(--linea); border-radius: 8px; padding: .65em .8em; }
.comment-form .submit { background: var(--fosforo); color: var(--noche); border: 0; border-radius: 999px; padding: .75em 1.4em; font-family: var(--display); font-weight: 600; font-size: .85rem; cursor: pointer; }

/* ── Pie ── */
.hull { border-top: 1px solid var(--linea); padding-block: 3.5rem 2.5rem; background: linear-gradient(var(--noche), #0a1220); }
.hull__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; margin-bottom: 3rem; align-items: start; }
.hull__base { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.hull__list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding: 0; font-size: 1rem; }
.hull__list a { text-decoration: none; }
.hull__small { color: var(--tenue); font-size: .95rem; margin: 0; }
.brand--small .brand__name { font-size: .95rem; }

/* ── Bloques ── */
.alignwide { max-width: 1100px; }
.wp-block-image img { height: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .bridge, .hull, .entry__side, .console, .warp { display: none !important; }
  body { background: #fff; color: #000; }
}
