/* Contrarreloj — sistema visual editorial */
:root {
  --paper: #faf9f6;
  --paper-2: #f1efea;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #474644;
  --muted: #8b8881;
  --line: #e4e1da;
  --line-2: #d3cfc6;
  --accent: #a3221b;
  --accent-soft: #f6e9e7;
  --green: #2e6340;
  --green-soft: #e8f0ea;
  --radius: 3px;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--serif);
  --mono: var(--font);
  --ph-bg: #ece9e2; --ph-line: #b3ada1; --ph-ink: #5e5a53; --ph-muted: #8b8881; --ph-accent: #a3221b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121212; --paper-2: #1b1b1b; --surface: #171717; --ink: #f1efea; --ink-2: #c4c1ba; --muted: #8b8881;
    --line: #2a2a2a; --line-2: #3a3a3a; --accent: #e0574e; --accent-soft: #2a1715; --green: #6fb487; --green-soft: #17241b;
    --ph-bg: #1c1c1c; --ph-line: #4a4844; --ph-ink: #c4c1ba; --ph-muted: #7a776f; --ph-accent: #e0574e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121212; --paper-2: #1b1b1b; --surface: #171717; --ink: #f1efea; --ink-2: #c4c1ba; --muted: #8b8881;
  --line: #2a2a2a; --line-2: #3a3a3a; --accent: #e0574e; --accent-soft: #2a1715; --green: #6fb487; --green-soft: #17241b;
    --ph-bg: #1c1c1c; --ph-line: #4a4844; --ph-ink: #c4c1ba; --ph-muted: #7a776f; --ph-accent: #e0574e; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--paper); color: var(--ink); line-height: 1.55; font-size: 15px; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "cv11" 1; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.12; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.mono { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 36px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 26px; height: 26px; }
