/*
Theme Name: dds_wrighton.com.ar
Theme URI: https://wrighton.com.ar/
Author: Santiago Ferrer
Description: Tema oscuro con estética CRT y pixel art para un medio independiente de videojuegos y cultura gamer.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wrgt
*/

:root {
    --bg: #0B0E14;
    --bg-blue: #101A2E;
    --bg-violet: #1A1030;
    --bg-head: #0B0E14;
    --bg-foot: #07090F;
    --panel: #121A2A;
    --panel-2: #0F1522;
    --grid: #1C2230;
    --line: #26314A;
    --text: #E8F1FF;
    --muted: #7C8AA5;
    --cyan: #00E5FF;
    --pink: #FF2E88;
    --lime: #C6FF00;
    --ink: #07090F;
    --torn: #C9D3E6;
    --f-pixel: "Press Start 2P", "Courier New", monospace;
    --f-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --f-crt: "VT323", "IBM Plex Mono", Consolas, monospace;
    --step: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 4px 4px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(0deg, transparent 0 23px, var(--grid) 23px 24px);
    color: var(--text);
    font-family: var(--f-mono);
    font-size: 15px;
    line-height: 1.7;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 90;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px);
}
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 1.4em 0 .6em; line-height: 1.35; color: var(--text); }
p, li, h1, h2, h3, h4, dd, dt, td, th, .card-title, .brand-desc {
    overflow-wrap: break-word;
    hyphens: auto;
}
a {
    color: var(--cyan);
    text-decoration: none;
    background-image: radial-gradient(circle, currentColor 1px, transparent 1.4px);
    background-size: 5px 3px;
    background-repeat: repeat-x;
    background-position: 0 100%;
    padding-bottom: 3px;
}
a:hover { color: var(--lime); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px dashed var(--lime);
    outline-offset: 3px;
}
::selection { background: var(--pink); color: #fff; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip {
    position: absolute;
    left: 1rem; top: -60px;
    z-index: 100;
    background: var(--lime);
    color: var(--ink);
    padding: .6rem 1rem;
    background-image: none;
}
.skip:focus { top: 1rem; }

.shell {
    width: min(92%, 1240px);
    margin-inline: auto;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-block;
    font-family: var(--f-pixel);
    font-size: .68rem;
    line-height: 1.5;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    padding: .85rem 1.25rem;
    border: 0;
    cursor: pointer;
    clip-path: var(--step);
    background-image: none;
    transition: transform .12s steps(2), background-color .12s steps(2);
}
.btn--pink { background-color: var(--pink); color: #fff; }
.btn--lime { background-color: var(--lime); color: var(--ink); }
.btn--pink:hover { background-color: var(--cyan); color: var(--ink); transform: translate(-2px, -2px); }
.btn--lime:hover { background-color: #fff; color: var(--ink); transform: translate(-2px, -2px); }
.btn--sm { font-size: .58rem; padding: .65rem .9rem; }

/* ---------- Cabecera ---------- */
.masthead { background-color: var(--bg-head); position: relative; }
.pixel-strip {
    height: 8px;
    background:
        repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 24px),
        repeating-linear-gradient(90deg, transparent 0 8px, var(--pink) 8px 16px, transparent 16px 24px),
        repeating-linear-gradient(90deg, transparent 0 16px, var(--lime) 16px 24px);
}
.topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 0 .5rem;
}
.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: transparent;
    border: 2px solid var(--line);
    color: var(--text);
    font-family: var(--f-pixel);
    font-size: .6rem;
    text-transform: uppercase;
    padding: .6rem .8rem;
    cursor: pointer;
}
.nav-toggle-bars {
    width: 16px; height: 12px;
    background: linear-gradient(var(--cyan) 0 2px, transparent 2px 5px, var(--pink) 5px 7px, transparent 7px 10px, var(--lime) 10px 12px);
}
.mainnav { display: none; width: 100%; }
.mainnav.is-open { display: block; }
.topbar { flex-wrap: wrap; }
.mainnav-list {
    list-style: none;
    margin: .8rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.mainnav-list a {
    display: block;
    color: var(--muted);
    font-family: var(--f-mono);
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .45rem 0;
    background-image: none;
}
.mainnav-list a:hover { color: var(--text); }
.mainnav-list .current-menu-item > a,
.mainnav-list .current_page_item > a { color: var(--cyan); box-shadow: inset 0 -2px 0 var(--cyan); }

.brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 0 2.4rem;
}
.brand-mark { flex: 0 0 auto; background-image: none; padding: 0; line-height: 0; }
.brand-logo {
    width: 72px;
    height: 72px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, .55)) drop-shadow(0 0 10px rgba(255, 46, 136, .3));
}
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--f-pixel);
    font-size: .78rem;
    line-height: 1.75;
    color: var(--cyan);
    text-shadow: 2px 2px 0 var(--pink), 0 0 12px rgba(0, 229, 255, .5);
    background-image: none;
    padding: 0;
}
.brand-name:hover { color: var(--lime); }
.brand-desc {
    margin: .7rem 0 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.55;
    max-width: 78ch;
}

