/* Alaska Reports — estilos */
:root {
  /* Colores de la web de Alaska: negro, violeta, lima, rosa y celeste. Fondo gris claro para trabajar. */
  --ground: #F4F3F8; --surface: #FFFFFF; --ink: #0E0A23; --ink-2: #2E2A45; --muted: #5E5A78;
  --line: #E1DEEC; --line-2: #EFEDF6; --accent: #7C4DFF; --accent-dark: #5A2FE0; --accent-soft: #EFE9FF; --accent-line: #C9B8FF;
  --lime: #D7FF40; --pink: #FF3C8E; --cyan: #22D3F5; --violet-light: #A98BFF;
  --side: #000000; --side-text: #E9E6F5; --side-muted: #A9A5C2; --night-2: #16141F; --night-3: #211D33; --side-line: #2A2640;
  --glacier: var(--lime);
  --good: #1E7A4C; --good-bg: #EAF5EF; --bad: #B23A2E; --bad-bg: #FBEDEB; --warn: #8C3D16; --warn-bg: #FBF1EC;
  --brand: #7C4DFF; --brand-tint: #EFE9FF;
  --radius: 14px; --font: 'DM Sans', system-ui, sans-serif; --display: 'Archivo', 'DM Sans', sans-serif; --mono: 'DM Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.5 var(--font); }
a { color: var(--accent); } a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.02em; }
h2 { font-size: 16px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 13px; background: var(--line-2); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
svg { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: 13px; } .strong { font-weight: 500; }
.num { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.r { text-align: right; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wrap-row { flex-wrap: wrap; }
.spacer { flex: 1 1 auto; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* Botones y campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid #CBD4DA; background: var(--surface); color: var(--ink); font: 500 14px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #A9B6BE; color: var(--ink); }
.btn svg, .vis svg, .back svg, .brand-add svg, .small svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #FFFFFF; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; } .btn-dark:hover { color: #FFFFFF; background: #2A2545; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-small { min-height: 38px; padding: 0 12px; font-size: 13px; }
.btn-ai { border-color: var(--accent); color: var(--accent); }
.btn-ai svg { fill: currentColor; stroke: none; }
.btn[aria-busy="true"] { opacity: .65; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; min-height: 32px; }
.link-btn.danger { color: var(--bad); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #CBD4DA; border-radius: 10px; }
input, select { min-height: 44px; padding: 0 12px; }
input[type="checkbox"], input[type="radio"] { min-height: 0; width: 20px; height: 20px; accent-color: var(--accent); }
textarea { width: 100%; padding: 12px; resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 14px; }
label small, .check small { color: var(--muted); font-size: 12px; }

/* Avisos */
.notice { padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); }
.notice-error, .error-text { color: var(--bad); }
.notice-error { background: var(--bad-bg); }
.flash { padding: 12px 14px; border-radius: 12px; background: var(--good-bg); color: #1E5E3D; }
.badge { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--line-2); color: var(--muted); white-space: nowrap; }
.badge-demo { background: var(--warn-bg); color: var(--warn); }
.badge-error { background: var(--bad-bg); color: var(--bad); }
.badge-internal { background: var(--ink); color: #FFFFFF; }
.delta { font-size: 12px; white-space: nowrap; }
.tone-good { color: var(--good); } .tone-bad { color: var(--bad); } .tone-neutral { color: var(--muted); }
.status { font-size: 12px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.status-on { background: var(--good-bg); color: #1E5E3D; } .status-off { background: var(--line-2); color: var(--muted); } .status-err { background: var(--bad-bg); color: var(--bad); }

/* Login */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.login-brand, .sidebar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.login-brand span, .sidebar-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.login-brand b, .sidebar-brand b { font-family: var(--display); font-size: 17px; }
.login-brand small, .sidebar-brand small { font-size: 12px; color: var(--muted); }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }

/* Estructura del panel */
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.sidebar { flex: 1 1 250px; max-width: 100%; background: var(--side); color: var(--side-text); padding: 24px 16px; display: flex; flex-direction: column; gap: 26px; }
@media (min-width: 900px) { .sidebar { max-width: 280px; position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.sidebar .logo-mark .logo-ring { stroke: rgba(255,255,255,.28); stroke-width: 1.5; }
.sidebar-brand small { color: var(--side-muted); }
.side-group { display: flex; flex-direction: column; gap: 4px; }
.side-title { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--side-muted); padding: 0 8px 6px; }
.brand-link { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px; border-radius: 10px; color: var(--side-text); text-decoration: none; }
.brand-link:hover { background: var(--night-2); color: #FFFFFF; }
.brand-link.active { background: var(--night-3); }
.brand-link-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.brand-link-text span { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-link-text small { color: var(--side-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glacier); }
.avatar { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.avatar-lg { width: 52px; height: 52px; border-radius: 14px; font-family: var(--display); font-size: 22px; }
.brand-add { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; margin-top: 6px; border-radius: 10px; border: 1px dashed var(--side-line); color: var(--glacier); text-decoration: none; }
.brand-add:hover { color: #FFFFFF; border-color: var(--glacier); }
.side-link { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 8px; border-radius: 8px; color: var(--side-muted); text-decoration: none; }
.side-link:hover { background: var(--night-2); color: #FFFFFF; }
.count { background: var(--lime); color: #000000; border-radius: 999px; font-size: 12px; padding: 1px 8px; font-weight: 600; }
.side-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px; }
.side-foot .muted { color: var(--side-muted); }
.main { flex: 999 1 560px; min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 64px; display: flex; flex-direction: column; gap: 22px; }
.empty { max-width: 460px; margin: 10vh auto; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }

.page-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.title-row { display: flex; align-items: center; gap: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 6px; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px; cursor: pointer; list-style: none; }
.pill::-webkit-details-marker { display: none; }
.pill:hover { background: var(--line-2); color: var(--ink); }
.pill.active { background: var(--ink); color: #FFFFFF; }
.pills select { min-height: 40px; border-color: transparent; background: transparent; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.range { position: relative; }
.range-form { position: absolute; z-index: 5; top: 46px; left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; box-shadow: 0 10px 30px rgba(14, 10, 35, .12); min-width: min(420px, 86vw); }
.inline-form { display: flex; align-items: center; gap: 8px; }

/* Bloques */
.block { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.block-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.block-head h2 { flex: 1 1 auto; }
.block-internal { background: #F7FAFB; border-style: dashed; }
.section-hidden { background: repeating-linear-gradient(135deg, var(--surface) 0 14px, #F7F9FA 14px 28px); }
.section-hidden > *:not(.block-head) { opacity: .6; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 10px; }
.prose ul { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Visibilidad */
.vis-form { margin: 0; }
.vis { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 500 12px var(--font); cursor: pointer; white-space: nowrap; }
.vis.is-on { color: #1E5E3D; background: var(--good-bg); border-color: transparent; }
.vis.is-off { color: var(--muted); }
.vis.compact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vis.compact { width: 36px; justify-content: center; padding: 0; }
.not-visible { opacity: .5; }
tr.not-visible td:last-child { opacity: 1; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); }
.kpi-label { font-size: 13px; color: var(--muted); }
.kpi-value { font-family: var(--mono); font-size: 22px; font-weight: 500; }

/* Plataformas */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.platform-head { display: flex; align-items: center; gap: 10px; }
.platform-head h3 { flex: 1; }
.metric-list { margin: 0; display: flex; flex-direction: column; }
.metric-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.metric-row dt { flex: 1; color: var(--muted); }
.metric-row dd { margin: 0; display: flex; gap: 8px; align-items: baseline; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }

/* Gráficos */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.chart { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chart figcaption { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.chart svg { width: 100%; height: 160px; display: block; border-bottom: 1px solid var(--line); }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.chart-axis { position: relative; height: 16px; font-size: 11px; color: var(--muted); }
.chart-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }

/* Tablas */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 680px; }
.table th { font-size: 12px; font-weight: 500; color: var(--muted); text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th.r { text-align: right; }
.table td { padding: 11px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }

/* Publicaciones */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; break-inside: avoid; }
.post-media { aspect-ratio: 1 / 1; background: var(--brand-tint); position: relative; overflow: hidden; }
.post-media.no-img { aspect-ratio: auto; height: 84px; }
.post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-type { position: absolute; left: 10px; bottom: 10px; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #FFFFFF; color: var(--ink); }
.post-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.post-caption { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-metrics { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.post-metrics div { display: flex; flex-direction: column; }
.post-metrics dt { font-size: 11px; color: var(--muted); }
.post-metrics dd { margin: 0; font-size: 14px; }
.post-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.post-foot a { display: inline-flex; align-items: center; gap: 4px; }

/* Formulario de marca */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; text-decoration: none; }
.form-sections { display: flex; flex-direction: column; gap: 18px; max-width: 980px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.span-2 { grid-column: 1 / -1; }
.swatches { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.swatches legend { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch span:first-of-type { width: 44px; height: 44px; border-radius: 50%; display: block; border: 3px solid #FFFFFF; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 16px; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; min-height: 40px; padding: 8px 0; cursor: pointer; color: var(--ink); }
.check input { margin-top: 1px; flex-shrink: 0; }
.check span { display: flex; flex-direction: column; }
.metric-pick { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; }
.metric-pick legend { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 0 6px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; position: sticky; bottom: 0; background: var(--ground); padding: 12px 0; }
.danger-zone { margin-top: 8px; }
.send-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.send-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-2); }

/* ---------- Informe del cliente ---------- */
.report { background: #FFFFFF; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.preview-bar { background: var(--ink); color: #FFFFFF; text-align: center; padding: 8px 16px; font-size: 13px; }
.report-top { border-bottom: 1px solid var(--line); padding: 10px 0; }
.report-top .wrap { gap: 12px; }
.report-agency { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; }
.report-agency .logo-mark, .hero-top .logo-mark { width: 26px; height: 26px; }
.report-hero { background: var(--brand-tint); padding: 64px 0 52px; }
.report-hero .wrap { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.report-hero h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.hero-summary { max-width: 720px; font-size: 18px; color: var(--ink-2); }
.hero-summary ul { font-size: 16px; }
.report-main { padding-top: 40px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 44px; }
.r-section { display: flex; flex-direction: column; gap: 16px; }
.r-section > h2 { font-family: var(--display); font-size: 28px; letter-spacing: -0.02em; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.report .card, .report .kpi, .report .post { border-color: var(--line); }
.next-steps .prose { background: var(--ink); color: var(--side-text); padding: 24px 28px; border-radius: 18px; font-size: 16px; }
.report-foot { border-top: 1px solid var(--line); padding: 18px 0; color: var(--muted); font-size: 13px; }
.print-only { display: none; }

@media print {
  @page { size: A4; margin: 12mm; }
  body { font-size: 11pt; background: #FFFFFF; }
  .no-print, .preview-bar, .post-foot a { display: none !important; }
  .print-only { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; }
  .report-hero { padding: 24px 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-hero h1 { font-size: 48px; }
  .report-main { padding-top: 20px; gap: 26px; }
  .r-section { break-inside: auto; }
  .r-section > h2 { font-size: 20px; break-after: avoid; }
  .card, .kpi, .post, .chart, tr { break-inside: avoid; }
  .posts { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .post-media { aspect-ratio: 1 / 1; }
  .post-media.no-img { aspect-ratio: auto; height: 40px; }
  .table { min-width: 0; font-size: 9.5pt; }
  .next-steps .prose, .badge, .dot, .post-media, .chart svg rect { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wrap { max-width: none; padding: 0; }
}

/* Teléfonos */
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi-value { font-size: 18px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .post-body { padding: 10px; }
  .post-caption { -webkit-line-clamp: 2; }
  .post-metrics dd { font-size: 13px; }
  .report-hero { padding: 40px 0 32px; }
}

/* Google desde capturas */
.cap-preview { display: flex; gap: 10px; flex-wrap: wrap; }
.cap-preview img { height: 110px; border-radius: 8px; border: 1px solid var(--line); }
.edit-table input, .edit-table select { min-height: 38px; width: 100%; min-width: 90px; }
.edit-table td:first-child input { min-width: 200px; }
.edit-table { min-width: 900px; }

/* Portada */
.home-hero { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 4px; }
.home-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.home-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.kpi-link { text-decoration: none; color: inherit; }
.kpi-link:hover { border-color: var(--accent); color: inherit; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.brand-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--surface); }
.brand-card:hover { border-color: var(--accent); color: var(--ink); box-shadow: 0 4px 16px rgba(14, 10, 35, .06); }
.brand-card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-card-text b { font-size: 16px; }

/* Pagos */
.pay-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kpi-strong { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.kpi-strong .kpi-label, .kpi-strong .small { color: var(--side-muted); }
.pay-block .block-head { gap: 14px; }
.pay-result { font-size: 14px; color: var(--ink-2); }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.pay-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pay-col h3 { padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.pay-in h3 { background: #E3F0E3; color: #1E5E3D; }
.pay-out h3 { background: #F7E1DE; color: #8C2A1E; }
.pay-partners h3 { background: #FBF0CC; color: #6B5306; }
.pay-table { min-width: 0; }
.pay-table td, .pay-table th { padding: 4px 4px; }
.pay-table input:not([type=checkbox]), .pay-table select { min-height: 38px; width: 100%; padding: 0 8px; font-size: 14px; }
.pay-table input[readonly] { background: transparent; border-color: transparent; }
.pay-table .num-input { text-align: right; font-family: var(--mono); min-width: 80px; }
.pay-table td:first-child input { min-width: 140px; }
.pay-table .c { text-align: center; width: 54px; }
.pay-table .inst { display: flex; align-items: center; gap: 4px; min-width: 96px; }
.pay-table .inst input { width: 42px; min-width: 0; text-align: center; padding: 0 4px; }
.pay-table tfoot th, .pay-table tfoot td { border-top: 2px solid var(--ink); font-weight: 600; padding-top: 8px; }
.pay-out .pay-table { min-width: 640px; }
.payees-table { min-width: 860px; }
.metric-row.strong dt, .metric-row.strong dd { font-weight: 600; color: var(--ink); }
.transfers { display: flex; flex-direction: column; }
.transfer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.transfer-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.transfer-main b { font-family: var(--mono); font-weight: 500; letter-spacing: .01em; }
.transfer-acc { font-size: 13px; color: var(--ink-2); }
.transfer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.transfer.is-done { opacity: .55; }
.transfer.is-done b { text-decoration: line-through; }

/* Pagos: clientes y pagos lado a lado, ganancia de socios abajo en una franja */
.pay-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 1100px) { .pay-grid { grid-template-columns: minmax(0, 1fr); } }
.pay-partners { grid-column: 1 / -1; background: #FFFBEB; border: 1px solid #F1E3B0; border-radius: 12px; padding: 12px 14px; }
.pay-partners h3 { background: transparent; padding: 0; }
.pay-partners .metric-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 18px; }
.pay-partners .metric-row { flex-direction: column; align-items: flex-start; gap: 2px; border-top: 0; padding: 4px 0; }
.pay-partners .metric-row dd { font-size: 18px; }
.pay-out .pay-table { min-width: 560px; }
.pay-in .pay-table { min-width: 400px; }
.pay-table th { font-size: 11px; }
.pay-table td:first-child input { min-width: 110px; }
.pay-table .num-input { min-width: 70px; }
.pay-table tfoot td { white-space: nowrap; }
.pay-table select { min-width: 96px; }
.iva-cell { display: flex; align-items: center; gap: 6px; }
.iva-auto { flex-direction: row; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.iva-auto input { width: 16px; height: 16px; }
.pay-in .pay-table { min-width: 460px; }
.pay-in .pay-table { min-width: 0; }
.pay-in .pay-table td:first-child input { min-width: 92px; }
.pay-in .pay-table .num-input { min-width: 62px; }
.pay-in .pay-table .c { width: 44px; }
.iva-cell { gap: 4px; }

/* Menú lateral con secciones */
.side-link { justify-content: flex-start; gap: 10px; }
.side-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.side-link .count { margin-left: auto; }
.side-link.active { background: var(--night-3); color: #FFFFFF; box-shadow: inset 3px 0 0 var(--accent); }
.side-link.active svg { color: var(--lime); opacity: 1; }
.side-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px 18px; padding-left: 10px; border-left: 1px solid var(--side-line); }
.side-sub .brand-link { min-height: 40px; padding: 4px 8px; }
.side-sub .brand-add { min-height: 38px; margin-top: 4px; font-size: 14px; }
.avatar-sm { width: 24px; height: 24px; border-radius: 7px; font-size: 12px; }
/* Portada */
.home-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.home-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.home-tile:hover { border-color: var(--accent); color: var(--ink); box-shadow: 0 4px 16px rgba(14, 10, 35, .06); }
.home-tile b { font-size: 17px; }
.home-tile-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.home-tile-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Contenidos ---------- */
.i-spark { width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; }
.i-fmt { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); text-decoration: none; font-size: 20px; line-height: 1; flex-shrink: 0; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.month-nav { display: flex; align-items: center; gap: 2px; }
.month-nav h1 { margin: 0 4px; }
.content-tabs { display: inline-flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.content-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 500; }
.content-tabs a:hover { background: var(--line-2); color: var(--ink); }
.content-tabs a.active { background: var(--ink); color: #FFFFFF; }
.content-tabs .count { font-size: 11px; }
.actions form { display: inline-flex; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plain-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

.cal-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; color: var(--ink-2); }
.cal-stats > span { display: inline-flex; align-items: center; gap: 6px; }
.mini-bar { width: 64px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; display: inline-block; }
.mini-bar span { display: block; height: 100%; background: var(--accent); }

.specials { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.specials > form { display: inline-flex; }
.specials-title { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); margin-right: 4px; }
.sp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; }
.sp-chip b { font-family: var(--mono); font-weight: 500; font-size: 12px; }
.sp-chip form { display: inline-flex; align-items: center; gap: 2px; margin-right: -8px; }
.sp-added { background: var(--ink); color: #FFFFFF; }
.sp-suggested { background: var(--accent-soft); color: var(--accent-dark); border: 1px dashed var(--accent-line); }
.sp-btn { min-height: 26px; padding: 0 10px; border-radius: 999px; border: 0; background: var(--accent); color: #FFFFFF; font: 500 12px var(--font); cursor: pointer; }
.sp-x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--accent-dark); font-size: 17px; cursor: pointer; }
.sp-x:hover { background: rgba(255,255,255,.7); }
.sp-manual summary { list-style: none; } .sp-manual summary::-webkit-details-marker { display: none; }
.sp-manual[open] { flex-basis: 100%; }
.sp-manual form { margin-top: 8px; }

.cal { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 6px; }
.cal-scroll { overflow-x: auto; }
.cal-head, .cal-week { display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); gap: 6px; min-width: 860px; }
.cal-head span { padding: 8px 10px 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.cal-week { padding-bottom: 6px; }
.cal-day { position: relative; min-height: 140px; padding: 8px; border-radius: 14px; background: #FBFCFC; box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: box-shadow .15s; }
.cal-day.weekend { background: #F6F8F9; }
.cal-day.out { background: transparent; box-shadow: none; }
.cal-day.out .cal-num { color: #8A9AA4; }
.cal-day.today .cal-num { background: var(--ink); color: #FFFFFF; }
.cal-day.open { box-shadow: 0 0 0 2px var(--accent); z-index: 2; }
.cal-day.open .cal-num { background: var(--accent); color: #FFFFFF; }
.cal-day.drop-over { box-shadow: 0 0 0 2px var(--accent); background: var(--accent-soft); }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.cal-num { min-width: 26px; height: 26px; padding: 0 4px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.cal-add { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; opacity: .55; }
.cal-add svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cal-day:hover .cal-add, .cal-add:focus-visible, .cal-day.open .cal-add { opacity: 1; color: var(--accent); border-color: var(--accent); }
.cal-special { align-self: flex-start; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #FFFFFF; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-post { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 10px; background: var(--surface); box-shadow: 0 1px 2px rgba(14,10,35,.07), 0 0 0 1px #E6EBEE; text-decoration: none; color: var(--ink); min-width: 0; cursor: grab; }
.cal-post:hover { box-shadow: 0 4px 12px rgba(14,10,35,.10), 0 0 0 1px #CBD4DA; color: var(--ink); }
.cal-post.has-changes { box-shadow: 0 0 0 2px var(--bad); }
.cal-post.dragging { opacity: .4; }
.cal-thumb { position: relative; flex-shrink: 0; }
.cal-thumb .st-dot { position: absolute; top: -3px; right: -3px; box-shadow: 0 0 0 2px var(--surface); }
.cal-post-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cal-meta { font-size: 11px; color: var(--muted); }
.cal-title { font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ghost { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px; border: 1.5px dashed var(--accent-line); color: var(--accent-dark); font-size: 12px; line-height: 1.25; text-decoration: none; }
.cal-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }

.thumb { width: 38px; height: 46px; border-radius: 7px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; position: relative; background: var(--line-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-empty { color: var(--muted); }
.thumb-post { background: #EDE6DA; color: #6B4A2B; } .thumb-carrusel { background: #E3ECEF; color: var(--accent-dark); }
.thumb-reel { background: #E8E1F0; color: #4E3A78; } .thumb-historia { background: #EEF2F4; color: #51616C; }
.thumb-play { position: absolute; right: 3px; bottom: 3px; width: 0; height: 0; border-left: 7px solid #FFFFFF; border-top: 4px solid transparent; border-bottom: 4px solid transparent; filter: drop-shadow(0 0 2px rgba(0,0,0,.5)); }
.thumb-fill { width: 100%; height: 100%; border-radius: 0; }
.thumb-fill .i-fmt { width: 28px; height: 28px; }

.st-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.st-propuesta { background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--accent-line); }
.st-idea { background: #A9B6BE; } .st-diseno { background: #D9822B; } .st-aprobar { background: var(--accent); }
.st-aprobado { background: var(--good); } .st-publicado { background: var(--ink); }

.quick-add { position: absolute; z-index: 5; top: 40px; left: 6px; width: 290px; max-width: 80vw; background: var(--surface); border-radius: 16px; box-shadow: 0 18px 40px rgba(14,10,35,.18), 0 0 0 1px var(--line); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.cal-week:nth-last-child(-n+2) .quick-add { top: auto; bottom: 40px; }
.cal-day:nth-child(n+6) .quick-add { left: auto; right: 6px; }
.quick-add label { font-size: 13px; }
.quick-add input:not([type=radio]) { min-height: 40px; }
.fmt-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fmt-pick label { display: block; }
.fmt-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fmt-pick span { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #F8FAFB; font-size: 13px; font-weight: 500; cursor: pointer; }
.fmt-pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.fmt-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.qa-props { padding-top: 10px; border-top: 1px solid var(--line-2); }
.prop-pick { width: 100%; text-align: left; min-height: 42px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-dark); font: 13px/1.3 var(--font); cursor: pointer; }

.cal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--ink-2); }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.undated { position: relative; }
.undated summary { list-style: none; } .undated summary::-webkit-details-marker { display: none; }
.undated-box { position: absolute; right: 0; bottom: 48px; z-index: 6; width: 300px; max-width: 86vw; background: var(--surface); border-radius: 14px; box-shadow: 0 18px 40px rgba(14,10,35,.18), 0 0 0 1px var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.undated-box form input { flex: 1; min-width: 0; }

.feed-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.feed-profile { display: flex; gap: 14px; align-items: center; }
.feed-profile div { display: flex; flex-direction: column; }
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.feed-tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; box-shadow: inset 0 0 0 3px var(--accent); display: block; color: var(--ink); text-decoration: none; background: var(--line-2); }
.feed-tile.done { box-shadow: none; }
.feed-tile .thumb-fill { position: absolute; inset: 0; }
.feed-tile > .st-dot { position: absolute; top: 8px; right: 8px; box-shadow: 0 0 0 2px #FFFFFF; }
.feed-tag { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.9); color: var(--ink); padding: 1px 6px; border-radius: 5px; }
.feed-title { position: absolute; left: 8px; right: 8px; bottom: 8px; font-family: var(--display); font-size: 14px; line-height: 1.15; }

.title-input input { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; border: 1px solid transparent; padding: 0 8px; margin-left: -9px; width: min(640px, 80vw); background: transparent; }
.title-input input:hover { border-color: var(--line); }
.stepper { border: 0; margin: 0; padding: 4px; display: flex; flex-wrap: wrap; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.stepper label { display: block; }
.stepper input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stepper span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 9px; font-size: 13px; color: var(--muted); cursor: pointer; }
.stepper input:checked + span { background: var(--accent); color: #FFFFFF; font-weight: 500; }
.stepper input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.post-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.post-side { flex: 1 1 320px; max-width: 400px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.post-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.post-fields fieldset { border: 0; margin: 0; padding: 0; }
.post-fields legend { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.span-2 { grid-column: span 2; }
@media (max-width: 600px) { .span-2 { grid-column: auto; } }
.chip-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-pick label { display: block; }
.chip-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-pick span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #CBD4DA; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.chip-pick input:checked + span { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.chip-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.media-item { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.media-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; display: block; background: var(--line-2); }
.media-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.media-item figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-drop { aspect-ratio: 4 / 5; border-radius: 10px; border: 1.5px dashed #A9B6BE; background: #F8FAFB; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; text-align: center; cursor: pointer; }
.media-drop:hover, .media-drop.drop-over { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.media-drop svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transform: rotate(180deg); }
.media-drop span { display: flex; flex-direction: column; font-size: 13px; }
.hooks { display: flex; flex-direction: column; gap: 6px; }
.hooks button { text-align: left; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-dark); font: 14px/1.35 var(--font); cursor: pointer; }

.ig-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(14,10,35,.08); font: 14px/1.4 system-ui, -apple-system, sans-serif; color: #111111; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ig-avatar { width: 32px; height: 32px; border-radius: 50%; color: #FFFFFF; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #D9822B; }
.ig-media { position: relative; aspect-ratio: 4 / 5; background: #EDE6DA; display: flex; align-items: center; justify-content: center; }
.ig-media.tall { aspect-ratio: 9 / 14; }
.ig-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #6B4A2B; font-size: 13px; }
.ig-empty .i-fmt { width: 36px; height: 36px; }
.ig-count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #FFFFFF; font-size: 12px; padding: 2px 8px; border-radius: 99px; }
.ig-actions { display: flex; gap: 14px; padding: 10px 12px 4px; }
.ig-actions svg { width: 24px; height: 24px; fill: none; stroke: #111111; stroke-width: 1.8; stroke-linejoin: round; }
.ig-caption { padding: 4px 12px 0; white-space: pre-line; }
.ig-more { color: #737373; }
.ig-tags { padding: 2px 12px 12px; color: #1F4B8F; }
.cc-copy .ig-tags { padding: 0; }
.comment { display: flex; gap: 10px; }
.comment > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.comment.from-client > div { background: var(--warn-bg); padding: 8px 10px; border-radius: 10px; }

.prop-form { flex: 1 1 320px; max-width: 420px; }
.prop-list { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.prop-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.prop-card:has(input:checked) { border-color: var(--accent); }
.prop-card h3 { font-size: 16px; line-height: 1.3; }
.prop-card .check { min-height: 0; padding: 0; }
.prop-card .badge { align-self: flex-start; }
.empty-props { background: var(--surface); border: 1px dashed #CBD4DA; border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }

/* Vista del cliente (celular primero) */
.client-content { background: var(--ground); }
.cc { max-width: 560px; margin: 0 auto; padding: 18px 16px 48px; display: flex; flex-direction: column; gap: 14px; }
.cc-head { display: flex; flex-direction: column; gap: 8px; }
.cc-head h1 { font-size: clamp(22px, 6vw, 28px); }
.cc-tabs { display: flex; } .cc-tabs a { flex: 1; justify-content: center; }
.cc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cc-card h2 { font-family: var(--display); font-size: 20px; letter-spacing: -0.01em; }
.cc-media { display: grid; gap: 6px; }
.cc-media.multi { grid-auto-flow: column; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; }
.cc-media img { width: 100%; border-radius: 12px; display: block; scroll-snap-align: start; }
.cc-copy { font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.cc-actions details { flex: 1 1 160px; display: flex; flex-direction: column; gap: 8px; }
.cc-actions details summary { list-style: none; width: 100%; } .cc-actions summary::-webkit-details-marker { display: none; }
.cc-actions details[open] { flex-basis: 100%; }
.cc-actions details[open] > * + * { margin-top: 8px; }
.btn-approve { flex: 1 1 160px; background: var(--good); border-color: var(--good); color: #FFFFFF; font-weight: 600; }
.btn-approve:hover { background: #17643E; color: #FFFFFF; border-color: #17643E; }
.cc-empty { background: var(--surface); border-radius: 18px; padding: 24px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.cc-sub { font-size: 15px; margin-top: 8px; }
.cc .feed-grid { background: var(--surface); border-radius: 14px; overflow: hidden; }
@media (min-width: 1240px) { .cal-scroll { overflow: visible; } }
@media (max-width: 1239px) { .quick-add, .cal-week:nth-last-child(-n+2) .quick-add, .cal-day:nth-child(n+6) .quick-add { position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto; width: auto; max-width: 420px; margin: 0 auto; } }
.qa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.qa-head .icon-btn { margin: -8px -8px 0 0; }
.plan-edit { position: relative; }
.plan-edit summary { list-style: none; } .plan-edit summary::-webkit-details-marker { display: none; }
.plan-form { position: absolute; z-index: 6; top: 46px; left: 0; width: 300px; max-width: 86vw; background: var(--surface); border-radius: 14px; box-shadow: 0 18px 40px rgba(14,10,35,.18), 0 0 0 1px var(--line); padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-form label { font-size: 13px; }
.plan-form button, .plan-form p { grid-column: 1 / -1; }

/* ---------- Estética Alaska: portada ---------- */
.home-hero { position: relative; overflow: hidden; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: #000000; color: #F5F3FF; border-radius: 24px; padding: clamp(24px, 4vw, 40px); }
.home-hero::before { content: ''; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: var(--accent); opacity: .22; filter: blur(60px); pointer-events: none; }
.home-hero-text { position: relative; display: flex; flex-direction: column; gap: 10px; flex: 1 1 380px; min-width: 0; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.home-hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; color: #FFFFFF; }
.home-hero h1 em { font-style: normal; color: var(--violet-light); }
.hero-line { font-size: clamp(16px, 1.6vw, 19px); color: #D9D5EA; max-width: 46ch; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hero-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #3A3550; color: #F5F3FF; text-decoration: none; font-size: 14px; }
.hero-chip b { color: var(--lime); font-family: var(--mono); }
.hero-chip:hover { border-color: var(--violet-light); color: #FFFFFF; }
.pixel-bear { position: relative; width: 132px; height: auto; flex-shrink: 0; }
.pixel-bear .bear-b { opacity: 0; }
.pixel-bear .bear-a { animation: bear-a .8s steps(1) infinite; }
.pixel-bear .bear-b { animation: bear-b .8s steps(1) infinite; }
@keyframes bear-a { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes bear-b { 0% { opacity: 0; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pixel-bear .bear-a, .pixel-bear .bear-b { animation: none; } .pixel-bear .bear-a { opacity: 1; } }
@media (max-width: 600px) { .pixel-bear { width: 96px; } }
.home-tile-icon { border-radius: 999px; }
.content-tabs a { border-radius: 999px; } .content-tabs { border-radius: 999px; }
.roles-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.roles-help p { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--ink-2); }

/* ---------- Comentarios y notificaciones ---------- */
.count-red { background: var(--pink) !important; color: #FFFFFF !important; }
.cal-day-tools { display: inline-flex; align-items: center; gap: 4px; }
.cal-comments { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #E5243B; color: #FFFFFF; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 0 0 2px var(--surface); }
.cal-comments:hover { background: #C41A30; color: #FFFFFF; }
.quick-add.day-comments { width: 340px; max-height: 520px; overflow-y: auto; }
.thread { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.thread.resolved { opacity: .7; }
.thread-msg { display: flex; gap: 10px; }
.thread-msg > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.thread-msg .avatar { background: var(--accent); width: 28px; height: 28px; font-size: 12px; border-radius: 50%; }
.thread-msg.reply { margin-left: 22px; padding-left: 12px; border-left: 2px solid var(--line); }
.thread-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-left: 38px; }
.thread-actions details { flex-basis: 100%; order: 9; }
.thread-actions details summary { list-style: none; display: inline; } .thread-actions summary::-webkit-details-marker { display: none; }
.thread-actions details[open] { margin-top: 4px; }
.thread-actions details[open] summary { display: none; }
.thread-day { display: flex; flex-direction: column; gap: 8px; }
.done-threads summary { cursor: pointer; padding: 6px 0; }
.mention { color: var(--accent-dark); background: var(--accent-soft); border-radius: 6px; padding: 0 4px; font-weight: 600; }
.mention-wrap { position: relative; display: flex; flex-direction: column; gap: 6px; }
.mention-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mention-chip { min-height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-dark); font: 500 12px var(--font); cursor: pointer; }
.mention-menu { position: absolute; z-index: 20; left: 0; top: 100%; margin-top: 4px; min-width: 220px; background: var(--surface); border-radius: 12px; box-shadow: 0 12px 30px rgba(14,10,35,.18), 0 0 0 1px var(--line); padding: 4px; display: flex; flex-direction: column; }
.mention-menu button { text-align: left; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; font: 14px var(--font); color: var(--ink); cursor: pointer; display: flex; gap: 8px; align-items: center; }
.mention-menu button b { color: var(--accent-dark); }
.mention-menu button.active, .mention-menu button:hover { background: var(--accent-soft); }
.notif-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.notif-list a { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); }
.notif-list a:hover { border-color: var(--accent); color: var(--ink); }
.notif-list .unread a { border-color: var(--accent-line); color: var(--ink); }
.notif-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: transparent; }
.notif-list .unread .notif-dot { background: var(--pink); }
.notif-text { display: flex; flex-direction: column; gap: 2px; }
.mention-menu button { min-height: 48px; }
.mm-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mm-text { display: flex; flex-direction: column; line-height: 1.2; }
.mm-text b { color: var(--ink) !important; font-weight: 600; }
.mm-text small { color: var(--accent-dark); font-size: 12px; }
.mention-empty { padding: 12px; font-size: 13px; color: var(--muted); max-width: 300px; }
.sp-del { display: inline-flex; margin: 0; }
.sp-x-dark { color: #FFFFFF; } .sp-x-dark:hover { background: rgba(255,255,255,.18); }
.cal-special { display: inline-flex; align-items: center; gap: 2px; padding-right: 2px; }
.cal-special > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-special-x { width: 18px; height: 18px; border-radius: 50%; border: 0; background: transparent; color: #FFFFFF; font-size: 13px; line-height: 1; cursor: pointer; padding: 0; opacity: .7; }
.cal-special-x:hover { opacity: 1; background: rgba(255,255,255,.2); }

/* ---------- Espacio en disco ---------- */
.disk-card { gap: 16px; }
.disk-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.disk-big { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; }
.disk-pct { font-family: var(--mono); font-size: 22px; font-weight: 500; }
.disk-bar { position: relative; display: flex; height: 18px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.disk-bar .seg { height: 100%; }
.seg-media { background: var(--accent); } .seg-db { background: var(--pink); } .seg-other { background: #A9A5C2; } .seg-free { background: var(--line-2); border: 1px solid var(--line); }
.disk-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); opacity: .35; }
.disk-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ink-2); }
.disk-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.disk-warn .disk-pct, .disk-bad .disk-pct { color: var(--bad); }
a.disk-warn { display: block; text-decoration: none; }

/* ---------- Publicar en redes ---------- */
.publish-box { gap: 10px; }
.pub-nets { display: flex; flex-wrap: wrap; gap: 0 18px; }
.pub-nets .check { min-height: 0; padding: 4px 0; }
.pub-state { font-size: 14px; }
.pub-state.ok { color: var(--good); font-weight: 600; }
.pub-state.sched { color: var(--accent-dark); }
.pub-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pub-problems { margin: 0; padding-left: 18px; font-size: 13px; color: var(--warn); display: flex; flex-direction: column; gap: 2px; }
.pub-tag { font-size: 10px; font-weight: 600; color: var(--accent-dark); white-space: nowrap; }
.pub-tag.err { color: var(--bad); }
.btn[disabled] { opacity: .5; pointer-events: none; }
