﻿/* Editor IA · Disrup Edition — oscuro cálido con vidrio (referencias de Maic, 27 oct: Clideo, paneles translúcidos,
   gradientes naranja). Todo cabe en una pantalla: la sala de edición no hace scroll de página. */
:root {
  --bg: #0b0b0e;
  --panel: rgba(24, 22, 26, .72);
  --panel-solid: #17151a;
  --panel-2: rgba(255, 255, 255, .055);
  --panel-3: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f2eee9;
  --muted: #a39a92;
  --accent: #8f5cff;
  --accent-2: #b18cff;
  --grad: linear-gradient(135deg, #6b3fa0 0%, #8f5cff 55%, #b18cff 100%);
  --ok: #3fd29b;
  --warn: #ffb347;
  --err: #ff5470;
  --claude: #b18cff;
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; color: var(--text); font: 13.5px/1.45 var(--font); }
body {
  background: radial-gradient(1200px 700px at 85% -10%, rgba(143, 92, 255, .16), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(107, 63, 160, .10), transparent 60%), var(--bg);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-2); }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.015em; }
h1 { font-size: 24px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* Vidrio */
.glass, .card, .modal, .review, .topbar {
  background: var(--panel); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* Botones e inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); background: var(--panel-2);
  padding: 7px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--text);
  transition: border-color .15s, background .15s, transform .1s; }
.btn:hover { background: var(--panel-3); border-color: rgba(255, 255, 255, .22); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 6px 20px rgba(120, 70, 230, .28); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ok { border-color: rgba(63, 210, 155, .45); color: var(--ok); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.sm { padding: 5px 11px; font-size: 12px; }
.btn.xs { padding: 2px 8px; font-size: 12px; line-height: 1.3; }
.btn.icon { width: 32px; height: 32px; padding: 0; font-size: 18px; line-height: 1; }
.btn.icon.xs { width: 24px; height: 24px; font-size: 12px; }
.btn.wide { width: calc(100% - 20px); margin: 8px 10px; }
.btn.danger { color: var(--err); }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=date], input[type=time], select, textarea {
  width: 100%; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 12px; outline: none; }
select.btn { background: var(--panel-2); border-radius: 999px; padding: 5px 10px; }
select option { background: var(--panel-solid); }
input:focus, select:focus, textarea:focus { border-color: rgba(255, 138, 43, .6); box-shadow: 0 0 0 3px rgba(143, 92, 255, .15); }
textarea { resize: vertical; min-height: 64px; }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; margin: 0 6px 6px 0; }
.check:has(input:checked) { border-color: var(--accent); background: rgba(143, 92, 255, .12); }