/* ---------- Bordes rasgados ---------- */
.torn {
    height: 18px;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpolygon points='0,9 10,9 10,7 22,7 22,10 30,10 30,8 44,8 44,11 52,11 52,8 64,8 64,6 70,6 70,9 84,9 84,7 96,7 96,10 108,10 108,8 120,8 120,18 0,18' fill='%23101A2E'/%3E%3Cpolyline points='0,9 10,9 10,7 22,7 22,10 30,10 30,8 44,8 44,11 52,11 52,8 64,8 64,6 70,6 70,9 84,9 84,7 96,7 96,10 108,10 108,8 120,8' fill='none' stroke='%23C9D3E6' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 240px 18px;
    background-repeat: repeat-x;
}
.torn--to-violet {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpolygon points='0,9 10,9 10,7 22,7 22,10 30,10 30,8 44,8 44,11 52,11 52,8 64,8 64,6 70,6 70,9 84,9 84,7 96,7 96,10 108,10 108,8 120,8 120,18 0,18' fill='%231A1030'/%3E%3Cpolyline points='0,9 10,9 10,7 22,7 22,10 30,10 30,8 44,8 44,11 52,11 52,8 64,8 64,6 70,6 70,9 84,9 84,7 96,7 96,10 108,10 108,8 120,8' fill='none' stroke='%23C9D3E6' stroke-width='2'/%3E%3C/svg%3E");
}
.torn--from-violet {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpolygon points='0,9 10,9 10,11 22,11 22,8 30,8 30,10 44,10 44,7 52,7 52,10 64,10 64,12 70,12 70,9 84,9 84,11 96,11 96,8 108,8 108,10 120,10 120,0 0,0' fill='%231A1030'/%3E%3Cpolyline points='0,9 10,9 10,11 22,11 22,8 30,8 30,10 44,10 44,7 52,7 52,10 64,10 64,12 70,12 70,9 84,9 84,11 96,11 96,8 108,8 108,10 120,10' fill='none' stroke='%23C9D3E6' stroke-width='2'/%3E%3C/svg%3E");
}
.torn--foot {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpolygon points='0,9 10,9 10,7 22,7 22,10 30,10 30,8 44,8 44,11 52,11 52,8 64,8 64,6 70,6 70,9 84,9 84,7 96,7 96,10 108,10 108,8 120,8 120,18 0,18' fill='%2307090F'/%3E%3Cpolyline points='0,9 10,9 10,7 22,7 22,10 30,10 30,8 44,8 44,11 52,11 52,8 64,8 64,6 70,6 70,9 84,9 84,7 96,7 96,10 108,10 108,8 120,8' fill='none' stroke='%23C9D3E6' stroke-width='2'/%3E%3C/svg%3E");
}
body:not(.home) .torn:not(.torn--foot) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpolyline points='0,9 10,9 10,7 22,7 22,10 30,10 30,8 44,8 44,11 52,11 52,8 64,8 64,6 70,6 70,9 84,9 84,7 96,7 96,10 108,10 108,8 120,8' fill='none' stroke='%23C9D3E6' stroke-width='2'/%3E%3C/svg%3E"); background-color: transparent; }

