/* Centro de Marca — Galopante Media */
/* Paleta oficial (Manual de marca Galopante v.01)
   Petro #09121C · Aquamarina #B3ECE6 · Coral #EB455D · Hueso #F1F0F0 · Cuarzo ahumado #89837A */
:root {
  --petro: #09121C; --aqua: #B3ECE6; --coral: #EB455D; --hueso: #F1F0F0; --cuarzo: #89837A;
  --bg: var(--hueso);
  --surface: #ffffff;
  --surface-2: #f7f6f5;
  --ink: var(--petro);
  --ink-2: #4a4f56;
  --ink-3: var(--cuarzo);
  --line: #e3e1de;
  --accent: var(--petro);      /* botón principal */
  --accent-ink: #ffffff;
  --highlight: var(--aqua);    /* acento de marca */
  --action: var(--coral);      /* lo que pide acción */
  --ok: var(--petro);
  --warn: var(--coral);
  --bad: var(--coral);
  --info: var(--petro);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(9,18,28,.04), 0 8px 24px rgba(9,18,28,.06);
  --side-bg: var(--petro);
  --side-ink: #ffffff;
  --note-bg: #fdecef; --note-line: #f6c3cb;
  --bad-bg: #fdecef; --bad-line: #f6c3cb;
  --today: #eefaf8;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Montserrat", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #09121C; --surface: #0f1b28; --surface-2: #142233; --ink: #F1F0F0; --ink-2: #c3c6ca; --ink-3: #9a948b;
  --line: #1f2e40; --accent: #B3ECE6; --accent-ink: #09121C; --side-bg: #050b12; --side-ink: #ffffff;
  --note-bg: #2a1419; --note-line: #5a2630; --bad-bg: #2a1419; --bad-line: #5a2630; --today: #10282a; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #09121C; --surface: #0f1b28; --surface-2: #142233; --ink: #F1F0F0; --ink-2: #c3c6ca; --ink-3: #9a948b;
  --line: #1f2e40; --accent: #B3ECE6; --accent-ink: #09121C; --side-bg: #050b12; --side-ink: #ffffff;
  --note-bg: #2a1419; --note-line: #5a2630; --bad-bg: #2a1419; --bad-line: #5a2630; --today: #10282a; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: 28px; font-weight: 600; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .28em; color: var(--ink-3); font-weight: 500; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
.muted { color: var(--ink-3); }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--side-bg); color: var(--side-ink); padding: 22px 16px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.brand .iso { width: 34px; height: auto; color: var(--aqua); flex: none; }
.iso { display: block; }
.for-client { display: grid; gap: 4px; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; }
.for-client .eyebrow { color: rgba(255,255,255,.5); font-size: 9.5px; }
.for-client b { font-size: 14px; font-weight: 600; }
.strip { display: flex; height: 4px; border-radius: 2px; overflow: hidden; }
.strip i { flex: 1; }
.side .who { display: grid; gap: 6px; }
.side .who .strip { margin-bottom: 10px; }
.side .who button { justify-self: start; }
.brand b { font-family: var(--display); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; display: block; }
.brand small { color: var(--aqua); font-size: 10px; text-transform: uppercase; letter-spacing: .24em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { text-decoration: none; padding: 9px 10px; border-radius: var(--radius-sm); color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 10px; }
.nav a:hover { background: rgba(255,255,255,.07); color: var(--side-ink); }
.nav a.on { background: rgba(255,255,255,.12); color: var(--side-ink); }
.nav a.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); margin-left: -2px; }
.nav .sec { font-size: 10px; text-transform: uppercase; letter-spacing: .24em; color: rgba(255,255,255,.4); padding: 14px 10px 6px; }
.side .who { margin-top: auto; font-size: 12px; color: rgba(255,255,255,.6); padding: 0 6px; }
.side .who .strip i:nth-child(1) { background: color-mix(in srgb, var(--hueso) 18%, var(--petro)) !important; }
.side .who button { background: none; border: 0; color: var(--side-ink); text-decoration: underline; cursor: pointer; padding: 0; margin-top: 4px; }

