/* =========================================================
   VENDILO · tema oscuro "neón azul"
   ========================================================= */
:root {
  --bg: #040a18;
  --bg-2: #071228;
  --surface: #0a1630;
  --surface-2: #0d1b3a;
  --border: #17305c;
  --border-strong: #1f3f78;
  --text: #e8ecf5;
  --muted: #8b93a7;
  --neon: #3fc8ff;
  --line: #1fa2ff;
  --blue: #0a6cff;
  --blue-dark: #0052cc;
  --glow: 0 0 12px rgba(0, 140, 255, .55), 0 0 28px rgba(0, 102, 255, .25);
  --glow-soft: 0 0 0 1px rgba(0, 210, 255, .35), 0 0 18px rgba(0, 102, 255, .18);
  --ok: #19c37d;
  --warn: #f5b041;
  --danger: #ff5c6c;
  --wa: #1fae54;
  --mp: #009ee3;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .45);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Exo 2", Inter, system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 16px/1.55 var(--font);
  background:
    radial-gradient(1000px 520px at 75% -5%, rgba(10, 108, 255, .28), transparent 62%),
    radial-gradient(800px 600px at 10% 60%, rgba(10, 108, 255, .12), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  position: relative;
}
/* trazos de luz diagonales a los costados (como en la referencia) */
body::before, body::after { content: ""; position: fixed; top: 0; bottom: 0; width: 220px; pointer-events: none; z-index: -1; opacity: .9; }
body::before { left: -60px; background:
  linear-gradient(115deg, transparent 46%, rgba(31, 162, 255, .55) 48%, transparent 50%),
  linear-gradient(115deg, transparent 58%, rgba(31, 162, 255, .25) 59%, transparent 61%),
  linear-gradient(115deg, transparent 30%, rgba(63, 200, 255, .18) 31%, transparent 33%); filter: blur(1px); }
body::after { right: -60px; background:
  linear-gradient(65deg, transparent 46%, rgba(31, 162, 255, .55) 48%, transparent 50%),
  linear-gradient(65deg, transparent 60%, rgba(31, 162, 255, .25) 61%, transparent 63%),
  linear-gradient(65deg, transparent 28%, rgba(63, 200, 255, .18) 29%, transparent 31%); filter: blur(1px); }
@media (max-width: 760px) { body::before, body::after { width: 90px; opacity: .5; } }
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
a { color: var(--neon); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0; }
h1 { font-size: 1.65rem; line-height: 1.2; margin: .2em 0 .4em; }
h2 { font-size: 1.15rem; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
::selection { background: rgba(0, 210, 255, .35); }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 18px; padding-bottom: 36px; min-height: 60vh; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.inline { display: inline; margin: 0; }
.narrow { max-width: 660px; margin: 0 auto; }
.lead { color: var(--muted); font-size: 1.05rem; margin-top: 0; }
code { background: rgba(0, 210, 255, .1); color: var(--neon); padding: 1px 6px; border-radius: 5px; }
[hidden] { display: none !important; }

/* ---- barra superior ---- */
.topbar { position: sticky; top: 0; z-index: 20; background: linear-gradient(180deg, rgba(4, 10, 24, .96), rgba(6, 16, 38, .92)); backdrop-filter: blur(10px); border-bottom: 2px solid var(--line); box-shadow: 0 2px 18px rgba(31, 162, 255, .55); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 12px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 52px; height: 52px; border-radius: 6px; display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 2.2rem; line-height: 1;
  color: #eef4ff; background: linear-gradient(145deg, #2f8cff, #0b3fa8 55%, #0a2a70); border: 1px solid #8fc8ff;
  box-shadow: 0 0 14px rgba(31, 162, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .5); text-shadow: 0 2px 0 #0a2a70, 0 0 8px rgba(255, 255, 255, .5); }
.logo-word { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 2.15rem; letter-spacing: .04em;
  background: linear-gradient(180deg, #ffffff 0%, #dfe7f2 38%, #8e9bb0 52%, #e9eef6 70%, #aab6c8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(10, 30, 70, .9)) drop-shadow(0 0 8px rgba(31, 162, 255, .35)); }
.topnav { display: flex; align-items: center; gap: 26px; }
.topnav a, .linklike { display: inline-flex; align-items: center; gap: 8px; color: #f1f5ff; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: .98rem; transition: color .15s, text-shadow .15s; }
.topnav a svg, .linklike svg { width: 22px; height: 22px; color: #fff; }
.topnav a:hover, .linklike:hover { color: #fff; text-shadow: 0 0 10px rgba(63, 200, 255, .8); }
.topnav a.btn { color: #fff; }
.linklike { background: none; border: 0; cursor: pointer; padding: 0; }
.btn-publish { padding: 11px 20px; font-size: 1.05rem; }
.btn-publish svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .topnav { gap: 16px; } .topnav a:not(.btn) svg, .linklike svg { display: none; } }
@media (max-width: 760px) {
  .topnav a:not(.btn), .topnav form { display: none; }
  .topbar-inner { height: 62px; }
  .logo-mark { width: 38px; height: 38px; font-size: 1.6rem; }
  .logo-word { font-size: 1.45rem; }
  .btn-publish { padding: 9px 14px; font-size: .95rem; }
}

/* ---- barra inferior (celular) ---- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: rgba(13, 15, 24, .95); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 210, 255, .2); display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: var(--muted); text-decoration: none; padding: 4px 0; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--neon); text-shadow: 0 0 10px rgba(0, 210, 255, .6); }
.tabbar .tab-cta svg { background: linear-gradient(135deg, var(--blue), var(--neon)); color: #fff; border-radius: 10px; padding: 3px; width: 30px; height: 26px; box-shadow: var(--glow); }
@media (min-width: 761px) { .tabbar { display: none; } body { padding-bottom: 0; } }

/* ---- botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: 10px; padding: 10px 20px; font-family: var(--font-display); font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background .15s, box-shadow .2s, transform .05s, border-color .15s, filter .15s; line-height: 1.2; color: var(--text);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #2f8cff 0%, #0a6cff 45%, #0650d6 100%); color: #fff; border-color: #7cc4ff;
  box-shadow: 0 0 12px rgba(31, 162, 255, .75), 0 0 28px rgba(10, 108, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { filter: brightness(1.12); box-shadow: 0 0 18px rgba(63, 200, 255, .95), 0 0 40px rgba(10, 108, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: rgba(10, 30, 70, .5); color: var(--text); border-color: rgba(63, 200, 255, .55); }
.btn-ghost:hover { background: rgba(0, 210, 255, .08); box-shadow: var(--glow-soft); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255, 92, 108, .45); }
.btn-danger:hover { background: rgba(255, 92, 108, .1); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 0 14px rgba(31, 174, 84, .45); }
.btn-wa:hover { background: #19c060; }
.btn-mp { background: var(--mp); color: #fff; box-shadow: 0 0 14px rgba(0, 158, 227, .5); }
.btn-mp:hover { background: #10b0f5; }
.btn-sm { padding: 7px 14px; font-size: .88rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn.block, button.block { width: 100%; display: flex; }
.btn svg { width: 1.05em; height: 1.05em; }
.wa { width: 1.3em; height: 1.3em; }
.stack { display: grid; gap: 10px; margin-top: 16px; }

/* ---- hero (foto + buscador adentro) ---- */
.hero {
  position: relative; overflow: hidden; margin-bottom: 18px; border-radius: 20px; padding: 34px 40px 30px;
  border: 2px solid var(--line); box-shadow: 0 0 18px rgba(31, 162, 255, .8), 0 0 46px rgba(10, 108, 255, .35), inset 0 0 30px rgba(31, 162, 255, .18);
  background:
    linear-gradient(90deg, #040c1f 0%, #040c1f 40%, rgba(4, 12, 31, .7) 50%, rgba(4, 12, 31, .1) 64%, rgba(4, 12, 31, 0) 76%),
    linear-gradient(180deg, rgba(4, 12, 31, 0) 55%, #040c1f 86%),
    url("/img/hero-car.jpg") right top / 58% auto no-repeat, #040c1f;
}
.hero-text { position: relative; max-width: 60%; }
.hero h1 { font-style: italic; font-weight: 800; font-size: 3rem; line-height: 1.05; margin: 0 0 12px; color: #f4f7ff; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.hero h1 span { display: block; padding-right: .15em; background: linear-gradient(90deg, #2b86ff 0%, #39b4ff 45%, #5fe0ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 12px rgba(31, 162, 255, .6)); }
.hero p { color: #e6edfb; margin: 0 0 22px; font-size: 1.05rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.searchbar { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 6px; padding: 0 0 0 16px; max-width: 100%; box-shadow: 0 4px 18px rgba(0, 0, 0, .45); }
.searchbar .searchicon { color: #4a5368; display: flex; }
.searchbar .searchicon svg { width: 24px; height: 24px; }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.05rem; padding: 14px 4px; background: transparent; color: #0d1220; box-shadow: none; border-radius: 0; }
.searchbar input::placeholder { color: #6f7789; }
.searchbar input:focus { box-shadow: none; }
.searchbar .btn { align-self: stretch; margin: -5px -6px -5px 0; padding: 0 26px; font-size: 1.25rem; border-radius: 10px; }
.searchbar .btn svg { width: 22px; height: 22px; stroke-width: 3; }
@media (max-width: 900px) { .hero-text { max-width: 75%; } .hero h1 { font-size: 2.3rem; } }
@media (max-width: 760px) {
  .hero { padding: 22px 16px 18px; background:
    linear-gradient(180deg, rgba(4, 12, 31, .15) 0%, rgba(4, 12, 31, .45) 30%, rgba(4, 12, 31, .85) 46%, #040c1f 54%),
    url("/img/hero-car.jpg") 68% top / auto 56% no-repeat, #040c1f; }
  .hero-text { max-width: 100%; padding-top: 96px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: .95rem; margin-bottom: 16px; }
  .searchbar { padding-left: 12px; }
  .searchbar input { font-size: 1rem; padding: 12px 2px; }
  .searchbar .btn { padding: 0 14px; font-size: 1rem; margin-right: -4px; }
  .searchbar .btn svg { width: 18px; height: 18px; }
}

/* ---- categorías y filtros ---- */
.chips { display: flex; align-items: center; gap: 12px; overflow-x: auto; padding: 10px 8px 12px; margin: -6px -8px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px; padding: 9px 20px; border-radius: 999px; background: rgba(6, 18, 44, .85); border: 1.5px solid rgba(143, 200, 255, .55); color: #f1f5ff; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1rem; transition: box-shadow .2s, background .2s; }
.chip svg { width: 22px; height: 22px; }
.chip:hover { box-shadow: 0 0 12px rgba(31, 162, 255, .55); }
.chip.on { background: linear-gradient(180deg, #2f8cff, #0a6cff 50%, #0650d6); border-color: #9fd2ff; color: #fff; box-shadow: 0 0 14px rgba(31, 162, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.chip-sep { flex-shrink: 0; width: 1px; height: 30px; background: rgba(143, 200, 255, .35); }
.chip-ok { color: #3ee07f; border-color: rgba(62, 224, 127, .55); background: rgba(6, 30, 26, .6); }
.chip-ok svg { width: 22px; height: 22px; stroke-width: 3; }
.chip-ok.on { background: linear-gradient(180deg, #20c46a, #0f9a50); color: #fff; border-color: #8ff0b8; box-shadow: 0 0 14px rgba(62, 224, 127, .6); }
.filters { background: rgba(6, 18, 44, .7); border: 2px solid var(--line); border-radius: 14px; margin-bottom: 14px; box-shadow: 0 0 12px rgba(31, 162, 255, .55), inset 0 0 14px rgba(31, 162, 255, .1); }
.filters summary { cursor: pointer; padding: 13px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #f1f5ff; list-style: none; display: flex; align-items: center; gap: 12px; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::before { content: "▶"; color: #fff; font-size: .9rem; transition: transform .2s; }
.filters[open] summary::before { transform: rotate(90deg); }
.filters-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); padding: 0 18px 18px; }
.filters-actions { display: flex; gap: 8px; align-items: end; }
.results-head h2 { margin: 6px 0 12px; color: #f4f7ff; font-size: 1.15rem; font-weight: 700; }

/* ---- tarjetas ---- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 761px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1060px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid rgba(63, 200, 255, .3); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(0, 210, 255, .55); box-shadow: 0 0 22px rgba(0, 102, 255, .28); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #0c0f18; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(0, 210, 255, .45); }
.noimg svg { width: 45%; height: auto; stroke-width: 2.5; }
.noimg.big { aspect-ratio: 4 / 3; }
.chip-type { position: absolute; left: 8px; top: 8px; background: rgba(10, 10, 15, .78); border: 1px solid rgba(0, 210, 255, .45); color: #dff6ff; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .05em; }
.chip-type.static { position: static; display: inline-block; }
.card-status { position: absolute; right: 8px; top: 8px; }
.card-body { padding: 11px 13px 13px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #fff; }
.price.big { font-size: 2rem; margin: 4px 0; color: var(--neon); text-shadow: 0 0 16px rgba(0, 210, 255, .45); }
.card-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #dbe2f0; }
.meta { color: var(--muted); font-size: .86rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.meta.loc svg { width: 14px; height: 14px; color: var(--neon); }
.card-verified { border-color: rgba(25, 195, 125, .6); box-shadow: 0 0 16px rgba(25, 195, 125, .18); }
.chip-verified { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; background: rgba(14, 159, 99, .92); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px 3px 6px; border-radius: 6px; box-shadow: 0 0 12px rgba(25, 195, 125, .55); }
.chip-verified svg { width: 13px; height: 13px; stroke-width: 3; }

/* ---- estado vacío ---- */
.empty { text-align: center; padding: 26px 18px 30px; border-radius: 14px; border: 2px dashed rgba(63, 200, 255, .85);
  background: repeating-linear-gradient(120deg, rgba(31, 162, 255, .05) 0 60px, rgba(31, 162, 255, 0) 60px 140px), rgba(6, 18, 44, .55);
  box-shadow: 0 0 16px rgba(31, 162, 255, .3), inset 0 0 26px rgba(31, 162, 255, .08); }
.empty-icon { color: #e8f1ff; filter: drop-shadow(0 0 6px rgba(63, 200, 255, .5)); }
.empty-icon svg { width: 96px; height: 60px; stroke-width: 1.6; }
.empty p { color: #f1f5ff; font-size: 1.1rem; margin: 6px 0 16px; }
.empty .btn { padding: 12px 36px; font-size: 1.15rem; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 22px 0; }

/* ---- CTA inferior (esquinas cortadas con borde neón) ---- */
.sell-banner { --cut: 22px; margin-top: 30px; padding: 2px; filter: drop-shadow(0 0 7px rgba(31, 162, 255, .9)) drop-shadow(0 0 18px rgba(10, 108, 255, .45));
  background: linear-gradient(90deg, #1fa2ff, #8fd8ff 50%, #1fa2ff);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.sell-inner { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 22px 24px;
  background: linear-gradient(90deg, rgba(10, 40, 100, .55), rgba(4, 12, 31, .95) 40%, rgba(10, 40, 100, .45)), #050f26;
  clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px), 0 calc(var(--cut) - 1px)); }
.sell-icon { color: #fff; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(63, 200, 255, .7)); }
.sell-icon svg { width: 76px; height: 64px; stroke-width: 1.6; }
.sell-text { flex: 1; }
.sell-banner h3 { margin: 0 0 4px; font-size: 1.6rem; font-weight: 700; color: #fff; }
.sell-banner p { margin: 0; color: #e6edfb; font-size: 1.02rem; }
.sell-banner strong { color: #fff; }
.sell-banner .btn { font-size: 1.3rem; padding: 14px 30px; }
.sell-banner .btn svg { width: 26px; height: 26px; }
@media (min-width: 761px) { .sell-inner { flex-direction: row; align-items: center; padding: 24px 34px; gap: 26px; } }

/* ---- promo ---- */
.promo-pill { display: inline-block; position: relative; background: linear-gradient(135deg, var(--blue), var(--neon)); color: #fff; font-weight: 700; font-size: .82rem; padding: 5px 12px; border-radius: 999px; text-decoration: none; margin-bottom: 12px; box-shadow: var(--glow); }

/* ---- detalle del aviso ---- */
.detail { display: grid; gap: 18px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.4fr 1fr; align-items: start; } .thumbs { grid-column: 1; } .detail-info { grid-row: 1 / span 2; grid-column: 2; } }
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: #05060a; border: 1px solid var(--border); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > * { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; object-fit: contain; width: 100%; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .8rem; padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(0, 210, 255, .35); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(0, 210, 255, .5); background: rgba(10, 10, 15, .7); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: none; }
.gallery-nav:hover { box-shadow: var(--glow); }
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
@media (hover: hover) { .gallery-nav { display: block; } }
.thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 9px; overflow: hidden; width: 76px; flex-shrink: 0; cursor: pointer; background: none; opacity: .7; }
.thumbs button.on { border-color: var(--neon); opacity: 1; box-shadow: var(--glow); }
.thumbs img { aspect-ratio: 4/3; object-fit: cover; }
.detail-info { display: grid; gap: 16px; }
.detail-head h1 { margin: 8px 0 0; color: #fff; }
.detail-head .year { color: var(--muted); font-weight: 500; }
.contact { background: var(--surface); border: 1px solid rgba(0, 210, 255, .3); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; box-shadow: 0 0 22px rgba(0, 102, 255, .12); }
.seller { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--neon)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; box-shadow: var(--glow); }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; margin: 0; border: 1px solid var(--border); }
.specs div { background: var(--surface); padding: 10px 14px; }
.specs dt { color: var(--muted); font-size: .8rem; }
.specs dd { margin: 0; font-weight: 600; word-break: break-word; }
.h-sm { margin: 4px 0 -8px; }
.description { white-space: pre-line; margin: 0; background: var(--surface); padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); color: #d2d9e8; }
.safety { display: flex; gap: 12px; background: rgba(0, 102, 255, .07); border: 1px solid rgba(0, 210, 255, .3); border-radius: var(--radius); padding: 14px 16px; color: #c9dcf5; font-size: .92rem; }
.safety svg { width: 22px; height: 22px; color: var(--neon); }
.safety ul { margin: 6px 0 0; padding-left: 18px; }
.owner-box { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 14px 16px; }
.owner-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---- formularios ---- */
.form { display: grid; gap: 14px; background: rgba(8, 20, 46, .9); padding: 22px; border-radius: 18px; border: 1px solid rgba(63, 200, 255, .45); box-shadow: 0 0 30px rgba(0, 102, 255, .1); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.field { display: grid; gap: 5px; align-content: start; }
.field > span { font-weight: 600; font-size: .92rem; color: #d3dbea; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #06102a; border: 1px solid var(--border-strong); border-radius: 12px; padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #5f6880; }
input:focus, select:focus, textarea:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0, 210, 255, .18), 0 0 16px rgba(0, 102, 255, .25); }
input[type=file] { padding: 9px; background: #0c0f18; color: var(--muted); }
input[type=file]::file-selector-button { background: rgba(0, 210, 255, .12); color: var(--neon); border: 1px solid rgba(0, 210, 255, .5); border-radius: 999px; padding: 6px 12px; margin-right: 10px; cursor: pointer; font: inherit; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--blue); }
select option { background: #06102a; color: var(--text); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.error { color: var(--danger); }
.hint { color: var(--muted); }
.row2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.price-input { display: flex; gap: 6px; }
.price-input select { width: 86px; flex-shrink: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 11px; border: 1px solid var(--border-strong); border-radius: 12px; font-weight: 600; background: #0c0f18; transition: all .15s; }
.seg input:checked + span { background: linear-gradient(135deg, var(--blue), var(--neon)); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0, 210, 255, .35); }
fieldset[disabled] .seg span, input:disabled { background: #0a0c13; color: var(--muted); cursor: not-allowed; }
fieldset[disabled] .seg input:checked + span { background: #23304d; color: #cfd7e8; box-shadow: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 4px; }
.previews, .current-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.previews:empty { display: none; }
.previews div { position: relative; }
.previews img, .current-photos img { aspect-ratio: 1; object-fit: cover; border-radius: 9px; width: 100%; border: 1px solid var(--border); }
.previews div:first-child::after { content: "Portada"; position: absolute; left: 4px; bottom: 4px; background: var(--blue); color: #fff; font-size: .65rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.current-photos label { display: grid; gap: 4px; font-size: .82rem; cursor: pointer; }
.current-photos label:has(input:checked) img { opacity: .35; outline: 2px solid var(--danger); }
.domain-fieldset { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--bg-2); display: grid; gap: 10px; }
.domain-fieldset legend { padding: 0 6px; }
.domain-fieldset .hint { margin: 0; font-size: .86rem; }
.domain-fieldset .alert { margin: 0; }
.verify-offer { border: 1px solid rgba(25, 195, 125, .6); border-radius: 14px; padding: 14px; background: rgba(25, 195, 125, .06); box-shadow: 0 0 18px rgba(25, 195, 125, .12); }
.verify-offer legend { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; color: #7ff0c0; }
.verify-offer legend svg { color: var(--ok); }
.verify-offer .check { font-size: .9rem; }
.req { background: linear-gradient(135deg, var(--blue), var(--neon)); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }
.opt { color: var(--muted); font-weight: 400; font-size: .82rem; }

/* ---- alertas y etiquetas ---- */
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: .95rem; border: 1px solid; }
.alert-ok { background: rgba(25, 195, 125, .09); color: #8ff3c8; border-color: rgba(25, 195, 125, .4); }
.alert-warn { background: rgba(245, 176, 65, .09); color: #ffd58f; border-color: rgba(245, 176, 65, .4); }
.alert-danger { background: rgba(255, 92, 108, .09); color: #ffadb6; border-color: rgba(255, 92, 108, .4); }
.alert-muted { background: rgba(255, 255, 255, .04); color: #c3cadb; border-color: var(--border); }
.alert code { background: rgba(0, 0, 0, .3); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; border: 1px solid; }
.badge-ok { background: rgba(25, 195, 125, .15); color: #8ff3c8; border-color: rgba(25, 195, 125, .45); }
.badge-warn { background: rgba(245, 176, 65, .15); color: #ffd58f; border-color: rgba(245, 176, 65, .45); }
.badge-danger { background: rgba(255, 92, 108, .15); color: #ffadb6; border-color: rgba(255, 92, 108, .45); }
.badge-muted { background: rgba(255, 255, 255, .06); color: #c3cadb; border-color: var(--border-strong); }

/* ---- verificación (pública y privada) ---- */
.verified-box { display: flex; gap: 12px; background: rgba(25, 195, 125, .07); border: 1px solid rgba(25, 195, 125, .45); border-radius: var(--radius); padding: 14px 16px; color: #b9f5da; font-size: .92rem; box-shadow: 0 0 18px rgba(25, 195, 125, .12); }
.verified-box > svg { width: 24px; height: 24px; color: var(--ok); }
.verified-box strong { color: #d8ffee; }
.verified-box p { margin: 4px 0 0; }
.verified-box ul.checks { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.verified-box ul.checks li { display: flex; gap: 6px; align-items: flex-start; }
.verified-box ul.checks svg { width: 16px; height: 16px; margin-top: 3px; stroke-width: 3; color: var(--ok); }
.unverified-box { background: rgba(255, 255, 255, .03); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; color: var(--muted); font-size: .88rem; }
.domain-info { margin-top: 8px; }
.domain-info .alert { margin: 8px 0 0; padding: 8px 10px; }
.verify-cta { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 9px 11px; border-radius: 12px; background: rgba(25, 195, 125, .07); border: 1px dashed rgba(25, 195, 125, .55); color: #b9f5da; text-decoration: none; }
.verify-cta svg { width: 18px; height: 18px; margin-top: 1px; color: var(--ok); }
.verify-cta a { color: #7ff0c0; }

/* ---- pago y resultado ---- */
.summary { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 560px) { .summary { grid-template-columns: 220px 1fr; align-items: center; } }
.summary-lines { background: var(--surface); border: 1px solid rgba(0, 210, 255, .3); border-radius: var(--radius); padding: 16px; box-shadow: 0 0 20px rgba(0, 102, 255, .12); }
.summary-lines > div:first-child { font-size: 1.02rem; }
.summary-lines .line { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.summary-lines .line strong { white-space: nowrap; color: #fff; }
.summary-lines .line.total { border-top: 1px solid var(--border); padding-top: 8px; font-size: 1.08rem; }
.summary-lines .line.total strong { color: var(--neon); text-shadow: 0 0 12px rgba(0, 210, 255, .5); }
.free-tag { color: var(--ok); font-weight: 800; }
.result { padding-top: 30px; }
.result-icon { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: #fff; }
.result-icon.ok { background: var(--ok); box-shadow: 0 0 26px rgba(25, 195, 125, .6); }
.result-icon.warn { background: var(--warn); box-shadow: 0 0 26px rgba(245, 176, 65, .5); }
.result-icon.danger { background: var(--danger); box-shadow: 0 0 26px rgba(255, 92, 108, .5); }
.result-icon.muted { background: #39425a; }
.result .stack { max-width: 320px; margin: 18px auto 0; }

/* ---- mis publicaciones ---- */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mine { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.mine-meta { margin-top: 8px; }
.mine .owner-actions { margin-top: 8px; }
.mine-item .alert { margin: 8px 0 0; padding: 8px 10px; }

/* ---- páginas de texto, cuenta y admin ---- */
.prose li { margin-bottom: 6px; color: #d2d9e8; }
.prose h2 { margin-top: 28px; }
.steps { padding-left: 20px; }
.steps li::marker { color: var(--neon); font-weight: 700; }
.auth .form { margin-bottom: 14px; }
.form a.center { display: block; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: 20px; }
.stats div { background: var(--surface); border: 1px solid rgba(0, 210, 255, .25); border-radius: var(--radius); padding: 14px 16px; }
.stats span { color: var(--muted); font-size: .85rem; display: block; }
.stats strong { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.admin-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.admin-box h2 { margin: 0 0 4px; font-size: 1.05rem; }
.review { border-top: 1px solid var(--border); padding: 12px 0; }
.review .owner-actions { margin: 8px 0; }
.reject-form input { font-size: .88rem; padding: 8px 12px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 200px; }
input.copy { margin: 8px 0 4px; font-size: .85rem; }
.verif-form { display: grid; gap: 10px; }
.verif-form .field span { font-size: .85rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.table tr:hover td { background: rgba(0, 210, 255, .03); }

.footer { padding: 26px 16px 34px; color: var(--muted); font-size: .9rem; border-top: 1px solid rgba(0, 210, 255, .15); }
.footer p { margin: 4px 0; }
.footer strong { color: #cfd7e8; }


/* ---- publicidad (imagen para WhatsApp) ---- */
.flyer-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .flyer-layout { grid-template-columns: minmax(0, 540px) 1fr; } }
.flyer-wrap { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(63, 200, 255, .4); box-shadow: 0 0 24px rgba(31, 162, 255, .3); background: #030916; min-height: 300px; margin: 0 auto; width: 100%; }
.flyer-wrap.story { max-width: 400px; }
.flyer-wrap canvas { width: 100%; height: auto; display: block; opacity: 0; transition: opacity .3s; }
.seg-2 { grid-template-columns: 1fr 1fr; }
.seg-2 span { font-size: .9rem; padding: 10px 6px; }
.flyer-wrap.ready canvas { opacity: 1; }
.flyer-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.flyer-wrap.ready .flyer-loading { display: none; }
.flyer-form { position: sticky; top: 96px; }

/* ---- fotos: cámara / galería ---- */
.photo-picker { display: grid; gap: 10px; }
.photo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-actions[hidden] { display: none; }
.photo-actions .btn { flex: 1; min-width: 160px; cursor: pointer; }
.photo-actions .btn svg { width: 22px; height: 22px; }
.photo-actions label.disabled { opacity: .45; pointer-events: none; }
.photo-actions .photo-camera[hidden] { display: none; }
.previews .thumb { position: relative; }
.previews .thumb img { cursor: pointer; }
.thumb-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(4, 10, 24, .85); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.thumb-x:hover { background: var(--danger); }
.photo-count { min-height: 1.2em; }

/* ---- valuación ---- */
h1 > svg { width: 1em; height: 1em; vertical-align: -0.12em; color: var(--neon); }
.valuation-cta { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 16px 20px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: linear-gradient(90deg, rgba(25, 195, 125, .1), rgba(6, 18, 44, .8)); border: 1px solid rgba(62, 224, 127, .5); box-shadow: 0 0 16px rgba(62, 224, 127, .15); }
.valuation-cta > svg { width: 52px; height: 52px; color: #3ee07f; flex-shrink: 0; stroke-width: 1.8; filter: drop-shadow(0 0 8px rgba(62, 224, 127, .55)); }
.valuation-cta > span:nth-child(2) { flex: 1; }
.valuation-cta strong { color: #fff; font-family: var(--font-display); font-size: 1.2rem; display: block; }
.valuation-cta:hover { box-shadow: 0 0 22px rgba(62, 224, 127, .3); }
/* botón "Valuar": verde y del mismo tamaño que "Publicar ahora" */
.btn-green { background: linear-gradient(180deg, #4be88a 0%, #19c37d 45%, #0e9f63 100%); color: #fff; border-color: #9ff5c6;
  box-shadow: 0 0 12px rgba(62, 224, 127, .7), 0 0 28px rgba(25, 195, 125, .3), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-green:hover { filter: brightness(1.1); box-shadow: 0 0 18px rgba(62, 224, 127, .9), 0 0 40px rgba(25, 195, 125, .4), inset 0 1px 0 rgba(255, 255, 255, .4); }
.valuation-cta .btn { font-size: 1.3rem; padding: 14px 30px; flex-shrink: 0; }
.valuation-cta .btn svg { width: 26px; height: 26px; }
@media (max-width: 760px) {
  .valuation-cta { flex-wrap: wrap; }
  .valuation-cta > span:nth-child(2) { flex-basis: calc(100% - 70px); }
  /* en el celular, los botones ocupan el ancho del recuadro y quedan centrados */
  .valuation-cta .btn, .sell-banner .btn { flex-basis: 100%; width: 100%; min-width: 0; margin: 4px 0 0; padding: 14px 12px; font-size: 1.2rem; }
  .sell-inner { align-items: stretch; }
}
.valuation-result { margin-top: 16px; text-align: center; padding: 22px; border-radius: 16px; border: 2px solid var(--line); background: rgba(6, 18, 44, .7); box-shadow: 0 0 22px rgba(31, 162, 255, .35); }
.valuation-result strong { display: block; font-family: var(--font-display); font-style: italic; font-size: 2rem; margin: 6px 0; color: #fff; text-shadow: 0 0 14px rgba(63, 200, 255, .55); }
.valuation-result p { color: #dbe8ff; margin: 8px 0; }
@media (min-width: 761px) { .valuation-cta .btn, .sell-banner .btn { min-width: 260px; } }
@media (min-width: 761px) { .valuation-cta { padding-right: 36px; } }

.backup-status { margin: 8px 0; padding-left: 18px; }
.backup-status li { margin-bottom: 4px; }

/* ---- solicitudes de precio de revista (panel) ---- */
.notif { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #ff3b5c; color: #fff; font: 700 .72rem/1 var(--font); box-shadow: 0 0 10px rgba(255, 59, 92, .7); font-style: normal; }
.notif.big { min-width: 26px; height: 26px; font-size: .9rem; vertical-align: middle; }
.tabbar a { position: relative; }
.tabbar .notif { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; }
.requests-box { border: 2px solid rgba(62, 224, 127, .55); box-shadow: 0 0 18px rgba(62, 224, 127, .15); }
.request-card { border-top: 1px solid var(--border); padding: 14px 0; display: grid; gap: 10px; }
.request-card:first-of-type { border-top: 0; }
.request-head { display: grid; gap: 2px; }
.request-head strong { font-family: var(--font-display); font-size: 1.1rem; color: #fff; }
.request-send { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.request-send .field { flex: 1; min-width: 220px; }
.request-send .btn { padding: 12px 26px; font-size: 1.1rem; }
.request-more summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.request-more .field { margin-top: 8px; }
.request-card.sent { opacity: .7; }
.request-status:empty { display: none; }
.request-status { color: #8ff3c8; margin: 0; }
.request-status.error { color: var(--danger); }
@media (max-width: 560px) { .request-send .btn { width: 100%; } }

/* ---- imágenes a los costados de los formularios (solo en pantallas anchas) ---- */
.side-art { display: none; }
@media (min-width: 1200px) {
  .side-art { display: block; position: fixed; inset: 78px 0 0 0; pointer-events: none; z-index: -1; }
  .side-art span { position: absolute; top: 0; bottom: 0; width: min(560px, calc((100vw - 720px) / 2)); background-size: cover; background-repeat: no-repeat; opacity: .85;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%); }
  .side-art span::after { content: ""; position: absolute; inset: 0; }
  .side-l { left: 0; background-image: url("/img/lado-izq.webp?v=2"); background-position: 0% center; }
  .side-r { right: 0; background-image: url("/img/lado-der.webp?v=2"); background-position: 100% center; }
  /* se funden con el fondo hacia el formulario y hacia el borde de la pantalla */
  .side-l::after { background: linear-gradient(90deg, rgba(4, 10, 24, .55) 0%, rgba(4, 10, 24, 0) 25%, rgba(4, 10, 24, 0) 55%, #040a18 100%); }
  .side-r::after { background: linear-gradient(270deg, rgba(4, 10, 24, .55) 0%, rgba(4, 10, 24, 0) 25%, rgba(4, 10, 24, 0) 55%, #040a18 100%); }
}