/* ---------- Secciones de portada ---------- */
.band { padding: 3rem 0; }
.band--blue {
    background-color: var(--bg-blue);
    background-image: repeating-linear-gradient(0deg, transparent 0 23px, rgba(38, 49, 74, .45) 23px 24px);
}
.band--violet {
    background-color: var(--bg-violet);
    background-image: repeating-linear-gradient(0deg, transparent 0 23px, rgba(255, 46, 136, .07) 23px 24px);
}
.band--base { background-color: transparent; }
.band--notes { padding-top: 1rem; }
.front-inner { width: 100%; }

.sec-title {
    font-family: var(--f-pixel);
    font-size: clamp(1rem, 3.2vw, 1.55rem);
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 1.2rem;
    padding-bottom: 1rem;
    position: relative;
}
.sec-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: min(100%, 220px);
    height: 6px;
    background: repeating-linear-gradient(90deg, var(--lime) 0 6px, transparent 6px 12px);
}
.sec-title--center { text-align: center; }
.sec-title--center::after { left: 50%; transform: translateX(-50%); }
.sec-title--pink { color: var(--pink); text-shadow: 0 0 10px rgba(255, 46, 136, .45); }
.sec-lead { color: var(--muted); max-width: 62ch; margin-bottom: 1.8rem; }
.sec-lead--center { margin-inline: auto; text-align: center; }

/* Escena local */
.scene-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    background-color: rgba(18, 26, 42, .85);
    border: 2px solid var(--line);
    box-shadow: inset 0 0 0 4px var(--bg-blue), inset 0 0 0 6px rgba(0, 229, 255, .12);
    padding: 1.6rem 1.4rem;
}
.scene-map { margin: 0; justify-self: center; max-width: 280px; width: 100%; }
.scene-map img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 945; image-rendering: pixelated; }
.scene-text { min-width: 0; align-self: center; }
.scene-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.scene-item {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    column-gap: .9rem;
    padding: .9rem 1rem;
    background-color: var(--panel-2);
    border: 1px solid var(--line);
}
.scene-item::before {
    content: "";
    grid-row: 1 / span 2;
    width: 10px; height: 10px;
    margin-top: .55rem;
    background: var(--pink);
    box-shadow: 0 0 8px var(--pink);
}
.scene-city { font-family: var(--f-crt); font-size: 1.7rem; line-height: 1.1; color: var(--cyan); }
.scene-fact { color: var(--text); font-size: .88rem; line-height: 1.55; }