.brand b { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; letter-spacing: -.01em; }
.brand b i { font-style: italic; }
.nav { display: flex; gap: 26px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { text-decoration: none; padding: 6px 0; color: var(--muted); font-size: .86rem; white-space: nowrap; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); border-bottom-color: var(--ink); }
.user-area { display: flex; align-items: center; gap: 14px; flex: none; }
.user-menu { position: relative; }
.user-menu > button { display: flex; align-items: center; background: none; border: 0; cursor: pointer; padding: 2px; border-radius: 50%; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 10px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.08); min-width: 210px; padding: 6px 0; display: none; font-size: .9rem; }
.user-menu.open .menu { display: block; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 8px 16px; text-decoration: none; background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--paper-2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; flex: none; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .2s, top .2s; }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-open .menu-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 19px; transform: rotate(-45deg); }
.mobile-nav { position: fixed; z-index: 60; top: 62px; left: 0; right: 0; bottom: 0; background: var(--paper); overflow-y: auto; border-top: 1px solid var(--line); animation: drawerIn .18s ease; }
.mobile-nav[hidden] { display: none; }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-6px); } }
.mobile-links { display: flex; flex-direction: column; }
.mobile-links a, .mobile-links button { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; color: var(--ink); }
.mobile-links a.active { font-style: italic; }
.mobile-links.small a, .mobile-links.small button { font-family: var(--font); font-size: 1rem; padding: 12px 0; }
.mobile-account { padding: 28px 0 40px; }
.mobile-account .who { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.mobile-account .who small { display: block; color: var(--muted); font-size: .8rem; }
.mobile-account .who b { font-weight: 500; }
.mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-cta .btn { padding: 13px; font-size: .95rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 500; font-size: .8rem; color: #fff; flex: none; font-family: var(--serif); }

/* ---------- Botones y formularios ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--line-2); background: transparent; font-weight: 500; font-size: .88rem; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; line-height: 1.2; color: var(--ink); }
.btn:hover { border-color: var(--ink); }
.btn-red, .btn-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-red:hover, .btn-dark:hover { background: #2b2b2b; border-color: #2b2b2b; }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { border-color: transparent; background: var(--paper-2); }
.btn-sm { padding: 6px 11px; font-size: .8rem; }
.btn-lg { padding: 12px 20px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 500; font-size: .8rem; color: var(--ink-2); }
.hint { font-size: .78rem; color: var(--muted); }
.input { width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); outline: none; font-size: .92rem; }
.input:focus { border-color: var(--ink); }
.input:disabled { opacity: .55; background: var(--paper-2); }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.55; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .9rem; }
.check input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }

/* Etiquetas: texto pequeño, sin rellenos llamativos */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink-2); background: var(--surface); white-space: nowrap; }
.badge-red { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.badge-green { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.badge-dark { color: var(--ink); border-color: var(--ink); }
.badge-outline { }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; border: 1px solid var(--line); }

.notice { font-size: .88rem; padding: 12px 14px; border-left: 2px solid var(--line-2); background: var(--paper-2); color: var(--ink-2); }
.notice.error { border-left-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.notice.ok { border-left-color: var(--green); background: var(--green-soft); color: var(--green); }

/* ---------- Portada ---------- */
.masthead { border-bottom: 1px solid var(--line); padding: 28px 0 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.masthead h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 6px 0 0; max-width: 640px; }
.masthead h1 em { font-style: italic; }
.masthead .stats { display: flex; gap: 32px; }
.masthead .stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.masthead .stats span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.cover-story { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; padding: 32px 0 44px; border-bottom: 1px solid var(--line); text-decoration: none; align-items: center; }
.cover-story .media { aspect-ratio: 3/2; background: var(--paper-2); overflow: hidden; border-radius: 2px; }
.cover-story .media img, .cover-story .media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.cover-story:hover .media img, .cover-story:hover .media svg { transform: scale(1.015); }
.cover-story h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 10px 0 10px; }
.cover-story .dek { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-2); margin: 0 0 22px; line-height: 1.4; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.figures > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.figures > div:nth-child(odd) { padding-right: 16px; }
.figures small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.figures b { font-weight: 500; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.cover-story .cta { margin-top: 20px; font-size: .88rem; text-decoration: underline; text-underline-offset: 4px; }

/* Reloj */
.clock { display: inline-flex; gap: 2px; font-variant-numeric: tabular-nums; font-weight: 500; }
.clock span { display: inline-flex; align-items: baseline; gap: 2px; }
.clock span + span::before { content: ":"; color: var(--muted); margin-right: 2px; }
.clock span small { font-size: .62em; color: var(--muted); font-weight: 400; margin-left: 1px; }
.clock.urgent, .clock.urgent span { color: var(--accent); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 44px 0 6px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.85rem; margin: 0; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 14px 0 28px; }
.tabs { display: inline-flex; gap: 22px; flex-wrap: wrap; }
.tabs button, .tabs a { border: 0; background: transparent; padding: 4px 0; color: var(--muted); cursor: pointer; text-decoration: none; font-size: .88rem; border-bottom: 1px solid transparent; }
.tabs button:hover, .tabs a:hover { color: var(--ink); }
.tabs .active { color: var(--ink); border-bottom-color: var(--ink); }
.toolbar .search { flex: 1; min-width: 200px; }
.toolbar select { width: auto; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 44px 28px; padding-bottom: 32px; }
.card { text-decoration: none; display: flex; flex-direction: column; position: relative; }
.card .media { aspect-ratio: 3/2; background: var(--paper-2); position: relative; overflow: hidden; border-radius: 2px; }
.media img, .media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .media img, .card .media svg { transition: transform .6s ease; }
.card:hover .media img, .card:hover .media svg { transform: scale(1.02); }
.media .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.media .badges .badge { border-color: transparent; background: rgba(255,255,255,.94); }
.media .timer { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.94); color: var(--ink); font-weight: 500; padding: 4px 8px; border-radius: 2px; font-size: .78rem; display: inline-flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; }
.media .timer.urgent { color: var(--accent); }
.media .timer svg { width: 12px; height: 12px; }
.card .body { padding: 14px 0 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card .lot { font-size: .68rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.card h3 { font-size: 1.4rem; margin: 2px 0 0; }
.card .sub { color: var(--muted); font-size: .84rem; }
.card .foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.card .foot small { display: block; font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.card .foot b { font-weight: 500; font-size: 1.05rem; }
.card .stats { display: flex; gap: 10px; font-size: .78rem; color: var(--muted); }
.watch-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.watch-btn.on { color: var(--accent); }
.watch-btn svg { width: 15px; height: 15px; }
.flash { animation: flash 1.6s ease; }
@keyframes flash { 0% { color: var(--accent); } 100% { color: inherit; } }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); grid-column: 1 / -1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 12px 0 64px; border-top: 1px solid var(--line); }
.step { padding: 22px 24px 0 0; }
.step b { font-size: .7rem; letter-spacing: .14em; color: var(--muted); font-weight: 500; }
.step h3 { margin: 6px 0 8px; font-size: 1.35rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .9rem; }

/* ---------- Ficha ---------- */
.listing-head { padding: 34px 0 22px; text-align: center; max-width: 860px; margin: 0 auto; }
.listing-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: 10px 0 10px; }
.listing-head .tagline { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-2); margin: 0 0 14px; }
.listing-head .badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; overflow: hidden; aspect-ratio: 16/7; }
.gallery.n2 { grid-template-columns: 2fr 1fr; }
.gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery button { border: 0; padding: 0; cursor: zoom-in; background: var(--paper-2); position: relative; overflow: hidden; min-height: 0; }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery button img, .gallery button svg { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery button:hover img, .gallery button:hover svg { opacity: .92; }
.gallery .more { position: absolute; inset: 0; background: rgba(17,17,17,.45); color: #fff; display: grid; place-items: center; font-size: .9rem; letter-spacing: .04em; }
.gallery-sections { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; align-items: center; font-size: .84rem; }
.gallery-sections button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); }
.gallery-sections button:hover { color: var(--ink); }
.gallery-sections button.all { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; margin: 40px 0 80px; align-items: start; }
.listing-layout > * { min-width: 0; }
.block { margin-top: 48px; }
.block:first-child { margin-top: 0; }
.block > h2 { font-size: 1.6rem; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin: 0; }
.facts > div { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.facts dt { font-size: .8rem; color: var(--muted); flex: none; }
.facts dd { margin: 0; font-size: .9rem; text-align: right; }
.story { font-family: var(--serif); font-size: 1.2rem; line-height: 1.65; color: var(--ink); white-space: pre-line; }
.story::first-letter { font-size: 3.6em; float: left; line-height: .82; margin: 6px 10px 0 0; }
.byline { font-size: .8rem; color: var(--muted); margin: -6px 0 16px; letter-spacing: .02em; }
.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.list-card h3 { font-family: var(--font); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.list-card ul { margin: 0; padding: 0; list-style: none; }
.list-card li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.inspection { font-size: .95rem; color: var(--ink-2); white-space: pre-line; }

.docs { display: flex; flex-direction: column; }
.doc { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; background: none; border-left: 0; border-right: 0; border-top: 0; }
.doc .ico { width: 34px; height: 42px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: .56rem; letter-spacing: .08em; color: var(--muted); flex: none; }
.doc .meta { flex: 1; min-width: 0; }
.doc .meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: .92rem; }
.doc .meta small { color: var(--muted); font-size: .78rem; }
a.doc:hover .meta b { text-decoration: underline; }

.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 24px; }
.credit { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.credit small { display: block; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; }
.credit b { font-weight: 500; }

/* Caja de pujas */
.bid-box { position: sticky; top: 86px; background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.bid-box .label { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 500; }
.bid-box .amount { font-family: var(--serif); font-size: 2.5rem; line-height: 1.1; margin: 6px 0 4px; font-variant-numeric: tabular-nums lining-nums; }
.bid-box .by { color: var(--muted); font-size: .84rem; }
.bid-box .by a { color: var(--ink); }
.bid-box .clock { font-size: 1.35rem; margin-top: 4px; }
.bid-box .rows { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bid-box .rows div { padding: 10px 0; text-align: center; }
.bid-box .rows div + div { border-left: 1px solid var(--line); }
.bid-box .rows b { display: block; font-weight: 500; font-size: 1rem; }
.bid-box .rows small { color: var(--muted); font-size: .7rem; }
.reserve-pill { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.reserve-pill.met { color: var(--green); }
.reserve-pill.none { color: var(--accent); }
.bid-input { position: relative; }
.bid-input span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.bid-box .input { font-size: 1.1rem; padding: 11px 12px 11px 26px; font-variant-numeric: tabular-nums; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 12px; }
.quick button { background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 2px; font-size: .74rem; cursor: pointer; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.quick button:hover { border-color: var(--ink); color: var(--ink); }
.bid-box .fine { color: var(--muted); font-size: .74rem; margin: 12px 0 0; line-height: 1.5; }
.result { padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-align: center; font-family: var(--serif); font-size: 1.15rem; }
.result.sold { color: var(--ink); }
.result.unsold { color: var(--ink-2); }
.hot { color: var(--accent); font-size: .8rem; }

.mobile-bar { display: none; }

/* Comentarios */
.feed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.feed-head h2 { font-size: 1.6rem; }
.comment-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.comment-form textarea { min-height: 80px; }
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.feed-item .who { font-weight: 500; text-decoration: none; font-size: .88rem; }
.feed-item .when { color: var(--muted); font-size: .78rem; margin-left: 8px; }
.feed-item p { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; font-size: .93rem; color: var(--ink-2); }
.feed-item.is-seller p { color: var(--ink); }
.bid-chip { display: inline-block; margin-top: 3px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.bid-chip::before { content: "Puja · "; color: var(--muted); }
.tag { font-size: .62rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; padding: 1px 5px; border: 1px solid var(--ink); margin-left: 8px; vertical-align: 1px; }
.new-item { animation: newItem 2s ease; }
@keyframes newItem { from { background: var(--paper-2); } }

/* ---------- Galería a pantalla completa ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: #0d0d0d; color: #eee; display: flex; flex-direction: column; }
.lightbox header { display: flex; align-items: center; gap: 12px; padding: 14px 20px; }
.lightbox header .tabs button { color: #888; }
.lightbox header .tabs .active { color: #fff; border-bottom-color: #fff; }
.lightbox .stage { flex: 1; display: grid; place-items: center; position: relative; min-height: 0; padding: 0 64px; }
.lightbox .stage .frame { width: 100%; height: 100%; display: grid; place-items: center; min-height: 0; }
.lightbox .stage .frame > * { max-height: calc(100vh - 190px); max-width: 100%; width: auto; object-fit: contain; }
.lightbox .stage .frame svg { width: min(100%, 1200px); height: auto; }
.lightbox .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: #fff; cursor: pointer; font-size: 1.8rem; opacity: .6; }
.lightbox .nav-btn:hover { opacity: 1; }
.lightbox .prev { left: 10px; } .lightbox .next { right: 10px; }
.lightbox footer { padding: 10px 20px 18px; }
.lightbox .caption { color: #999; font-size: .82rem; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; }
.lightbox .strip { display: flex; gap: 4px; overflow-x: auto; }
.lightbox .strip button { flex: none; width: 84px; aspect-ratio: 3/2; border: 1px solid transparent; overflow: hidden; padding: 0; cursor: pointer; opacity: .45; background: #222; }
.lightbox .strip button.active { border-color: #fff; opacity: 1; }
.lightbox .strip img, .lightbox .strip svg { width: 100%; height: 100%; object-fit: cover; }
.lightbox .close { margin-left: auto; background: none; border: 0; color: #ccc; cursor: pointer; font-size: .85rem; }

/* ---------- Modal y avisos ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(17,17,17,.42); display: grid; place-items: center; z-index: 90; padding: 16px; }
.modal { background: var(--surface); padding: 28px; width: 100%; max-width: 460px; box-shadow: 0 24px 60px rgba(0,0,0,.18); max-height: calc(100vh - 32px); overflow: auto; }
.modal h3 { margin: 0 0 6px; font-size: 1.6rem; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.summary { border-top: 1px solid var(--line); margin: 16px 0; }
.summary div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.summary div:last-child { border-bottom-color: var(--ink); font-weight: 600; }
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 420px; pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: 11px 16px; font-size: .86rem; box-shadow: 0 8px 24px rgba(0,0,0,.15); animation: toastIn .25s ease; pointer-events: auto; }
.toast.alert { background: var(--accent); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Gestión ---------- */
.page-head { padding: 40px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 8px 0 8px; }
.page-head p { color: var(--ink-2); margin: 0; max-width: 640px; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 26px; margin: 20px 0; }
.panel > h2 { font-size: 1.45rem; margin: 0 0 4px; }
.panel > p.hint { margin: 0 0 18px; }
.status-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 62px; z-index: 30; margin-top: 8px; }
.editor-nav { margin: 16px 0 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.photo-item { border: 1px solid var(--line); background: var(--surface); }
.photo-item.cover { outline: 2px solid var(--ink); outline-offset: -2px; }
.photo-item .thumb { aspect-ratio: 3/2; background: var(--paper-2); }
.photo-item .thumb img, .photo-item .thumb svg { width: 100%; height: 100%; object-fit: cover; }
.photo-item .ctrl { padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.photo-item .ctrl .input { padding: 5px 7px; font-size: .78rem; }
.photo-item .ctrl .row { display: flex; gap: 4px; }
.photo-item .ctrl .row .btn { flex: 1; padding: 4px; font-size: .72rem; }
.dropzone { border: 1px dashed var(--line-2); padding: 28px; text-align: center; color: var(--muted); cursor: pointer; transition: background .15s; font-size: .9rem; }
.dropzone.over { border-color: var(--ink); background: var(--paper-2); }
.progress { height: 2px; background: var(--line); overflow: hidden; margin-top: 12px; }
.progress div { height: 100%; background: var(--ink); width: 0; transition: width .2s; }
.repeater .item { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; margin-bottom: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; }
.table-wrap { overflow-x: auto; }
.packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.package { border: 1px solid var(--line-2); padding: 20px; cursor: pointer; background: var(--surface); display: block; }
.package:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.package input { accent-color: var(--ink); }
.package h3 { margin: 8px 0 6px; font-size: 1.35rem; }
.package ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .88rem; }

.profile-head { display: flex; gap: 22px; align-items: center; padding: 40px 0 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.profile-head .avatar { width: 76px; height: 76px; font-size: 1.8rem; }
.profile-head h1 { margin: 0; font-size: 2.4rem; }
.counters { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 12px; }
.counters b { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; display: block; }
.counters span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }

.spec-card { border-top: 1px solid var(--ink); padding: 18px 0; display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.spec-card .top { display: flex; gap: 12px; align-items: center; }
.spec-card .avatar { width: 46px; height: 46px; font-size: 1.1rem; }
.spec-card b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem !important; }
.spec-card p { margin: 0; color: var(--ink-2); font-size: .9rem; }

.prose { max-width: 720px; }
.prose h2 { font-size: 1.8rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin: 6px 0; }
.prose table { margin: 12px 0; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 32px 0 40px; font-size: .82rem; margin-top: 56px; }
.site-footer .container { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--ink-2); text-decoration: none; margin-left: 20px; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cover-story { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .listing-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .bid-box { position: static; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; gap: 12px; }
  .mobile-bar .info { flex: 1; min-width: 0; }
  .mobile-bar b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; display: block; line-height: 1.2; }
  .mobile-bar small { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .8rem; }
  body.has-mobile-bar { padding-bottom: 72px; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .site-header .container { gap: 12px; height: 56px; }
  .mobile-nav { top: 56px; }
  .brand img { width: 24px; height: 24px; }
  .brand b { font-size: 1.3rem; }
  .nav, .user-area { display: none; }
  .menu-toggle { display: block; }
  .masthead .stats { gap: 20px; }
  .form-grid, .facts, .lists, .packages, .figures { grid-template-columns: minmax(0, 1fr); }
  .gallery, .gallery.n2 { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .gallery button:first-child { grid-row: auto; aspect-ratio: 3/2; }
  .gallery button:not(:first-child) { display: none; }
  .listing-head { text-align: left; }
  .listing-head .badges { justify-content: flex-start; }
  .lightbox .stage { padding: 0 4px; }
  .toolbar select { flex: 1; }
  .status-bar { position: static; }
  .site-footer a { margin: 0 16px 0 0; }
}
