:root {
  --paper: #f2f3fa;
  --surface: #ffffff;
  --ink: #0c0e2c;
  --ink-2: #3a3e63;
  --muted: #787da3;
  --line: #dfe2f0;
  --line-soft: #eceef8;
  --brand: #1562fc;
  --brand-ink: #ffffff;
  --brand-deep: color-mix(in srgb, var(--brand) 40%, #1800ad);
  --nav: color-mix(in srgb, var(--brand) 18%, #06061f);
  --danger: #d4005b;
  --ok: #0f8f5a;
  --warn: #9a6200;
  --serif: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --side-w: 248px;
  --tab-h: 62px;
  --shadow: 0 1px 2px rgba(12, 14, 44, 0.05), 0 10px 28px -14px rgba(12, 14, 44, 0.18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 2rem; line-height: 1.15; }
h2 { font-size: 1.2rem; margin-bottom: 14px; }
h3 { font-size: 1.12rem; line-height: 1.25; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: 0 0 auto; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.eyebrow { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.lead-text { color: var(--ink-2); margin-bottom: 20px; }
.hint { color: var(--muted); font-size: 0.88rem; margin-top: 18px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  background: var(--brand); color: var(--brand-ink);
  border: 1px solid var(--brand); border-radius: 6px;
  font: 600 0.95rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: filter 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 0.88rem; }
.btn.block { width: 100%; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { filter: none; border-color: var(--ink-2); }
.btn.quiet { background: transparent; color: var(--ink-2); border-color: transparent; }
.btn.quiet:hover { filter: none; background: var(--line-soft); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-quiet { background: var(--surface); color: var(--danger); border-color: var(--line); }
.btn.danger-quiet:hover { filter: none; border-color: var(--danger); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; background: none; border: 0; border-radius: 6px; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--line-soft); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 0.88rem; cursor: pointer; text-decoration: underline; }
.danger-text { color: var(--danger); }
.file-btn { cursor: pointer; }

/* ---------- formularios ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend, label.check { font-weight: 600; font-size: 0.88rem; }
.field legend { padding: 0; margin-bottom: 6px; }
.field small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 0 12px;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  appearance: none; -webkit-appearance: none;
}
select {
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
textarea { padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}
input[readonly] { background: var(--paper); }
input[type="file"] { padding: 9px; min-height: 0; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; appearance: auto; -webkit-appearance: auto; accent-color: var(--brand); }
input[type="color"] { padding: 3px; }
.grid2, .grid3, .grid4 { display: grid; gap: 16px; min-width: 0; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.4fr); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 680px) {
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-row { grid-template-columns: minmax(0, 1fr) 110px; }
}
.form-section { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 8px 0 -4px; }
label.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin: 0 0 18px; }
.form.card h2:not(:first-child) { margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line-soft); margin-bottom: 0; }
.form.card h2 { margin-bottom: 0; }
.savebar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  margin: 8px -22px -22px; padding: 14px 22px;
  background: var(--surface); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; z-index: 5;
}
.inline-field { width: 170px; }

.flash { border: 1px solid var(--line); border-left: 4px solid var(--ok); background: var(--surface); border-radius: 6px; padding: 12px 14px; margin: 0 0 18px; }
.flash.error { border-left-color: var(--danger); }
.flash.warn { border-left-color: #c28a1e; }
.flash a { font-weight: 600; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font: 600 0.74rem/1.2 var(--sans); border: 1px solid var(--line); color: var(--muted); background: var(--surface); white-space: nowrap; }
.pill.published { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.pill.nuevo { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.pill.off { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.count { font-style: normal; font: 700 0.7rem/1 var(--sans); background: var(--brand); color: var(--brand-ink); border-radius: 99px; padding: 4px 7px; margin-left: auto; }

/* ---------- estructura del panel ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--brand); font: 600 1.35rem/1.1 var(--serif); letter-spacing: -0.01em; }
.logo img { max-height: 36px; max-width: 170px; display: block; }

.side { display: none; position: fixed; inset: 0 auto 0 0; width: var(--side-w); flex-direction: column; padding: 26px 14px 14px; background: var(--surface); border-right: 1px solid var(--line); }
.side .logo { padding: 0 10px 24px; }
.side-nav { display: grid; gap: 2px; align-content: start; flex: 1; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.side-nav a:hover { background: var(--line-soft); }
.side-nav a.on { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--brand); font-weight: 600; }
.side-label { font: 600 0.7rem/1 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 22px 12px 8px; }
.side-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 6px 0 10px; border-top: 1px solid var(--line-soft); }
.side-foot form { margin: 0; }
.who { display: grid; min-width: 0; }
.who b { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { color: var(--muted); }

.mtop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; padding-top: calc(8px + env(safe-area-inset-top)); background: var(--surface); border-bottom: 1px solid var(--line); }
.mtop form { margin: 0; }
.mtop .logo { font-size: 1.2rem; }
.mtop .logo img { max-height: 30px; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; height: var(--tab-h); color: var(--muted); text-decoration: none; font-size: 0.72rem; font-weight: 600; }
.tabbar a.on { color: var(--brand); }
.tabbar .count { position: absolute; top: 8px; left: calc(50% + 6px); margin: 0; padding: 3px 6px; }

.main-in { max-width: 900px; margin: 0 auto; padding: 22px 16px calc(var(--tab-h) + 60px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) {
  .side { display: flex; }
  .mtop, .tabbar { display: none; }
  .main { margin-left: var(--side-w); }
  .main-in { padding: 40px 36px 60px; }
  .savebar { bottom: 0; }
}

.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 0 22px; flex-wrap: wrap; }
.ph h1 { overflow-wrap: anywhere; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: -4px 0 14px; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.back:hover { color: var(--ink); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 22px; overflow-x: auto; }
.tabs a { padding: 10px 14px; margin-bottom: -1px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; font-weight: 600; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--brand); }

/* ---------- propiedades ---------- */
.strip { display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; padding: 16px 20px; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.strip div { display: flex; align-items: baseline; gap: 8px; }
.strip b { font: 500 1.7rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.strip span { color: var(--muted); font-size: 0.9rem; }
.strip small { margin-left: auto; color: var(--muted); }

.props { display: grid; gap: 14px; }
.prop { display: grid; grid-template-columns: 190px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.prop-img { display: grid; place-items: center; background: var(--line-soft); color: var(--muted); min-height: 150px; }
.prop-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prop-body { padding: 16px 18px; display: grid; gap: 12px; min-width: 0; }
.prop-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.prop-head h3 a { color: var(--ink); text-decoration: none; }
.prop-head h3 a:hover { color: var(--brand); }
.prop-head p { margin: 4px 0 0; }
.prop-head .eyebrow { margin-bottom: 6px; }
.mini { display: flex; gap: 22px; margin: 0; flex-wrap: wrap; }
.mini div { display: grid; }
.mini dt { color: var(--muted); font-size: 0.74rem; }
.mini dd { margin: 0; font: 500 1.25rem/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.prop-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.prop-actions form { margin: 0; }
@media (max-width: 640px) {
  .prop { grid-template-columns: 1fr; }
  .prop-img { aspect-ratio: 16 / 9; min-height: 0; }
}

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 32px 24px; }
.empty h2 { font-size: 1.4rem; margin-bottom: 14px; }
.steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: baseline; }
.steps b { font: 500 1.6rem/1 var(--serif); color: var(--brand); width: 20px; }

.copybox { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.copybox input { flex: 1 1 260px; }
.copybox.slim { margin: 8px 0 0; }
.copybox.slim input { min-height: 38px; font-size: 0.85rem; }
.how { margin-top: 8px; }
.how summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.how ol { padding-left: 20px; margin: 12px 0; display: grid; gap: 10px; color: var(--ink-2); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpis div { display: grid; gap: 2px; padding: 12px 14px; background: var(--paper); border-radius: 8px; }
.kpis b { font: 500 1.9rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.kpis span { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr 1fr; } }
.spark { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; height: 96px; align-items: end; }
.spark-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; }
.spark-col i { display: block; background: var(--brand); opacity: 0.8; border-radius: 3px 3px 0 0; }
.spark-col small { text-align: center; font-size: 0.62rem; color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th { text-align: left; font: 600 0.74rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line-soft); }
.r { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; margin-bottom: 16px; }
.photo-grid figure { margin: 0; position: relative; display: grid; gap: 8px; align-content: start; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; background: var(--line-soft); }
.photo-grid .pill { position: absolute; top: 8px; left: 8px; }
.photo-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.photo-actions form { margin: 0; }
.uploader { margin: 0; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; color: var(--ink-2); }
.drop:hover { border-color: var(--brand); }
.drop span { display: grid; gap: 2px; }
.drop b { color: var(--ink); }
.drop small { color: var(--muted); font-size: 0.82rem; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.previews:empty { display: none; }
.previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }

/* ---------- contactos ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 -16px 18px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.chips a em { font-style: normal; opacity: 0.6; margin-left: 4px; }
.chips a.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
@media (min-width: 960px) { .chips { margin: 0 0 18px; padding: 0 0 4px; flex-wrap: wrap; overflow: visible; } }

.leads { display: grid; gap: 12px; }
.lead { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.lead.s-nuevo { border-left: 4px solid var(--brand); }
.lead.s-descartado, .lead.s-cerrado { opacity: 0.75; }
.lead-main { min-width: 0; }
.lead-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lead h3 { font-size: 1.15rem; }
.tel { display: inline-block; margin-top: 2px; font-weight: 600; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.lead .meta { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; }
.lead .meta a { color: var(--ink-2); }
.lead-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.lead-status { margin: 0; }
.lead-status select { min-height: 38px; width: auto; min-width: 150px; font-size: 0.88rem; }
.lead-note { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.lead-note summary { cursor: pointer; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.lead-note form { display: grid; gap: 8px; margin-top: 10px; }
.lead-note form + form { margin-top: 12px; }
@media (max-width: 680px) {
  .lead { grid-template-columns: 1fr; }
  .lead-actions { justify-content: stretch; }
  .lead-actions .btn { flex: 1 1 auto; }
  .lead-status { flex: 1 1 100%; }
  .lead-status select { width: 100%; }
}

/* ---------- ajustes ---------- */
.avatar-row { display: flex; align-items: center; gap: 16px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.avatar.ini { display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font: 500 1.5rem var(--serif); }
.logo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-prev { max-height: 44px; max-width: 180px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch { position: relative; display: grid; justify-items: center; gap: 6px; cursor: pointer; font-weight: 400 !important; }
.swatch > input { position: absolute; opacity: 0; pointer-events: none; }
.swatch > span { display: block; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.12); }
.swatch > input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.swatch > input:focus-visible + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand); }
.swatch small { color: var(--muted); font-size: 0.74rem; }
.swatch .custom { overflow: hidden; background: var(--paper); border: 1.5px dashed var(--ink-2); }
.swatch .custom input { width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; opacity: 0.001; }
.swatch .custom.has { border-style: solid; }
.brand-preview { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.brand-preview b { font: 500 1.5rem var(--serif); color: var(--brand); }
.brand-preview .btn { pointer-events: none; }

.team { display: grid; gap: 0; }
.member { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.member:first-child { border-top: 0; }
.member.off .member-info { opacity: 0.6; }
.member-info p { margin: 2px 0 0; }
.member-info b { margin-right: 8px; }
.member-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.member-actions form { margin: 0; }
.pw summary { list-style: none; cursor: pointer; }
.pw summary::-webkit-details-marker { display: none; }
.pw form { margin-top: 8px; }
.pw input { min-height: 38px; width: 190px; }

/* ---------- acceso ---------- */
body.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.auth-brand { background: var(--brand); color: var(--brand-ink); padding: 26px 24px; padding-top: calc(26px + env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 4px; }
.auth-name { font: 500 1.7rem/1.1 var(--serif); letter-spacing: -0.01em; }
.auth-brand img { max-height: 48px; max-width: 220px; width: auto; align-self: flex-start; background: #fff; padding: 8px 12px; border-radius: 6px; }
.auth-brand p { margin: 0; opacity: 0.8; font-size: 0.92rem; }
.auth-main { display: grid; place-items: start center; padding: 28px 20px 48px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { margin-bottom: 8px; }
.auth-box .form { margin-top: 18px; }
@media (min-width: 900px) {
  body.auth { grid-template-columns: 5fr 6fr; grid-template-rows: 1fr; }
  .auth-brand { justify-content: flex-end; padding: 56px; }
  .auth-name { font-size: 3rem; max-width: 12ch; }
  .auth-main { place-items: center; padding: 48px; }
}

/* ---------- diseño de landing / extras de contacto ---------- */
.design-cta { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 22px; margin: 0 0 18px; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-radius: 10px; }
.design-cta h2 { margin-bottom: 4px; }
.design-cta p { margin: 0; max-width: 46ch; }
.design-cta form { margin: 0; }
.lead .tel.mail { display: block; font-weight: 500; font-size: 0.92rem; color: var(--ink-2); }
.lead .extra { margin: 8px 0 0; font-size: 0.92rem; color: var(--ink-2); }


/* =====================================================================
   Identidad Anunciemos Ya: azul eléctrico, índigo y Space Grotesk
   ===================================================================== */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: 2.1rem; font-weight: 700; }
.card, .prop, .lead, .strip, .empty, .kpi { box-shadow: var(--shadow); border-radius: 16px; }
.card { padding: 24px; }
.btn { border-radius: 10px; border: 0; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); box-shadow: 0 6px 16px -8px var(--brand); }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: var(--surface); border: 1px solid var(--line); box-shadow: none; color: var(--ink); }
.btn.quiet { background: transparent; box-shadow: none; }
.btn.danger { background: var(--danger); box-shadow: none; }
.btn.danger-quiet { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.btn.light { background: #fff; color: #0c0e2c; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5); }
.btn.ghost-w { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: none; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.pill.published { color: var(--ok); }
.flash { border-radius: 12px; }

/* barra lateral y cabecera móvil */
.side { background: var(--nav); border-right: 0; color: #fff; }
.side .logo { color: #fff; font-size: 1.3rem; }
.side .logo img { background: #fff; padding: 6px 10px; border-radius: 8px; max-height: 40px; }
.side-nav a { color: rgba(255, 255, 255, 0.72); border-radius: 10px; }
.side-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.side-nav a.on { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 3px 0 0 #00b2ff; }
.side-label { color: rgba(255, 255, 255, 0.42); }
.side-foot { border-top-color: rgba(255, 255, 255, 0.12); }
.side-foot .who small { color: rgba(255, 255, 255, 0.55); }
.side-foot .icon-btn { color: rgba(255, 255, 255, 0.75); }
.side-foot .icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.count { background: #00b2ff; color: #04112a; }
.count.w { background: #fff; color: #1800ad; margin-left: 6px; }
.mtop { background: var(--nav); border-bottom: 0; }
.mtop .logo { color: #fff; }
.mtop .logo img { background: #fff; padding: 4px 8px; border-radius: 6px; }
.mtop .icon-btn { color: #fff; }
.tabbar { box-shadow: 0 -8px 24px -16px rgba(12, 14, 44, 0.3); }
.tabbar a.on { color: var(--brand); }

/* resumen */
.hero-card {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 28px 30px; margin: 0 0 18px; border-radius: 20px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #6b31fb 0%, transparent 55%), radial-gradient(90% 120% at 0% 100%, #00b2ff55 0%, transparent 60%), linear-gradient(135deg, var(--brand), #1800ad);
  box-shadow: 0 24px 50px -24px var(--brand);
}
.hero-card .eyebrow { color: rgba(255, 255, 255, 0.7); }
.hero-card h1 { font-size: 2.4rem; margin-bottom: 6px; }
.hero-line { margin: 0; font-size: 1.05rem; color: rgba(255, 255, 255, 0.88); max-width: 46ch; }
.hero-line b { font: 700 1.2rem var(--serif); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; display: grid; gap: 2px; }
.kpi span { color: var(--muted); font-size: 0.84rem; font-weight: 500; }
.kpi b { font: 700 2.3rem/1.1 var(--serif); letter-spacing: -0.03em; }
.kpi small { color: var(--muted); font-size: 0.8rem; }
.delta.up { color: var(--ok); font-weight: 600; }
.delta.down { color: var(--danger); font-weight: 600; }
@media (max-width: 760px) { .kpi-row { grid-template-columns: 1fr 1fr; } .hero-card h1 { font-size: 1.9rem; } }
.legend { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 10px; }
.lg.v { background: color-mix(in srgb, var(--brand) 30%, #fff); margin-left: 0; }
.lg.l { background: var(--brand); }
.chart { width: 100%; height: 190px; margin-top: 10px; display: block; }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.chart .bv { fill: color-mix(in srgb, var(--brand) 28%, #fff); }
.chart .bl { fill: var(--brand); }
.chart .tx { font: 500 11px var(--sans); fill: var(--muted); text-anchor: middle; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 0; } }
.two .card h2 { margin-bottom: 12px; }
.more { font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.sec-head { margin: 8px 0 14px; }
.sec-head h2 { margin: 0; }
.mini-leads { list-style: none; margin: 0; padding: 0; display: grid; }
.mini-leads li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.mini-leads li:first-child { border-top: 0; }
.mini-leads li > div { flex: 1; min-width: 0; display: grid; }
.mini-leads small { color: var(--muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-leads .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); font: 700 1rem var(--serif); }
code { background: var(--paper); padding: 2px 6px; border-radius: 4px; font-size: 0.84em; }
.prop-head h3 a:hover { color: var(--brand); }
.eyebrow { color: var(--brand); }

/* acceso */
.auth-brand {
  background: radial-gradient(100% 90% at 100% 0%, #6b31fb 0%, transparent 60%), radial-gradient(80% 80% at 0% 100%, #00b2ff66 0%, transparent 60%), linear-gradient(145deg, var(--brand), #1800ad);
}
.auth-name { font-family: var(--serif); font-weight: 700; letter-spacing: -0.03em; }

/* importar desde un aviso */
.import-card { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, #fff), #fff 70%); }
.import-card p { margin-bottom: 14px; max-width: 60ch; }
.import-card .copybox { margin: 0; }
.or-line { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.86rem; margin: 6px 0 18px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* responsable de la publicación */
.broker-box { padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--brand) 4%, #fff); display: grid; gap: 12px; }
.broker-box.missing { border-color: #d98e04; background: #fff8e8; }
.broker-box h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.broker-box p { margin: 0; }
.broker-warn { color: #8a5a00; font-weight: 600; font-size: 0.9rem; }
.form.card .broker-box { margin-top: 10px; }