/* Reseñas: cartuchos */
.carts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
}
.cart { min-width: 0; text-align: left; }
.cart--cyan { --tone: var(--cyan); }
.cart--pink { --tone: var(--pink); }
.cart--lime { --tone: var(--lime); }
.cart-visual { display: flex; align-items: flex-end; gap: .8rem; }
.cart-meter { display: flex; flex-direction: column; gap: 3px; flex: 0 0 12px; padding-bottom: 6%; }
.cart-meter span { display: block; width: 12px; height: 9px; background: var(--tone); }
.cart-meter span.on { box-shadow: 0 0 6px var(--tone); }
.cart-meter span.off { opacity: .2; }
.cart-shell { margin: 0; position: relative; flex: 1 1 auto; min-width: 0; max-width: 300px; }
.cart-shell img { display: block; width: 100%; height: auto; aspect-ratio: 612 / 534; image-rendering: pixelated; }
.cart-label-title {
    position: absolute;
    left: 40%; width: 46%;
    top: 4.5%; height: 18%;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    font-family: var(--f-pixel);
    font-size: clamp(.38rem, 1.4vw, .52rem);
    line-height: 1.45;
    color: #FFD54A;
    text-shadow: 1px 1px 0 #3A1A00, -1px -1px 0 #3A1A00, 1px -1px 0 #3A1A00, -1px 1px 0 #3A1A00;
    text-transform: uppercase;
}
.cart-label-genre {
    position: absolute;
    left: 40%; width: 34%;
    top: 51%; height: 15%;
    display: flex; align-items: center;
    font-family: var(--f-mono);
    font-size: clamp(.5rem, 1.5vw, .62rem);
    color: #DDE6F5;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.cart-score {
    position: absolute;
    left: 38%; width: 50%;
    top: 70%; height: 28%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-crt);
    font-size: clamp(2rem, 6vw, 2.8rem);
    color: #fff;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, .45);
}
.cart-title { font-family: var(--f-mono); font-size: 1.05rem; font-weight: 600; margin: 1rem 0 .1rem; }
.cart-genre { color: var(--tone); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .5rem; }
.cart-verdict { color: var(--muted); font-size: .88rem; margin: 0; }

/* Últimas notas */
.notes-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
}
.notes-more { text-align: center; margin: 2.2rem 0 0; }
.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--panel);
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);
    overflow: hidden;
    transition: transform .12s steps(2), border-color .12s steps(2);
}
.card--cyan { --accent: var(--cyan); }
.card--pink { --accent: var(--pink); }
.card--lime { --accent: var(--lime); }
.card:hover { transform: translate(-3px, -3px); border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent); }
.card-thumb-wrap { position: relative; overflow: hidden; background: var(--panel-2); }
.card-thumb-wrap a { display: block; background-image: none; padding: 0; }
.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    image-rendering: pixelated;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.1rem 1.2rem 1.2rem;
}
.card-title { font-family: var(--f-mono); font-size: 1.05rem; font-weight: 600; line-height: 1.4; margin: 0 0 .6rem; }
.card-title a { color: var(--text); background-image: none; padding: 0; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: var(--muted); font-size: .86rem; line-height: 1.6; flex: 1; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-top: .8rem;
}
.card-date { color: var(--muted); font-size: .78rem; }