/* Control segmentado (TikTok / Instagram, herramientas) */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 999px; }
.seg button { border: 0; background: transparent; padding: 4px 11px; border-radius: 999px; cursor: pointer; color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.seg button.on { background: var(--grad); color: #fff; font-weight: 600; }
.seg button:not(.on):hover { color: var(--text); background: var(--panel-2); }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 2px solid rgba(255, 255, 255, .5); }

/* Barra superior */
.topbar { height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; font-size: 13px; color: #fff; box-shadow: 0 4px 14px rgba(120, 70, 230, .35); }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.nav a.active, .nav a:hover { color: var(--text); background: var(--panel-2); }
.pnav { gap: 6px; }
.pnav .pname { display: flex; flex-direction: column; line-height: 1.15; max-width: 300px; }
.pnav .pname h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatars { display: flex; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; border: 2px solid var(--panel-solid); margin-left: -6px; }

.page { padding: 26px; max-width: 1240px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.link { cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card.link:hover { border-color: rgba(255, 138, 43, .4); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.card .covers { display: flex; gap: 6px; margin: -4px 0 10px; }
.card .covers img { width: 44px; height: 78px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 11px; color: var(--muted); white-space: nowrap; }
.chip.ok { color: var(--ok); border-color: rgba(63, 210, 155, .35); }
.chip.warn { color: var(--warn); border-color: rgba(255, 179, 71, .35); }
.chip.err { color: var(--err); border-color: rgba(255, 84, 112, .35); }
.chip.tc { font-variant-numeric: tabular-nums; color: var(--text); background: rgba(0, 0, 0, .4); font-size: 12px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.stat { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .card { width: 100%; max-width: 380px; padding: 28px; }

/* Sala de edición: 3 columnas, alto de pantalla, sin scroll de página */
.studio { display: grid; grid-template-columns: 272px minmax(0, 1fr) 380px; gap: 10px; padding: 10px; height: calc(100vh - 56px); }
.col { min-height: 0; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stage.col { border: 0; background: transparent; gap: 10px; }
.col-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.scroll { overflow: auto; min-height: 0; }
.section-title { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 14px 14px 6px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }

/* Desplegables de la columna izquierda */
details.carpeta > summary { list-style: none; cursor: pointer; user-select: none; }
details.carpeta > summary::-webkit-details-marker { display: none; }
details.carpeta .carpeta-flecha { color: var(--muted); font-size: 18px; transition: transform .15s; }
details.carpeta[open] .carpeta-flecha { transform: rotate(90deg); }
/* Comunidad (Maic, 28 oct): carpeta por cliente y secciones desplegables, "para que no me toque scrollear tanto" */
.cm-clientes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 18px; }
.cm-cliente { display: flex; align-items: center; gap: 14px; cursor: pointer; border: 1px solid var(--line-2); }
.cm-cliente.abierta { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cm-cliente .carpeta-flecha { transition: transform .15s; }
.cm-cliente.abierta .carpeta-flecha { transform: rotate(90deg); }
details.cm-seccion { margin-bottom: 14px; }
details.cm-seccion > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; user-select: none; }
details.cm-seccion > summary::-webkit-details-marker { display: none; }
details.cm-seccion > summary::before { content: '›'; color: var(--muted); font-size: 20px; transition: transform .15s; display: inline-block; width: 12px; }
details.cm-seccion[open] > summary::before { transform: rotate(90deg); }
details.cm-seccion > summary h2 { margin: 0; }
details.cm-seccion[open] > summary { margin-bottom: 12px; }
details.grupo { border-bottom: 1px solid var(--line); }
details.grupo > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-weight: 600; font-size: 12.5px; user-select: none; }
details.grupo > summary::-webkit-details-marker { display: none; }
details.grupo > summary::before { content: '›'; color: var(--muted); transition: transform .15s; display: inline-block; width: 10px; }
details.grupo[open] > summary::before { transform: rotate(90deg); }
details.grupo > summary:hover { background: var(--panel-2); }
.item { padding: 8px 12px 8px 14px; cursor: pointer; border-left: 3px solid transparent; }
.item:hover { background: var(--panel-2); }
.item.active { background: linear-gradient(90deg, rgba(143, 92, 255, .16), transparent); border-left-color: var(--accent); }
.item .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item.del { display: flex; gap: 10px; align-items: center; }
.thumb { width: 34px; height: 60px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; border: 1px solid var(--line); }
.thumb.ph { display: grid; place-items: center; background: var(--panel-2); color: var(--muted); }
.progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.progress > div { height: 100%; background: var(--grad); transition: width .3s; }

.player-wrap { flex: 1; min-height: 200px; display: grid; place-items: center; position: relative; border-radius: var(--radius); background: rgba(0, 0, 0, .45); border: 1px solid var(--line); }
.player-wrap video { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; border-radius: 12px; background: #000; }
.player-wrap img.still { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.player-wrap .vivo { position: absolute; inset: 10px; }
.player-empty { color: var(--muted); text-align: center; max-width: 360px; }

/* Panel de revisión: barra, línea de tiempo, comentario y lista, todo compacto */
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; height: 44%; min-height: 250px; }
.barra { flex-wrap: wrap; gap: 6px; }
.clipsel { max-width: 230px; }
details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; bottom: calc(100% + 6px); background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; align-items: stretch; min-width: 210px; z-index: 20; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.menu-list .btn { justify-content: flex-start; border-radius: 10px; }

.tl-wrap { display: flex; flex-direction: column; gap: 4px; }
.tl { overflow-x: auto; overflow-y: hidden; border-radius: 12px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); }
.tl-inner { position: relative; min-width: 100%; user-select: none; touch-action: none; cursor: crosshair; }
.pista { position: relative; }
.pista.regla { height: 20px; border-bottom: 1px solid var(--line); }
.tick { position: absolute; top: 3px; font-size: 10px; color: var(--muted); transform: translateX(2px); border-left: 1px solid rgba(255, 255, 255, .15); padding-left: 3px; height: 14px; line-height: 14px; }
.pista.video { height: 44px; margin: 4px 0; }
.tramo { position: absolute; top: 0; bottom: 0; border-radius: 8px; background-size: auto 100%; background-repeat: repeat-x; background-color: #2a2420; border: 1px solid rgba(255, 255, 255, .12); overflow: hidden; cursor: pointer; }
.tramo span { position: absolute; left: 4px; bottom: 2px; font-size: 9.5px; background: rgba(0, 0, 0, .6); padding: 0 4px; border-radius: 4px; white-space: nowrap; }
.tramo:hover { border-color: rgba(255, 179, 71, .7); }
.tramo.sel { border: 2px solid var(--accent-2); box-shadow: 0 0 0 2px rgba(143, 92, 255, .35); }
.pista.textos { height: 22px; margin-bottom: 4px; }
.texto { position: absolute; top: 0; height: 22px; border-radius: 7px; font-size: 10.5px; line-height: 20px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(124, 92, 255, .22); border: 1px solid rgba(124, 92, 255, .45); color: #ddd5ff; }
.texto.hook { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; z-index: 1; }
.texto.now { background: rgba(124, 92, 255, .5); }
.pista.audio { height: 34px; margin-bottom: 4px; }
.onda { position: absolute; inset: 0; width: 100%; height: 100%; }
.onda path { stroke: rgba(255, 179, 71, .75); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cabezal { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .7); pointer-events: none; z-index: 3; }
.cabezal::before { content: ''; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: #fff; }
.rango { position: absolute; top: 0; bottom: 0; background: rgba(255, 138, 43, .18); border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); pointer-events: none; z-index: 2; }
.marker { position: absolute; top: 4px; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: var(--accent-2); border: 2px solid #000; z-index: 2; }
.marker.enviado { background: var(--muted); }
.marker.resuelto { background: var(--ok); }

.cform { gap: 6px; }
.comment { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.comment .t { font-variant-numeric: tabular-nums; color: var(--accent-2); cursor: pointer; font-weight: 600; min-width: 52px; font-size: 12px; }
.comment img.anot { width: 40px; height: 71px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-2); }
.comments { overflow: auto; min-height: 0; flex: 1; }
.lienzo { display: grid; place-items: center; background: #000; border-radius: 12px; padding: 8px; }
.lienzo canvas { height: min(62vh, 640px); aspect-ratio: 9 / 16; cursor: crosshair; border-radius: 8px; touch-action: none; }

/* Chat */
.chat { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 100%; }
.msg .who { font-size: 11px; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
.msg .bubble { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; overflow-wrap: anywhere; }
.msg.user .bubble { background: rgba(143, 92, 255, .10); border-color: rgba(143, 92, 255, .22); }
.msg.assistant .who { color: var(--claude); }
.msg.assistant .bubble { background: transparent; border-color: transparent; padding: 0 2px; }
.msg.tool { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.msg.tool::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--claude); }
.msg.system .bubble { border-color: rgba(255, 84, 112, .4); color: var(--err); }
.bubble p { margin: 0 0 6px; } .bubble p:last-child { margin: 0; }
.bubble ul { margin: 4px 0; padding-left: 18px; }
.bubble .table-wrap { overflow-x: auto; margin: 6px 0; }
.bubble table { border-collapse: collapse; font-size: 12px; width: 100%; }
.bubble th, .bubble td { border: 1px solid var(--line); padding: 4px 6px; text-align: left; vertical-align: top; }
.bubble th { background: var(--panel-2); color: var(--muted); font-weight: 600; }
.bubble blockquote { margin: 6px 0; padding: 4px 10px; border-left: 3px solid var(--claude); color: var(--text); }
.bubble hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.bubble code { background: rgba(0, 0, 0, .4); padding: 1px 5px; border-radius: 5px; font-size: 12px; }
.composer { border-top: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.composer textarea { min-height: 52px; max-height: 200px; }
.btn.mic.grabando { background: var(--err); border-color: var(--err); color: #fff; animation: pulse 1.2s infinite; }
.btn.mic.transcribiendo { opacity: .7; cursor: wait; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 84, 112, .25); } }
.mic-level { width: 70px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.mic-level > div { height: 100%; width: 0; background: var(--ok); transition: width .06s; }
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.working { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--claude); }
.dots::after { content: '…'; animation: dots 1.2s steps(4) infinite; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; }
@keyframes dots { from { width: 0; } to { width: 1.2em; } }

/* Modal y toasts */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { border: 1px solid var(--line-2); border-radius: 20px; width: 100%; max-width: 620px; max-height: 92vh; overflow: auto; padding: 22px; background: rgba(26, 23, 28, .92); }
.modal.wide { max-width: 900px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.browser { border: 1px solid var(--line-2); border-radius: 12px; max-height: 220px; overflow: auto; }
.browser div { padding: 6px 10px; cursor: pointer; border-bottom: 1px solid var(--line); }
.browser div:hover { background: var(--panel-2); }
#toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: rgba(30, 27, 32, .95); border: 1px solid var(--line-2); padding: 9px 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.toast.err { border-color: var(--err); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
pre.md { white-space: pre-wrap; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 12px; max-height: 50vh; overflow: auto; }
.dropzone { border: 2px dashed var(--line-2); border-radius: 16px; padding: 24px; text-align: center; color: var(--muted); }
.dropzone.over { border-color: var(--accent); color: var(--text); }

/* Comunidad y redes */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; background: linear-gradient(160deg, rgba(143, 92, 255, .16), rgba(255, 255, 255, .03)); }
.kpi .stat { margin-top: 4px; }
.tabla { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tabla th, .tabla td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.tabla th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.barras { display: flex; align-items: flex-end; gap: 4px; height: 90px; }
.barras div { flex: 1; background: var(--grad); border-radius: 6px 6px 2px 2px; min-height: 2px; position: relative; }
.barras div span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); }

@media (max-width: 1100px) {
  .studio { grid-template-columns: minmax(0, 1fr); height: auto; }
  .player-wrap { min-height: 60vh; }
  .review { height: auto; }
  .chat { max-height: 60vh; }
  .cols-2 { grid-template-columns: 1fr; }
}

/* Estrategia: análisis en tarjetas (Comunidad) */
.es-resumen { font-size: 15px; line-height: 1.55; padding: 14px 16px; border-radius: 14px; background: rgba(143, 92, 255, .08); border: 1px solid rgba(143, 92, 255, .25); margin: 8px 0 16px; }
.es-h { margin: 18px 0 10px; font-size: 16px; }
.es-h.ok { color: var(--ok); } .es-h.err { color: var(--err); }
.es-cols { gap: 16px; align-items: start; }
.es-punto { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; margin-bottom: 8px; background: rgba(0, 0, 0, .25); border-left: 3px solid var(--line-2); }
.es-punto.bueno { border-left-color: var(--ok); } .es-punto.malo { border-left-color: var(--err); }
.es-dato { min-width: 78px; font-size: 20px; font-weight: 700; line-height: 1.1; }
.es-punto.bueno .es-dato { color: var(--ok); } .es-punto.malo .es-dato { color: var(--err); }
.es-acciones { display: grid; gap: 10px; }
.es-accion { display: flex; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line-2); }
.es-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--accent); color: #140c08; }
.es-horario { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.es-plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.es-semana { padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); border-top: 3px solid var(--accent-2); }
.es-semana ul { margin: 6px 0 0 16px; padding: 0; } .es-semana li { margin: 3px 0; }

/* Espacio creativo (el cliente) · public/espacio.js. Paleta del manual: morado #6B3FA0, hueso #F5F0E8, papel #ECE3D3,
   tinta #141012; serif editorial (Instrument Serif). Imagen primero: esto es audiovisual (Maic, 29 oct). */
.esp { --m: #6B3FA0; --m2: #8B5CC4; --hueso: #F5F0E8; --papel: #ECE3D3; --tinta: #141012; --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif; }
.esp-hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 230px; margin: 4px 0 18px; background: radial-gradient(120% 140% at 0% 0%, #2a1840 0%, #141012 60%); isolation: isolate; }
.esp-collage { position: absolute; inset: 0 0 0 30%; display: flex; gap: 0; opacity: .7; z-index: -1; }
.esp-collage img { flex: 1; min-width: 0; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); transform: scale(1.02); animation: esp-entra .9s ease both; animation-delay: calc(var(--k) * 70ms); }
.esp-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,16,18,1) 0%, rgba(20,16,18,.9) 34%, rgba(20,16,18,.25) 70%, rgba(107,63,160,.25) 100%); }
.esp-hero-texto { position: relative; padding: 26px 28px 20px; max-width: 640px; }
.esp-kicker { font: 600 11px/1 ui-monospace, 'Courier New', monospace; letter-spacing: .22em; text-transform: uppercase; color: #c9b3ea; }
.esp-titulo { font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 52px; line-height: .98; color: #F5F0E8; margin: 10px 0 18px; letter-spacing: -.01em; }
.esp-titulo i { color: #b896e6; }
.esp-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(245,240,232,.08); backdrop-filter: blur(6px); }
.esp-tabs button { border: 0; background: transparent; color: #F5F0E8; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 13px; display: inline-flex; gap: 8px; align-items: center; transition: background .2s; }
.esp-tabs button span { font: 11px ui-monospace, monospace; opacity: .6; }
.esp-tabs button.on { background: #F5F0E8; color: #141012; }
.esp-tabs button.on span { opacity: .8; }
.esp-tabs button:not(.on):hover { background: rgba(245,240,232,.12); }

.esp-barra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.esp-barra input[type=search] { flex: 1; min-width: 200px; border-radius: 999px; padding: 9px 16px; }
.esp-ayuda { flex: 1; color: var(--muted); font-size: 12px; }
.esp-btn { border: 1px solid rgba(245,240,232,.18); background: rgba(245,240,232,.04); color: inherit; border-radius: 999px; padding: 8px 16px; font-size: 13px; cursor: pointer; transition: all .2s; }
.esp-btn:hover { border-color: rgba(245,240,232,.4); }
.esp-btn.principal { background: #6B3FA0; border-color: #6B3FA0; color: #F5F0E8; font-weight: 600; }
.esp-btn.principal:hover { background: #7d4cbb; }
.esp-filtros { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.esp-et { border: 1px solid rgba(245,240,232,.14); background: transparent; color: var(--muted); border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.esp-et.on, .esp-et:hover { background: #F5F0E8; color: #141012; border-color: #F5F0E8; }

/* tablero: masonry de tarjetas con la imagen primero */
.esp-masonry { column-width: 240px; column-gap: 14px; }
.esp-tarjeta { break-inside: avoid; margin-bottom: 14px; border-radius: 16px; overflow: hidden; background: #1b1620; border: 1px solid rgba(245,240,232,.07); position: relative; transition: transform .25s, box-shadow .25s; animation: esp-entra .5s ease both; }
.esp-tarjeta:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.esp-img { position: relative; overflow: hidden; }
.esp-img img { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.esp-tarjeta:hover .esp-img img { transform: scale(1.04); }
.esp-tarjeta.es-cuenta .esp-img { aspect-ratio: 1; }
.esp-tarjeta.es-cuenta .esp-img img { height: 100%; object-fit: cover; }
.esp-tipo-img { position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,16,18,.6); color: #F5F0E8; font-size: 13px; backdrop-filter: blur(4px); }
.esp-acciones { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; z-index: 2; }
.esp-tarjeta:hover .esp-acciones, .esp-poster:hover .esp-acciones { opacity: 1; }
.esp-acciones button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(20,16,18,.7); color: #F5F0E8; cursor: pointer; backdrop-filter: blur(4px); }
.esp-letra { display: none; }
.esp-tarjeta.sin-img { background: var(--fondo); color: var(--tinta); }
.esp-tarjeta.sin-img .esp-img, .esp-tarjeta.es-cuenta.sin-img .esp-img { min-height: 34px; aspect-ratio: auto; }
.esp-tarjeta.sin-img .esp-letra { display: block; padding: 18px 18px 4px; font-family: var(--serif, Georgia, serif); font-size: 34px; line-height: 1.02; letter-spacing: -.01em; }
.esp-tarjeta.sin-img .esp-pie .esp-t { display: none; }
.esp-tarjeta.sin-img .esp-pie, .esp-tarjeta.sin-img .esp-pie a, .esp-tarjeta.sin-img .esp-meta { color: var(--tinta); }
.esp-pie { padding: 12px 14px 14px; }
.esp-meta { display: flex; flex-wrap: wrap; gap: 8px; font: 10px/1.4 ui-monospace, 'Courier New', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.esp-claude { color: #b896e6; }
.esp-t { font-family: var(--serif, Georgia, serif); font-size: 22px; line-height: 1.08; margin-bottom: 6px; }
.esp-t a { color: inherit; text-decoration: none; }
.esp-t a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.esp-nota { margin: 0; font-size: 13px; line-height: 1.45; opacity: .82; }
.esp-etqs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.esp-etqs span { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(245,240,232,.08); }
.esp-tarjeta.sin-img .esp-etqs span { background: rgba(0,0,0,.08); }

/* banco de ideas: kanban de pósters */
.esp-kanban { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.esp-col > header { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 10px; border-bottom: 1px solid rgba(245,240,232,.1); margin-bottom: 12px; font-family: var(--serif, Georgia, serif); font-size: 22px; }
.esp-col > header b { font: 12px ui-monospace, monospace; color: var(--muted); }
.esp-col-vacia { color: var(--muted); text-align: center; padding: 30px 0; border: 1px dashed rgba(245,240,232,.12); border-radius: 14px; }
.esp-poster { border-radius: 16px; overflow: hidden; background: #1b1620; border: 1px solid rgba(245,240,232,.07); margin-bottom: 14px; animation: esp-entra .5s ease both; transition: transform .25s, box-shadow .25s; }
.esp-poster:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.esp-poster-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; cursor: pointer; background: var(--fondo); }
.esp-poster-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.esp-poster:hover .esp-poster-img img { transform: scale(1.05); }
.esp-poster-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,16,18,.35) 0%, rgba(20,16,18,0) 30%, rgba(20,16,18,0) 50%, rgba(20,16,18,.92) 100%); pointer-events: none; }
.esp-poster-letra { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-family: var(--serif, Georgia, serif); font-size: 40px; line-height: 1; color: var(--tinta); }
.esp-poster.sin-img .esp-poster-img::after { background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,.35) 100%); }
.esp-formato { position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 10px; border-radius: 999px; background: #6B3FA0; color: #F5F0E8; font: 600 11px ui-monospace, monospace; letter-spacing: .06em; }
.esp-formato em { font: italic 400 12px var(--serif, Georgia, serif); letter-spacing: 0; opacity: .85; }
.esp-fecha { position: absolute; right: 10px; top: 10px; z-index: 1; padding: 4px 9px; border-radius: 999px; background: rgba(20,16,18,.65); color: #F5F0E8; font: 11px ui-monospace, monospace; backdrop-filter: blur(4px); }
.esp-poster-pie { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 14px; }
.esp-obra { font-family: var(--serif, Georgia, serif); font-size: 26px; line-height: 1.02; color: #F5F0E8; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.esp-mirar { margin: 0; padding: 12px 14px 4px; font-family: var(--serif, Georgia, serif); font-style: italic; font-size: 17px; line-height: 1.25; color: #F5F0E8; border: 0; }
.esp-volver { padding: 2px 14px 6px; font-size: 12px; color: #c9b3ea; }
.esp-poster-acc { display: flex; align-items: center; gap: 4px; padding: 8px 10px 10px; }
.esp-poster-acc button { border: 1px solid rgba(245,240,232,.14); background: transparent; color: #F5F0E8; border-radius: 999px; min-width: 30px; height: 28px; cursor: pointer; }
.esp-poster-acc button:hover:not(:disabled) { background: #6B3FA0; border-color: #6B3FA0; }
.esp-poster-acc button:disabled { opacity: .25; cursor: default; }
.esp-con-guion { font: 10px ui-monospace, monospace; color: #8fe0b5; margin-right: 4px; }
.esp-vacio-ideas { text-align: center; padding: 40px 20px 50px; border-radius: 18px; border: 1px dashed rgba(245,240,232,.15); background: radial-gradient(80% 120% at 50% 0%, rgba(107,63,160,.18), transparent 70%); }
.esp-vacio-ideas p { max-width: 520px; margin: 0 auto; color: var(--muted); line-height: 1.55; }
.esp-vacio-texto { color: var(--muted); }

/* carruseles: abanico de láminas */
.esp-carruseles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.esp-car { border-radius: 16px; overflow: hidden; background: #1b1620; border: 1px solid rgba(245,240,232,.07); cursor: pointer; transition: transform .25s, box-shadow .25s; }
.esp-car:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.esp-car-tira { position: relative; height: 230px; background: var(--fondo); overflow: hidden; }
.esp-car-tira img { position: absolute; top: 18px; height: 200px; aspect-ratio: 4 / 5; border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.45); left: calc(18px + var(--k) * 46px); transform: rotate(calc((var(--k) - 1.5) * 3deg)); transition: transform .3s, left .3s; }
.esp-car:hover .esp-car-tira img { left: calc(14px + var(--k) * 58px); transform: rotate(0); }
.esp-car-pie { padding: 12px 14px 14px; }
.esp-car-pie .esp-formato { position: static; margin-bottom: 8px; }
.esp-car-pie .esp-obra { font-size: 24px; margin-bottom: 6px; }
.esp-alerta { color: #ff8a8a; }

/* editor de carruseles */
.esp-editor { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; max-height: 74vh; overflow: auto; }
.esp-lamina { display: flex; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; margin-bottom: 6px; background: var(--panel-2); }
.esp-lamina.on { border-color: #6B3FA0; box-shadow: 0 0 0 1px #6B3FA0 inset; }
.esp-lamina-img { width: 64px; aspect-ratio: 4 / 5; flex: none; border-radius: 6px; background-size: cover; background-position: center; }
.esp-candidatos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 8px; max-height: 300px; overflow: auto; }
.esp-candidatos img { width: 100%; border-radius: 6px; cursor: pointer; display: block; }
.esp-candidatos img:hover { outline: 2px solid #6B3FA0; }
.esp-preview { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 8px; }
.esp-preview img { height: 260px; aspect-ratio: 4 / 5; border-radius: 8px; scroll-snap-align: start; display: block; }

/* página del creador y su galería */
.esp-tarjeta[data-ref-abrir] { cursor: pointer; }
.esp-tarjeta video { display: block; width: 100%; height: auto; }
.esp-n-galeria { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(20,16,18,.7); color: #F5F0E8; font: 10px ui-monospace, monospace; letter-spacing: .06em; backdrop-filter: blur(4px); }
.modal.esp-modal { background: #141012; border: 1px solid rgba(245,240,232,.08); max-height: 92vh; overflow: auto; padding: 22px 24px; }
.esp-perfil-cab { display: flex; gap: 20px; align-items: flex-start; }
.esp-perfil-av { width: 112px; height: 112px; flex: none; border-radius: 50%; background: #6B3FA0 center / cover no-repeat; box-shadow: 0 0 0 3px #141012, 0 0 0 5px #6B3FA0; display: grid; place-items: center; font: 48px var(--serif, Georgia, serif); color: #F5F0E8; }
.esp-perfil-nota { margin: 0; max-width: 720px; color: rgba(245,240,232,.82); line-height: 1.5; }
.esp-galeria { column-width: 220px; column-gap: 10px; margin-top: 6px; }
.esp-pieza { position: relative; break-inside: avoid; margin: 0 0 10px; border-radius: 12px; overflow: hidden; background: #1b1620; animation: esp-entra .5s ease both; }
.esp-pieza img, .esp-pieza video { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.esp-pieza:hover img, .esp-pieza:hover video { transform: scale(1.03); }
.esp-pieza.es-clip::before { content: '▶ clip'; position: absolute; left: 8px; top: 8px; z-index: 1; padding: 2px 8px; border-radius: 999px; background: #6B3FA0; color: #F5F0E8; font: 10px ui-monospace, monospace; }
.esp-pieza figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(to bottom, rgba(20,16,18,0), rgba(20,16,18,.92)); color: #F5F0E8; font-size: 12px; line-height: 1.35; max-height: 45%; overflow: hidden; opacity: 0; transition: opacity .25s; }
.esp-pieza:hover figcaption { opacity: 1; }
.esp-pieza:hover .esp-acciones { opacity: 1; }
.esp-pieza .esp-acciones a, .esp-pieza .esp-acciones button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(20,16,18,.7); color: #F5F0E8; cursor: pointer; display: grid; place-items: center; text-decoration: none; }

.esp-hooks { padding: 10px 14px 2px; display: flex; flex-direction: column; gap: 10px; }
.esp-hook > span { display: inline-block; font: 600 10px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: #F5F0E8; background: #6B3FA0; padding: 2px 8px; border-radius: 999px; }
.esp-hook blockquote { margin: 5px 0 2px; font-family: var(--serif, Georgia, serif); font-style: italic; font-size: 17px; line-height: 1.25; color: #F5F0E8; }
.esp-hook .esp-volver { padding: 0; }
.esp-hook + .esp-hook { border-top: 1px solid rgba(245,240,232,.1); padding-top: 10px; }
.esp-volver-final { padding-top: 8px; color: #F5F0E8; font-weight: 600; }

@keyframes esp-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .esp-titulo { font-size: 38px; }
  .esp-editor { grid-template-columns: 1fr; }
  .esp-kanban { grid-template-columns: repeat(4, 240px); }
  .esp-collage { inset: 0; opacity: .35; }
}
/* ---------- La app por cliente (public/cliente.js · 30 oct) ---------- */
.cl-app { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 60px); }
.cl-lado { position: sticky; top: 0; align-self: start; height: calc(100vh - 60px); padding: 18px 12px; border-right: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 6px; }
.cl-cliente { width: 100%; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; font-weight: 600; margin-bottom: 12px; }
.cl-cliente option { background: var(--panel-solid); }
.cl-lado nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; color: var(--muted); text-decoration: none; font-weight: 500; }
.cl-lado nav a:hover { background: var(--panel-2); color: var(--text); }
.cl-lado nav a.on { background: rgba(143, 92, 255, .14); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.cl-ico { width: 18px; text-align: center; opacity: .8; }
.cl-n { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 8px; }
.cl-pie { margin-top: auto; padding: 0 8px; line-height: 1.5; }
.cl-main { padding: 26px 34px 70px; min-width: 0; }
.cl-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.cl-cab h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.01em; }
.cl-h2 { font-size: 15px; margin: 26px 0 12px; font-weight: 700; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; }
.cl-pieza { all: unset; cursor: pointer; display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .15s, border-color .15s; }
.cl-pieza:hover { transform: translateY(-3px); border-color: var(--line-2); }
.cl-pieza-img { position: relative; aspect-ratio: 9 / 16; background: #111; }
.cl-pieza-img img, .cl-pieza-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-pieza-fecha { position: absolute; top: 10px; left: 10px; background: rgba(10, 10, 12, .78); backdrop-filter: blur(6px); border-radius: 10px; padding: 4px 9px 5px; text-align: center; line-height: 1; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.cl-pieza-fecha b { display: block; font-size: 20px; letter-spacing: 0; margin-bottom: 2px; }
.cl-pieza-info { padding: 11px 12px 13px; display: grid; gap: 6px; }
.cl-pieza-t { font-weight: 600; font-size: 13px; line-height: 1.3; }
.cl-sin { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 12px; }
.cl-estado { display: inline-block; justify-self: start; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.e-revisar { background: rgba(255, 179, 71, .16); color: var(--warn); }
.e-cambios { background: rgba(255, 84, 112, .15); color: var(--err); }
.e-aprobada { background: rgba(63, 210, 155, .15); color: var(--ok); }
.e-exportada { background: rgba(143, 92, 255, .16); color: var(--accent); }
.e-publicada { background: rgba(106, 168, 255, .16); color: #7fb4ff; }
.cl-red { font-weight: 600; }
.r-tt { --red: #25f4ee; } .r-ig { --red: #ff4f9a; } .r-yt { --red: #ff4438; } .r-fb { --red: #5b8cff; } .r-li { --red: #0a66c2; }
.cl-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cl-kpi, .cl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.cl-kpi-n { font-size: 30px; font-weight: 800; margin: 4px 0 2px; }
.cl-card h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.cl-vacio { background: var(--panel); border: 1px dashed var(--line-2); border-radius: 16px; padding: 26px; color: var(--muted); }
.cl-mini { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: grid; gap: 7px; }
.cl-mini img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; cursor: pointer; }
.cl-ideas, .cl-marca { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cl-apr { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cl-apr li { display: flex; gap: 12px; align-items: baseline; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.cl-apr li .muted { min-width: 52px; }

/* visor: grande, una pieza a la vez */
.cl-visor { position: fixed; inset: 0; z-index: 60; background: rgba(5, 5, 7, .86); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; }
.cl-visor.on { display: flex; }
.cl-visor-caja { display: flex; align-items: center; gap: 22px; max-height: 94vh; }
.cl-visor-video video, .cl-visor-video img { width: min(540px, 44vw); max-height: 92vh; aspect-ratio: 9 / 16; object-fit: contain; background: #000; border-radius: 18px; display: block; }
.cl-visor-lado { width: 400px; max-height: 92vh; overflow: auto; display: grid; gap: 14px; align-content: start; padding-right: 4px; }
.cl-visor-t { margin: 0; font-size: 21px; line-height: 1.25; }
.cl-flecha { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 26px; cursor: pointer; flex: none; }
.cl-flecha:hover { background: var(--panel-3); }
.cl-fecha-bloque { display: flex; align-items: center; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 18px; padding: 14px 16px; position: relative; }
.cl-fecha { width: 92px; border-radius: 14px; overflow: hidden; text-align: center; background: #f6f1ea; color: #1b1814; flex: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.cl-fecha-mes { background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 0; }
.cl-fecha-dia { font-size: 44px; font-weight: 800; line-height: 1; padding: 8px 0 2px; letter-spacing: -.02em; }
.cl-fecha-sem { font-size: 12px; font-weight: 600; padding-bottom: 8px; text-transform: capitalize; color: #6b625a; }
.cl-fecha-hora { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.cl-fecha-cuando { font-weight: 600; color: var(--accent-2); }
.cl-fecha-red { position: absolute; top: 12px; right: 14px; font-size: 12px; }
.cl-copy { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.cl-copy-t { white-space: pre-wrap; font-size: 13px; line-height: 1.5; max-height: 210px; overflow: auto; background: rgba(0, 0, 0, .3); border-radius: 10px; padding: 10px 12px; }
.cl-desc { display: grid; grid-template-columns: 110px 1fr; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.cl-desc img { width: 110px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; }
.cl-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.ok { background: rgba(63, 210, 155, .18); color: var(--ok); border-color: rgba(63, 210, 155, .35); }

/* calendario: semana con fecha grande por día, color por red, estado y miniatura */
.cl-cal-barra { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; font-size: 15px; }
.cl-cal-barra .seg { margin-left: auto; }
.cl-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.cl-dia { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px; min-height: 230px; display: flex; flex-direction: column; gap: 7px; min-width: 0; overflow: hidden; }
.cl-dia.hoy { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 32px rgba(139, 92, 246, .18); }
.cl-dia.pasado { opacity: .55; }
.cl-dia-cab { display: flex; align-items: center; gap: 8px; padding: 0 2px 8px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.cl-dia-sem { text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.cl-dia-n { font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.cl-hoy { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: #fff; border-radius: 99px; padding: 2px 8px; }
.cl-dia-vacio { color: var(--muted); text-align: center; padding-top: 14px; opacity: .45; }
.cl-ev { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; align-items: center; background: var(--panel-2); border-radius: 12px; padding: 6px; border-left: 3px solid var(--red); min-width: 0; transition: background .15s; }
.cl-ev:hover { background: var(--panel-3); }
.cl-ev img { width: 42px; height: 42px; object-fit: cover; object-position: 50% 22%; border-radius: 9px; }
.cl-ev > div { min-width: 0; }
.cl-ev-h { font-weight: 800; font-size: 11.5px; color: var(--red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-ev-t { font-size: 11.5px; line-height: 1.25; margin: 2px 0 4px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-ev .cl-estado { font-size: 10px; padding: 1px 7px; }@media (max-width: 1100px) { .cl-cal { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cl-visor-caja { flex-direction: column; overflow: auto; } }
.cl-ev-sin { width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center; background: var(--panel-3); color: var(--red); font-size: 18px; }
/* carruseles (src/carruseles.js): tarjetas con la portada y visor 4:5 grande */
.cl-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cl-car { display: grid; grid-template-columns: 120px 1fr; gap: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 12px; }
.cl-car-img { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, .3); cursor: pointer; }
.cl-car-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-car-img .cl-sin { height: 100%; display: grid; place-items: center; font-size: 28px; }
.cl-car-info { display: grid; gap: 4px; align-content: start; }
.cl-visor-video.cl-lamina img { width: min(620px, 46vw); aspect-ratio: 4 / 5; max-height: 92vh; object-fit: contain; }
.cl-campos { display: grid; gap: 6px; }
.cl-campos textarea { resize: vertical; }
.cl-revision { display: grid; gap: 3px; font-size: 12.5px; }
.cl-revision .ok { color: #9fe39a; }
.cl-revision .mal { color: #ff9a8a; }
.cl-gira { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(177, 140, 255, .3); border-top-color: #b18cff; animation: cl-gira 0.9s linear infinite; display: inline-block; }
@keyframes cl-gira { to { transform: rotate(360deg); } }
.cl-prueba { display: flex; gap: 12px; align-items: center; background: rgba(177, 140, 255, .1); border: 1px dashed rgba(177, 140, 255, .45); border-radius: 14px; padding: 11px 14px; }
.cl-prueba > span { font-size: 22px; }
.cl-ev-prueba { --red: #b18cff; background: transparent; border: 1px dashed rgba(177, 140, 255, .45); border-left: 3px solid var(--red); }

/* ---------- Guion visual (el cliente · public/guiones.js) ---------- */
button.esp-con-guion { background: rgba(143, 224, 181, .1); border: 1px solid rgba(143, 224, 181, .35); border-radius: 999px; padding: 2px 8px; cursor: pointer; }
.esp-hero.compacto { min-height: 150px; }
.esp-hero.compacto .esp-titulo { font-size: 40px; margin-bottom: 4px; }
.gv-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gv-tarjeta { border-radius: 16px; overflow: hidden; background: #1b1620; border: 1px solid rgba(245,240,232,.07); cursor: pointer; transition: transform .25s, box-shadow .25s; animation: esp-entra .5s ease both; }
.gv-tarjeta:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.gv-tarjeta-img { position: relative; aspect-ratio: 4 / 5; background: radial-gradient(120% 120% at 0% 0%, #3a2357, #141012); overflow: hidden; }
.gv-tarjeta-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.gv-tarjeta:hover .gv-tarjeta-img img { transform: scale(1.05); }
.gv-tarjeta-letra { position: absolute; inset: auto 0 0; padding: 60px 16px 14px; font-family: var(--serif, Georgia, serif); font-size: 32px; line-height: 1; color: #F5F0E8; background: linear-gradient(to bottom, transparent, rgba(20,16,18,.92)); }
.gv-tarjeta-pie { padding: 12px 14px 14px; }
.gv-trabajando { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #c9b3ea; margin-top: 6px; }
.gv-trabajando.grande { padding: 12px 14px; border-radius: 12px; background: rgba(107,63,160,.18); margin-bottom: 12px; font-size: 13px; }
.gv-cab { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: end; padding: 18px; border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, #2a1840 0%, #141012 65%); margin-bottom: 14px; }
.gv-poster { width: 150px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.gv-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gv-chips span, .gv-chips select { font: 11px ui-monospace, 'Courier New', monospace; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: rgba(245,240,232,.08); color: #F5F0E8; border: 1px solid rgba(245,240,232,.12); }
.gv-chips select { background: #6B3FA0; border-color: #6B3FA0; cursor: pointer; }
.gv-tesis { font-family: var(--serif, Georgia, serif); font-style: italic; font-size: 22px; line-height: 1.25; color: #d9c9f0; margin: 12px 0 0; }
.gv-versiones { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 14px; }
.gv-version { border-radius: 14px; padding: 14px 16px; background: #1b1620; border: 1px solid rgba(245,240,232,.07); }
.gv-version blockquote { margin: 8px 0; font-family: var(--serif, Georgia, serif); font-size: 22px; line-height: 1.18; color: #F5F0E8; }
.gv-version .esp-volver { padding: 0; }
.gv-caption-t { white-space: pre-wrap; font-size: 13px; line-height: 1.5; margin: 8px 0; color: #e6dccd; }
.gv-linea { position: relative; height: 26px; border-radius: 8px; overflow: hidden; background: rgba(245,240,232,.06); margin: 6px 0 14px; }
.gv-linea span { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font: 600 9.5px ui-monospace, monospace; letter-spacing: .12em; color: #141012; border-right: 2px solid #141012; overflow: hidden; white-space: nowrap; }
.gv-ref-barra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.gv-escenas { display: grid; gap: 18px; }
.gv-escena { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 16px; align-items: start; }
.gv-guion { position: sticky; top: 12px; padding: 16px 16px 18px; border-radius: 16px; background: #1b1620; border: 1px solid rgba(245,240,232,.07); border-top: 3px solid var(--c); }
.gv-bloque { display: flex; justify-content: space-between; align-items: center; }
.gv-bloque span { font: 600 10.5px ui-monospace, monospace; letter-spacing: .18em; padding: 3px 10px; border-radius: 999px; background: var(--c); color: #141012; }
.gv-bloque time { font: 12px ui-monospace, monospace; color: var(--muted); }
.gv-voz { font-family: var(--serif, Georgia, serif); font-size: 21px; line-height: 1.25; color: #F5F0E8; margin: 12px 0; }
.gv-pantalla { display: inline-block; background: #F5F0E8; color: #141012; font-family: Georgia, serif; font-size: 15px; padding: 4px 10px 5px; border-radius: 4px; }
.gv-pantalla em { display: block; font: 9px ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: #6B3FA0; }
.gv-son { margin-top: 10px; font-size: 12px; color: var(--muted); display: grid; gap: 4px; }
.gv-planos { display: grid; gap: 12px; }
.gv-plano { border-radius: 16px; padding: 12px 14px 14px; background: rgba(245,240,232,.03); border: 1px solid rgba(245,240,232,.08); }
.gv-plano.prioridad { border-color: rgba(177,140,255,.55); box-shadow: 0 0 0 1px rgba(107,63,160,.35) inset; }
.gv-plano > header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.gv-plano > header b { font: 600 11px ui-monospace, monospace; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #6B3FA0; color: #F5F0E8; }
.gv-plano-n { font-family: var(--serif, Georgia, serif); font-size: 21px; color: #F5F0E8; }
.gv-plano > header time { font: 11px ui-monospace, monospace; color: var(--muted); }
.gv-prio { font: 600 9.5px ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #6B3FA0; color: #F5F0E8; }
.gv-lado { font: 10px ui-monospace, monospace; color: #c9b3ea; }
.gv-tres { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 12px; }
.gv-col { font: 600 9.5px ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.gv-media { position: relative; display: block; width: 100%; border-radius: 10px; overflow: hidden; background: #0d0b0d; border: 0; padding: 0; }
.gv-media img { display: block; width: 100%; height: auto; }
.gv-yt-btn { aspect-ratio: 16 / 9; background-size: cover; background-position: center; cursor: pointer; }
.gv-yt-btn span { position: absolute; inset: auto 8px 8px auto; font: 600 11px ui-monospace, monospace; padding: 6px 10px; border-radius: 999px; background: rgba(20,16,18,.85); color: #F5F0E8; }
.gv-yt-btn:hover span { background: #6B3FA0; }
.gv-yt { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.gv-vacio { aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border: 1px dashed rgba(245,240,232,.22); background: transparent; color: var(--muted); font-size: 12.5px; cursor: pointer; padding: 10px; }
.gv-vacio small { color: #c9b3ea; font-size: 11px; }
.gv-vacio:hover { border-color: #b18cff; color: #F5F0E8; }
.gv-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(20,16,18,.75); color: #F5F0E8; cursor: pointer; opacity: 0; transition: opacity .2s; }
.gv-media:hover .gv-x { opacity: 1; }
.gv-recrear { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.gv-recrear p { margin: 0; font-size: 13px; line-height: 1.45; color: #e6dccd; }
.gv-boceto { width: 64px; }
.gv-boceto svg { display: block; width: 64px; border-radius: 6px; }
.gv-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 22px; }
.gv-extra { border-radius: 16px; padding: 16px; background: #1b1620; border: 1px solid rgba(245,240,232,.07); }
.gv-arco { display: grid; gap: 6px; margin-top: 10px; font-size: 12px; }
.gv-arco > div { display: grid; grid-template-columns: 70px 70px 1fr; gap: 8px; align-items: center; }
.gv-arco time { font: 11px ui-monospace, monospace; color: var(--muted); }
.gv-nivel { height: 7px; border-radius: 4px; background: rgba(245,240,232,.1); overflow: hidden; }
.gv-nivel i { display: block; height: 100%; background: linear-gradient(90deg, #6B3FA0, #B18CFF); }
.gv-buscar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gv-buscar .esp-btn { font-size: 11.5px; padding: 5px 11px; text-decoration: none; }
.gv-orden { margin: 8px 0 10px; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.gv-toma { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; cursor: pointer; }
.gv-toma input { accent-color: #6B3FA0; }
@media (max-width: 900px) {
  .gv-escena { grid-template-columns: 1fr; }
  .gv-guion { position: static; }
  .gv-tres { grid-template-columns: 1fr; }
  .gv-cab { grid-template-columns: 1fr; }
  .gv-poster { display: none; }
}
/* referencia dibujada + toma lado a lado (2 nov, tarde) */
.gv-dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(180px, 1.1fr); gap: 14px; align-items: start; }
.gv-dos figure { margin: 0; }
.gv-vertical { aspect-ratio: 9 / 16; }
.gv-vertical img { width: 100%; height: 100%; object-fit: cover; }
.gv-dibujo svg { display: block; width: 100%; height: 100%; }
.gv-dibujo .gv-cambiar { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,16,18,.75); color: #F5F0E8; cursor: pointer; opacity: 0; transition: opacity .2s; }
.gv-dibujo:hover .gv-cambiar { opacity: 1; }
.gv-recrear p { margin: 0; font-size: 14px; line-height: 1.5; color: #e6dccd; }
.gv-verificar { padding: 10px 14px; border-radius: 12px; background: rgba(224,162,78,.14); border: 1px solid rgba(224,162,78,.45); color: #f3d3a0; font-size: 13px; margin-bottom: 14px; }
@media (max-width: 900px) { .gv-dos { grid-template-columns: 1fr 1fr; } .gv-dos .gv-recrear { grid-column: 1 / -1; } }
.gv-dos .gv-recrear { display: block; }
.gv-dos .gv-recrear p { margin-top: 2px; }
.gv-chips select { width: auto; flex: none; }

/* escena real (fotograma capturado del tráiler) */
.gv-dos.con-real { grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr) minmax(170px, 1fr); }
.gv-real img { width: 100%; height: auto; display: block; }
.gv-fuente { position: absolute; left: 8px; bottom: 8px; font: 10px ui-monospace, monospace; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: rgba(20,16,18,.8); color: #F5F0E8; }
.gv-real .gv-cambiar { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,16,18,.75); color: #F5F0E8; cursor: pointer; opacity: 0; transition: opacity .2s; }
.gv-real:hover .gv-cambiar { opacity: 1; }
@media (max-width: 900px) { .gv-dos.con-real { grid-template-columns: 1fr 1fr; } .gv-dos.con-real figure:first-child { grid-column: 1 / -1; } }

/* modo Editar textos del guion visual */
.gv-titulo { font-size: 46px; margin: 8px 0 10px; }
.gv-editando [data-ed] { outline: 1px dashed rgba(177,140,255,.55); outline-offset: 3px; border-radius: 4px; cursor: text; transition: outline-color .2s, background .2s; min-width: 2ch; display: inline-block; }
.gv-editando p[data-ed], .gv-editando div[data-ed], .gv-editando blockquote[data-ed], .gv-editando h2[data-ed] { display: block; }
.gv-editando [data-ed]:hover { outline-color: #B18CFF; }
.gv-editando [data-ed]:focus { outline: 2px solid #B18CFF; background: rgba(107,63,160,.18); }
.gv-editando [data-ed]:empty::before { content: attr(data-vacio); color: rgba(245,240,232,.35); font-style: italic; }
.gv-guardado { outline: 2px solid #8fe0b5 !important; background: rgba(143,224,181,.12) !important; }
.gv-aviso-ed { padding: 10px 14px; border-radius: 12px; background: rgba(107,63,160,.18); border: 1px solid rgba(177,140,255,.4); color: #e3d4fb; font-size: 13px; margin-bottom: 12px; }

/* Cliente · color por red y calendario por líneas (Maic, 2 nov: "que cada una tenga un color característico… una línea de
   TikTok, otra de Instagram, otra de YouTube") e historias de un día en una sola portada */
.r-hs { --red: #ffb547; }
.cl-pieza { border-top: 3px solid var(--red, transparent); }
.cl-pieza-pila { position: absolute; top: 10px; right: 10px; display: flex; gap: 3px; background: rgba(10, 10, 12, .7); border-radius: 8px; padding: 5px 6px; }
.cl-pieza-pila i { width: 14px; height: 3px; border-radius: 2px; background: #fff; opacity: .85; }
.cl-cal.cl-cal-lineas { grid-template-columns: 116px repeat(7, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.cl-cal-lineas .cl-dia-cab { border: 0; margin: 0; padding: 4px 6px 8px; }
.cl-cal-lineas .cl-dia-cab.hoy .cl-dia-n { color: var(--accent); }
.cl-cal-lineas .cl-dia-cab.pasado, .cl-cal-lineas .cl-celda.pasado { opacity: .5; }
.cl-linea-nom { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); border-left: 4px solid var(--red); border-radius: 12px; padding: 10px; }
.cl-linea-nom span { font-size: 17px; }
.cl-celda { min-height: 74px; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; background: color-mix(in srgb, var(--red) 6%, var(--panel)); border: 1px solid color-mix(in srgb, var(--red) 22%, var(--line)); min-width: 0; }
.cl-celda.hoy { box-shadow: 0 0 0 1px var(--accent); }
.cl-celda .cl-ev { border-left: 3px solid var(--red); }
.cl-hist-tira { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.cl-hist-tira button { all: unset; cursor: pointer; flex: 0 0 auto; width: 44px; height: 78px; border-radius: 8px; overflow: hidden; outline: 2px solid transparent; opacity: .6; background: var(--panel-3); display: grid; place-items: center; }
.cl-hist-tira button.on { outline-color: #ffb547; opacity: 1; }
.cl-hist-tira img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1100px) { .cl-cal.cl-cal-lineas { grid-template-columns: 90px repeat(7, minmax(120px, 1fr)); overflow-x: auto; } }

/* carrusel en el visor de revisión: flechas para pasar las láminas */
.cl-visor-video.cl-pasa { position: relative; }
.cl-pasa-b { position: absolute; top: 50%; transform: translateY(-50%); left: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.cl-pasa-b.der { left: auto; right: 10px; }
.cl-pasa-b:disabled { opacity: .25; cursor: default; }
.cl-pasa-n { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 99px; }

/* ---------- Tablero de pendientes (public/pendientes.js) ---------- */
.pd { max-width: 1280px; margin: 0 auto; padding: 28px 24px 40px; }
.pd-hero { display: grid; gap: 18px; margin-bottom: 18px; }
.pd-dia::first-letter { text-transform: uppercase; }
.pd-dia { color: var(--accent-2); font-weight: 600; letter-spacing: .02em; margin-bottom: 4px; }
.pd-hero h1 { font-size: 34px; letter-spacing: -.03em; }
.pd-hero p { margin: 6px 0 0; font-size: 14.5px; }
.pd-nueva { display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); backdrop-filter: blur(18px); }
.pd-nueva input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 6px 12px; font-size: 14px; }
.pd-nueva select { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; max-width: 200px; }
.pd-nueva select option, .pd select option { background: var(--panel-solid); }
.pd-clientes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pd-chip-g { display: inline-flex; border-radius: 999px; border: 1px solid hsl(var(--h) 60% 60% / .35); background: hsl(var(--h) 60% 50% / .08); overflow: hidden; }
.pd-chip { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; color: var(--text); }
.pd-clientes > .pd-chip { border: 1px solid var(--line-2); }
.pd-chip i { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h) 70% 62%); }
.pd-chip b { font-size: 11px; background: var(--panel-3); padding: 1px 7px; border-radius: 999px; }
.pd-chip.on { background: var(--grad); color: #fff; }
.pd-chip-g .pd-chip.on { background: hsl(var(--h) 60% 50% / .45); }
.pd-ir { padding: 6px 10px 6px 4px; color: var(--muted); text-decoration: none; }
.pd-ir:hover { color: var(--text); }
.pd-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pd-col { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 14px; min-height: 240px; backdrop-filter: blur(18px); transition: border-color .15s, background .15s; }
.pd-col.sobre { border-color: var(--accent); background: rgba(143, 92, 255, .08); }
.pd-col header { display: flex; justify-content: space-between; align-items: baseline; }
.pd-col[data-col="hoy"] h2 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 18px; }
.pd-ayuda { margin: 2px 0 12px; }
.pd-lista { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pd-col { min-width: 0; }
.pd-vacio { border: 1px dashed var(--line-2); border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); font-size: 12px; }
.pd-t { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); cursor: grab; transition: transform .12s, border-color .12s, background .12s; }
.pd-t:hover { border-color: var(--line-2); background: var(--panel-3); transform: translateY(-1px); }
.pd-t.imp { border-left: 3px solid var(--warn); }
.pd-t.arrastra { opacity: .4; }
.pd-t.hecha .pd-texto { text-decoration: line-through; color: var(--muted); }
.pd-check { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line-2); background: transparent; cursor: pointer; color: #fff; font-size: 12px; line-height: 1; padding: 0; }
.pd-check:hover { border-color: var(--ok); background: rgba(63, 210, 155, .15); }
.pd-t.hecha .pd-check { background: var(--ok); border-color: var(--ok); }
.pd-cuerpo { flex: 1; min-width: 0; cursor: pointer; }
.pd-texto { font-size: 14px; line-height: 1.35; }
.pd-notas { color: var(--muted); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; align-items: center; }
.pd-meta:empty { display: none; }
.pd-cli { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: hsl(var(--h) 60% 50% / .18); color: hsl(var(--h) 80% 78%); }
.pd-fecha { font-size: 11px; color: var(--muted); }
.pd-fecha.tarde { color: var(--err); }
.pd-estrella { color: var(--warn); font-size: 12px; }
.pd-hechas { margin-top: 22px; }
.pd-hechas summary { cursor: pointer; color: var(--muted); margin-bottom: 10px; }
.pd-hechas .pd-lista { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pd-pie { margin-top: 26px; text-align: center; }
@media (max-width: 900px) { .pd-hero, .pd-cols { grid-template-columns: 1fr; } .pd-nueva { flex-wrap: wrap; border-radius: 20px; } }

/* Material grabado por cliente (el cliente): pares, videos que salen y lo que falta grabar */
.mt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 6px 0 18px; }
.mt-kpis > div { background: var(--panel, #1b1714); border: 1px solid var(--line, #2c2520); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; }
.mt-kpis b { font-size: 28px; line-height: 1; color: var(--text, #f3ece4); }
.mt-kpis span { font-size: 12px; color: var(--muted, #9a8f85); }
.mt-kpis > div.on { border-color: #c9a46a; background: linear-gradient(160deg, rgba(201,164,106,.18), transparent); }
.mt-kpis > div.on b { color: #e6c48c; }
.mt-nota { border-left: 3px solid #c9a46a; padding: 8px 12px; margin-bottom: 18px; color: var(--text, #f3ece4); background: rgba(201,164,106,.07); border-radius: 0 10px 10px 0; font-size: 14px; }
.mt-par { border: 1px solid var(--line, #2c2520); border-radius: 18px; padding: 18px; margin-bottom: 22px; background: var(--panel, #1b1714); }
.mt-par-cab { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.mt-par-img { width: 120px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; }
.mt-par h2 { font-size: 24px; margin: 2px 0 4px; color: var(--text, #f3ece4); }
.mt-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c9a46a; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mt-chips .chip.ok { background: rgba(201,164,106,.2); color: #e6c48c; }
.mt-h { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #9a8f85); margin: 20px 0 10px; }
.mt-piezas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mt-pieza { border: 1px solid var(--line, #2c2520); border-radius: 14px; padding: 12px; background: rgba(0,0,0,.18); display: grid; gap: 6px; align-content: start; }
.mt-pieza-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mt-pieza-top .cl-estado { margin-left: auto; }
.mt-pieza h4 { font-size: 16px; margin: 2px 0 0; color: var(--text, #f3ece4); }
.mt-pieza p { margin: 0; font-size: 13px; color: var(--muted, #b3a89d); }
.mt-pieza p.mt-voz { font-style: italic; color: var(--text, #e8ded3); }
.mt-tira { display: flex; gap: 4px; overflow-x: auto; padding-top: 4px; }
.mt-clip { margin: 0; position: relative; flex: none; }
.mt-clip img { width: 72px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; display: block; background: #000; }
.mt-clip.chico img { width: 46px; border-radius: 6px; }
.mt-clip figcaption { position: absolute; left: 3px; bottom: 3px; font-size: 10px; background: rgba(0,0,0,.65); color: #fff; padding: 0 4px; border-radius: 4px; }
.mt-clip.fuera img { opacity: .35; filter: grayscale(1); }
.mt-faltan { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.mt-todos { margin-top: 16px; }
.mt-todos summary { cursor: pointer; color: var(--muted, #9a8f85); font-size: 13px; }
.mt-grilla { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (max-width: 640px) { .mt-par-cab { grid-template-columns: 80px 1fr; } .mt-par-img { width: 80px; } }

/* Portada de marca en el Inicio del cliente (el cliente): hero, personajes, avance, números y documentos */
.pt { display: grid; gap: 6px; }
.pt-hero { position: relative; overflow: hidden; border-radius: 22px; min-height: 340px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; padding: 34px; background: #0d0b0a; border: 1px solid var(--line, #2c2520); }
.pt-hero-fotos { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.pt-hero-fotos img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.15) brightness(.75); opacity: 0; animation: ptEntra .9s ease forwards; animation-delay: calc(var(--k) * .12s); }
.pt-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,8,7,.96) 0%, rgba(10,8,7,.82) 42%, rgba(10,8,7,.35) 100%), linear-gradient(0deg, rgba(10,8,7,.9), transparent 55%); }
@keyframes ptEntra { to { opacity: 1; } }
.pt-hero-texto, .pt-fechas { position: relative; z-index: 1; }
.pt-kicker { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #c9a46a; }
.pt-nombre { font-size: clamp(44px, 7vw, 86px); line-height: .9; letter-spacing: .04em; margin: 10px 0 6px; color: #f6efe6; font-weight: 800; }
.pt-promesa { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 26px; color: #e6c48c; margin: 0 0 10px; }
.pt-desc { max-width: 520px; color: #cfc4b8; margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.pt-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-pills span { font-size: 12px; padding: 5px 11px; border-radius: 99px; border: 1px solid rgba(230,196,140,.35); color: #eadfcf; background: rgba(0,0,0,.35); }
.pt-fechas { display: grid; gap: 8px; }
.pt-fechas > div { background: rgba(10,8,7,.75); border: 1px solid rgba(230,196,140,.3); border-radius: 14px; padding: 10px 14px; min-width: 150px; display: grid; }
.pt-fechas span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #9a8f85; }
.pt-fechas b { font-size: 20px; color: #f6efe6; }
.pt-fechas em { font-style: normal; font-size: 12px; color: #e6c48c; }
.pt-fechas .pasada { opacity: .5; }
.pt-h { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #9a8f85); margin: 22px 0 12px; font-weight: 600; }
.pt-personajes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pt-pj { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--line, #2c2520); text-decoration: none; color: inherit; background: #000; aspect-ratio: 4 / 5; max-height: 360px; width: 100%; }
.pt-pj img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.15) saturate(1.1) brightness(.9); transition: transform .5s ease; }
.pt-pj:hover img { transform: scale(1.05); }
.pt-pj::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,6,5,.95) 0%, rgba(8,6,5,.55) 45%, transparent 75%); }
.pt-pj-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; z-index: 1; }
.pt-pj h3 { font-size: 22px; margin: 4px 0 6px; color: #f6efe6; }
.pt-pj p { font-size: 13px; color: #cfc4b8; margin: 0 0 10px; line-height: 1.4; }
.pt-pj-n { display: flex; gap: 6px; flex-wrap: wrap; }
.pt-pj-n span { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(230,196,140,.16); color: #e6c48c; }
.pt-dos { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 8px; }
.pt-caja { border: 1px solid var(--line, #2c2520); border-radius: 18px; padding: 4px 20px 20px; background: var(--panel, #1b1714); }
.pt-caja-cab { display: flex; justify-content: space-between; align-items: center; }
.pt-avance { font-size: 13px; color: #e6c48c; }
.pt-barra { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin-bottom: 14px; }
.pt-barra i { display: block; height: 100%; background: linear-gradient(90deg, #a8834f, #e6c48c); border-radius: 99px; }
.pt-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pt-pasos li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 8px 6px; border-radius: 10px; }
.pt-pasos li:hover { background: rgba(255,255,255,.03); }
.pt-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #5a5048; display: grid; place-items: center; font-size: 12px; color: #0d0b0a; }
.pt-pasos li.ok .pt-check { background: #e6c48c; border-color: #e6c48c; }
.pt-pasos li.medio .pt-check { border-color: #e6c48c; color: #e6c48c; }
.pt-pasos a, .pt-pasos b { color: var(--text, #f3ece4); text-decoration: none; font-weight: 600; font-size: 14px; }
.pt-pasos a:hover { color: #e6c48c; }
.pt-pasos small { display: block; color: var(--muted, #9a8f85); font-size: 12px; margin-top: 2px; }
.pt-pasos li.ok a, .pt-pasos li.ok b { color: var(--muted, #b3a89d); }
.pt-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-nums a { border: 1px solid var(--line, #2c2520); border-radius: 14px; padding: 12px 14px; display: grid; text-decoration: none; color: inherit; background: rgba(0,0,0,.2); }
.pt-nums a:hover { border-color: #a8834f; }
.pt-nums b { font-size: 30px; line-height: 1; color: #f6efe6; }
.pt-nums span { font-size: 13px; color: var(--text, #e8ded3); margin-top: 4px; }
.pt-nums em { font-style: normal; font-size: 11px; color: var(--muted, #9a8f85); }
.pt-docs { display: grid; gap: 8px; }
.pt-docs a { display: grid; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, #2c2520); text-decoration: none; background: rgba(0,0,0,.2); }
.pt-docs a:hover { border-color: #a8834f; }
.pt-docs b { color: var(--text, #f3ece4); font-size: 14px; }
.pt-docs b::after { content: ' →'; color: #e6c48c; }
.pt-docs span { color: var(--muted, #9a8f85); font-size: 12px; }
@media (max-width: 900px) { .pt-dos { grid-template-columns: 1fr; } .pt-hero { grid-template-columns: 1fr; padding: 24px; } .pt-fechas { grid-template-columns: repeat(3, 1fr); } .pt-fechas > div { min-width: 0; } }

/* Estrategia: documentos de la skill como página de lectura */
.dc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.dc-tabs a { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line, #2c2520); color: var(--muted, #b3a89d); text-decoration: none; font-size: 13px; }
.dc-tabs a.on { background: #e6c48c; color: #14100d; border-color: #e6c48c; font-weight: 600; }
.dc { max-width: 860px; background: var(--panel, #1b1714); border: 1px solid var(--line, #2c2520); border-radius: 20px; padding: 30px 38px; color: var(--text, #e8ded3); line-height: 1.6; font-size: 15px; }
.dc h1 { font-size: 30px; margin: 0 0 14px; color: #f6efe6; letter-spacing: .01em; }
.dc h2 { font-size: 20px; margin: 30px 0 10px; color: #e6c48c; padding-top: 18px; border-top: 1px solid var(--line, #2c2520); }
.dc h3 { font-size: 16px; margin: 20px 0 8px; color: #f6efe6; }
.dc p { margin: 0 0 12px; }
.dc ul, .dc ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 4px; }
.dc li.sub { margin-left: 18px; list-style: circle; }
.dc b { color: #f6efe6; }
.dc code { background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.dc hr { border: 0; border-top: 1px solid var(--line, #2c2520); margin: 22px 0; }
.dc blockquote { margin: 14px 0; padding: 10px 16px; border-left: 3px solid #c9a46a; background: rgba(201,164,106,.07); border-radius: 0 10px 10px 0; color: #d9cdbf; font-size: 14px; }
.dc a { color: #e6c48c; }
.dc-tabla { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--line, #2c2520); border-radius: 12px; }
.dc table { border-collapse: collapse; width: 100%; font-size: 13px; }
.dc th { text-align: left; background: rgba(230,196,140,.1); color: #e6c48c; font-weight: 600; padding: 9px 12px; white-space: nowrap; }
.dc td { padding: 9px 12px; border-top: 1px solid var(--line, #2c2520); vertical-align: top; }
.dc tr:hover td { background: rgba(255,255,255,.02); }
@media (max-width: 640px) { .dc { padding: 20px 18px; } }
.dc-wrap { display: grid; grid-template-columns: minmax(0, 860px) 240px; gap: 22px; align-items: start; }
.dc-indice { position: sticky; top: 16px; display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line, #2c2520); border-radius: 16px; background: var(--panel, #1b1714); }
.dc-indice .pt-kicker { margin-bottom: 8px; }
.dc-indice a { color: var(--muted, #b3a89d); text-decoration: none; font-size: 13px; padding: 5px 8px; border-radius: 8px; }
.dc-indice a:hover { background: rgba(230,196,140,.1); color: #e6c48c; }
@media (max-width: 1150px) { .dc-wrap { grid-template-columns: 1fr; } .dc-indice { display: none; } }

/* Tablero: vista de trabajo de una tarea */
.modal.wide:has(.pd-vista) { width: min(920px, 94vw); max-height: 90vh; overflow: auto; }
.pd-vista-t { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.pd-ir-a { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.pd-nota { margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 179, 71, .08); border: 1px solid rgba(255, 179, 71, .25); }
.pd-nota b { display: block; color: var(--warn); font-size: 12px; margin-bottom: 4px; }
.pd-coms { margin: 14px 0; display: grid; gap: 8px; }
.pd-coms > b { font-size: 12px; color: var(--muted, #aaa); }
.pd-com { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 6px; }
.pd-com-r { font-size: 13px; color: var(--warn); }
.pd-com-form { display: flex; gap: 8px; align-items: flex-end; }
.pd-com-form textarea { flex: 1; min-width: 0; resize: vertical; }
.pd-doc { margin-top: 14px; padding: 22px 26px; border-radius: 16px; background: #f6f2ec; color: #1d1a17; font: 14.5px/1.6 Georgia, 'Times New Roman', serif; }
.pd-doc h4 { font: 700 12.5px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #6b3fa0; margin: 18px 0 6px; }
.pd-doc h4:first-child { margin-top: 0; }
.pd-doc p { margin: 0 0 6px; }
.pd-doc .pd-quien { font-weight: 700; text-align: center; margin: 10px 0 2px; }
.pd-doc .pd-esp { height: 6px; }

/* ---------- Grupo "Página web" de el cliente (public/web.js · 4 nov): Sitio web y Laboratorio de marca ---------- */
.cl-grupo { margin: 14px 12px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); opacity: .8; }
.cl-lado nav .cl-grupo:first-child { margin-top: 0; }
.wb-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 4px; }
.wb-resumen { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); margin: -6px 0 16px; }
.wb-resumen b { color: var(--text); font-size: 15px; }
.wb { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.15fr); gap: 18px; align-items: start; }
.wb-izq { display: grid; gap: 14px; min-width: 0; }
.wb-lista { display: grid; gap: 4px; }
.wb-pag { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; }
.wb-pag:hover { background: var(--panel-2); }
.wb-pag.on { background: rgba(143, 92, 255, .14); box-shadow: inset 3px 0 0 var(--accent); }
.wb-pag-n { flex: 1; font-weight: 550; }
.wb-est { all: unset; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
button.wb-est { cursor: pointer; }
.wb-pc { background: var(--panel-3); color: var(--muted); }
.wb-bo { background: rgba(255, 179, 71, .16); color: var(--warn); }
.wb-er { background: rgba(143, 92, 255, .18); color: var(--accent-2); }
.wb-ap { background: rgba(63, 210, 155, .15); color: var(--ok); }
.wb-trab { font-size: 11px; color: var(--claude); animation: wb-lat 1.4s ease-in-out infinite; }
@keyframes wb-lat { 50% { opacity: .45; } }
.wb-lbl { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 10px 0 5px; }
.wb-det textarea, .lb-idea textarea, .lb-manual textarea, .wb-in { width: 100%; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 9px 11px; resize: vertical; }
.wb-det textarea:focus, .lb-idea textarea:focus, .lb-manual textarea:focus, .wb-in:focus, .lb-titulo:focus { outline: none; border-color: var(--accent); }
.wb-resp { margin-top: 12px; background: rgba(177, 140, 255, .07); border: 1px solid rgba(177, 140, 255, .22); border-radius: 12px; padding: 11px 13px; white-space: pre-line; }
.wb-resp summary { cursor: pointer; list-style: none; white-space: normal; }
.wb-resp summary .wb-kicker { display: inline; }
.wb-error { margin-top: 10px; color: var(--err); font-size: 12px; }
.wb-pend { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wb-pend li { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 8px; }
.wb-pend li:hover { background: var(--panel-2); }
.wb-pend label { flex: 1; display: flex; gap: 9px; align-items: baseline; cursor: pointer; }
.wb-pend input { accent-color: var(--accent); }
.wb-pend li.hecho span { text-decoration: line-through; color: var(--muted); }
.wb-x { all: unset; cursor: pointer; color: var(--muted); padding: 0 6px; font-size: 16px; line-height: 1; border-radius: 6px; }
.wb-x:hover { color: var(--err); background: var(--panel-2); }
.wb-der { position: sticky; top: 12px; display: grid; gap: 10px; justify-items: center; }
.wb-pantallas .btn.on { border-color: var(--accent); color: var(--text); background: rgba(143, 92, 255, .14); }
.wb-marco { background: #050506; border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.wb-marco iframe { border: 0; width: 100%; height: 100%; display: block; background: #fff; }
.wb-celular { width: 390px; max-width: 100%; height: min(780px, calc(100vh - 170px)); border-radius: 34px; border-width: 9px; border-color: #1d1b20; }
.wb-escritorio { width: 100%; height: min(760px, calc(100vh - 170px)); border-radius: 14px; }
.wb-vacia { height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; padding: 30px; gap: 4px; color: var(--text); }
.wb-punto { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9a6fd0, #6b3fa0 60%, #4a2a73); margin-bottom: 10px; }
.wb-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.wb-tabs button { all: unset; cursor: pointer; padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.wb-tabs button.on { color: var(--text); border-color: var(--accent); }
.lb-nueva { display: grid; gap: 8px; margin-bottom: 16px; max-width: 760px; }
.lb-nueva .btn.primary { justify-self: start; }
.lb-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.lb-idea { display: grid; gap: 8px; align-content: start; }
.lb-titulo { all: unset; flex: 1; font-size: 15px; font-weight: 650; border-bottom: 1px solid transparent; padding: 2px 0; }
.lb-titulo:hover { border-color: var(--line-2); }
.lb-acc { flex-wrap: wrap; }
.lb-hist { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line-2); display: grid; gap: 12px; max-width: 760px; }
.lb-hist li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; display: grid; gap: 4px; }
.lb-hist li::before { content: ''; position: absolute; left: -23px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.lb-hist li.vieja { opacity: .6; }
.lb-hist li.vieja b { text-decoration: line-through; }
.lb-hist li.vieja::before { background: var(--muted); }
.lb-reempl { font-size: 12px; color: var(--warn); }
.lb-manual { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.lb-manual h2 { margin-bottom: 8px; }
.lb-tabla { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.lb-tabla table { border-collapse: collapse; width: 100%; min-width: 980px; }
.lb-tabla th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); }
.lb-tabla td { padding: 4px 6px; border-bottom: 1px solid var(--line); }
.lb-tabla tr:last-child td { border-bottom: 0; }
.lb-tabla input { width: 100%; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 6px 7px; }
.lb-tabla input:hover { border-color: var(--line-2); }
.lb-tabla input:focus { outline: none; border-color: var(--accent); background: var(--panel-2); }
@media (max-width: 1100px) { .wb { grid-template-columns: 1fr; } .wb-der { position: static; } }
@media (max-width: 700px) { .lb-ideas, .lb-manual { grid-template-columns: 1fr; } }
.wb-det select, .lb-idea select { flex: none; width: auto; }

/* Bitácora (blog de la web de Disruptive · public/web.js) */
.bl { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 18px; align-items: start; }
.bl-izq { display: grid; gap: 14px; }
.bl-lista { display: grid; gap: 4px; max-height: 60vh; overflow: auto; }
.bl-ed { display: grid; gap: 10px; }
.bl-ed textarea, .bl-ed .bl-titulo { width: 100%; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 9px 11px; resize: vertical; }
.bl-ed .bl-titulo { font-size: 20px; font-weight: 700; }
.bl-cuerpo { font: 14px/1.6 Georgia, serif; }
.bl-ed textarea:focus, .bl-ed .bl-titulo:focus { outline: none; border-color: var(--accent); }
@media (max-width: 1000px) { .bl { grid-template-columns: 1fr; } }

/* Cliente con varias marcas (PUTT + Pong, 5 nov): selector de marca bajo el cliente */
.cl-marcas { display: flex; gap: 4px; margin: 10px 0 14px; padding: 3px; border-radius: 10px; background: var(--panel-2, rgba(127,127,127,.12)); }
.cl-marcas button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 6px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; opacity: .7; }
.cl-marcas button:hover { opacity: 1; }
.cl-marcas button.on { background: var(--bg, #fff); opacity: 1; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.cl-marcas button span:empty { display: none; }
.cl-marcas button span { min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent, #e5322d); color: #fff; font-size: 11px; line-height: 18px; }