.main { padding: 28px 32px 60px; min-width: 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head p { margin: 4px 0 0; color: var(--ink-2); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ---------- Controles ---------- */
.btn { border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 10px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { opacity: .9; }
.btn.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn.action { background: var(--coral); color: #fff; border-color: var(--coral); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; }

label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
input[type=text], input[type=email], input[type=search], input[type=tel], input[type=number], input[type=password], input[type=datetime-local], input[type=date], select, textarea {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 9px 11px; width: 100%; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(127,127,127,.15); }
textarea { resize: vertical; min-height: 120px; }
.chk { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--surface); }
.chk input { accent-color: var(--ink); }
.chk:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }

/* ---------- Estados ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-borrador { color: var(--ink-3); }
.s-revision { color: var(--warn); }
.s-aprobado { color: var(--info); }
.s-programado { color: #6b3fd4; }
.s-publicando { color: #6b3fd4; }
.s-manual { color: var(--warn); }
.s-publicado { color: var(--ok); }
.s-error { color: var(--bad); }
.net { font-size: 11px; font-weight: 600; padding: 2px 8px 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 5px; }
.net::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--petro); }
.net.instagram::before { background: var(--coral); } .net.facebook::before { background: var(--aqua); } .net.tiktok::before { background: var(--petro); }
.net.linkedin::before { background: var(--cuarzo); } .net.youtube::before { background: var(--coral); outline: 1px solid var(--petro); }

/* ---------- Calendario ---------- */
.cal-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: start; }
.cal-wrap .card { padding: 14px; }
.unsched h3 { margin-bottom: 10px; }
.item { padding: 9px 10px; border: 1px solid var(--line); border-left: 4px solid var(--c, var(--ink)); border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; background: var(--surface); }
.item:hover { border-color: var(--ink-3); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.fc { --fc-border-color: var(--line); --fc-today-bg-color: var(--today); --fc-page-bg-color: var(--surface); font-size: 13px; }
.fc .fc-toolbar-title { font-family: var(--display); font-size: 18px; font-weight: 600; }
.fc .fc-toolbar-title::first-letter { text-transform: uppercase; }
.fc .fc-button:disabled { opacity: 1; background: var(--surface-2); color: var(--ink-3); border-color: var(--line); }
.fc .fc-button { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px !important; padding: 5px 12px; text-transform: capitalize; box-shadow: none !important; }
.fc .fc-button:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-3); }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.fc .fc-button-group { gap: 4px; }
.fc .fc-daygrid-day-number, .fc .fc-col-header-cell-cushion { text-decoration: none; color: var(--ink-2); }
.fc-event.gp, .fc-event.gp.fc-daygrid-event { display: block; white-space: normal; margin: 2px 3px; border: 0; border-left: 3px solid var(--c); background: var(--surface-2); color: var(--ink); padding: 3px 5px; border-radius: 6px; cursor: pointer; }
.fc-event.gp .ev-t { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; color: var(--ink); }
.fc .fc-event.gp .fc-event-main { color: var(--ink); }
.fc-event.gp .ev-m { font-size: 11px; color: var(--ink-3); display: flex; gap: 5px; align-items: center; }
.fc-event.gp .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(17,17,17,.45); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 760px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal header button { background: none; border: 0; font-size: 22px; cursor: pointer; line-height: 1; color: var(--ink-3); }
.modal .body { padding: 20px 22px; display: grid; gap: 14px; }
.modal footer { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.media-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.media-strip .m { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; position: relative; background: var(--surface-2); border: 1px solid var(--line); }
.media-strip .m img, .media-strip .m video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-strip .m button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.drop { border: 1.5px dashed var(--line); border-radius: 10px; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; color: var(--ink-3); cursor: pointer; padding: 6px; }
.drop:hover, .drop.over { border-color: var(--ink); color: var(--ink); }
.note { background: var(--note-bg); border: 1px solid var(--note-line); border-left: 3px solid var(--coral); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; }
.note.bad { background: var(--bad-bg); border-color: var(--bad-line); }
.targets { display: grid; gap: 6px; }
.targets .t { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; padding: 8px 10px; background: var(--surface-2); border-radius: var(--radius-sm); }
.targets .t small { color: var(--bad); display: block; }

/* Vista previa estilo feed (para el cliente) */
.preview { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.phone { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.phone .ph-h { display: flex; gap: 8px; align-items: center; padding: 10px; font-weight: 600; font-size: 13px; }
.phone .ph-h i { width: 28px; height: 28px; border-radius: 50%; background: var(--c, var(--ink)); display: inline-block; }
.phone .ph-m { aspect-ratio: 4/5; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.phone .ph-m img, .phone .ph-m video { width: 100%; height: 100%; object-fit: cover; }
.phone .ph-c { padding: 10px; font-size: 13px; white-space: pre-wrap; }

/* ---------- Listas / tablas ---------- */
.client-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.client-card .sw { width: 36px; height: 36px; border-radius: 10px; }
.client-card:hover { border-color: var(--ink-3); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--ink); font-weight: 600; }
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-3); font-weight: 600; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }

/* ---------- Marca ---------- */
.asset { display: flex; flex-direction: column; gap: 10px; }
.asset .thumb { aspect-ratio: 4/3; max-width: 100%; border-radius: 10px; background: var(--surface-2) repeating-conic-gradient(var(--line) 0 25%, transparent 0 50%) 0 0/16px 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); }
.asset .thumb img { max-width: 80%; max-height: 80%; object-fit: contain; }
.asset .thumb .ext { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; }
.cat-title { margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.cat-title:first-child { margin-top: 0; }

/* ---------- Informes ---------- */
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font-variant-numeric: tabular-nums; font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.kpi .l { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .2em; font-weight: 500; }
.kpi .d { font-size: 12px; font-weight: 600; }
.kpi .d.up { color: var(--ok); } .kpi .d.down { color: var(--coral); }
.acc-block { margin-top: 22px; }
.acc-block > .row { margin-bottom: 12px; }
.chart svg { width: 100%; height: 160px; display: block; }
.report-head { display: none; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { background: var(--side-bg); color: var(--side-ink); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login .art h1 { font-family: var(--display); font-weight: 300; font-size: clamp(44px, 6vw, 84px); line-height: .92; letter-spacing: -0.02em; max-width: 9ch; }
.login .art h1 b { display: block; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; }
.login .art .eyebrow { color: rgba(255,255,255,.7); }
.login .art h1 em { font-style: normal; color: var(--aqua); }
.login .art img { width: 40px; filter: invert(1); }
.login .art p { color: rgba(255,255,255,.6); max-width: 36ch; }
.login form { align-self: center; justify-self: center; width: min(360px, 90%); display: grid; gap: 14px; }
.login .err { color: var(--bad); font-size: 13px; min-height: 18px; }

.toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; z-index: 99; font-size: 13px; box-shadow: var(--shadow); }
.toast.bad { background: var(--bad); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 12px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav .sec { display: none; }
  .side .who { margin: 0 0 0 auto; }
  .main { padding-block: 20px 50px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .cal-wrap { grid-template-columns: 1fr; }
  .preview, .two { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login .art { min-height: 260px; padding: 28px; }
  .fc .fc-toolbar { flex-direction: column; gap: 8px; }
}

/* ---------- Impresión (informe a PDF) ---------- */
@media print {
  body { background: #fff; }
  .side, .no-print, .head .row { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  .report-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
  .report-head img { height: 28px; }
}

.btn:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.card.opinion { background: var(--side-bg); color: var(--side-ink); border-color: var(--side-bg); }
.card.opinion .muted { color: rgba(255,255,255,.65); }
.card.opinion .btn.primary { background: var(--aqua); color: var(--petro); border-color: var(--aqua); }

/* ---------- Identidad Galopante ---------- */
.eyebrow.dim { color: rgba(255,255,255,.45); }
.rule { display: block; width: 56px; height: 1px; background: currentColor; opacity: .5; }
.rule.short { width: 28px; }
.btn.light { background: var(--aqua); color: var(--petro); border-color: var(--aqua); font-weight: 600; }
.hero { position: relative; overflow: hidden; background: var(--side-bg); color: #fff; border-radius: 18px; padding: 30px 32px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.hero .eyebrow { color: var(--aqua); }
.hero .hero-txt { position: relative; z-index: 1; display: grid; gap: 10px; }
.hero .row { position: relative; z-index: 1; }
.hero p { margin: 0; color: rgba(255,255,255,.7); }
.hello { display: flex; flex-wrap: wrap; gap: 0 .3em; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.02em; }
.hello span { font-weight: 300; }
.hello b { font-weight: 700; }
.hero-iso { position: absolute; right: -40px; top: -60px; width: 300px; height: auto; color: #fff; opacity: .05; pointer-events: none; }
.login .art { position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; gap: 30px; }
.login .art-top { display: flex; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.login .art-mid { align-self: center; display: grid; gap: 22px; position: relative; z-index: 1; }
.login .art-mid h1 span { display: block; font-weight: 300; }
.login .art-foot { display: grid; gap: 12px; position: relative; z-index: 1; color: rgba(255,255,255,.6); }
.login .eyebrow.stack { line-height: 2; }
.login .art-iso { position: absolute; right: -12%; bottom: -14%; width: 72%; max-width: 560px; color: var(--aqua); opacity: .09; }
.login .art-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 0; }
.login .form-iso { width: 44px; color: var(--petro); }
@media (max-width: 900px) { .hero { padding: 22px; } .hero-iso { width: 200px; } .login .art-iso { width: 60%; } }

/* Galopardo al pie de la barra, fundiéndose hacia el Petro */
.side { overflow: hidden; }
.side > * { position: relative; z-index: 1; }
.side > .side-goat { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 340px;
  background-size: cover; background-position: center 30%; background-repeat: no-repeat; opacity: .55;
  filter: saturate(.85) contrast(1.05);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 30%, #000 70%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 30%, #000 70%); }
.side > .side-goat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--side-bg) 100%); opacity: .7; }
@media (max-width: 900px) { .side > .side-goat { display: none; } }

/* ---------- Solicitudes ---------- */
.req-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.req-col-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.unsched .item.req, .item.req { cursor: pointer; }
.req-last { font-size: 12px; color: var(--ink-2); margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asks { background: var(--surface); border: 1px solid var(--note-line); border-left: 4px solid var(--coral); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; display: grid; gap: 10px; }
.asks-head { display: flex; justify-content: space-between; align-items: baseline; }
.asks .eyebrow { color: var(--coral); font-weight: 600; }
.ask { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; cursor: pointer; }
.ask:hover { background: var(--note-bg); }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; }
.opt span { color: var(--ink-2); }
.opt i { margin-left: auto; font-style: normal; color: var(--ok); font-weight: 600; font-size: 12px; }
.opt:not(:disabled):hover { border-color: var(--ink); background: var(--surface-2); }
.opt.on { border-color: var(--petro); background: color-mix(in srgb, var(--aqua) 35%, transparent); }
.opt:disabled { cursor: default; }
.thread { display: grid; gap: 10px; }
.msg { max-width: 85%; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); justify-self: start; }
.msg.me { justify-self: end; background: var(--today); border-color: color-mix(in srgb, var(--aqua) 60%, var(--line)); }
.msg-h { display: flex; gap: 10px; justify-content: space-between; font-size: 12px; }
.msg-h span { color: var(--ink-3); }
.msg-b { margin-top: 4px; white-space: pre-wrap; }
.file-chip { font-size: 12px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--surface); }
.compose { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.fecha-box { display: grid; gap: 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; }

/* ---------- Informes ---------- */
.report-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.seg button.on { background: var(--petro); color: #fff; }
:root[data-theme="dark"] .seg button.on { background: var(--aqua); color: var(--petro); }
.report-range { margin: 0 0 16px; font-size: 12px; }
.custom-range { display: inline-flex; gap: 6px; align-items: center; }
.custom-range input { width: auto; }
.grid.cols-3k { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid.two-col { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.kpi .d.flat { color: var(--ink-3); font-weight: 500; }
.kpi .d .muted { font-weight: 400; }
.kpi .hint { font-size: 11px; color: var(--ink-3); }
.grid.mini .kpi .v { font-size: 22px; }
.sec-h { display: grid; gap: 4px; margin-bottom: 14px; }
.sec-h .eyebrow { font-size: 10px; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .ax { font-size: 11px; fill: var(--ink-3); font-family: var(--font); }
.chart-svg .area { fill: var(--aqua); opacity: .35; }
.chart-svg .ln { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .end { fill: var(--coral); stroke: var(--surface); stroke-width: 2; }
.chart-svg rect:hover { fill: rgba(127,127,127,.08); }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 130px 1fr 60px; align-items: center; gap: 10px; }
.hb-l { display: grid; font-weight: 500; } .hb-l small { color: var(--ink-3); font-weight: 400; }
.hb-t { height: 14px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.hb-t i { display: block; height: 100%; background: var(--petro); border-radius: 0 4px 4px 0; }
:root[data-theme="dark"] .hb-t i { background: var(--aqua); }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.hm-wrap { overflow-x: auto; }
.hm { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: 12px; }
.hm th { font-weight: 500; color: var(--ink-3); text-align: center; padding: 2px; }
.hm tbody th { text-align: left; padding-right: 6px; }
.hm td { height: 34px; border-radius: 6px; text-align: center; background: color-mix(in srgb, var(--petro) calc(var(--f) * 85%), var(--aqua) 30%); color: #fff; font-variant-numeric: tabular-nums; }
.hm td span { font-size: 11px; font-weight: 600; }
.hm td.hm-empty { background: var(--surface-2); }
.hm td.hm-best { outline: 2px solid var(--coral); outline-offset: 1px; }
.top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.top-post { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.tp-media { position: relative; width: 84px; height: 104px; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 11px; }
.tp-media img { width: 100%; height: 100%; object-fit: cover; }
.tp-media em { position: absolute; top: 6px; left: 6px; font-style: normal; background: var(--petro); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.tp-body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.tp-body .muted { font-size: 12px; }
.tp-stats { display: grid; gap: 2px; font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.tbl-wrap { overflow-x: auto; }
table.t.num td { font-variant-numeric: tabular-nums; }
table.t .up { color: var(--ok); font-weight: 600; } table.t .down { color: var(--coral); font-weight: 600; }
@media print { .acc-block { break-before: page; } .report-range { display: block; } }
.custom-range[hidden] { display: none; }
.grid.cols-3k { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .grid.cols-3k { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hbar { grid-template-columns: 96px 1fr 48px; } }

/* ---------- Laboratorio ---------- */
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.lab-card { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: left; position: relative; overflow: hidden; }
.lab-card:hover { border-color: var(--ink); transform: translateY(-1px); }
.lab-card .lab-n { font-size: 11px; letter-spacing: .24em; color: var(--ink-3); }
.lab-card h3 { font-size: 17px; }
.lab-card p { margin: 0; color: var(--ink-2); }
.lab-card .lab-go { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.lab-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.lab-card.dark { background: var(--side-bg); color: #fff; border-color: var(--side-bg); }
.lab-card.dark p { color: rgba(255,255,255,.7); } .lab-card.dark .lab-go { color: var(--aqua); } .lab-card.dark .lab-n { color: rgba(255,255,255,.5); }
.lab-frame-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lab-frame { width: 100%; height: calc(100vh - 200px); min-height: 560px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* ---------- Mi marca ---------- */
.brand-sec { margin-bottom: 30px; }
.brand-sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand-sec-h .eyebrow { color: var(--coral); font-weight: 600; }
.brand-sec-h h2 { margin-right: auto; }
.brand-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.sw-color { aspect-ratio: 4 / 3; max-width: 100%; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.sw-color b { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.sw-color span { font-size: 12px; opacity: .8; }
.sw-codes { display: grid; }
.sw-codes .code { display: flex; justify-content: space-between; gap: 8px; padding: 9px 14px; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; font-size: 11px; letter-spacing: .14em; color: var(--ink-3); text-align: left; }
.sw-codes .code b { letter-spacing: .04em; color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.sw-codes .code:hover { background: var(--surface-2); }
.pal-row { display: grid; grid-template-columns: 44px 110px 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.pal-row input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
@media (max-width: 700px) { .pal-row { grid-template-columns: 44px 1fr auto; } .pal-row [data-k=name], .pal-row [data-k=use] { grid-column: 1 / -1; } }
@media (min-width: 1280px) { .lab-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.disk { display: grid; gap: 6px; }
.disk-bar { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.disk-bar i { display: block; height: 100%; background: var(--petro); }
.disk-bar i.hot { background: var(--coral); }
:root[data-theme="dark"] .disk-bar i { background: var(--aqua); }

/* ---------- Plan del mes ---------- */
.plan { display: grid; gap: 12px; }
.plan-row { display: grid; gap: 6px; }
.plan-l { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.plan-l b { font-variant-numeric: tabular-nums; }
.plan-bar { height: 8px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.plan-bar i { display: block; height: 100%; background: var(--petro); border-radius: 5px; }
.plan-row.done .plan-bar i { background: var(--ok); }
.plan-row.over .plan-bar i { background: var(--coral); }
.plan-row small { color: var(--coral); font-size: 11px; font-weight: 600; }
:root[data-theme="dark"] .plan-bar i { background: var(--aqua); }
.plan.compact { gap: 6px; margin-top: 8px; }
.plan.compact .plan-l { font-size: 12px; }
.plan.compact .plan-bar { height: 5px; }
.plan-card { margin-bottom: 16px; }
.plan-client { display: block; text-decoration: none; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.plan-client:hover { border-color: var(--ink-3); }
.plan-edit { display: grid; grid-template-columns: 1.3fr 80px 1.3fr auto; gap: 8px; margin-bottom: 8px; }
@media (max-width: 700px) { .plan-edit { grid-template-columns: 1fr 80px auto; } .plan-edit [data-k=label] { grid-column: 1 / -1; } }

/* ---------- Banco de fotos y videos ---------- */
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bank-sess { text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: grid; }
.bank-sess:hover { border-color: var(--ink-3); }
.bank-cover { aspect-ratio: 16 / 10; max-width: 100%; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--side-bg); }
.bank-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bank-cover img:first-child { grid-row: 1 / 3; }
.bank-cover img:only-child { grid-column: 1 / 3; }
.bank-cover .bank-iso { grid-column: 1 / 3; grid-row: 1 / 3; width: 60px; margin: auto; color: var(--aqua); opacity: .5; }
.bank-meta { display: grid; gap: 4px; padding: 14px; }
.bank-meta .muted { font-size: 12px; }
.bank-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.bank-item { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; border: 1px solid var(--line); }
.bank-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bank-item .play { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; background: rgba(9,18,28,.7); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; padding-left: 3px; }
.bank-proc { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-3); }
.bank-del { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.lightbox { display: flex; justify-content: center; background: var(--side-bg); border-radius: 10px; overflow: hidden; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 70vh; display: block; }

.acc-user { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 10px 14px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.acc-user .row { grid-column: 1 / -1; }
.cred { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 13px; white-space: pre-wrap; user-select: all; margin: 0; }
@media (max-width: 700px) { .acc-user { grid-template-columns: 1fr; } }

.inv-form { display: grid; grid-template-columns: 1fr 2fr 1fr 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 1100px) { .inv-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nav .sec { padding: 16px 10px 4px; }
.nav .sec:first-child { padding-top: 4px; }

@media (min-width: 1000px) { .plan-card .plan { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 36px; } }

/* ---------- Presupuestos ---------- */
.modal.wide { max-width: 900px; }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: var(--surface-2); }
.q-line { display: grid; grid-template-columns: 1fr 70px 150px auto; gap: 8px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.q-line [data-k=detail] { grid-column: 1 / -1; font-size: 13px; }
.q-sum { display: flex; justify-content: flex-end; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.q-sum .q-total { color: var(--ink); font-size: 15px; }
.quote-doc { background: #fff; color: #09121C; border: 1px solid var(--line); border-radius: 12px; padding: 32px 34px 0; display: grid; gap: 18px; position: relative; overflow: hidden; }
.qd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #e3e1de; }
.qd-brand { display: flex; align-items: center; gap: 10px; }
.qd-iso { width: 38px; color: #09121C; }
.qd-brand b { display: block; letter-spacing: .3em; font-size: 14px; }
.qd-brand span { display: block; letter-spacing: .3em; font-size: 10px; color: #89837A; text-transform: uppercase; }
.qd-meta { display: grid; text-align: right; gap: 2px; font-size: 13px; color: #4a4f56; }
.qd-meta b { font-size: 16px; color: #09121C; }
.quote-doc .eyebrow { color: #EB455D; font-size: 10px; }
.qd-to { display: grid; gap: 2px; }
.qd-title { font-size: 24px; font-weight: 300; letter-spacing: -0.01em; }
.qd-items { width: 100%; border-collapse: collapse; font-size: 13px; }
.qd-items th { text-align: left; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #89837A; font-weight: 600; padding: 8px 6px; border-bottom: 2px solid #09121C; }
.qd-items td { padding: 12px 6px; border-bottom: 1px solid #eeeceb; vertical-align: top; font-variant-numeric: tabular-nums; }
.qd-items .r { text-align: right; white-space: nowrap; }
.qd-detail { color: #4a4f56; font-size: 12px; margin-top: 3px; white-space: pre-wrap; }
.qd-totals { display: grid; justify-content: end; gap: 6px; font-size: 13px; }
.qd-totals div { display: flex; justify-content: space-between; gap: 40px; min-width: 260px; font-variant-numeric: tabular-nums; }
.qd-totals span { color: #4a4f56; }
.qd-total { border-top: 2px solid #09121C; padding-top: 8px; font-size: 18px; }
.qd-total span { color: #09121C !important; font-weight: 600; }
.qd-notes p { margin: 4px 0 0; white-space: pre-wrap; font-size: 13px; color: #4a4f56; }
.qd-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11px; color: #89837A; padding-top: 14px; border-top: 1px solid #eeeceb; }
.qd-strip { display: flex; height: 6px; margin: 4px -34px 0; } .qd-strip i { flex: 1; }
@media (max-width: 700px) { .quote-doc { padding: 20px 18px 0; } .qd-strip { margin: 4px -18px 0; } .q-line { grid-template-columns: 1fr 60px 110px auto; } }
@media print {
  body.printing-quote > *:not(.modal-bg) { display: none !important; }
  body.printing-quote .modal-bg { position: static; background: none; padding: 0; overflow: visible; }
  body.printing-quote .modal { box-shadow: none; max-width: none; }
  body.printing-quote .modal > header, body.printing-quote .modal > footer, body.printing-quote .modal .body > :not(.quote-doc) { display: none !important; }
  body.printing-quote .modal .body { padding: 0; }
  body.printing-quote .quote-doc { border: 0; }
  body.printing-quote .qd-strip i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- App instalable ---------- */
.install-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--aqua); flex-wrap: wrap; }
.install-card[hidden] { display: none; }
.install-card .install-iso { width: 38px; color: var(--petro); flex: none; }
.install-card > div:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 220px; }
.install-card span { font-size: 13px; color: var(--ink-2); }
.btn.ghost { border-color: transparent; background: none; color: var(--ink-3); }
@media (display-mode: standalone) { .side { padding-top: max(22px, env(safe-area-inset-top, 0px)); } }

.drive-links { display: grid; gap: 8px; padding: 14px 16px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--aqua); border-radius: var(--radius); }
.bl-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; margin-bottom: 8px; }
@media (max-width: 700px) { .bl-row { grid-template-columns: 1fr auto; } .bl-row [data-k=url] { grid-column: 1 / -1; } }

/* ---------- Todo con la paleta Galopante ---------- */
.badge { border: 0; color: var(--petro); background: var(--hueso); }
.badge::before { background: currentColor; }
.s-borrador { color: var(--cuarzo) !important; background: var(--hueso); }
.s-revision { color: var(--petro) !important; background: color-mix(in srgb, var(--coral) 22%, #fff); }
.s-revision::before { background: var(--coral) !important; }
.s-aprobado { color: var(--petro) !important; background: color-mix(in srgb, var(--aqua) 45%, #fff); }
.s-programado, .s-publicando { color: var(--petro) !important; background: var(--aqua); }
.s-publicado { color: #fff !important; background: var(--petro); }
.s-publicado::before { background: var(--aqua) !important; }
.s-error { color: #fff !important; background: var(--coral); }
.s-error::before { background: #fff !important; }
.s-manual { color: var(--petro) !important; background: color-mix(in srgb, var(--cuarzo) 30%, #fff); }
.ev-m .s-borrador, .ev-m .s-revision, .ev-m .s-aprobado, .ev-m .s-programado, .ev-m .s-publicado, .ev-m .s-error, .ev-m .s-manual { background: none; }
.ev-m .s-revision .dot { color: var(--coral); } .ev-m .s-programado .dot, .ev-m .s-aprobado .dot { color: var(--petro); } .ev-m .s-publicado .dot { color: var(--petro); } .ev-m .s-error .dot { color: var(--coral); }
.kpi .d.up, table.t .up { color: var(--petro); } .kpi .d.down, table.t .down { color: var(--coral); }
.btn.ok { background: var(--aqua); color: var(--petro); border-color: var(--aqua); font-weight: 600; }
.plan-row.done .plan-bar i { background: var(--aqua); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--petro) 25%, transparent); }
.plan-row.over .plan-bar i { background: var(--coral); }
.hm td { background: color-mix(in srgb, var(--petro) calc(15% + var(--f) * 85%), var(--hueso)); color: #fff; }
.hm td[style*="--f:0.0"], .hm td[style*="--f:0.1"], .hm td[style*="--f:0.2"] { color: var(--petro); }
.hb-t i { background: var(--petro); }
.targets .t small { color: var(--coral); }
.msg.me { background: color-mix(in srgb, var(--aqua) 35%, #fff); border-color: var(--aqua); }
:root[data-theme="dark"] .s-publicado { background: var(--aqua); color: var(--petro) !important; }
.act-badge { background: var(--hueso); color: var(--petro); }
.act-badge::before { background: var(--c) !important; outline: 1px solid color-mix(in srgb, var(--petro) 20%, transparent); }
.sw-pick { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.sw-pick.on { outline: 2px solid var(--petro); outline-offset: 2px; }

/* ---------- Credenciales ---------- */
.cred-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 16px; border-radius: var(--radius); background: var(--side-bg); color: #fff; }
.cred-bar span { display: block; font-size: 13px; color: rgba(255,255,255,.7); }
.cred-bar .cred-iso { width: 34px; color: var(--cuarzo); }
.cred-bar.open .cred-iso { color: var(--aqua); }
.cred-bar .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cred-bar .btn.primary { background: var(--aqua); color: var(--petro); border-color: var(--aqua); }
.cred-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cred { display: grid; gap: 10px; align-content: start; }
.cred-field { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; }
.cred-field > span:first-child { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cred-field b { font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cred-field b.secret { letter-spacing: .14em; }
.cred-field b.secret.shown { letter-spacing: 0; color: var(--coral); }
.cred-notes-open { white-space: pre-wrap; font-size: 13px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; }
.cred-meta { font-size: 11px; color: var(--ink-3); }

/* ---------- Notificaciones ---------- */
.brand { position: relative; }
.bell { margin-left: auto; position: relative; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--side-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.bell svg { width: 20px; height: 20px; }
.bell:hover, .bell.has { border-color: var(--aqua); color: var(--aqua); }
.bell-n { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--side-bg); }
.bell.ring svg { animation: ring .9s ease; transform-origin: 50% 10%; }
@keyframes ring { 0%,100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.notif-bg { position: fixed; inset: 0; background: rgba(9,18,28,.35); z-index: 80; }
.notif-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--surface); color: var(--ink); z-index: 81; display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(9,18,28,.25); transform: translateX(100%); transition: transform .22s ease; padding-top: env(safe-area-inset-top, 0px); }
.notif-panel.open { transform: none; }
.notif-panel header { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 20px 12px; background: var(--side-bg); color: #fff; }
.notif-panel header .eyebrow { color: var(--aqua); }
.notif-panel header h2 { color: #fff; margin-top: 4px; }
.np-x { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.np-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.np-sound { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.np-sound input { width: auto; accent-color: var(--coral); }
.np-push { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; margin: 12px 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--side-bg); color: #fff; }
.np-push span { display: block; font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }
.np-push .np-iso { width: 30px; color: var(--aqua); }
.np-push .btn.primary { background: var(--aqua); color: var(--petro); border-color: var(--aqua); }
.np-list { overflow-y: auto; flex: 1; padding: 6px 10px 30px; }
.np-sec { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); padding: 14px 10px 6px; }
.np-item { display: grid; grid-template-columns: 10px 1fr; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-radius: 12px; padding: 12px 10px; cursor: pointer; color: inherit; font: inherit; }
.np-item:hover { background: var(--surface-2); }
.np-item.new { background: color-mix(in srgb, var(--aqua) 14%, transparent); }
.np-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-top: 5px; }
.np-item:not(.new) .np-dot { opacity: .35; }
.np-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--ink-3); margin-bottom: 3px; }
.np-item b { font-weight: 600; display: block; }
.np-body { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.np-empty { text-align: center; padding: 40px 24px; color: var(--ink-3); }
.np-empty .np-iso { width: 54px; color: var(--cuarzo); opacity: .6; }
.np-load { padding: 30px; color: var(--ink-3); }
@media (max-width: 900px) { .bell { margin-left: 8px; } }

/* ---------- Inicio del cliente: 5 bloques ---------- */
.dash-sec { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 12px; }
.dash-sec .eyebrow { color: var(--coral); font-weight: 600; }
.dash-sec.sm { margin: 0 0 12px; }
.state-card { display: grid; gap: 18px; }
.state-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sk { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); text-decoration: none; color: inherit; border-left: 3px solid var(--aqua); }
.sk.hot { border-left-color: var(--coral); }
.sk .v { font-size: 28px; font-weight: 600; line-height: 1.1; }
.sk .l { font-size: 12px; color: var(--ink-2); }
.state-plan { border-top: 1px solid var(--line); padding-top: 14px; }
.dash4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.mini-dels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.mini-del { display: grid; gap: 4px; text-decoration: none; color: inherit; font-size: 12px; font-weight: 500; }
.mini-del img, .mini-ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: var(--side-bg); display: grid; place-items: center; }
.mini-ph .iso { width: 34%; color: var(--aqua); }
.mini-del span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reco { border-top: 3px solid var(--aqua); }
.reco-item { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); text-decoration: none; color: inherit; margin-bottom: 8px; }
.reco-item .badge { justify-self: start; }
@media (max-width: 700px) { .state-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Entregables ---------- */
.del-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; text-decoration: none; }
.chip span { color: var(--ink-3); font-size: 11px; margin-left: 2px; }
.chip.on { background: var(--side-bg); color: #fff; border-color: var(--side-bg); }
.chip.on span { color: var(--aqua); }
.del-sum { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.del-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card.del { padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.del-pv { position: relative; aspect-ratio: 16/10; background: var(--side-bg); cursor: zoom-in; overflow: hidden; }
.del-pv img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.del-pv:hover img { transform: scale(1.03); }
.del-pv.none { cursor: default; display: grid; place-items: center; align-content: center; gap: 8px; color: rgba(255,255,255,.65); font-size: 12px; text-align: center; padding: 10px; }
.del-pv .del-iso { width: 40px; color: var(--aqua); opacity: .8; }
.del-pv .play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; background: rgba(9,18,28,.55); color: #fff; display: grid; place-items: center; font-size: 16px; }
.del-body { padding: 14px 16px 16px; display: grid; gap: 8px; align-content: start; }
.del-body h3 { margin: 0; font-size: 16px; }
.del-body p { margin: 0; font-size: 13px; white-space: pre-wrap; }
.prov { display: inline-flex; align-items: center; gap: 6px; }
.pv { width: 8px; height: 8px; border-radius: 50%; background: var(--cuarzo); flex: none; }
.pv.drive { background: #B3ECE6; } .pv.vimeo { background: #EB455D; } .pv.dropbox { background: #89837A; } .pv.frameio { background: #09121C; box-shadow: 0 0 0 1px var(--aqua); } .pv.youtube { background: #EB455D; }
.link-thumb .ext { font-size: 13px; letter-spacing: .04em; text-transform: none; }

/* ---------- Ideas Galopante ---------- */
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card.idea { display: grid; gap: 10px; align-content: start; border-top: 3px solid var(--aqua); }
.card.idea.nueva { border-top-color: var(--coral); }
.card.idea.ahora_no { opacity: .75; border-top-color: var(--cuarzo); }
.card.idea h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.card.idea p { margin: 0; white-space: pre-wrap; color: var(--ink-2); font-size: 14px; }
.idea-area { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--coral); font-weight: 600; }
.idea-note { font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.idea-empty { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: center; text-align: left; }
.idea-empty .idea-iso { width: 50px; color: var(--aqua); }
.idea-arch { margin-top: 18px; }
.idea-arch summary { cursor: pointer; color: var(--ink-2); font-size: 13px; }

/* ---------- Informes entregados ---------- */
.seg.rep-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); margin-bottom: 16px; }
.seg.rep-seg a { padding: 8px 14px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.seg.rep-seg a.on { background: var(--side-bg); color: #fff; }
.rep-kind { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.rep-kind.k-seo, .rep-kind.k-web { background: color-mix(in srgb, var(--aqua) 35%, transparent); }
.rep-kind.k-meta_ads, .rep-kind.k-google_ads { background: color-mix(in srgb, var(--coral) 18%, transparent); }
@media (max-width: 700px) { .rep-t th:nth-child(3), .rep-t td:nth-child(3) { display: none; } }

.who-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.opinion-link { font-size: 11px; color: rgba(255,255,255,.5); text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,.3); }
.opinion-link:hover { color: var(--aqua); border-color: var(--aqua); }

/* ---------- Ajustes del 17/10 (revisión en pantalla) ---------- */
/* Barra lateral: el menú se desplaza solo y el pie (Cerrar sesión, Tu opinión) queda siempre visible */
@media (min-width: 901px) {
  .side { gap: 16px; }
  .side .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; margin-right: -8px; padding-right: 8px; }
  .side .nav a { padding: 7px 10px; }
  .side .nav .sec { padding: 12px 10px 3px; }
  .side .nav .sec:first-child { padding-top: 2px; }
  .side .who { flex-shrink: 0; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .side .brand { margin-bottom: -4px; }
  .side .for-client { padding-block: 8px; }
  .side .nav a { padding-block: 5px; }
}
/* Celular: menú en una sola fila deslizable */
@media (max-width: 900px) {
  .side .nav { order: 5; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; gap: 4px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); }
  .side .nav::-webkit-scrollbar { display: none; }
  .side .nav a { white-space: nowrap; flex-shrink: 0; padding: 8px 12px; }
  .side .who .strip, .side .who > span { display: none; }
}
/* Informes entregados en el celular: cada informe como una fila apilada */
@media (max-width: 700px) {
  .rep-t thead { display: none; }
  .rep-t, .rep-t tbody { display: block; }
  .rep-t tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .rep-t tr:last-child { border-bottom: 0; }
  .rep-t td { padding: 0 !important; border: 0 !important; }
  .rep-t td:nth-child(2) { grid-column: 1; grid-row: 1; }
  .rep-t td:nth-child(1) { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--ink-3); }
  .rep-t td:nth-child(3) { display: block !important; grid-column: 2; grid-row: 1; }
  .rep-t td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; text-align: left !important; margin-top: 8px; }
}
/* Mi marca: etiqueta del tipo de documento */
.asset-tag { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin-bottom: 4px; }
/* Notificaciones: el punto se distingue sobre el fondo de "nuevas" */
.np-item.new { background: color-mix(in srgb, var(--aqua) 16%, var(--surface)); }
.np-dot { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px color-mix(in srgb, var(--c) 55%, var(--petro)); }
@media (min-width: 901px) { .side .nav.more { -webkit-mask-image: linear-gradient(#000 calc(100% - 36px), transparent); mask-image: linear-gradient(#000 calc(100% - 36px), transparent); } }
/* Inicio: bloques 02–05 en 4 columnas si hay lugar, si no 2×2 (nunca 3+1) */
.dash4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (min-width: 1440px) { .dash4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .dash4 { grid-template-columns: 1fr !important; } }
.dash4 .dash-sec h2 { font-size: 17px; }
/* Menú lateral con secciones desplegables */
.nav .grp > .sec { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; cursor: pointer; font: inherit; font-size: 10px; text-transform: uppercase; letter-spacing: .24em; color: rgba(255,255,255,.45); padding: 12px 10px 6px; border-radius: var(--radius-sm); text-align: left; }
.nav .grp > .sec:hover { color: var(--side-ink); }
.nav .grp.here > .sec { color: rgba(255,255,255,.75); }
.nav .grp > .sec svg { width: 12px; height: 12px; flex-shrink: 0; transition: transform .2s ease; transform: rotate(-90deg); }
.nav .grp.open > .sec svg { transform: none; }
.nav .grp-items { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.nav .grp.open > .grp-items { grid-template-rows: 1fr; }
.nav .grp-items > div { overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.nav .grp:not(.open) .grp-items a { visibility: hidden; transition: visibility 0s .22s; }
.nav .grp-items a { padding-left: 16px; }
@media (max-width: 900px) {
  .nav .grp, .nav .grp-items, .nav .grp-items > div { display: contents; }
  .nav .grp > .sec { display: none; }
  .nav .grp:not(.open) .grp-items a { visibility: visible; }
  .nav .grp-items a { padding-left: 12px; }
}
/* Entregables: aviso de archivos temporales y bloques de archivos y links */
.del-notice { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; background: var(--side-bg); color: #fff; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }
.del-notice .del-notice-iso { width: 30px; color: var(--aqua); }
.del-notice b { display: block; font-weight: 600; }
.del-notice span { display: block; font-size: 13px; color: rgba(255,255,255,.72); margin-top: 3px; }
.del-block { display: grid; gap: 6px; }
.del-lab { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.dfile { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 3px solid var(--aqua); }
.dfile.soon { border-left-color: var(--coral); }
.dfile.soon .dfile-m { color: var(--coral); font-weight: 600; }
.dfile.gone { border-left-color: var(--line); opacity: .6; }
.dfile-n { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
a.dfile-n:hover { text-decoration: underline; }
.dfile-m { grid-column: 1; font-size: 11.5px; color: var(--ink-3); }
.dfile > .row { grid-column: 2; grid-row: 1 / span 2; }
/* Pie de la barra: el isotipo de cristal, fundiéndose en el Petro por arriba, abajo y a los costados */
.side > .side-goat { height: 330px; opacity: 1; filter: none; background-color: var(--side-bg); background-repeat: no-repeat;
  background-size: 118% auto; background-position: 74% -6px;
  -webkit-mask-image: none; mask-image: none; }
.side > .side-goat::before { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--side-bg) 0%, var(--side-bg) 9%, color-mix(in srgb, var(--side-bg) 70%, transparent) 18%, color-mix(in srgb, var(--side-bg) 20%, transparent) 30%, transparent 40%),
    linear-gradient(to right, color-mix(in srgb, var(--side-bg) 70%, transparent) 0%, transparent 22%),
    linear-gradient(to left, color-mix(in srgb, var(--side-bg) 70%, transparent) 0%, transparent 22%); }
.side > .side-goat::after { background: linear-gradient(to bottom, transparent 54%, color-mix(in srgb, var(--side-bg) 70%, transparent) 63%, var(--side-bg) 70%); opacity: 1; }
.side .who .strip i:nth-child(1) { background: var(--cuarzo) !important; }
.side .who, .side .who .opinion-link { color: rgba(255,255,255,.85); }
.side .for-client { background: color-mix(in srgb, var(--cuarzo) 16%, transparent); border-color: color-mix(in srgb, var(--cuarzo) 40%, transparent); }
.side .for-client .eyebrow { color: color-mix(in srgb, var(--cuarzo) 70%, #fff); }
/* Isotipo en aquamarina: el punto va en coral (manual de marca) */
.brand .iso, .login .art-iso, .bank-cover .bank-iso, .cred-bar.open .cred-iso, .np-push .np-iso, .mini-ph .iso, .del-pv .del-iso, .idea-empty .idea-iso, .del-notice .del-notice-iso { --iso-dot: var(--coral); }
/* Créditos de Anthropic */
.aic-main { display: grid; gap: 2px; margin: 4px 0 10px; }
.aic-main .aic-l { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.aic-main b { font-size: 30px; font-weight: 600; letter-spacing: -.01em; }
.aic-main.low b { color: var(--coral); }
.aic-main .aic-s { font-size: 12.5px; color: var(--ink-2); }
.aic-bar { margin-bottom: 14px; }
.aic-bar i { background: var(--aqua); }
.aic-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.aic-stats div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; display: grid; gap: 2px; }
.aic-stats span { font-size: 11px; color: var(--ink-3); }
.aic-stats b { font-size: 14px; font-weight: 600; }
.aic-spark { width: 100%; height: 44px; display: block; }
.aic-spark rect { fill: color-mix(in srgb, var(--aqua) 70%, var(--petro)); }
.aic-spark rect:last-child { fill: var(--coral); }
.aic-loads { margin-top: 10px; font-size: 13px; }
.aic-loads summary { cursor: pointer; color: var(--ink-2); }
/* Presupuesto por secciones (editor y vista previa) */
.qs-bar { display: grid; gap: 2px; margin-top: 4px; }
.qs-bar > span:first-child { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.qs-bar .muted { font-size: 12px; }
#qsecs { display: grid; gap: 10px; }
.qsec { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.qsec-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); }
.qsec-n { font-size: 10px; letter-spacing: .14em; color: var(--coral); font-weight: 600; }
.qsec-h b { font-weight: 600; flex: 1; }
.qsec-h input[data-k=title] { flex: 1; padding: 6px 8px; }
.qsec-sub { font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.qsec-na { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: var(--surface); }
.qsec-na input { width: auto; accent-color: var(--coral); }
.qsec-b { display: grid; gap: 8px; padding: 12px 14px 14px; }
.qsec-b textarea { min-height: 44px; }
.qsec-hint { font-size: 12px; }
.qsec.na .qsec-b { display: none; }
.qsec.na .qsec-h { background: transparent; }
.qsec.na .qsec-h b, .qsec.na .qsec-n { opacity: .45; text-decoration: line-through; text-decoration-thickness: 1px; }
.qsec.na .qsec-sub { color: var(--ink-3); font-weight: 500; }
.qsec.na .qsec-na { border-color: var(--coral); color: var(--coral); }
.quote-doc .qd-sec { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px; padding-bottom: 6px; border-bottom: 1.5px solid #09121C; }
.quote-doc .qd-sec span { font-size: 10px; color: #EB455D; font-weight: 600; letter-spacing: .1em; }
.quote-doc .qd-sec b { flex: 1; font-size: 15px; font-weight: 600; }
.quote-doc .qd-sec em { font-style: normal; font-weight: 600; font-size: 13px; color: #4a4f56; }
.quote-doc .qd-sec-text { margin: 6px 0 8px; font-size: 13px; color: #4a4f56; white-space: pre-line; }
@media (max-width: 640px) { .qsec-h { flex-wrap: wrap; } .qsec-h b { flex-basis: calc(100% - 40px); } }
.qsec-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qsec-b { padding-top: 10px; }
.qsec-items .q-line:last-child { margin-bottom: 0; }
/* Presupuestos de la agencia en el celular: indicadores de a dos y cada presupuesto como tarjeta */
@media (max-width: 700px) {
  .grid.cols-4:has(> .kpi) { grid-template-columns: 1fr 1fr; gap: 10px; }
  .q-all thead { display: none; }
  .q-all, .q-all tbody { display: block; }
  .q-all tr { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .q-all td { padding: 0 !important; border: 0 !important; text-align: left !important; }
  .q-all td:nth-child(3) { grid-column: 1 / -1; grid-row: 1; }
  .q-all td:nth-child(1), .q-all td:nth-child(2), .q-all td:nth-child(4) { font-size: 12px; color: var(--ink-3); display: inline; }
  .q-all td:nth-child(1) { grid-column: 1; grid-row: 2; }
  .q-all td:nth-child(2) { grid-column: 1; grid-row: 3; }
  .q-all td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right !important; }
  .q-all td:nth-child(5) { grid-column: 1; grid-row: 4; }
  .q-all td:nth-child(6) { grid-column: 2; grid-row: 3; text-align: right !important; }
  .q-all td:nth-child(7) { grid-column: 2; grid-row: 4; text-align: right !important; }
}

/* Presupuestos con la estructura de la cotización (28/10) */
.quote-doc .qd-list { margin: 6px 0 10px; padding-left: 18px; font-size: 13px; color: #4a4f56; display: grid; gap: 3px; }
.quote-doc .qd-list li::marker { color: #EB455D; }
.quote-doc .qd-sec-text + .qd-sec-text { margin-top: -2px; }
.quote-doc .qd-totals { margin: 10px 0 6px; }
.qsec-tag { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.qd-firma { display: grid; justify-items: end; gap: 2px; font-size: 12px; color: #4a4f56; margin-top: 8px; } .qd-firma b { color: #09121C; font-weight: 600; font-size: 13px; }

/* Leads */
.lead-contact { display: grid; gap: 2px; font-size: 13px; } .lead-contact a { color: inherit; text-decoration: none; } .lead-contact a:hover { color: var(--coral); }
.lead-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.lead-card { display: grid; gap: 16px; }
.lead-data { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 18px; font-size: 14px; }
.lead-data .eyebrow { display: block; margin-bottom: 3px; } .lead-data a { color: inherit; }
.lead-entry { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-top: 8px; background: var(--surface); }
.lead-entry summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; font-size: 14px; }
.lead-sum { white-space: pre-wrap; font-size: 13px; color: var(--ink-2); margin: 10px 0 0; max-height: 320px; overflow: auto; }
.lead-ans { display: grid; gap: 6px; margin-top: 10px; font-size: 13px; } .lead-ans div { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 10px; } .lead-ans span { color: var(--ink-3); }
@media (max-width: 640px) { .leads-t td:nth-child(3), .leads-t th:nth-child(3) { display: none; } .lead-ans div { grid-template-columns: 1fr; gap: 0; } }

/* Vista previa del presupuesto con el diseño del PDF (28/10) */
.quote-doc.qx { background: #09121C url('presupuesto-textura.jpg') center top / 100% auto no-repeat; color: #F1F0F0; border: 1px solid rgba(255,255,255,.08); padding: 0; gap: 0; border-radius: 14px; }
.qx::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,18,28,.55), rgba(9,18,28,.92) 40%); pointer-events: none; }
.qx > * { position: relative; }
.qx-eye { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #B3ECE6; }
.qx-cover { min-height: 300px; padding: 30px 34px; display: grid; align-content: start; gap: 12px; background: url('presupuesto-portada.jpg') right center / auto 100% no-repeat; }
.qx-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #09121C 38%, rgba(9,18,28,.55) 70%, rgba(9,18,28,.15)); border-radius: 14px 14px 0 0; }
.qx-cover > * { position: relative; }
.qx-logo { width: 150px; margin-bottom: 26px; }
.qx-cover h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 600; line-height: 1.08; color: #fff; max-width: 15em; margin: 0; letter-spacing: -.01em; }
.qx-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: #fff; }
.qx-meta .qx-eye { font-size: 8.5px; margin-bottom: 3px; }
.qx-sec { padding: 26px 34px; border-top: 1px solid rgba(255,255,255,.08); }
.qx-sec h3 { font-size: 21px; font-weight: 600; color: #fff; margin: 6px 0 14px; }
.qx-sec h3 i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #EB455D; margin-left: 4px; }
.qx-sec .qd-sec-text { color: #DDE0E3; font-size: 13.5px; line-height: 1.6; margin: 0 0 10px; max-width: 46em; }
.qx-sec .qd-sec-text b, .qx-sec .qd-list b { color: #B3ECE6; font-weight: 600; }
.qx .qd-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; font-size: 13.5px; color: #DDE0E3; }
.qx .qd-list li { position: relative; padding-left: 16px; } .qx .qd-list li::before { content: ''; position: absolute; left: 0; top: .7em; width: 7px; height: 1.5px; background: #EB455D; }
.qx-card { background: rgba(9,18,28,.6); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 18px 20px 8px; }
.qx .qx-cols { display: block; columns: 2 220px; column-gap: 28px; } .qx .qx-cols li { break-inside: avoid; margin-bottom: 6px; }
.qx-photo { background: url('presupuesto-fondo.jpg') right center / auto 100% no-repeat; } .qx-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #09121C 55%, rgba(9,18,28,.4)); } .qx-photo > * { position: relative; }
.qx-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.qx-steps li { background: rgba(9,18,28,.6); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 14px; display: grid; gap: 8px; align-content: start; font-size: 12.5px; color: #DDE0E3; }
.qx-steps b { font-size: 20px; color: #B3ECE6; font-weight: 700; } .qx-steps b i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #EB455D; margin-left: 2px; }
.qx-rows { display: grid; max-width: 440px; margin-bottom: 14px; }
.qx-rows div { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 13.5px; }
.qx-rows span { flex: 1; color: #DDE0E3; } .qx-rows small { display: block; color: #B9BEC3; font-size: 11.5px; } .qx-rows em { font-style: normal; color: #B9BEC3; font-size: 12px; } .qx-rows b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.qx-label { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #F1F0F0; margin-bottom: 4px; }
.qx-big { font-size: clamp(40px, 8vw, 62px); font-weight: 700; color: #B3ECE6; letter-spacing: -.02em; line-height: 1.05; }
.qx-iva { font-size: 12px; color: #B9BEC3; margin: 6px 0 20px; } .qx-iva b { color: #EB455D; font-weight: 400; font-size: 16px; margin-right: 10px; }
.qx-inv { background: url('presupuesto-fondo.jpg') right top / auto 100% no-repeat; } .qx-inv::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #09121C 50%, rgba(9,18,28,.35)); } .qx-inv > * { position: relative; }
.qx-info { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(9,18,28,.75); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; }
.qx-info > div { padding: 14px 18px; } .qx-info > div + div { border-left: 1px solid rgba(255,255,255,.14); }
.qx-info p { margin: 6px 0 0; font-size: 12px; line-height: 1.55; color: #F1F0F0; }
.qx-firma { display: grid; justify-items: end; gap: 3px; padding: 6px 34px 22px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #B9BEC3; } .qx-firma b { font-size: 13px; letter-spacing: 0; text-transform: none; color: #fff; font-weight: 600; border-top: 1px solid rgba(241,240,240,.5); padding-top: 8px; min-width: 200px; text-align: right; }
.qx-foot { display: flex; align-items: center; gap: 16px; padding: 14px 34px 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: #B9BEC3; } .qx-foot img { height: 13px; }
@media (max-width: 700px) {
  .qx-cover, .qx-sec { padding-left: 18px; padding-right: 18px; } .qx-cover { background-size: auto 70%; background-position: right bottom; }
  .qx-info { grid-template-columns: 1fr; } .qx-info > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .qx-photo, .qx-inv { background-image: none; } .qx-foot { padding-left: 18px; flex-wrap: wrap; }
}
.qx-somos { display: grid; grid-template-columns: 150px 1fr; gap: 34px; align-items: center; }
.qx-somos img { width: 100%; } .qx-somos .qx-eye { margin-bottom: 10px; }
.qx-foot .qx-redes { height: 18px; margin-left: auto; }
@media (max-width: 700px) { .qx-somos { grid-template-columns: 1fr; gap: 18px; } .qx-somos img { width: 110px; } .qx-foot .qx-redes { margin-left: 0; } }
.qd-sec-head { font-size: 19px; font-weight: 600; line-height: 1.2; color: #fff; margin: 0 0 12px; letter-spacing: .01em; }
.qx-somos { grid-template-columns: 100px 1fr; }
.qd-sec-head b { color: #EB455D !important; font-weight: 600; }
.qx-somos { background: url('presupuesto-fondo.jpg') right top / auto 100% no-repeat; } .qx-somos::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #09121C 55%, rgba(9,18,28,.35)); } .qx-somos > * { position: relative; }
.qx-somos > div { max-width: 460px; }
@media (max-width: 700px) { .qx-somos { background-image: none; } }

/* Calendario: formato y redes de cada post (28/10) */
.nt { display: inline-grid; place-items: center; min-width: 17px; height: 15px; padding: 0 3px; border-radius: 4px; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--petro); }
.nt-instagram { background: var(--coral); } .nt-facebook { background: var(--aqua); color: var(--petro); } .nt-tiktok { background: var(--petro); } .nt-linkedin { background: var(--cuarzo); } .nt-youtube { background: var(--hueso); color: var(--coral); border: 1px solid var(--coral); }
.ft { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; background: var(--aqua); color: var(--petro); }
.ft-historia { background: var(--coral); color: #fff; } .ft-reel { background: var(--petro); color: var(--aqua); } .ft-carrusel { background: var(--hueso); color: var(--petro); border: 1px solid var(--line); } .ft-video { background: var(--cuarzo); color: #fff; } .ft-texto { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.fc-event.gp .ev-h { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-2); }
.fc-event.gp .ev-m { flex-wrap: wrap; } .fc-event.gp .ev-c { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fc-event.gp .ev-n { display: inline-flex; gap: 2px; }
.unsched .nt { margin-left: 1px; }
/* Editor: formato como botones y textos guardados */
.fmt-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.fmt-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fmt-opt span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; cursor: pointer; background: var(--surface); }
.fmt-opt input:checked + span { background: var(--petro); color: var(--aqua); border-color: var(--petro); font-weight: 600; }
.fmt-opt input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
.snips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -6px; }
.snips-l { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.snips .chip { cursor: pointer; border: 1px dashed var(--line); background: var(--surface); }
.snips .chip small { color: var(--ink-3); }
.snip-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: var(--surface); }
.snip-item summary { display: flex; gap: 8px; align-items: center; cursor: pointer; } .snip-item summary .muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.snip-form { display: grid; gap: 10px; margin-top: 10px; }
/* Redactar con IA */
.ai-btn { background: var(--petro); color: var(--aqua); border-color: var(--petro); margin-right: 8px; }
.ai-btn::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-right: 7px; vertical-align: 1px; }
.ai-opts { display: grid; gap: 10px; }
.ai-opt { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); display: grid; gap: 8px; }
.ai-opt p { margin: 0; white-space: pre-wrap; font-size: 14px; line-height: 1.55; }
.ai-wait { padding: 18px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--radius); }
.ai-cost { font-size: 12px; margin: 0; }

/* ---------- Mi perfil ---------- */
.vstack { display: grid; gap: 12px; align-content: start; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.profile-main, .profile-side { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 960px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .profile-grid .two { grid-template-columns: 1fr; } }
.sub-h { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 14px; }
.lbl { display: block; font-size: 12px; color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }
.mono-val { font-weight: 600; word-break: break-all; }
.save-bar { display: flex; justify-content: flex-end; }
.logo-box { aspect-ratio: 16 / 9; max-width: 100%; border: 1px dashed var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 18px;
  background: repeating-conic-gradient(color-mix(in srgb, var(--line) 45%, transparent) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }
.link-btn:hover { color: var(--ink); }
.link-btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 2px; }
/* Barra lateral: la marca del cliente lleva al perfil y muestra su logo */
a.for-client { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
a.for-client > span { display: grid; gap: 4px; min-width: 0; }
a.for-client:hover { border-color: color-mix(in srgb, var(--cuarzo) 70%, transparent); }
.fc-logo { width: 38px; height: 38px; flex: none; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.side .who .who-name { color: inherit; text-decoration: none; font-weight: 500; }
.side .who .who-name:hover { text-decoration: underline; }
.side .who .who-row { flex-wrap: wrap; row-gap: 6px; } .side .who .who-row > * { white-space: nowrap; }

/* ---------- Login: isotipo de cristal con degradé petróleo desde arriba a la izquierda ---------- */
.login .art {
  background-color: var(--petro);
  background-image:
    linear-gradient(135deg, var(--petro) 0%, rgb(9 18 28 / .92) 22%, rgb(9 18 28 / .55) 48%, rgb(9 18 28 / .08) 78%, rgb(9 18 28 / 0) 100%),
    url('login-cristal.jpg');
  background-size: cover, cover;
  background-position: center, 62% 72%;
}
.login .art img.art-logo { width: clamp(130px, 13vw, 176px); height: auto; filter: none; display: block; }
.login .art-top { align-items: center; }
.login .art-mid p { color: rgba(255,255,255,.72); text-shadow: 0 1px 12px rgb(9 18 28 / .6); }
.login .form-iso { --iso-dot: var(--coral); }
@media (max-width: 900px) { .login .art { background-position: center, 70% 65%; } }
/* Créditos de Anthropic: pasos para cargar la clave */
.aic-steps { margin: 0; padding-left: 22px; list-style: decimal; display: grid; gap: 14px; }
.aic-steps li { display: list-item; gap: 8px; justify-items: start; }
.aic-steps li::marker { font-weight: 600; color: var(--ink); }
.aic-key { gap: 8px; flex-wrap: wrap; width: 100%; }
.aic-key input { flex: 1 1 260px; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.aic-steps li > span { display: block; }
.aic-steps li > a.btn { display: inline-flex; width: fit-content; margin-top: 8px; }
.aic-steps li > form, .aic-steps li > .copy-row, .aic-steps li > .note { margin-top: 8px; }
.aic-steps li > form.aic-key { display: flex; width: 100%; }
.aic-steps li > form.vstack { display: grid; width: 100%; }
.grid > .card { min-width: 0; }
/* Publicaciones y Agenda del equipo: un cliente por vez */
.client-head { display: flex; align-items: center; gap: 12px; }
.client-head h1 { margin: 0; }
.client-head .ch-name { font-weight: 400; color: var(--ink-2); }
.ch-sw { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.ch-logo { width: 40px; height: 40px; flex: none; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.client-pick { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.client-pick select { width: auto; min-width: 200px; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink); }
@media (max-width: 560px) { .client-pick { width: 100%; } .client-pick select { flex: 1; min-width: 0; } }
/* Redes: conexión con Meta */
.meta-steps code { font-size: 12px; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; max-width: 100%; }
.copy-row code { background: var(--surface-2, #f4f3f1); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; word-break: break-all; min-width: 0; }
.meta-cfg summary { cursor: pointer; font-size: 13px; color: var(--ink-2); }
.meta-cfg[open] summary { margin-bottom: 12px; }
.page-pick { align-items: flex-start; padding: 10px 12px; }
.page-pick span { display: grid; gap: 2px; }
.page-pick small { color: var(--ink-2); }
/* Celular: el iPhone agranda la página al tocar un campo con letra menor a 16px y queda "zoomeada". */
@media (max-width: 900px) { input, select, textarea { font-size: 16px; } }
/* Celular: el formulario de acceso con aire, sin pegarse a la imagen de arriba */
@media (max-width: 900px) {
  .login form { padding-block: 40px 48px; width: min(420px, calc(100% - 40px)); }
  .login .art { min-height: 0; gap: 24px; padding-bottom: 40px; }
  .login .art-foot { display: none; }
}