/* Línea de tiempo */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.4rem;
    position: relative;
    display: grid;
    gap: 1.6rem;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 6px; top: 6px; bottom: 6px;
    width: 3px;
    background: repeating-linear-gradient(180deg, var(--cyan) 0 3px, transparent 3px 8px);
    opacity: .85;
}
.timeline-step { position: relative; min-width: 0; display: grid; gap: .25rem; padding-left: 1rem; }
.timeline-year { font-family: var(--f-crt); font-size: 1.9rem; line-height: 1; color: var(--cyan); text-shadow: 0 0 8px rgba(0, 229, 255, .5); }
.timeline-dot {
    position: absolute;
    left: calc(-1.4rem - 1px);
    top: .45rem;
    width: 16px; height: 16px;
    background: var(--cyan);
    box-shadow: 0 0 0 3px var(--bg-violet), 0 0 12px var(--cyan);
}
.timeline-step:last-child .timeline-dot { background: var(--lime); box-shadow: 0 0 0 3px var(--bg-violet), 0 0 12px var(--lime); }
.timeline-text { color: #C7D1E6; font-size: .86rem; line-height: 1.55; }

/* Set-up del editor */
.setup { margin: 0 auto; position: relative; max-width: 980px; }
.setup img { display: block; width: 100%; height: auto; aspect-ratio: 1364 / 880; image-rendering: pixelated; }
.spot { display: none; }
.setup-legend {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}
.setup-legend li {
    border: 2px solid var(--text);
    padding: .3rem .7rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    background-color: var(--ink);
}

/* ---------- Páginas internas ---------- */
.page-wrap { padding: 2rem 0 3.5rem; }
.layout-single { width: 100%; display: block; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
.content-area { min-width: 0; }

.crumbs {
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    padding: .6rem .9rem;
    border: 1px dashed var(--line);
    background-color: rgba(16, 26, 46, .6);
}
.crumbs a { color: var(--cyan); }
.crumbs-sep { color: var(--pink); margin: 0 .3rem; }
.crumbs span:last-child { color: var(--text); }

.page-head { margin-bottom: 1.8rem; }
.page-title {
    font-family: var(--f-pixel);
    font-size: clamp(1rem, 3vw, 1.45rem);
    line-height: 1.55;
    margin: 0 0 .8rem;
    color: var(--text);
}
.page-sub { color: var(--muted); margin: 0; }
.empty-state {
    background-color: var(--panel);
    border: 1px solid var(--line);
    padding: 1.6rem 1.6rem;
    color: var(--muted);
}

.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .82rem; }
.entry-cats a { margin-right: .5rem; }
.entry-thumb { margin: 1.4rem 0; }
.entry-thumb img { display: block; width: 100%; height: auto; border: 2px solid var(--line); }
.entry-content { font-size: .98rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--f-mono); font-weight: 600; }
.entry-content h2 { font-size: 1.35rem; color: var(--cyan); }
.entry-content h3 { font-size: 1.15rem; color: var(--lime); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--pink); }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.4rem;
    background-color: var(--bg-violet);
    border-left: 5px solid var(--pink);
    color: var(--text);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { color: var(--muted); font-size: .8rem; margin-top: .4rem; }
.entry-content pre, .entry-content code { font-family: var(--f-mono); background-color: var(--panel-2); }
.entry-content pre { padding: 1rem 1.2rem; overflow-x: auto; border: 1px solid var(--line); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; border: 1px solid var(--line); font-size: .88rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
.entry-content th { background-color: var(--bg-blue); color: var(--cyan); }
.entry-content tr:nth-child(even) td { background-color: rgba(18, 26, 42, .6); }
.entry-content hr { border: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); margin: 2em 0; }
.entry-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { background-image: none; padding: .25rem .6rem; border: 1px solid var(--line); font-size: .8rem; }

/* ---------- Barra lateral ---------- */
.sidebar { min-width: 0; }
.sidebar .wbox {
    background-color: var(--panel);
    border: 1px solid var(--line);
    border-top: 4px solid var(--pink);
    padding: 1.2rem 1.3rem;
    margin-bottom: 1.4rem;
    color: var(--text);
}
.sidebar .wbox-title {
    font-family: var(--f-pixel);
    font-size: .7rem;
    line-height: 1.6;
    text-transform: uppercase;
    color: var(--lime);
    margin: 0 0 1rem;
}
.sidebar .wbox ul { list-style: none; margin: 0; padding: 0; }
.sidebar .wbox li { padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .86rem; line-height: 1.5; }
.sidebar .wbox li:last-child { border-bottom: 0; }
.sidebar .wbox a { color: var(--text); background-image: none; padding: 0; }
.sidebar .wbox a:hover { color: var(--cyan); }
.sidebar .wbox .post-date { display: block; color: var(--muted); font-size: .75rem; }
.sidebar .wbox p { color: var(--text); }

