/* ============================================================
   Loquoosex — Hoja de estilos principal
   ============================================================ */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f4f4;
  --ink: #262626;
  --ink-soft: #6b6b6b;
  --line: #e2e2e2;
  --accent: #d81f26;
  --accent-strong: #b3141a;
  --accent-ink: #ffffff;
  --accent-soft: #fdecec;
  --link: #1a5fb4;
  --call-blue: #1f6fd6;
  --wa-green: #1faa55;
  --ok: #177245;
  --ok-bg: #e3f4ea;
  --no: #cf2222;
  --gold: #9a6b12;
  --head-bg: #3a3a3a;
  --head-ink: #f5f5f5;
  --radius: 6px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: var(--link); }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.01em; }

/* ---------- Puerta +18 ---------- */
.gate {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16, 8, 12, .88);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.gate-card {
  background: var(--surface); max-width: 430px; width: 100%;
  border-radius: 8px; padding: 30px 28px 24px; text-align: center;
  border: 1px solid var(--line);
}
.gate-badge {
  width: 62px; height: 62px; margin: 0 auto 12px;
  border: 3px solid var(--accent); border-radius: 50%;
  color: var(--accent); font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.gate-card h2 { margin: 0 0 8px; font-size: 24px; }
.gate-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 14.5px; }
.gate-actions { display: grid; gap: 9px; }
.gate-legal { margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Botones ---------- */
.btn {
  border: 0; border-radius: var(--radius); padding: 11px 18px;
  font-weight: 700; font-size: 14.5px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Barra superior oscura ---------- */
.topbar { background: var(--head-bg); color: var(--head-ink); font-size: 12.5px; }
.topbar-in { display: flex; align-items: center; gap: 12px; padding: 7px 0; flex-wrap: wrap; }
.topbar .spacer { margin-left: auto; }
.topbar a.top-link { color: var(--head-ink); text-decoration: none; opacity: .85; font-weight: 600; }
.topbar a.top-link:hover { opacity: 1; text-decoration: underline; }
.btn-login {
  border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: var(--head-ink);
  padding: 8px 13px; border-radius: var(--radius); font-weight: 700; font-size: 13.5px; text-decoration: none;
  display: inline-flex; align-items: center;
}
.btn-login:hover { background: rgba(255, 255, 255, .12); }
.acct-chip {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px;
  background: rgba(255, 255, 255, .12); color: var(--head-ink);
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 7px 13px;
}
.burger {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius);
  color: var(--head-ink);
}
.burger svg { width: 20px; height: 20px; }
.main-menu { border-top: 1px solid rgba(255, 255, 255, .18); }
.main-menu[hidden] { display: none; }
.menu-in { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 10px 0 12px; }
.menu-in a { color: var(--head-ink); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.menu-in a:hover { text-decoration: underline; }

/* ---------- Marca ---------- */
.brand-block { background: var(--surface); }
.brand-in { padding: 20px 0 4px; text-align: center; }
.brand { text-decoration: none; color: var(--ink); display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.brand-name { font-family: var(--font-display); font-size: 44px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.brand-name em { color: var(--accent); font-style: normal; }
.brand-tag { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

/* ---------- Banner de lanzamiento ---------- */
.launch-banner {
  background: linear-gradient(100deg, var(--accent-strong), var(--accent) 55%, #e8383f);
  color: #fff; text-align: center; padding: 18px 16px;
}
.launch-banner .lb-name { font-family: var(--font-display); font-weight: 900; font-size: 30px; letter-spacing: -.01em; display: block; }
.launch-banner .lb-msg { font-size: 16.5px; font-weight: 700; display: block; margin-top: 2px; }
.launch-banner .lb-sub { font-size: 13.5px; opacity: .92; display: block; margin-top: 3px; }
.launch-banner .btn { margin-top: 10px; background: #fff; color: var(--accent); }

/* ---------- Buscador ---------- */
.search-block { background: var(--surface); border-bottom: 1px solid var(--line); }
.search-form { display: grid; gap: 9px; padding: 14px 0 20px; max-width: 780px; margin: 0 auto; }
.search-row { display: flex; gap: 9px; }
.search-row select, .search-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 14.5px;
  padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
}
.search-row select:disabled { background: var(--surface-2); color: var(--ink-soft); }
.search-row .btn { flex: none; padding: 11px 28px; }

/* ---------- Barra de categorías ---------- */
.catbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.catbar-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catbar-in::-webkit-scrollbar { display: none; }
.catbar a {
  flex: none; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 14px; padding: 11px 14px;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.catbar a:hover { color: var(--accent); }
.catbar a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Franjas de sección ---------- */
.band {
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 10px 16px; border-radius: var(--radius); margin: 22px 0 6px;
}
.list-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }
.list-tools h1 { font-size: 20px; margin: 0; font-weight: 800; }
.list-tools .sortbox { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); font-weight: 600; margin-left: auto; }
.list-tools select {
  font: inherit; font-weight: 600; font-size: 14px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 10px;
}

/* ---------- Filas de anuncios (compactas, sin tarjetas) ---------- */
.ad-list { display: block; }
.ad-row {
  position: relative; display: grid; grid-template-columns: 86px 1fr; gap: 10px;
  padding: 9px 34px 9px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.ad-thumb { display: block; width: 86px; height: 92px; overflow: hidden; background: var(--surface-2); border-radius: 4px; flex: none; }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-thumb.no-photo { display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 11px; text-align: center; }
.ad-info { min-width: 0; }
.ad-title { margin: 0; font-size: 16px; font-weight: 800; text-transform: uppercase; line-height: 1.25; }
.ad-title a { color: var(--accent); text-decoration: none; }
.ad-title a:hover { text-decoration: underline; }
.ad-loc { margin: 1px 0 0; font-size: 13px; font-weight: 700; color: var(--accent); }
.ad-meta { margin: 2px 0 0; font-size: 13.5px; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; }
.ad-meta .sep { color: var(--ink-soft); }
.ad-meta .phone { font-weight: 800; letter-spacing: .02em; }
.ico { display: inline-flex; vertical-align: -3px; }
.ico svg { width: 16px; height: 16px; }
.ad-desc { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top-pill {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 4px; text-transform: uppercase;
}
.crown-badge {
  position: absolute; top: 8px; right: 2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.crown-badge svg { width: 18px; height: 18px; }
.autorenew-chip { font-size: 11.5px; font-weight: 700; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.empty { border: 1px dashed var(--line); border-radius: 8px; padding: 30px 20px; text-align: center; color: var(--ink-soft); background: var(--surface); margin: 12px 0; }

/* ---------- Paginación ---------- */
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 22px 0 8px; }
.pg { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 13px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; background: var(--surface); }
.pg:hover { border-color: var(--accent); color: var(--accent); }
.pg.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Migas ---------- */
.crumbs { padding: 14px 0 2px; font-size: 13px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Ficha de anuncio ---------- */
.ad-detail { padding-bottom: 90px; }
.ad-detail h1 { font-size: 26px; margin: 6px 0 2px; text-transform: uppercase; color: var(--accent); }
.gallery { display: grid; gap: 10px; margin: 12px 0 4px; }
.gallery-main { width: 100%; max-height: 520px; object-fit: contain; background: var(--surface-2); border-radius: 8px; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; border: 2px solid var(--line); cursor: pointer; }
.gallery-thumbs img.on { border-color: var(--accent); }
.ficha-h { font-size: 16px; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-weight: 700; }
.chars { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 22px; margin: 0; }
.chars div { display: flex; gap: 6px; font-size: 14.5px; flex-wrap: wrap; }
.chars dt { color: var(--ink-soft); }
.chars dd { margin: 0; font-weight: 600; }
.pc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pc-box { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-align: center; background: var(--surface); }
.pc-box h3 { margin: 0; background: var(--accent); color: var(--accent-ink); font-size: 17px; padding: 9px 10px; }
.pc-price { font-size: 32px; font-weight: 800; font-family: var(--font-display); margin: 16px 0 18px; }
.pc-phone { font-size: 25px; font-weight: 800; font-family: var(--font-display); margin: 12px 0 2px; }
.pc-phone a { color: var(--ink); text-decoration: none; }
.pc-icons { display: flex; gap: 14px; justify-content: center; padding: 6px 0 16px; }
.pc-icons a { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.pc-icons svg { width: 26px; height: 26px; }
.pc-call { background: var(--call-blue); }
.pc-wa { background: var(--wa-green); }
.svc-block { margin: 16px 0 4px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.svc-block h3 { margin: 0; background: var(--accent); color: var(--accent-ink); font-size: 16.5px; padding: 9px 14px; text-align: center; }
.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 14px; padding: 10px 14px 12px; list-style: none; margin: 0; }
.svc-list li { font-size: 13.5px; font-weight: 600; display: flex; gap: 6px; align-items: baseline; padding: 2px 0; }
.svc-list li.off { color: var(--ink-soft); font-weight: 500; }
.svc-list .mk { font-weight: 800; }
.svc-list .ok { color: var(--ok); }
.svc-list .no { color: var(--no); }
.desc-body { font-size: 15px; white-space: pre-line; }
.safety-note { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 13px; color: var(--ink-soft); margin: 16px 0 0; }
.safety-note strong { color: var(--ink); }
.report-link { display: inline-block; margin-top: 14px; color: var(--ink-soft); font-size: 13px; background: none; border: 0; text-decoration: underline; padding: 0; }
.callbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; z-index: 80; box-shadow: 0 -4px 14px rgba(0, 0, 0, .18); }
.callbar a { color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 10px; text-decoration: none; font-family: var(--font-display); }
.callbar svg { width: 22px; height: 22px; flex: none; }
.callbar .cb-call { flex: 1.15; background: var(--call-blue); font-size: 21px; }
.callbar .cb-wa { flex: 1; background: var(--wa-green); font-size: 15.5px; }

/* ---------- Formularios ---------- */
.form-card { max-width: 640px; margin: 26px auto 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.form-card h1 { margin: 0 0 4px; font-size: 24px; }
.form-sub { color: var(--ink-soft); margin: 0 0 18px; font-size: 14px; }
.field { margin-bottom: 13px; }
.field > label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.field .hint { font-weight: 500; color: var(--ink-soft); font-size: 12.5px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 14.5px; padding: 10px 11px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ferr { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent-strong); border-radius: var(--radius); padding: 10px 13px; font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.fok { background: var(--ok-bg); border: 1px solid var(--ok); color: var(--ok); border-radius: var(--radius); padding: 10px 13px; font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.pass-row { display: flex; gap: 8px; }
.pass-row input { flex: 1; min-width: 0; }
.pass-row .btn { flex: none; padding: 10px 12px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 7px; }
.svc-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; background: var(--surface); margin: 0; }
.svc-item:hover { border-color: var(--accent); }
.svc-item input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; flex: none; }
.wa-opts { display: flex; gap: 8px; }
.wa-opts label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; font-size: 14px; font-weight: 700; cursor: pointer; background: var(--surface); margin: 0; }
.wa-opts label:hover { border-color: var(--accent); }
.wa-opts input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.photo-item { position: relative; width: 96px; }
.photo-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 2px solid var(--line); }
.photo-item.main img { border-color: var(--gold); }
.photo-del { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #d92323; color: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.photo-main-btn { width: 100%; margin-top: 5px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 5px; padding: 4px 2px; font-size: 11.5px; font-weight: 700; }
.photo-badge { display: block; text-align: center; margin-top: 5px; font-size: 11.5px; font-weight: 800; color: var(--gold); }
.photo-count { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.debug-code { background: #fff8e1; border: 1px dashed var(--gold); border-radius: var(--radius); padding: 10px 13px; font-size: 14px; margin: 0 0 14px; }

/* ---------- Mis anuncios ---------- */
.myad { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; background: var(--surface); }
.myad.off { background: var(--surface-2); }
.myad-head { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.myad-head > img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; }
.myad.off .myad-head > img { filter: grayscale(.6); opacity: .65; }
.myad h3 { margin: 0; font-size: 16.5px; color: var(--accent); text-transform: uppercase; }
.myad h3 a { color: var(--accent); text-decoration: none; }
.myad .meta { color: var(--ink-soft); font-size: 13px; margin: 2px 0 3px; }
.myad .date { color: var(--ink-soft); font-size: 12.5px; margin: 0 0 7px; }
.status-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.chip-top { background: var(--accent); color: #fff; }
.chip-plain { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); }
.chip-renew { background: var(--ok-bg); color: var(--ok); }
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.act-btn { border: none; border-radius: var(--radius); padding: 12px 8px; font-size: 15px; font-weight: 700; color: #fff; text-decoration: none; text-align: center; display: block; }
.act-btn:hover { filter: brightness(1.08); }
.act-on { background: #0e7a3d; }
.act-on.is-off { background: #8a8f98; }
.act-del { background: #d92323; }
.act-del.confirm { background: #8f1414; }
.act-ver { background: #1aa64b; }
.act-off { background: #1f8a7a; }
.act-blue { background: #2f6fd0; }
.act-edit { background: #e8890c; }
.improve { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.improve h4 { margin: 0 0 3px; font-size: 14.5px; }
.improve p { margin: 0 0 9px; font-size: 13px; color: var(--ink-soft); }
.upg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.edit-form { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.edit-form h4 { margin: 0 0 9px; font-size: 14.5px; }

/* ---------- Secciones portada ---------- */
.promo { margin: 24px 0 6px; background: var(--head-bg); color: var(--head-ink); border-radius: 8px; padding: 26px 20px; text-align: center; }
.promo h2 { margin: 0 0 6px; font-size: 26px; color: #fff; }
.promo p { margin: 0 auto 15px; opacity: .85; font-size: 14.5px; max-width: 560px; }
section.block { padding: 30px 0 4px; }
.sec-head { margin-bottom: 14px; }
.sec-head h2 { font-size: 22px; margin: 0; }
.sec-head p { margin: 3px 0 0; color: var(--ink-soft); font-size: 14px; }
.city-cols { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; columns: 4; column-gap: 26px; }
.city-cols a { display: block; color: var(--ink); text-decoration: none; padding: 5px 4px; font-size: 14px; font-weight: 600; break-inside: avoid; border-radius: 4px; }
.city-cols a:hover { color: var(--accent); background: var(--accent-soft); }
.trust { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.trust h3 { margin: 0 0 5px; font-size: 16.5px; }
.trust p { margin: 0; color: var(--ink-soft); font-size: 13.5px; }

/* ---------- Legales / contacto ---------- */
.legal-body { font-size: 14.5px; max-width: 820px; }
.legal-body h3 { font-size: 16px; margin: 18px 0 4px; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body p { margin: 0 0 10px; }
.contact-block { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 15px 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.contact-block strong { font-size: 15.5px; font-family: var(--font-display); }

/* ---------- Pie ---------- */
footer { margin-top: 44px; border-top: 2px solid var(--accent); background: var(--surface); }
.foot-in { padding: 24px 0 90px; display: grid; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.foot-links a:hover { color: var(--accent); }
.foot-note { color: var(--ink-soft); font-size: 12.5px; max-width: 820px; margin: 0; }

/* ---------- Aviso de cookies ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--head-bg); color: var(--head-ink);
  padding: 12px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  font-size: 13.5px;
}
.cookie-bar p { margin: 0; flex: 1 1 280px; }
.cookie-bar a { color: #fff; }

/* ---------- Admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 12px 0 26px; }
.admin-table th, .admin-table td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.admin-table th { background: var(--surface-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 20px; }
.stat { border: 1px solid var(--line); border-radius: 8px; padding: 14px; text-align: center; }
.stat b { display: block; font-size: 26px; font-family: var(--font-display); color: var(--accent); }
.stat span { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }

/* ---------- Modal de textos legales ---------- */
.modal-legal { position: fixed; inset: 0; z-index: 160; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-legal[hidden] { display: none; }
.modal-legal .modal-bg { position: absolute; inset: 0; background: rgba(14, 6, 10, .72); }
.legal-modal-card {
  position: relative; background: var(--surface); color: var(--ink);
  width: min(720px, 100%); max-height: 86vh; overflow: auto;
  border-radius: 10px; padding: 26px 28px; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.legal-modal-card h2 { margin: 0 0 10px; font-size: 22px; padding-right: 40px; }
.legal-modal-card .modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--surface-2); color: var(--ink); font-size: 16px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 8px;
  font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 300;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .city-cols { columns: 2; }
}
@media (max-width: 560px) {
  .brand-name { font-size: 32px; }
  .search-row { flex-wrap: wrap; }
  .search-row select { flex: 1 1 130px; }
  .search-row .btn { flex: 1 1 auto; }
  .ad-row { grid-template-columns: 80px 1fr; padding-right: 30px; }
  .ad-thumb { width: 80px; height: 86px; }
  .ad-title { font-size: 15px; }
  .chars { grid-template-columns: 1fr; }
  .pc-row { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: repeat(2, 1fr); }
  .frow { grid-template-columns: 1fr; }
  .form-card { padding: 20px 16px; }
  .myad-head { grid-template-columns: 72px 1fr; }
  .myad-head > img { width: 72px; height: 72px; }
  .act-btn { font-size: 14px; padding: 11px 6px; }
  .topbar .hide-sm { display: none; }
  .launch-banner .lb-name { font-size: 24px; }
  .launch-banner .lb-msg { font-size: 15px; }
}
