/* =====================================================================
   Área de cuenta de asesores y propietarios + Galba Ads.
   Todo usa el prefijo "cx-" para no chocar con styles.css.
   Base: verde y dorado de Galba; acento naranja/amarillo para acciones de Galba Ads.
   ===================================================================== */
:root {
  --cx-bg: #f3f4f1;
  --cx-surface: #ffffff;
  --cx-line: #e3e6e1;
  --cx-text: #1d2422;
  --cx-muted: #5d6763;
  --cx-brand: #0b3a3c;
  --cx-brand-2: #12595c;
  --cx-brand-soft: #e4efee;
  --cx-gold: #c8a25c;
  --cx-gold-soft: #f6eedd;
  --cx-accent: #ff7a00;
  --cx-accent-2: #ffb800;
  --cx-accent-soft: #fff2e3;
  --cx-blue: #2f6fde;
  --cx-green: #1f9254;
  --cx-red: #c8372d;
  --cx-radius: 14px;
  --cx-shadow: 0 1px 2px rgba(16, 24, 22, .05), 0 4px 16px rgba(16, 24, 22, .06);
  --cx-shadow-lg: 0 10px 40px rgba(11, 58, 60, .18);
}

body.cx-body { background: var(--cx-bg); }
/* styles.css rellena todos los svg (svg { fill: currentColor }); los íconos de línea declaran fill="none". */
svg[fill="none"] { fill: none; }
.cx-body .site-footer { margin-top: 0; }

/* ---------- Esqueleto ---------- */
.cx-shell {
  max-width: 1280px; margin: 0 auto; padding: 24px 20px 48px;
  display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start;
}
.cx-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.cx-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.cx-me {
  background: linear-gradient(135deg, var(--cx-brand) 0%, var(--cx-brand-2) 100%);
  color: #fff; border-radius: var(--cx-radius); padding: 18px; box-shadow: var(--cx-shadow);
  display: flex; gap: 12px; align-items: center; text-decoration: none;
}
.cx-me:hover { filter: brightness(1.05); }
.cx-me-name { font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.25; word-break: break-word; }
.cx-me-sub { font-size: 12px; opacity: .85; margin-top: 2px; }

.cx-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: var(--cx-gold); color: var(--cx-brand); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 18px; border: 2px solid rgba(255,255,255,.6);
}
.cx-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-avatar.lg { width: 96px; height: 96px; font-size: 34px; border-width: 3px; }