/* ---------- Buscador ---------- */
.searchbox { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.searchbox-field {
    flex: 1 1 200px;
    min-width: 0;
    background-color: var(--panel-2);
    border: 2px solid var(--line);
    color: var(--text);
    font-family: var(--f-mono);
    font-size: .9rem;
    padding: .7rem .9rem;
}
.searchbox-field::placeholder { color: var(--muted); }
.searchbox-field:focus { border-color: var(--cyan); }

/* ---------- Paginación ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.4rem;
    align-items: center;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .8rem;
    background-color: var(--panel);
    border: 2px solid var(--line);
    color: var(--text);
    font-family: var(--f-crt);
    font-size: 1.35rem;
    background-image: none;
}
.pager a.page-numbers:hover { border-color: var(--cyan); color: var(--cyan); }
.pager .page-numbers.current { background-color: var(--pink); border-color: var(--pink); color: #fff; }
.pager .page-numbers.dots { background: none; border: 0; min-width: auto; color: var(--muted); }

/* ---------- Comentarios ---------- */
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 2px dashed var(--line); }
.comments-title, .comment-reply-title {
    font-family: var(--f-pixel);
    font-size: .85rem;
    line-height: 1.6;
    text-transform: uppercase;
    color: var(--lime);
}
.comment-reply-title small { display: block; margin-top: .5rem; font-family: var(--f-mono); font-size: .8rem; text-transform: none; }
.cmt-list, .cmt-list .children { list-style: none; margin: 0; padding: 0; }
.cmt-list .children { padding-left: 1.4rem; border-left: 2px dashed var(--line); }
.cmt-body {
    background-color: var(--panel);
    border: 1px solid var(--line);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}
.cmt-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.cmt-avatar { display: block; image-rendering: pixelated; border: 2px solid var(--line); }
.cmt-author { display: block; font-weight: 600; color: var(--cyan); }
.cmt-date { font-size: .75rem; color: var(--muted); }
.cmt-wait { color: var(--lime); font-size: .82rem; }
.cmt-text { font-size: .92rem; }
.cmt-reply a { font-size: .8rem; text-transform: uppercase; }
.cmt-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }
.cmt-closed { color: var(--muted); }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .3rem; }
.comment-form .comment-form-cookies-consent label { display: inline; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    background-color: var(--panel-2);
    border: 2px solid var(--line);
    color: var(--text);
    font-family: var(--f-mono);
    font-size: .9rem;
    padding: .65rem .8rem;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--cyan); }
.comment-form .form-submit input[type="submit"] {
    font-family: var(--f-pixel);
    font-size: .65rem;
    text-transform: uppercase;
    background-color: var(--pink);
    color: #fff;
    border: 0;
    padding: .9rem 1.3rem;
    cursor: pointer;
    clip-path: var(--step);
}
.comment-form .form-submit input[type="submit"]:hover { background-color: var(--cyan); color: var(--ink); }
.form-note { color: var(--muted); font-size: .8rem; }
.req { color: var(--pink); }

/* ---------- 404 ---------- */
.err { text-align: center; padding: 1rem 0 2rem; }
.err-code {
    font-family: var(--f-pixel);
    font-size: clamp(3rem, 14vw, 7rem);
    line-height: 1.1;
    color: var(--pink);
    text-shadow: 6px 6px 0 var(--cyan);
    margin: 0 0 1.2rem;
}
.err-text { color: var(--muted); max-width: 54ch; margin-inline: auto; }
.err .searchbox { max-width: 560px; margin-inline: auto; }
.err-home { margin-top: 1.6rem; }

/* ---------- Pie ---------- */
.sitefoot { background-color: var(--bg-foot); padding: 2.6rem 0 1.6rem; color: #C7D1E6; }
.sitefoot-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.sitefoot-col { min-width: 0; }
.sitefoot .wbox { color: #C7D1E6; }
.sitefoot .wbox-title {
    font-family: var(--f-pixel);
    font-size: .7rem;
    line-height: 1.6;
    text-transform: uppercase;
    color: var(--cyan);
    margin: 0 0 1rem;
}
.sitefoot .wbox p { color: #A9B6CF; font-size: .86rem; }
.sitefoot .wbox ul { list-style: none; margin: 0; padding: 0; }
.sitefoot .wbox li { padding: .2rem 0; font-size: .86rem; }
.sitefoot .wbox a { color: #C7D1E6; background-image: none; padding: 0; }
.sitefoot .wbox a:hover { color: var(--lime); }
.copyline {
    margin: 2.4rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: .8rem;
}

/* ---------- Banner de cookies ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 95;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    max-width: 760px;
    margin-inline: auto;
    padding: 1rem 1.2rem;
    background-color: var(--panel);
    border: 2px solid var(--cyan);
    box-shadow: 6px 6px 0 var(--pink);
}
.cookie-text { margin: 0; flex: 1 1 260px; min-width: 0; font-size: .84rem; color: var(--text); }

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
    .brand-logo { width: 96px; height: 96px; }
    .brand-name { font-size: 1rem; }
    .scene-panel { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); padding: 2rem 2rem; gap: 2rem; }
    .carts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sitefoot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card--row { flex-direction: row; }
    .card--row .card-thumb-wrap { flex: 0 0 46%; }
    .card--row .card-thumb-wrap a { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
    .card--row .card-thumb-wrap img { height: 100%; aspect-ratio: auto; }
    .card--row .card-body { min-height: 210px; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .mainnav { display: block; width: auto; }
    .mainnav-list { flex-direction: row; gap: 2rem; margin: 0; }
    .mainnav-list a { font-size: 1rem; }
    .brand { padding: 1.4rem 0 3rem; gap: 1.6rem; }
    .brand-logo { width: 128px; height: 128px; }
    .brand-name { font-size: 1.25rem; }
    .brand-desc { font-size: .88rem; }

    .band { padding: 4rem 0; }
    .band--notes { padding-top: 1.5rem; }
    .front-inner { width: 85%; margin-inline: auto; }

    .scene-panel { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); padding: 2.4rem 3rem; gap: 3.4rem; }
    .scene-map { max-width: 300px; }
    .carts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }

    .notes-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto; }
    .notes-grid > .card:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
    .notes-grid > .card:only-child, .notes-grid > .card:nth-child(2):last-child { grid-column: auto; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-single .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .timeline {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1rem;
        padding: 0;
        text-align: center;
    }
    .timeline::before {
        left: 10%; right: 10%; top: 3.4rem; bottom: auto;
        width: auto; height: 3px;
        background: repeating-linear-gradient(90deg, var(--cyan) 0 3px, transparent 3px 8px);
    }
    .timeline-step { padding-left: 0; justify-items: center; gap: .9rem; }
    .timeline-dot { position: static; width: 22px; height: 22px; }
    .timeline-text { max-width: 22ch; }

    .spot { display: block; position: absolute; width: 0; height: 0; }
    .spot::before {
        content: "";
        position: absolute;
        left: -6px; top: -6px;
        width: 12px; height: 12px;
        background: var(--cyan);
        box-shadow: 0 0 0 2px var(--ink), 0 0 10px var(--cyan);
    }
    .spot-tag {
        position: absolute;
        white-space: nowrap;
        background-color: var(--ink);
        border: 2px solid #F1F5FF;
        color: #F1F5FF;
        font-size: .76rem;
        text-transform: uppercase;
        letter-spacing: .05em;
        padding: .25rem .6rem;
        line-height: 1.4;
    }
    .spot--up .spot-tag { bottom: 14px; left: 50%; transform: translateX(-50%); }
    .spot--down .spot-tag { top: 14px; left: 50%; transform: translateX(-50%); }
    .spot--left .spot-tag { right: 14px; top: 50%; transform: translateY(-50%); }
    .spot--right .spot-tag { left: 14px; top: 50%; transform: translateY(-50%); }
    .setup-legend { display: none; }

    .layout-single { width: 85%; margin-left: auto; margin-right: auto; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 6%; }
}

/* ---------- Móvil ---------- */
@media (max-width: 599px) {
    .card-thumb-wrap { flex: none; width: 100%; position: static; }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .scene-panel { padding: 1.4rem 1.2rem; }
    .empty-state { padding: 1.3rem 1.2rem; }
    .cart-shell { max-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .card { transition: none; }
}