.cx-nav { background: var(--cx-surface); border-radius: var(--cx-radius); box-shadow: var(--cx-shadow); padding: 8px; display: flex; flex-direction: column; }
.cx-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: var(--cx-text); text-decoration: none; font-weight: 500; font-size: 15px; position: relative;
}
.cx-nav a svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--cx-muted); }
.cx-nav a:hover { background: var(--cx-bg); }
.cx-nav a.active { background: var(--cx-brand-soft); color: var(--cx-brand); font-weight: 700; }
.cx-nav a.active svg { color: var(--cx-brand); }
.cx-nav a.cx-nav-ads { background: linear-gradient(90deg, var(--cx-accent-soft), #fff); }
.cx-nav a.cx-nav-ads svg { color: var(--cx-accent); }
.cx-nav a.cx-nav-ads.active { background: var(--cx-accent-soft); color: #9a4600; }
.cx-nav hr { border: 0; border-top: 1px solid var(--cx-line); margin: 6px 4px; }
.cx-badge {
  margin-left: auto; background: var(--cx-red); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center;
}
.cx-side-cta { display: flex; }
.cx-side-cta .cx-btn { width: 100%; }

/* Barra inferior en móvil */
.cx-tabs { display: none; }

/* ---------- Encabezado de página ---------- */
.cx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cx-head h1 { font-family: var(--font-head); font-size: 28px; line-height: 1.15; margin: 0; color: var(--cx-text); }
.cx-head p { margin: 6px 0 0; color: var(--cx-muted); font-size: 15px; }
.cx-head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cx-link { color: var(--cx-blue); font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 14px; padding: 6px 4px; display: inline-flex; gap: 6px; align-items: center; }
.cx-link:hover { text-decoration: underline; }
.cx-link.muted { color: var(--cx-muted); }
.cx-link svg { width: 18px; height: 18px; }

/* ---------- Botones ---------- */
.cx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none;
  transition: transform .12s, box-shadow .15s, background .15s, opacity .15s; white-space: nowrap;
}
.cx-btn:active { transform: translateY(1px); }
.cx-btn:disabled, .cx-btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; transform: none; }
.cx-btn svg { width: 18px; height: 18px; }
.cx-btn-primary { background: var(--cx-brand); color: #fff; }
.cx-btn-primary:hover { background: var(--cx-brand-2); }
.cx-btn-accent { background: linear-gradient(180deg, #ff8f1f, var(--cx-accent)); color: #fff; box-shadow: 0 4px 14px rgba(255, 122, 0, .35); }
.cx-btn-accent:hover { box-shadow: 0 6px 20px rgba(255, 122, 0, .45); }
.cx-btn-ghost { background: var(--cx-surface); color: var(--cx-text); border-color: var(--cx-line); }
.cx-btn-ghost:hover { background: var(--cx-bg); }
.cx-btn-soft { background: var(--cx-brand-soft); color: var(--cx-brand); }
.cx-btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.cx-btn-lg { min-height: 54px; padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.cx-btn-wa { background: #25d366; color: #fff; }

/* ---------- Tarjetas ---------- */
.cx-card { background: var(--cx-surface); border-radius: var(--cx-radius); box-shadow: var(--cx-shadow); padding: 20px; }
.cx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cx-card-head h2 { font-family: var(--font-head); font-size: 18px; margin: 0; color: var(--cx-text); }
.cx-card-head p { margin: 2px 0 0; color: var(--cx-muted); font-size: 13px; }
.cx-muted { color: var(--cx-muted); }
.cx-small { font-size: 13px; }

.cx-alert { border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.5; display: flex; gap: 12px; align-items: flex-start; }
.cx-alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.cx-alert-info { background: #eaf1fb; color: #1d3f72; }
.cx-alert-ok { background: #e6f5ec; color: #1b5a36; }
.cx-alert-warn { background: #fff4dc; color: #6b4b00; }
.cx-alert-error { background: #fdeceb; color: #8a1f1f; }
.cx-alert[hidden] { display: none !important; }

/* ---------- Chips de estado ---------- */
.cx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cx-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.cx-chip.nodot::before { display: none; }
.cx-chip-verde { background: #e3f4ea; color: #17733f; }
.cx-chip-azul { background: #e5eefc; color: #2556a8; }
.cx-chip-ambar { background: #fff1d6; color: #8a5a00; }
.cx-chip-rojo { background: #fde4e2; color: #a82b22; }
.cx-chip-gris { background: #eceeec; color: #555d5a; }
.cx-chip-naranja { background: var(--cx-accent-soft); color: #b04f00; }
.cx-chip-dorado { background: var(--cx-gold-soft); color: #7a5a1c; }

/* ---------- KPIs simples (inicio) ---------- */
.cx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cx-kpi { background: var(--cx-surface); border-radius: var(--cx-radius); box-shadow: var(--cx-shadow); padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cx-kpi-label { color: var(--cx-muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.cx-kpi-label svg { width: 16px; height: 16px; }
.cx-kpi-num { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--cx-text); line-height: 1.1; }
.cx-kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cx-delta { font-size: 12px; font-weight: 700; }
.cx-delta.up { color: var(--cx-green); }
.cx-delta.down { color: var(--cx-red); }
.cx-delta.flat { color: var(--cx-muted); }
.cx-spark { width: 90px; height: 28px; }

/* ---------- Pestañas-métrica estilo Mercado Libre Ads ---------- */
.cx-mtabs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.cx-mtab {
  flex: 1 0 150px; scroll-snap-align: start; text-align: left; cursor: pointer;
  background: var(--cx-surface); border: 2px solid transparent; border-radius: 12px; padding: 14px 16px;
  box-shadow: var(--cx-shadow); font: inherit; color: inherit; position: relative; min-height: 96px;
  transition: border-color .15s, background .15s;
}
.cx-mtab:hover { border-color: var(--cx-line); }
.cx-mtab[aria-pressed=true] { border-color: var(--mt-color, var(--cx-brand)); background: #fff; }
.cx-mtab[aria-pressed=true]::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 4px; border-radius: 4px 4px 0 0; background: var(--mt-color, var(--cx-brand));
}
.cx-mtab-t { display: flex; align-items: center; gap: 6px; color: var(--cx-muted); font-size: 13px; font-weight: 500; }
.cx-mtab-n { display: block; font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--cx-text); margin-top: 8px; }
.cx-mtab-d { display: block; font-size: 12px; margin-top: 2px; }
.cx-help {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--cx-muted); cursor: help; position: relative; flex-shrink: 0; background: none; padding: 0;
}
.cx-tip {
  position: absolute; z-index: 30; max-width: 260px; background: #1d2422; color: #fff; font-size: 12px; line-height: 1.45;
  padding: 10px 12px; border-radius: 8px; box-shadow: var(--cx-shadow-lg); pointer-events: none;
}

/* ---------- Gráficas ---------- */
.cx-chart { position: relative; width: 100%; }
.cx-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.cx-chart .gx-grid { stroke: #e9ece8; stroke-dasharray: 4 4; }
.cx-chart .gx-axis { fill: #8a938f; font-size: 11px; font-family: var(--font-body); }
.cx-chart .gx-guide { stroke: #9aa39f; stroke-dasharray: 3 3; }
.cx-chart-tip {
  position: absolute; z-index: 20; pointer-events: none; background: #fff; border-radius: 10px; box-shadow: var(--cx-shadow-lg);
  padding: 10px 12px; font-size: 12px; min-width: 150px; border: 1px solid var(--cx-line);
}
.cx-chart-tip b { display: block; margin-bottom: 6px; font-size: 12px; color: var(--cx-text); }
.cx-chart-tip span { display: flex; align-items: center; gap: 8px; justify-content: space-between; color: var(--cx-muted); }
.cx-chart-tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cx-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--cx-muted); margin-top: 10px; }
.cx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cx-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cx-legend i.line { height: 3px; border-radius: 2px; }

.cx-chart-empty { position: relative; }
.cx-chart-empty .cx-chart { filter: grayscale(1) blur(1.5px); opacity: .35; pointer-events: none; }
.cx-empty-over {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 20px;
}
.cx-empty-over p { margin: 0; max-width: 380px; font-size: 15px; color: var(--cx-text); }

/* Insight "Aporte por publicidad" */
.cx-insight { display: flex; align-items: center; gap: 16px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--cx-line); flex-wrap: wrap; }
.cx-insight svg.dona { width: 64px; height: 64px; flex-shrink: 0; }
.cx-insight-t { font-weight: 700; color: var(--cx-text); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.cx-insight-t svg { width: 18px; height: 18px; color: var(--cx-accent-2); }
.cx-insight p { margin: 2px 0 0; color: var(--cx-muted); font-size: 13px; }

/* ---------- Primeros pasos (como "Antes de comenzar" de ML) ---------- */
.cx-steps { background: var(--cx-surface); border-radius: var(--cx-radius); box-shadow: var(--cx-shadow); padding: 20px; position: relative; }
.cx-steps-head { display: flex; align-items: center; gap: 16px; }
.cx-steps-head h2 { font-family: var(--font-head); font-size: 19px; margin: 0; }
.cx-steps-head p { margin: 4px 0 0; color: var(--cx-muted); font-size: 14px; }
.cx-steps-left { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--cx-muted); white-space: nowrap; }
.cx-ring { width: 64px; height: 64px; flex-shrink: 0; }
.cx-steps-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 2px 6px; scrollbar-width: thin; }
.cx-step {
  scroll-snap-align: start; border-radius: 12px; border: 2px solid transparent; background: var(--cx-bg);
  padding: 18px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 230px;
  color: var(--cx-muted); text-decoration: none; font: inherit;
}
.cx-step svg.ilus { width: 120px; height: 84px; }
.cx-step h3 { font-family: var(--font-head); font-size: 16px; margin: 4px 0 0; color: inherit; }
.cx-step p { margin: 0; font-size: 13px; line-height: 1.45; }
.cx-step.is-current { background: #fff; border-color: var(--cx-blue); color: var(--cx-text); box-shadow: var(--cx-shadow); cursor: pointer; }
.cx-step.is-done { background: #fff; color: var(--cx-text); }
.cx-step.is-locked { opacity: .55; }
.cx-step .cx-step-ok { display: inline-flex; gap: 6px; align-items: center; color: var(--cx-green); font-weight: 700; font-size: 13px; }
.cx-step .cx-btn { margin-top: auto; }
.cx-steps-toggle {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); background: var(--cx-surface); border: 0; box-shadow: var(--cx-shadow);
  width: 56px; height: 28px; border-radius: 0 0 10px 10px; cursor: pointer; color: var(--cx-blue); display: grid; place-items: center;
}
.cx-steps-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.cx-steps.is-collapsed .cx-steps-track { display: none; }
.cx-steps.is-collapsed .cx-steps-toggle svg { transform: rotate(180deg); }

/* ---------- Barra de herramientas y tabla ---------- */
.cx-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.cx-toolbar-l, .cx-toolbar-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-select, .cx-input {
  min-height: 40px; border: 1px solid var(--cx-line); border-radius: 10px; background: #fff; padding: 8px 12px; font: inherit; font-size: 14px; color: var(--cx-text);
}
.cx-select:focus, .cx-input:focus { outline: 2px solid var(--cx-brand-soft); border-color: var(--cx-brand); }
.cx-search { position: relative; }
.cx-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--cx-muted); }
.cx-search .cx-input { padding-left: 38px; width: 240px; max-width: 100%; }

.cx-menu { position: relative; }
.cx-menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; background: #fff; border-radius: 12px; box-shadow: var(--cx-shadow-lg);
  border: 1px solid var(--cx-line); min-width: 220px; padding: 6px; display: none;
}
.cx-menu.open .cx-menu-list { display: block; }
.cx-menu-list button, .cx-menu-list a {
  display: flex; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--cx-text); cursor: pointer; gap: 10px; align-items: center; text-decoration: none;
}
.cx-menu-list button:hover, .cx-menu-list a:hover { background: var(--cx-bg); }
.cx-menu-list button:disabled { opacity: .45; cursor: not-allowed; }
.cx-menu-list .danger { color: var(--cx-red); }

.cx-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--cx-line); background: #fff; }
.cx-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 1060px; }
.cx-table th {
  background: #f1f3f0; color: var(--cx-text); font-weight: 700; font-size: 13px; text-align: right; padding: 12px 14px; white-space: nowrap;
  border-bottom: 1px solid var(--cx-line); cursor: pointer; user-select: none; position: sticky; top: 0;
}
.cx-table th.l, .cx-table td.l { text-align: left; }
.cx-table th[aria-sort=ascending]::after { content: ' ▲'; font-size: 10px; }
.cx-table th[aria-sort=descending]::after { content: ' ▼'; font-size: 10px; }
.cx-table td { padding: 12px 14px; border-bottom: 1px solid #eef0ed; text-align: right; vertical-align: middle; white-space: nowrap; }
.cx-table tr:last-child td { border-bottom: 0; }
.cx-table tbody tr:hover td { background: #fafbf9; }
.cx-table .sticky { position: sticky; left: 0; background: #fff; z-index: 1; }
.cx-table th.sticky { background: #f1f3f0; z-index: 2; }
.cx-table .sticky2 { position: sticky; left: 46px; background: #fff; z-index: 1; box-shadow: 6px 0 8px -6px rgba(0,0,0,.12); }
.cx-table th.sticky2 { background: #f1f3f0; z-index: 2; }
.cx-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--cx-brand); }
.cx-camp { display: flex; align-items: center; gap: 12px; min-width: 260px; white-space: normal; }
.cx-thumb { width: 52px; height: 40px; border-radius: 8px; object-fit: cover; background: #e8ebe7; flex-shrink: 0; }
.cx-camp b { display: block; font-size: 14px; line-height: 1.3; }
.cx-camp small { color: var(--cx-muted); font-size: 12px; }
.cx-bar { width: 110px; height: 8px; border-radius: 6px; background: #e8ebe7; overflow: hidden; display: inline-block; vertical-align: middle; }
.cx-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--cx-accent-2), var(--cx-accent)); }
.cx-bar.brand i { background: linear-gradient(90deg, var(--cx-brand-2), var(--cx-brand)); }
.cx-bar-wrap { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--cx-muted); }

.cx-empty { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cx-empty svg.ilus { width: 120px; height: 80px; }
.cx-empty p { margin: 0; max-width: 420px; color: var(--cx-text); font-size: 15px; }

/* Tabla convertida en tarjetas (móvil) */
.cx-rows-m { display: none; }
.cx-row-m { border-bottom: 1px solid var(--cx-line); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cx-row-m:last-child { border-bottom: 0; }
.cx-row-m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cx-row-m-stats div { background: var(--cx-bg); border-radius: 8px; padding: 8px; }
.cx-row-m-stats small { display: block; color: var(--cx-muted); font-size: 11px; }
.cx-row-m-stats b { font-size: 15px; }

/* ---------- Propiedades ---------- */
.cx-ptabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.cx-ptab {
  border: 1px solid var(--cx-line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; color: var(--cx-text);
  display: inline-flex; gap: 8px; align-items: center; min-height: 40px;
}
.cx-ptab span { background: var(--cx-bg); border-radius: 10px; padding: 0 7px; font-size: 12px; font-weight: 700; }
.cx-ptab[aria-pressed=true] { background: var(--cx-brand); color: #fff; border-color: var(--cx-brand); }
.cx-ptab[aria-pressed=true] span { background: rgba(255,255,255,.2); }

.cx-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cx-prop { background: #fff; border-radius: var(--cx-radius); box-shadow: var(--cx-shadow); overflow: hidden; display: flex; flex-direction: column; }
.cx-prop-img { position: relative; aspect-ratio: 16 / 10; background: #e4e8e3; }
.cx-prop-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-prop-img .cx-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #8a938f; }
.cx-prop-img .cx-noimg svg { width: 48px; height: 48px; }
.cx-prop-badges { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.cx-prop-badges .cx-chip { box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.cx-prop-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cx-prop-price { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--cx-text); }
.cx-prop-title { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--cx-text); }
.cx-prop-loc { font-size: 13px; color: var(--cx-muted); display: flex; gap: 4px; align-items: center; }
.cx-prop-loc svg { width: 14px; height: 14px; }
.cx-prop-note { font-size: 13px; line-height: 1.45; border-radius: 10px; padding: 10px 12px; background: var(--cx-bg); color: var(--cx-text); }
.cx-prop-note.warn { background: #fff4dc; color: #6b4b00; }
.cx-prop-note.error { background: #fdeceb; color: #8a1f1f; }
.cx-prop-note.ok { background: #e6f5ec; color: #1b5a36; }
.cx-prop-note.ads { background: var(--cx-accent-soft); color: #8a3f00; }
.cx-prop-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-top: 1px solid var(--cx-line); padding-top: 10px; margin-top: auto; }
.cx-prop-metrics div { text-align: center; }
.cx-prop-metrics b { display: block; font-family: var(--font-head); font-size: 18px; }
.cx-prop-metrics small { color: var(--cx-muted); font-size: 11px; }
.cx-prop-vig { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--cx-muted); }
.cx-prop-vig .cx-bar { width: 100%; }
.cx-prop-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cx-prop-actions .cx-btn { flex: 1 1 auto; }
.cx-prop-actions .cx-menu { flex: 0 0 auto; }

/* Tareas */
.cx-tasks { display: flex; flex-direction: column; gap: 8px; }
.cx-task { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--cx-bg); text-decoration: none; color: var(--cx-text); }
.cx-task:hover { background: #ebeee9; }
.cx-task-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.cx-task-ico svg { width: 20px; height: 20px; }
.cx-task-ico.warn { background: #fff1d6; color: #a06a00; }
.cx-task-ico.error { background: #fde4e2; color: #a82b22; }
.cx-task-ico.info { background: #e5eefc; color: #2556a8; }
.cx-task-ico.ads { background: var(--cx-accent-soft); color: var(--cx-accent); }
.cx-task-ico.ok { background: #e3f4ea; color: #17733f; }
.cx-task b { display: block; font-size: 14px; }
.cx-task small { color: var(--cx-muted); font-size: 13px; }
.cx-task > svg { width: 18px; height: 18px; margin-left: auto; color: var(--cx-muted); flex-shrink: 0; }

.cx-grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }

/* Banner promocional de Galba Ads */
.cx-promo {
  border-radius: var(--cx-radius); padding: 22px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(255,184,0,.55), transparent 45%), linear-gradient(120deg, var(--cx-brand) 0%, #0f4f52 55%, #b46a12 130%);
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--cx-shadow);
}
.cx-promo h3 { font-family: var(--font-head); font-size: 20px; margin: 0 0 6px; }
.cx-promo p { margin: 0; opacity: .9; font-size: 14px; max-width: 520px; }
.cx-promo .cx-kicker { color: var(--cx-accent-2); }

.cx-kicker { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Perfil ---------- */
.cx-profile-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cx-avatar-edit { position: relative; }
.cx-avatar-edit label {
  position: absolute; right: -2px; bottom: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--cx-accent); color: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--cx-shadow); border: 3px solid #fff;
}
.cx-avatar-edit label svg { width: 16px; height: 16px; }
.cx-progress { height: 10px; border-radius: 6px; background: #e8ebe7; overflow: hidden; }
.cx-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--cx-gold), var(--cx-accent-2)); border-radius: 6px; transition: width .4s; }
.cx-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cx-form .full { grid-column: 1 / -1; }
.cx-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--cx-text); }
.cx-field small { font-weight: 400; color: var(--cx-muted); font-size: 12px; }
.cx-field input, .cx-field select, .cx-field textarea {
  min-height: 46px; border: 1px solid var(--cx-line); border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 400; font-size: 15px; background: #fbfcfa; color: var(--cx-text);
}
.cx-field textarea { min-height: 96px; resize: vertical; }
.cx-field input:focus, .cx-field select:focus, .cx-field textarea:focus { outline: 2px solid var(--cx-brand-soft); border-color: var(--cx-brand); background: #fff; }
.cx-field input[readonly] { background: var(--cx-bg); color: var(--cx-muted); }
.cx-preview { border: 1px dashed var(--cx-line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #fbfcfa; }
.cx-contact-card { background: #fff; border-radius: 12px; box-shadow: var(--cx-shadow); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cx-contact-row { display: flex; gap: 12px; align-items: center; }
.cx-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.cx-dl dt { color: var(--cx-muted); }
.cx-dl dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ---------- Diálogo ---------- */
.cx-dialog { border: 0; border-radius: 16px; padding: 0; max-width: 560px; width: calc(100% - 32px); box-shadow: var(--cx-shadow-lg); }
.cx-dialog::backdrop { background: rgba(10, 30, 28, .55); }
.cx-dialog-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.cx-dialog h2 { font-family: var(--font-head); font-size: 20px; margin: 0; }
.cx-dialog ol, .cx-dialog ul { margin: 0; padding-left: 20px; line-height: 1.6; font-size: 14px; }
.cx-dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--cx-line); }

/* =====================================================================
   Landing de paquetes (impulsa.html)
   ===================================================================== */
.ad-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 12% 120%, rgba(255,184,0,.35), transparent 40%),
    radial-gradient(circle at 92% -10%, rgba(255,122,0,.45), transparent 42%),
    linear-gradient(135deg, #072b2d 0%, var(--cx-brand) 45%, #145f62 100%);
}
.ad-hero-in { max-width: 1180px; margin: 0 auto; padding: 56px 20px 64px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.ad-hero h1 { font-family: var(--font-head); font-size: clamp(30px, 4.6vw, 50px); line-height: 1.08; margin: 12px 0 16px; letter-spacing: -.01em; }
.ad-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--cx-accent-2), #ff9d2e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ad-hero p.lead { font-size: 18px; line-height: 1.55; opacity: .92; margin: 0 0 26px; max-width: 560px; }
.ad-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.ad-hero .cx-btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.ad-hero .cx-btn-ghost:hover { background: rgba(255,255,255,.18); }
.ad-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: 13px; opacity: .9; }
.ad-trust span { display: inline-flex; gap: 6px; align-items: center; }
.ad-trust svg { width: 16px; height: 16px; color: var(--cx-accent-2); }

/* Maqueta de teléfono */
.ad-phone {
  justify-self: center; width: 290px; border-radius: 34px; background: #0d1716; padding: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.35), 0 0 0 2px rgba(255,255,255,.08);
  transform: rotate(3deg); position: relative;
}
.ad-phone-screen { background: #fff; border-radius: 24px; overflow: hidden; color: var(--cx-text); }
.ad-phone-img { height: 150px; background: linear-gradient(135deg, #b8d3cf, #e7d7b4); position: relative; }
.ad-phone-img::after { content: ''; position: absolute; inset: 40px 60px 0 60px; background: #fff; opacity: .55; clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%); }
.ad-phone-tag { position: absolute; left: 10px; top: 10px; z-index: 1; background: var(--cx-accent); color: #fff; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 6px; letter-spacing: .04em; }
.ad-phone-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ad-phone-body b { font-family: var(--font-head); font-size: 18px; }
.ad-phone-body small { color: var(--cx-muted); }
.ad-phone-agent { display: flex; gap: 10px; align-items: center; background: var(--cx-bg); border-radius: 12px; padding: 10px; }
.ad-phone-agent .cx-avatar { width: 36px; height: 36px; font-size: 14px; border: 0; }
.ad-phone-wa { background: #25d366; color: #fff; border-radius: 10px; text-align: center; font-weight: 800; padding: 10px; font-size: 13px; }
.ad-float {
  position: absolute; background: #fff; color: var(--cx-text); border-radius: 14px; box-shadow: var(--cx-shadow-lg); padding: 10px 14px; font-size: 12px;
  display: flex; gap: 10px; align-items: center; transform: rotate(-3deg);
}
.ad-float b { font-family: var(--font-head); font-size: 18px; display: block; }
.ad-float .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.ad-float .ico svg { width: 18px; height: 18px; }
.ad-float.f1 { left: -70px; top: 70px; }
.ad-float.f1 .ico { background: var(--cx-accent-soft); color: var(--cx-accent); }
.ad-float.f2 { right: -56px; bottom: 30px; }
.ad-float.f2 .ico { background: #e3f4ea; color: var(--cx-green); }

.ad-sec { max-width: 1180px; margin: 0 auto; padding: 64px 20px; }
.ad-sec-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.ad-sec-head h2 { font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 10px 0 12px; color: var(--cx-text); }
.ad-sec-head p { color: var(--cx-muted); font-size: 17px; margin: 0; line-height: 1.55; }
.ad-sec-head .cx-kicker { color: var(--cx-accent); }

.ad-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ad-why-card { background: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--cx-shadow); display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--c, var(--cx-accent)); }
.ad-why-card .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--cbg, var(--cx-accent-soft)); color: var(--c, var(--cx-accent)); }
.ad-why-card .ico svg { width: 26px; height: 26px; }
.ad-why-card h3 { font-family: var(--font-head); font-size: 17px; margin: 4px 0 0; }
.ad-why-card p { margin: 0; color: var(--cx-muted); font-size: 14px; line-height: 1.55; }

.ad-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: paso; }
.ad-how li { list-style: none; position: relative; background: #fff; border-radius: 18px; padding: 28px 20px 22px; box-shadow: var(--cx-shadow); counter-increment: paso; }
.ad-how li::before {
  content: counter(paso); position: absolute; top: -18px; left: 20px; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--cx-accent-2), var(--cx-accent)); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 18px; display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(255,122,0,.35);
}
.ad-how h3 { font-family: var(--font-head); font-size: 16px; margin: 6px 0 6px; }
.ad-how p { margin: 0; font-size: 14px; color: var(--cx-muted); line-height: 1.5; }
.ad-how ol { padding: 0; margin: 0; display: contents; }

.ad-band { background: linear-gradient(180deg, #fff 0%, var(--cx-bg) 100%); }

.ad-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.ad-plan {
  position: relative; background: #fff; border-radius: 22px; padding: 28px 24px 24px; box-shadow: var(--cx-shadow); border: 2px solid transparent;
  display: flex; flex-direction: column; gap: 14px; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ad-plan:hover { transform: translateY(-3px); box-shadow: var(--cx-shadow-lg); }
.ad-plan[aria-checked=true] { border-color: var(--cx-accent); box-shadow: 0 14px 40px rgba(255,122,0,.22); }
.ad-plan.popular { background: linear-gradient(180deg, #fffaf2 0%, #fff 40%); }
.ad-plan-ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--cx-accent), #ff9d2e);
  color: #fff; font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: 999px; letter-spacing: .05em; white-space: nowrap; box-shadow: 0 6px 14px rgba(255,122,0,.35);
}
.ad-plan-name { font-family: var(--font-head); font-size: 15px; font-weight: 800; color: var(--cx-brand); text-transform: uppercase; letter-spacing: .06em; }
.ad-plan-days { font-family: var(--font-head); font-size: 44px; font-weight: 800; line-height: 1; color: var(--cx-text); }
.ad-plan-days small { font-size: 18px; font-weight: 700; color: var(--cx-muted); }
.ad-plan-price { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--cx-text); }
.ad-plan-price small { font-size: 13px; font-weight: 500; color: var(--cx-muted); }
.ad-plan-day { display: inline-flex; align-self: flex-start; background: var(--cx-gold-soft); color: #7a5a1c; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.ad-plan ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ad-plan li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.ad-plan li svg { width: 18px; height: 18px; color: var(--cx-green); flex-shrink: 0; margin-top: 1px; }
.ad-plan-pick { margin-top: auto; }
.ad-plan[aria-checked=true] .ad-plan-pick { background: linear-gradient(180deg, #ff8f1f, var(--cx-accent)); color: #fff; border-color: transparent; }

.ad-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ad-pick {
  position: relative; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--cx-shadow); border: 2px solid transparent; cursor: pointer;
  display: flex; flex-direction: column; text-align: left; transition: border-color .15s, transform .15s;
}
.ad-pick:hover { transform: translateY(-2px); }
.ad-pick input { position: absolute; opacity: 0; pointer-events: none; }
.ad-pick-img { aspect-ratio: 16/10; background: #e4e8e3; position: relative; }
.ad-pick-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-pick-check {
  position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.95); border: 2px solid #c9cfcb;
  display: grid; place-items: center; color: transparent; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.ad-pick-check svg { width: 18px; height: 18px; }
.ad-pick-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.ad-pick-body b { font-size: 14px; line-height: 1.3; }
.ad-pick-body small { color: var(--cx-muted); font-size: 12px; }
.ad-pick-body .price { font-family: var(--font-head); font-weight: 800; font-size: 16px; }
.ad-pick.is-on { border-color: var(--cx-accent); }
.ad-pick.is-on .ad-pick-check { background: var(--cx-accent); border-color: var(--cx-accent); color: #fff; }
.ad-pick.is-off { cursor: not-allowed; opacity: .55; }
.ad-pick.is-off:hover { transform: none; }
.ad-pick-note { font-size: 12px; font-weight: 600; color: #8a5a00; background: #fff4dc; border-radius: 8px; padding: 4px 8px; margin-top: 4px; }
.ad-pick-note.off { color: var(--cx-muted); background: var(--cx-bg); }
.ad-pick-count { font-weight: 700; color: var(--cx-text); }

.ad-summary {
  position: sticky; bottom: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--cx-line); box-shadow: 0 -8px 30px rgba(0,0,0,.08);
}
.ad-summary-in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ad-summary-txt { display: flex; flex-direction: column; min-width: 0; }
.ad-summary-txt small { color: var(--cx-muted); font-size: 13px; }
.ad-summary-total { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--cx-text); line-height: 1.1; }
.ad-summary label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; max-width: 380px; margin-left: auto; color: var(--cx-text); }
.ad-summary label input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--cx-accent); flex-shrink: 0; }
.ad-summary label a { color: var(--cx-blue); }

.ad-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.ad-faq details { background: #fff; border-radius: 14px; box-shadow: var(--cx-shadow); padding: 4px 18px; }
.ad-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ad-faq summary::-webkit-details-marker { display: none; }
.ad-faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--cx-accent); }
.ad-faq details[open] summary::after { content: '–'; }
.ad-faq details p { margin: 0 0 16px; color: var(--cx-muted); line-height: 1.6; font-size: 14px; }

.ad-final { text-align: center; color: #fff; border-radius: 26px; padding: 44px 24px; background: linear-gradient(120deg, var(--cx-brand), #0f5357 60%, #b05c08 140%); box-shadow: var(--cx-shadow-lg); }
.ad-final h2 { font-family: var(--font-head); font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; }
.ad-final p { margin: 0 0 22px; opacity: .9; }

/* =====================================================================
   Responsivo
   ===================================================================== */
@media (max-width: 1100px) {
  .cx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-why, .ad-how { grid-template-columns: repeat(2, 1fr); }
  .ad-how { row-gap: 34px; }
}
@media (max-width: 960px) {
  .cx-shell { grid-template-columns: 1fr; padding: 16px 16px 96px; gap: 16px; }
  .cx-side { position: static; }
  .cx-side .cx-nav, .cx-side-cta { display: none; }
  .cx-me { padding: 14px; }
  .cx-tabs {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--cx-line); box-shadow: 0 -4px 20px rgba(0,0,0,.06); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .cx-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: 11px; color: var(--cx-muted); text-decoration: none; font-weight: 600; min-height: 48px; position: relative; text-align: center; }
  .cx-tabs a svg { width: 22px; height: 22px; }
  .cx-tabs a.active { color: var(--cx-brand); }
  .cx-tabs a.cx-nav-ads { color: var(--cx-accent); }
  .cx-tabs .cx-badge { position: absolute; top: 0; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; font-size: 10px; }
  .cx-grid-2 { grid-template-columns: 1fr; }
  .ad-hero-in { grid-template-columns: 1fr; padding: 40px 20px 56px; }
  .ad-phone { transform: none; margin-top: 10px; }
  .ad-float.f1 { left: -24px; }
  .ad-float.f2 { right: -20px; }
  .ad-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .ad-plan.popular { order: -1; }
  .body-has-summary .cx-tabs { display: none; }
}
@media (max-width: 720px) {
  .cx-head h1 { font-size: 24px; }
  .cx-table-wrap.cx-resp .cx-table { display: none; }
  .cx-table-wrap.cx-resp .cx-rows-m { display: block; }
  .cx-form { grid-template-columns: 1fr; }
  .cx-search .cx-input { width: 100%; }
  .cx-search { flex: 1 1 100%; }
  .cx-steps-head { flex-wrap: wrap; }
  .cx-steps-left { margin-left: 0; }
  .ad-why, .ad-how { grid-template-columns: 1fr; }
  .ad-sec { padding: 48px 16px; }
  .ad-summary-in { padding: 10px 16px; gap: 10px; }
  .ad-summary label { margin-left: 0; max-width: none; flex: 1 1 100%; order: 3; }
  .ad-summary .cx-btn { flex: 1 1 auto; }
  .ad-float { display: none; }
}
@media (max-width: 420px) {
  .cx-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cx-kpi { padding: 12px; }
  .cx-kpi-num { font-size: 22px; }
  .cx-spark { display: none; }
  .cx-props { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-btn, .ad-plan, .ad-pick, .cx-progress i { transition: none; }
  .ad-plan:hover, .ad-pick:hover { transform: none; }
}

/* Formularios existentes (publica.html) dentro del esqueleto de cuenta */
.cx-main .card { border-radius: var(--cx-radius); box-shadow: var(--cx-shadow); border: 0; margin: 0; }
.cx-main .portal-alert { border-radius: 12px; margin: 0; }

/* =====================================================================
   Landing "Publica con Galba" (publica-con-galba.html)
   ===================================================================== */
.pcg-hero .ad-hero-in { padding-bottom: 72px; }
.pcg-choose { display: grid; gap: 12px; max-width: 520px; }
.pcg-choose-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); transition: background .15s, transform .15s, border-color .15s;
}
.pcg-choose-card:hover { background: rgba(255,255,255,.15); border-color: var(--cx-accent-2); transform: translateY(-2px); }
.pcg-choose-card b { display: block; font-family: var(--font-head); font-size: 18px; }
.pcg-choose-card small { display: block; opacity: .85; font-size: 13px; margin-top: 2px; }
.pcg-choose-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--cx-accent-2), var(--cx-accent)); flex-shrink: 0; }
.pcg-choose-ico svg { width: 24px; height: 24px; }
.pcg-arrow { margin-left: auto; font-size: 22px; color: var(--cx-accent-2); }
.pcg-login { margin: 16px 0 0; font-size: 14px; opacity: .9; }
.pcg-login a { color: var(--cx-accent-2); font-weight: 700; }

.pcg-mock { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.pcg-mock-card { background: #fff; color: var(--cx-text); border-radius: 22px; padding: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(2deg); }
.pcg-mock-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--cx-muted); margin-bottom: 12px; }
.pcg-mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cx-green); }
.pcg-mock-ej { margin-left: auto; font-size: 11px; background: var(--cx-bg); padding: 2px 8px; border-radius: 6px; }
.pcg-mock-prop { border-radius: 14px; overflow: hidden; border: 1px solid var(--cx-line); }
.pcg-mock-img { height: 120px; background: url('assets/images/home-1.jpeg') center/cover, linear-gradient(135deg, #b8d3cf, #e7d7b4); display: flex; gap: 6px; align-items: flex-start; padding: 10px; }
.pcg-mock-body { padding: 10px 12px; }
.pcg-mock-body b { font-family: var(--font-head); font-size: 18px; display: block; }
.pcg-mock-body small { color: var(--cx-muted); }
.pcg-mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pcg-mock-kpis div { background: var(--cx-bg); border-radius: 10px; padding: 8px; }
.pcg-mock-kpis small { display: block; font-size: 11px; color: var(--cx-muted); }
.pcg-mock-kpis b { font-family: var(--font-head); font-size: 17px; }
.pcg-mock-kpis i { display: block; height: 4px; border-radius: 3px; margin-top: 6px; background: linear-gradient(90deg, var(--cx-accent-2), var(--cx-accent)); width: var(--w); }
.pcg-mock-chart { width: 100%; height: 60px; margin-top: 10px; display: block; }
.pcg-mock .ad-float.f1 { left: -50px; top: auto; bottom: -22px; }
.pcg-mock .ad-float .ico { background: #e3f4ea; color: var(--cx-green); }

.pcg-strip { background: #fff; border-bottom: 1px solid var(--cx-line); }
.pcg-strip-in { max-width: 1180px; margin: 0 auto; padding: 22px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.pcg-strip b { display: block; font-family: var(--font-head); font-size: 26px; color: var(--cx-brand); }
.pcg-strip span { font-size: 13px; color: var(--cx-muted); }

.pcg-why { grid-template-columns: repeat(3, 1fr); }

.pcg-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1000px; margin: 0 auto; }
.pcg-path { background: #fff; border-radius: 22px; padding: 30px 28px; box-shadow: var(--cx-shadow); display: flex; flex-direction: column; gap: 14px; border-top: 6px solid var(--cx-brand); }
.pcg-path-owner { border-top-color: var(--cx-accent); }
.pcg-path-tag { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cx-brand); background: var(--cx-brand-soft); padding: 5px 10px; border-radius: 999px; }
.pcg-path-owner .pcg-path-tag { color: #b04f00; background: var(--cx-accent-soft); }
.pcg-path h3 { font-family: var(--font-head); font-size: 22px; margin: 0; }
.pcg-path-price { display: flex; align-items: center; gap: 14px; background: var(--cx-bg); border-radius: 14px; padding: 14px 16px; }
.pcg-path-price b { font-family: var(--font-head); font-size: 40px; line-height: 1; color: var(--cx-brand); }
.pcg-path-owner .pcg-path-price b { color: var(--cx-accent); }
.pcg-path-price span { font-size: 13px; color: var(--cx-muted); line-height: 1.45; }
.pcg-path ul, .pcg-ads-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.pcg-path li, .pcg-ads-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.pcg-path li svg, .pcg-ads-list li svg { width: 20px; height: 20px; color: var(--cx-green); flex-shrink: 0; margin-top: 1px; }
.pcg-path .cx-btn { margin-top: auto; }

.pcg-ads {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; color: #fff; border-radius: 28px; padding: 44px;
  background: radial-gradient(circle at 90% 10%, rgba(255,184,0,.45), transparent 40%), linear-gradient(130deg, #072b2d 0%, var(--cx-brand) 50%, #8a4a0a 140%);
  box-shadow: var(--cx-shadow-lg);
}
.pcg-ads h2 { font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin: 10px 0 14px; }
.pcg-ads p { opacity: .92; line-height: 1.6; margin: 0 0 18px; }
.pcg-ads-list { margin-bottom: 24px; }
.pcg-ads-list li svg { color: var(--cx-accent-2); }
.pcg-ads-plans { display: flex; flex-direction: column; gap: 12px; }
.pcg-ads-plan {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 16px 20px;
}
.pcg-ads-plan span { font-weight: 700; font-size: 16px; }
.pcg-ads-plan b { font-family: var(--font-head); font-size: 26px; grid-row: span 2; align-self: center; }
.pcg-ads-plan small { opacity: .75; font-size: 12px; }
.pcg-ads-plan.pop { background: #fff; color: var(--cx-text); border-color: var(--cx-accent); transform: scale(1.04); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pcg-ads-plan em { position: absolute; top: -11px; left: 18px; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--cx-accent); padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.pcg-btn-light { background: #fff; color: var(--cx-brand); }
.pcg-btn-light:hover { background: #f1f1f1; }

@media (max-width: 960px) {
  .pcg-why { grid-template-columns: 1fr 1fr; }
  .pcg-paths, .pcg-ads { grid-template-columns: 1fr; }
  .pcg-ads { padding: 30px 22px; }
  .pcg-strip-in { grid-template-columns: 1fr 1fr; }
  .pcg-mock { max-width: 340px; }
}
@media (max-width: 720px) {
  .pcg-why { grid-template-columns: 1fr; }
  .pcg-mock .ad-float.f1 { display: flex; left: -6px; bottom: -18px; }
  .pcg-path { padding: 24px 20px; }
}

/* =====================================================================
   Panel de administración (admin-portal.html) con el estilo de "Mi cuenta"
   ===================================================================== */
.adm .cx-shell { max-width: 1360px; }
.adm .admin-wrap.portal-wide, .adm .admin-wrap { max-width: none; }
.adm-me .cx-avatar { background: var(--cx-gold); color: var(--cx-brand); }
.adm-nav .portal-tab {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--cx-text); text-align: left; margin: 0;
}
.adm-nav .portal-tab svg { width: 20px; height: 20px; color: var(--cx-muted); flex-shrink: 0; }
.adm-nav .portal-tab:hover { background: var(--cx-bg); }
.adm-nav .portal-tab.active { background: var(--cx-brand-soft); color: var(--cx-brand); font-weight: 700; border: 0; }
.adm-nav .portal-tab.active svg { color: var(--cx-brand); }
.adm-nav .portal-tab .count { margin-left: auto; }
.adm-nav .portal-tab .count:not(:empty) { background: var(--cx-accent); color: #fff; border-radius: 10px; min-width: 22px; height: 22px; padding: 0 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

/* Resumen de pendientes */
.adm-resumen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.adm-kpi {
  text-align: left; border: 0; cursor: pointer; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--cx-shadow);
  display: flex; flex-direction: column; gap: 2px; font: inherit; border-left: 5px solid var(--k, var(--cx-brand)); transition: transform .12s, box-shadow .15s;
}
.adm-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,24,22,.1); }
.adm-kpi b { font-family: var(--font-head); font-size: 28px; line-height: 1.1; color: var(--cx-text); }
.adm-kpi span { font-size: 13px; color: var(--cx-muted); }
.adm-kpi.cero { opacity: .55; border-left-color: #d7dbd6 !important; }
.adm-kpi.cero b { color: var(--cx-muted); }
.adm-naranja { --k: var(--cx-accent); }
.adm-azul { --k: var(--cx-blue); }
.adm-verde { --k: var(--cx-green); }
.adm-rojo { --k: var(--cx-red); }
.adm-dorado { --k: var(--cx-gold); }
.adm-todo-ok { grid-column: 1 / -1; background: #e6f5ec; color: #1b5a36; border-radius: 12px; padding: 12px 16px; font-weight: 600; }

/* Barras de filtros */
.adm .portal-toolbar { align-items: center; gap: 10px; margin: 0 0 16px; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--cx-shadow); }
.adm .inline-filter { font-weight: 600; color: var(--cx-muted); }
.adm .inline-filter select, .adm .portal-toolbar select, .adm .portal-toolbar input[type=search], .adm .portal-toolbar input[type=text] {
  min-height: 40px; border: 1px solid var(--cx-line); border-radius: 10px; background: #fbfcfa; padding: 8px 12px; font-size: 14px; color: var(--cx-text);
}
.adm .portal-toolbar .btn { min-height: 40px; padding: 8px 16px !important; border-radius: 10px; }

/* Tarjetas de la lista */
.adm .portal-list { gap: 14px; }
.adm .portal-item {
  background: #fff; border: 0; border-radius: 16px; box-shadow: var(--cx-shadow); padding: 18px 20px; gap: 16px;
  transition: box-shadow .15s;
}
.adm .portal-item:hover { box-shadow: 0 8px 26px rgba(16,24,22,.1); }
.adm .portal-item h3 { font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--cx-text); }
.adm .portal-item .muted { color: var(--cx-muted); }
.adm .portal-item-side { min-width: 190px; }
.adm .portal-actions { gap: 8px; }
.adm .portal-actions .btn, .adm .btn-sm {
  border-radius: 10px; min-height: 36px; padding: 7px 14px !important; font-size: 13px !important; font-family: var(--font-head); font-weight: 700;
}
.adm .btn-primary { background: var(--cx-brand); border-color: var(--cx-brand); }
.adm .btn-primary:hover { background: var(--cx-brand-2); }
.adm .btn-outline { background: #fff; border: 1px solid var(--cx-line); color: var(--cx-text); }
.adm .btn-outline:hover { background: var(--cx-bg); }
.adm .admin-meta { background: #f7f8f6; border-radius: 12px; padding: 12px 14px; gap: 6px 18px; }
.adm .admin-desc { background: #f7f8f6; border-radius: 12px; }
.adm .admin-photos img { width: 92px; height: 70px; border-radius: 10px; }
.adm .portal-alert { border-radius: 12px; }

/* Chips de estado con el estilo nuevo */
.adm .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.adm .chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.adm .chip-verde { background: #e3f4ea; color: #17733f; }
.adm .chip-azul { background: #e5eefc; color: #2556a8; }
.adm .chip-rojo { background: #fde4e2; color: #a82b22; }
.adm .chip-gris { background: #eceeec; color: #555d5a; }

/* Tarjetas de formularios, números y ventanas */
.adm .card.portal-card { border-radius: 16px; box-shadow: var(--cx-shadow); border: 0; }
.adm .section-title { font-size: 19px; }
.adm .stat-cards { gap: 12px; }
.adm .stat-card { border-radius: 14px; box-shadow: var(--cx-shadow); border: 0; }
.adm .stat-card-num { color: var(--cx-text); }
.adm .report-dialog { border-radius: 18px; padding: 24px; box-shadow: var(--cx-shadow-lg); width: min(480px, calc(100vw - 32px)); }
.adm .report-dialog::backdrop { background: rgba(10, 30, 28, .55); }
.adm .report-dialog input[type=text], .adm .report-dialog input[type=tel], .adm .report-dialog input[type=number], .adm .report-dialog input[type=date],
.adm .report-dialog select, .adm .report-dialog textarea { border-radius: 10px; }
.adm .cambios-tabla { border-radius: 10px; overflow: hidden; }

@media (max-width: 1100px) { .adm-resumen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .adm .cx-shell { grid-template-columns: minmax(0, 1fr); }
  .adm .adm-side { position: sticky; top: 0; z-index: 30; background: var(--cx-bg); margin: -16px -16px 0; padding: 10px 16px; min-width: 0; }
  .adm .adm-side .cx-me, .adm .adm-side .cx-side-cta { display: none; }
  .adm .adm-side .cx-nav { display: flex; flex-direction: row; overflow-x: auto; padding: 6px; gap: 4px; scrollbar-width: none; }
  .adm .adm-side .cx-nav::-webkit-scrollbar { display: none; }
  .adm-nav .portal-tab { width: auto; flex-shrink: 0; padding: 9px 12px; font-size: 14px; white-space: nowrap; }
  .adm .cx-shell { padding-bottom: 40px; }
  .adm .portal-item { flex-direction: column; }
  .adm .portal-item-side { min-width: 0; align-items: flex-start; }
  .adm .portal-actions { justify-content: flex-start; }
}
@media (max-width: 480px) { .adm-kpi b { font-size: 24px; } .adm-resumen { gap: 8px; } }
