/* Revisión de video · Agencia Eremo.
   Colores, tipografías y radios salen del design system de Eremo.
   Los tonos de azul más oscuros y más claros son mezclas del azul de marca, no colores nuevos. */
@font-face { font-family: "Skie Wide"; src: url("/fonts/SkieWide-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Skie Wide"; src: url("/fonts/SkieWide-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Skie Wide"; src: url("/fonts/SkieWide-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Skie"; src: url("/fonts/Skie-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Skie"; src: url("/fonts/Skie-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Addington CF"; src: url("/fonts/AddingtonCF-DemiBoldItalic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  --ae-azul: #2a364a; --ae-rojo: #eb443f; --ae-mostaza: #e9c53c; --ae-mostaza-alt: #eec400; --ae-beige: #f7eebd;
  --ae-blanco: #f9f9f9; --ae-negro: #2a2a2a; --ae-oro: #b1a16b; --ae-oro-claro: #d0c08a; --ae-arena: #e1d8cd; --ae-gris: #7a7a7a;
  --text-body: #56616f; --muted: #aeb6c2;
  --azul-deep: color-mix(in srgb, var(--ae-azul) 62%, #000);
  --azul-ink: color-mix(in srgb, var(--ae-azul) 80%, #000);
  --azul-soft: color-mix(in srgb, var(--ae-azul) 90%, #fff);
  --azul-softer: color-mix(in srgb, var(--ae-azul) 82%, #fff);
  --rojo-claro: color-mix(in srgb, var(--ae-rojo) 58%, var(--ae-blanco));
  --hair: color-mix(in srgb, var(--ae-oro) 34%, transparent);
  --hair-soft: color-mix(in srgb, var(--ae-blanco) 10%, transparent);
  --radius-sm: 5px; --radius-md: 8px; --pill: 999px;
  --font-display: "Skie Wide", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Skie", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Addington CF", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 400 16px/1.5 var(--font-body); color: var(--ae-negro); background: var(--ae-blanco); -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled { opacity: 1; background: var(--azul-soft); color: var(--muted); }
:focus-visible { outline: 2px solid var(--ae-rojo); outline-offset: 2px; }
[hidden] { display: none !important; }
.ico { flex: none; display: block; }

.cap { font: 500 11px/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.hint { font-size: 13px; line-height: 1.45; color: var(--text-body); }
.statement { font: italic 600 42px/1.15 var(--font-serif); }
.statement-sm { font-size: 22px; color: var(--ae-oro-claro); margin-top: 10px; }
.logo { width: 150px; aspect-ratio: 810.87 / 173.23; background: var(--ae-azul); -webkit-mask: url(/logo.svg) center / contain no-repeat; mask: url(/logo.svg) center / contain no-repeat; }
.logo-sm { width: 88px; flex: none; }

/* ---------- botones ---------- */
.btn { font: 600 13px/1 var(--font-display); letter-spacing: .03em; height: 42px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: background .15s var(--ease), opacity .15s; }
.btn-sm { height: 36px; padding: 0 14px; }
.btn-primary { background: var(--ae-mostaza); color: var(--ae-azul); font-weight: 700; }
.btn-primary:hover:not(:disabled) { background: var(--ae-mostaza-alt); }
.btn-light { background: var(--ae-blanco); color: var(--ae-azul); }
.btn-quiet { background: transparent; color: var(--text-body); }
.btn-quiet:hover { background: color-mix(in srgb, var(--ae-arena) 55%, transparent); }
.btn-x { background: none; border: 0; padding: 6px; border-radius: var(--radius-sm); color: var(--text-body); display: grid; }
.btn-x:hover { background: color-mix(in srgb, var(--ae-arena) 55%, transparent); }
.link { background: none; border: 0; padding: 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.link:hover { text-decoration-thickness: 2px; }
.link-danger { color: var(--rojo-claro); }
/* botón de ícono, sobre fondo oscuro */
.tbtn { width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; transition: background .15s; }
.tbtn:hover:not(:disabled) { background: var(--hair-soft); }
/* botón de ícono con texto, discreto */
.tool { height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--hair-soft); border-radius: var(--radius-sm); background: transparent; color: inherit; font: 500 12px/1 var(--font-display); letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.tool:hover { background: var(--hair-soft); }
.tool.is-on { background: var(--ae-blanco); color: var(--ae-azul); border-color: var(--ae-blanco); }
.seg { max-width: 100%; overflow-x: auto; display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-sm); background: var(--azul-ink); border: 1px solid var(--hair-soft); }
.seg-btn { min-width: 34px; height: 28px; padding: 0 9px; display: inline-grid; place-items: center; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font: 600 12px/1 var(--font-display); }
.seg-btn:hover { color: var(--ae-blanco); }
.seg-btn.is-on { background: var(--ae-blanco); color: var(--ae-azul); }
.speed { height: 36px; padding: 0 6px; border: 1px solid var(--hair-soft); border-radius: var(--radius-sm); background: transparent; color: inherit; font: 500 12px/1 var(--font-display); }
.speed option { color: var(--ae-negro); }

.tabs { display: flex; gap: 18px; }
.tab { background: none; border: 0; padding: 0 0 10px; font: 500 13px/1 var(--font-display); letter-spacing: .02em; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ae-blanco); }
.tab.is-on { color: var(--ae-blanco); border-bottom-color: var(--ae-mostaza); }
.tabs-light { border-bottom: 1px solid var(--ae-arena); }
.tabs-light .tab { color: var(--text-body); font-size: 13px; padding-bottom: 12px; }
.tabs-light .tab:hover, .tabs-light .tab.is-on { color: var(--ae-azul); }
.tabs-light .tab.is-on { border-bottom-color: var(--ae-azul); font-weight: 600; }

.tag { font: 600 11px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: var(--radius-sm); white-space: nowrap; }
.tag-cliente { background: color-mix(in srgb, var(--ae-rojo) 22%, transparent); color: var(--rojo-claro); }
.tag-interna { background: color-mix(in srgb, var(--ae-mostaza) 18%, transparent); color: var(--ae-mostaza); }
.tag-done { background: color-mix(in srgb, var(--ae-oro) 22%, transparent); color: var(--ae-oro-claro); }
.tag-draft { border: 1px dashed var(--ae-mostaza); color: var(--ae-mostaza); }
.status { font: 600 11px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px 7px 22px; border-radius: var(--pill); white-space: nowrap; position: relative; background: var(--hair-soft); color: var(--ae-blanco); }
.status::before { content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: currentColor; }
.status-interna::before { background: var(--ae-mostaza); }
.status-cliente::before { background: var(--ae-rojo); }
.status-cerrada::before { background: var(--ae-gris); }
.status-solid { background: color-mix(in srgb, var(--azul-deep) 88%, transparent); }
.note { font-size: 13.5px; line-height: 1.4; padding: 9px 20px; display: flex; align-items: center; gap: 10px; background: var(--azul-soft); }
.note .ico { color: var(--ae-oro-claro); }
.note-alert { background: color-mix(in srgb, var(--ae-rojo) 20%, var(--ae-azul)); }
.note-alert .ico { color: var(--rojo-claro); }
.dlg .note, .gate .note { border-radius: var(--radius-sm); padding: 10px 12px; background: color-mix(in srgb, var(--ae-beige) 70%, transparent); color: var(--ae-negro); }
.dlg .note-alert, .gate .note-alert { background: color-mix(in srgb, var(--ae-rojo) 12%, transparent); }
.empty { padding: 40px 24px; display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--muted); font-size: 14.5px; }
.empty .ico { opacity: .6; margin-bottom: 4px; }
.empty .hint { color: var(--muted); font-size: 14px; }
.empty-light { color: var(--ae-negro); padding: 72px 24px; }
.empty-light .hint { color: var(--text-body); opacity: 1; margin-bottom: 12px; }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--font-display); background: var(--ae-mostaza); color: var(--ae-azul); }
.avatar-sm { width: 28px; height: 28px; font-size: 10px; }

/* ---------- formularios y diálogos ---------- */
.form { display: grid; gap: 16px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field .cap { color: var(--text-body); }
.field input, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--ae-arena); border-radius: var(--radius-sm); background: #fff; color: var(--ae-negro); transition: border-color .15s; }
.field input:focus, .field input:focus-visible { outline: none; border-color: var(--ae-azul); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ae-azul) 14%, transparent); }
.field select { width: 100%; min-height: 44px; padding: 11px 36px 11px 12px; border: 1px solid var(--ae-arena); border-radius: var(--radius-sm); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232a364a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--ae-negro); appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select:focus, .field select:focus-visible { outline: none; border-color: var(--ae-azul); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ae-azul) 14%, transparent); }
.stack { display: grid; gap: 8px; }
.stack [hidden] { display: none; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid var(--ae-arena); border-radius: var(--radius-sm); background: #fff; font-size: 15px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ae-azul); box-shadow: inset 0 0 0 1px var(--ae-azul); }
.choice input { accent-color: var(--ae-azul); margin: 0; }
.dlg { border: 0; border-radius: var(--radius-md); padding: 26px; width: min(460px, calc(100vw - 32px)); color: var(--ae-negro); background: var(--ae-blanco); box-shadow: 0 0 0 1px var(--ae-arena); }
.dlg-wide { width: min(560px, calc(100vw - 32px)); }
.dlg::backdrop { background: color-mix(in srgb, var(--azul-deep) 78%, transparent); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.dlg-head h2 { font-size: 22px; }
.dlg-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.dlg-foot .hint { flex: 1 1 180px; }
#toasts { pointer-events: none; position: fixed; left: 50%; top: 74px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; z-index: 100; width: min(460px, calc(100vw - 24px)); }
.toast { padding: 11px 16px 11px 14px; border-radius: var(--radius-sm); background: var(--ae-blanco); color: var(--ae-azul); font-size: 14px; border-left: 4px solid var(--ae-mostaza); box-shadow: 0 0 0 1px var(--ae-arena); animation: rise .25s var(--ease); }
.toast-error { border-left-color: var(--ae-rojo); }
@keyframes rise { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- entrada ---------- */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--ae-azul); }
.gate-card { width: min(420px, 100%); display: grid; gap: 14px; padding: 36px; border-radius: var(--radius-md); background: var(--ae-blanco); }
.gate-card h1 { font-size: 29px; }
.gate-card > p:not(.cap):not(.note) { color: var(--text-body); }
.gate-card > .cap, .card-body .cap { color: var(--ae-azul); display: flex; align-items: center; gap: 7px; }
.gate-card > .cap::before, .card-body .cap::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ae-rojo); flex: none; }
.gate-card .logo { margin-bottom: 10px; }
.gate-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 0; place-items: stretch; }
.gate-brand { display: grid; align-content: center; gap: 22px; padding: 8vw; color: var(--ae-blanco); border-right: 1px solid var(--hair); }
.gate-brand .logo { background: var(--ae-blanco); width: 132px; margin-bottom: 4vh; }
.gate-brand .statement { font-size: clamp(34px, 4.4vw, 60px); max-width: 12ch; text-wrap: balance; background: url(/underline.svg) left 100% / 62% auto no-repeat; padding-bottom: .32em; }
.gate-sub { color: var(--muted); max-width: 40ch; font-size: 17px; }
.gate-form { display: grid; place-items: center; padding: 24px; }
.form-dev { margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--ae-arena); }

/* ---------- panel ---------- */
.p-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 32px; background: var(--ae-azul); color: var(--ae-blanco); }
.p-head .logo { background: var(--ae-blanco); }
.p-user { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.p-user .tool { margin-left: 8px; }
.p-hero { background: var(--ae-azul); color: var(--ae-blanco); padding: 36px 32px 44px; border-top: 1px solid var(--hair); }
.p-hero-in { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.p-hero .cap { color: var(--ae-mostaza); }
.p-hero h1 { font-size: clamp(32px, 4vw, 46px); margin-top: 10px; }
.p-hero-side { display: flex; align-items: center; gap: 28px; }
.stats { display: flex; gap: 28px; }
.stat { display: grid; gap: 4px; }
.stat strong { font: 700 30px/1 var(--font-display); }
.stat .cap { color: var(--muted); }
.p-main { max-width: 1244px; margin: 0 auto; padding: 28px 32px 80px; display: grid; gap: 24px; }
.p-filters { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--ae-arena); }
.p-filters .tabs-light { border-bottom: 0; }
.client-sel { height: 38px; margin-bottom: 8px; padding: 0 10px; border: 1px solid var(--ae-arena); border-radius: var(--radius-sm); background: #fff; color: var(--ae-negro); font-size: 14px; max-width: 100%; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.cards-empty { display: block; }
.card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--ae-arena); text-decoration: none; color: inherit; transition: box-shadow .18s var(--ease), transform .18s var(--ease); }
.card:hover { box-shadow: 0 0 0 1px var(--ae-azul); transform: translateY(-2px); }
.card-thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: var(--ae-azul); }
.card-thumb::before { content: ""; position: absolute; left: 50%; bottom: -1px; height: 84%; aspect-ratio: 9 / 16; transform: translateX(-50%); border: 1px solid var(--hair); border-bottom: 0; border-radius: 999px 999px 0 0; }
.card-thumb-horizontal::before { aspect-ratio: 16 / 10; height: 70%; }
.card-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-mark { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--ae-mostaza); border: 1px solid var(--hair); background: var(--azul-ink); padding-left: 3px; }
.card-thumb .status { position: absolute; left: 10px; top: 10px; z-index: 1; }
.card-body { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
.card-body strong { font: 700 18px/1.25 var(--font-display); }
.card-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; font-size: 13px; color: var(--text-body); }
.card-meta span, .card-flag { display: inline-flex; align-items: center; gap: 6px; }
.card-flag { font-size: 13px; padding: 7px 9px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ae-beige) 70%, transparent); margin-top: 4px; }
.card-flag.is-alert { background: color-mix(in srgb, var(--ae-rojo) 10%, transparent); color: var(--ae-negro); box-shadow: inset 3px 0 0 var(--ae-rojo); }
.card-flag.is-alert .ico { color: var(--ae-rojo); }
.card-new { position: absolute; left: 10px; bottom: 10px; z-index: 1; font: 700 11px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; padding: 7px 9px; border-radius: var(--pill); background: var(--ae-mostaza); color: var(--ae-azul); }
.note-new { background: color-mix(in srgb, var(--ae-mostaza) 16%, var(--ae-azul)); box-shadow: inset 3px 0 0 var(--ae-mostaza); }
.note-new .ico { color: var(--ae-mostaza); }
.note .link { margin-left: auto; white-space: nowrap; }
.card-by { font-size: 13px; color: var(--text-body); margin-top: 6px; }

/* ---------- revisión ---------- */
.rv { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto auto minmax(0, 1fr); background: var(--ae-azul); color: var(--ae-blanco); }
.rv-head { display: flex; align-items: center; gap: 12px 20px; padding: 10px 16px; border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.rv-head .logo { background: var(--ae-blanco); }
.rv-id { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 220px; }
.rv-title { min-width: 0; display: grid; gap: 3px; }
.rv-title .cap { color: var(--ae-mostaza); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-title h1 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-versions, .rv-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-actions { margin-left: auto; }
.pending { font-size: 13px; color: var(--muted); }
.rv-banner { display: grid; }
.rv-banner .note { border-bottom: 1px solid var(--hair-soft); }
.rv-main { display: grid; grid-template-columns: minmax(0, 1fr) 400px; min-height: 0; }

.stage { display: grid; grid-template-rows: minmax(0, 1fr); grid-auto-rows: auto; min-height: 0; min-width: 0; background: var(--azul-deep); }
.stage-view { position: relative; min-height: 0; display: grid; }
.frames { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 22px 22px 8px; min-height: 0; }
.frame { position: relative; height: 100%; max-width: 100%; background: #000; overflow: hidden; border-radius: var(--radius-md); box-shadow: 0 0 0 1px var(--hair); }
.frame-vertical { aspect-ratio: 9 / 16; }
.frame-horizontal { aspect-ratio: 16 / 9; height: auto; width: 100%; max-height: 100%; }
.frames-compare .frame-horizontal { width: calc(50% - 8px); }
.frame .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; pointer-events: none; }
.frame .media-yt { top: -100%; height: 300%; }
.frame-tag { position: absolute; top: 10px; left: 10px; z-index: 3; font: 700 11px/1 var(--font-display); letter-spacing: .08em; background: var(--ae-mostaza); color: var(--ae-azul); padding: 5px 7px; border-radius: var(--radius-sm); }
.draw-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; cursor: pointer; touch-action: pan-y; }
.draw-layer.drawing { touch-action: none; cursor: crosshair; box-shadow: inset 0 0 0 2px var(--ae-mostaza); border-radius: var(--radius-md); }
.drawbar { margin: 4px 22px 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; padding: 6px 8px; border-radius: var(--radius-md); background: var(--ae-azul); box-shadow: 0 0 0 1px var(--ae-mostaza); }
.drawbar .seg-btn { width: 34px; padding: 0; }
.swatches { display: flex; gap: 6px; padding: 0 4px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; box-shadow: 0 0 0 1px var(--ae-oro); }
.swatch.is-on { box-shadow: 0 0 0 2px var(--ae-azul), 0 0 0 4px var(--ae-blanco); }
.stage-error { margin: 0 22px 8px; padding: 10px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ae-rojo) 20%, var(--ae-azul)); box-shadow: inset 3px 0 0 var(--ae-rojo); color: var(--ae-blanco); font-size: 14px; }

.transport { margin: 8px 22px 18px; padding: 10px 14px 10px; border-radius: var(--radius-md); background: var(--ae-azul); box-shadow: 0 0 0 1px var(--hair); display: grid; gap: 4px; }
.track { position: relative; height: 28px; cursor: pointer; touch-action: none; }
.track:focus-visible { outline: none; }
.track:focus-visible .track-fill::after { box-shadow: 0 0 0 3px var(--ae-rojo); }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 4px; background: var(--hair-soft); border-radius: 2px; }
.track-fill { position: absolute; left: 0; top: 12px; height: 4px; background: var(--ae-blanco); border-radius: 2px; pointer-events: none; }
.track-fill::after { content: ""; position: absolute; right: -7px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--ae-blanco); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ae-blanco) 22%, transparent); }
.track-markers { position: absolute; inset: 0; pointer-events: none; }
.marker { position: absolute; top: 7px; width: 14px; height: 14px; margin-left: -7px; padding: 0; border: 2px solid var(--ae-azul); border-radius: 50%; pointer-events: auto; transition: transform .12s var(--ease); z-index: 1; }
.marker:hover { transform: scale(1.35); }
.marker::after { content: ""; position: absolute; inset: -9px; }
.marker-cliente { background: var(--ae-rojo); border-radius: 3px; transform: rotate(45deg); }
.marker-cliente:hover { transform: rotate(45deg) scale(1.35); }
.marker-interna { background: var(--ae-mostaza); }
.marker-done { background: var(--ae-azul); border-color: var(--ae-oro); }
.transport-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.t-group { display: flex; align-items: center; gap: 6px; }
.play { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--ae-mostaza); color: var(--ae-azul); transition: background .15s; }
.play:hover { background: var(--ae-mostaza-alt); }
.play .ico { fill: currentColor; }
.time { margin-left: 10px; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); white-space: nowrap; }
.time strong { color: var(--ae-blanco); font: 600 15px/1 var(--font-display); }
.keys { position: relative; }
.keys summary { list-style: none; cursor: pointer; }
.keys summary::-webkit-details-marker { display: none; }
.keys-pop { position: absolute; right: 0; bottom: 44px; z-index: 6; display: grid; gap: 8px; padding: 14px; width: 240px; border-radius: var(--radius-md); background: var(--ae-azul); box-shadow: 0 0 0 1px var(--hair), 0 10px 30px color-mix(in srgb, #000 40%, transparent); font-size: 13px; }
.keys-pop div { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); }
kbd { font: 600 11px/1 var(--font-display); padding: 5px 7px; border-radius: var(--radius-sm); background: var(--hair-soft); color: var(--ae-blanco); }

.side { display: grid; grid-template-rows: auto minmax(0, 1fr); grid-auto-rows: auto; min-height: 0; border-left: 1px solid var(--hair); }
.side-head { padding: 18px 20px 0; display: grid; gap: 14px; border-bottom: 1px solid var(--hair-soft); }
.side-head h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.count { font: 600 11px/1 var(--font-display); padding: 4px 7px; border-radius: var(--pill); background: var(--hair-soft); color: var(--muted); }
.count:empty { display: none; }
.c-list { overflow-y: auto; padding: 8px; display: grid; gap: 2px; align-content: start; scrollbar-width: thin; scrollbar-color: var(--azul-softer) transparent; }
.c-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius-md); cursor: pointer; transition: background .15s; position: relative; }
.c-item:hover { background: var(--hair-soft); }
.c-item.is-now { background: var(--azul-soft); }
.c-item.is-now::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--ae-mostaza); }
.c-cliente .avatar { background: var(--ae-beige); color: var(--ae-azul); box-shadow: inset 0 0 0 2px var(--ae-rojo); }
.c-item.is-done .avatar { background: transparent; color: var(--ae-oro-claro); box-shadow: inset 0 0 0 1px var(--ae-oro); }
.c-item.is-done .c-text { color: var(--muted); }
.c-item.is-done.is-now .c-text { color: var(--ae-blanco); opacity: .8; }
.c-item.is-confirm .c-acts { opacity: 1; }
.c-confirm { color: var(--muted); }
.c-body { min-width: 0; flex: 1; display: grid; gap: 6px; }
.c-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.c-author { font-weight: 700; font-size: 14px; }
.c-time { margin-left: auto; font: 600 11px/1 var(--font-display); font-variant-numeric: tabular-nums; background: transparent; color: var(--ae-mostaza); border: 1px solid color-mix(in srgb, var(--ae-mostaza) 45%, transparent); border-radius: var(--pill); padding: 5px 9px; transition: background .15s, color .15s; }
.c-time:hover { background: var(--ae-mostaza); color: var(--ae-azul); }
.c-text { font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.c-draw { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ae-oro-claro); }
.c-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.c-acts { display: flex; gap: 12px; color: var(--ae-blanco); opacity: 0; transition: opacity .15s; }
.c-item:hover .c-acts, .c-item:focus-within .c-acts, .c-item.is-now .c-acts { opacity: 1; }
@media (hover: none) { .c-acts { opacity: 1; } }

.composer { padding: 14px 16px 16px; border-top: 1px solid var(--hair-soft); display: grid; gap: 8px; }
.composer-box { border-radius: var(--radius-md); background: var(--azul-ink); box-shadow: 0 0 0 1px var(--hair-soft); transition: box-shadow .15s; }
.composer-box:focus-within { box-shadow: 0 0 0 1px var(--ae-mostaza); }
.composer-at { display: flex; align-items: center; gap: 6px; padding: 10px 12px 0; font-size: 12.5px; color: var(--muted); }
.composer-at strong { color: var(--ae-mostaza); font: 600 12px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.composer textarea { display: block; border: 0; background: transparent; color: var(--ae-blanco); padding: 8px 12px; resize: none; font-size: 15px; }
.composer textarea::placeholder { color: var(--muted); }
.composer textarea:focus { outline: none; }
.composer-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px; }
.composer .tool { border-color: transparent; color: var(--muted); }
.composer .tool:hover { color: var(--ae-blanco); }
.composer .tool.is-on { background: color-mix(in srgb, var(--ae-mostaza) 18%, transparent); color: var(--ae-mostaza); border-color: transparent; }
.composer .hint { color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 2px; font-size: 12.5px; }
.composer .hint strong { color: var(--ae-blanco); }
.composer-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); padding: 6px 2px; }
.composer-note .ico { margin-top: 2px; }

/* ---------- v2: varios videos por link, respuestas, tramos, punto, copiar ---------- */
.pager { display: flex; align-items: center; gap: 4px; min-width: 0; }
.pager-sel { max-width: 300px; min-width: 0; text-overflow: ellipsis; }
.side-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.side-title .tool { height: 32px; }
.tag-eremo { background: color-mix(in srgb, var(--ae-blanco) 16%, transparent); color: var(--ae-blanco); }
.replies { display: grid; gap: 10px; margin-top: 4px; padding-left: 12px; border-left: 2px solid var(--hair); }
.reply { display: grid; gap: 4px; }
.reply .c-text { font-size: 14.5px; }
.reply .c-acts { opacity: 1; }
.reply-form { display: grid; gap: 8px; margin-top: 4px; }
.reply-form textarea { border: 0; border-radius: var(--radius-sm); background: var(--azul-ink); color: var(--ae-blanco); box-shadow: 0 0 0 1px var(--hair-soft); padding: 9px 11px; font-size: 14.5px; resize: none; }
.reply-form textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--ae-mostaza); }
.reply-form .hint { color: var(--ae-mostaza); display: flex; align-items: center; gap: 6px; }
.reply-bar { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.track-range { position: absolute; top: 9px; height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--ae-mostaza) 55%, transparent); pointer-events: none; z-index: 0; min-width: 3px; }
.marker-span { position: absolute; top: 20px; height: 3px; border-radius: 2px; pointer-events: none; }
.marker-span-cliente { background: var(--ae-rojo); }
.marker-span-interna { background: var(--ae-mostaza); }
.marker-span-done { background: var(--ae-oro); }
.composer-at { flex-wrap: wrap; row-gap: 4px; column-gap: 10px; }
.composer-at .link { font-size: 12.5px; color: var(--ae-blanco); }
.composer-at .link-strong { color: var(--ae-mostaza); font-weight: 700; }
.composer-pin { color: var(--ae-mostaza); }
.composer .hint-tip { opacity: .75; }
.pickbar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 32px; background: var(--ae-azul); color: var(--ae-blanco); border-top: 1px solid var(--hair); font-size: 15px; }
.pickbar .btn-quiet { color: var(--muted); }
.card-wrap { position: relative; display: grid; }
.card-pick { position: absolute; right: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--azul-deep) 88%, transparent); color: var(--ae-blanco); font: 500 12px/1 var(--font-display); cursor: pointer; }
.card-pick input { accent-color: var(--ae-mostaza); margin: 0; width: 15px; height: 15px; }
.card.is-picked { box-shadow: 0 0 0 2px var(--ae-mostaza); }
.picklist { margin: 0; padding-left: 20px; display: grid; gap: 2px; font-weight: 700; }

/* instrucciones para el cliente y aviso de pendientes */
.steps { margin: 0; padding: 12px 20px 12px 44px; display: grid; gap: 2px; font-size: 15px; line-height: 1.45; background: var(--azul-soft); border-bottom: 1px solid var(--hair-soft); }
.steps li::marker { color: var(--ae-mostaza); font: 700 13px var(--font-display); }
.pendbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; font-size: 14px; background: color-mix(in srgb, var(--ae-mostaza) 16%, var(--ae-azul)); box-shadow: inset 3px 0 0 var(--ae-mostaza); }
.pendbar .link { color: var(--ae-mostaza); font-weight: 700; white-space: nowrap; }
.tbtn-text { width: auto; min-width: 44px; padding: 0 8px; font: 600 12px/1 var(--font-display); }
.rv-id .status { flex: none; }

@media (max-width: 960px) {
  .rv { height: auto; min-height: 100dvh; }
  .rv-main { grid-template-columns: 1fr; }
  .stage-view { height: 52vh; }
  .stage-view:has(.frame-horizontal) { height: auto; }
  .frames-compare { flex-direction: column; }
  .frames-compare .frame-horizontal { width: 100%; }
  /* el cuadro de comentarios queda pegado al video, antes de la lista */
  .side { display: flex; flex-direction: column; border-left: 0; border-top: 1px solid var(--hair); }
  .composer { order: -2; border-top: 0; border-bottom: 1px solid var(--hair-soft); }
  .pendbar { order: -1; position: sticky; bottom: 0; z-index: 4; }
  .c-list { max-height: none; overflow: visible; }
  .keys { display: none; }
  .gate-split { grid-template-columns: 1fr; }
  .gate-brand { padding: 40px 28px; border-right: 0; }
  .form-2 { grid-template-columns: 1fr; }
  .p-head, .p-hero, .p-main { padding-left: 20px; padding-right: 20px; }
}
/* objetivos táctiles de 44px en celular y pantallas táctiles */
@media (max-width: 960px), (pointer: coarse) {
  .tbtn, .tool, .btn-sm, .speed, .side-title .tool { height: 44px; min-width: 44px; }
  .pager-sel { max-width: 46vw; }
  .tool-compare { display: none; }
  .seg-btn { height: 38px; min-width: 44px; }
  .swatch { width: 30px; height: 30px; }
  .swatches { gap: 12px; }
  .c-time { padding: 10px 12px; }
  .c-acts { gap: 20px; opacity: 1; }
  .c-acts .link, .composer .link, .pendbar .link, .note .link { padding: 12px 6px; }
  .btn-x { padding: 13px; }
  .marker::after { inset: -15px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.form-2 { align-items: start; }
.field .choice input { width: auto; padding: 0; flex: none; }

/* --- revisión completa del 16/11/2026 --- */
.btn-danger { background: var(--ae-rojo); color: var(--ae-blanco); }
.btn-danger:hover { background: color-mix(in srgb, var(--ae-rojo) 88%, #000); }
/* menú "Más" de la cabecera */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; gap: 2px; padding: 6px; min-width: 240px; border-radius: var(--radius-md); background: var(--ae-azul); box-shadow: 0 0 0 1px var(--hair), 0 10px 30px color-mix(in srgb, #000 40%, transparent); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ae-blanco); font-size: 14px; text-align: left; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--azul-soft); }
.menu-item .ico { color: var(--ae-oro-claro); flex: none; }
.menu-danger { color: var(--rojo-claro); margin-top: 4px; box-shadow: 0 -1px 0 var(--hair-soft); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.menu-danger .ico { color: var(--rojo-claro); }
/* tarjeta del panel: hasta cuándo vale el link */
.card-link { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-body); margin-top: 4px; }
.card-link-off { color: var(--ae-negro); }
.card-link-off .ico { color: var(--ae-rojo); }
/* los marcadores de comentarios cuelgan debajo de la línea, para no taparse con el cursor */
.track { height: 36px; }
.marker { top: 19px; }
.marker-span { top: 25px; }
.rv-banner .note strong { font-weight: 700; }
.rv-banner .note span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 960px) {
  /* el aviso sale abajo: arriba tapaba el botón de enviar y el video */
  #toasts { top: auto; bottom: 96px; }
  /* cabecera: el título ocupa su propio renglón y se lee entero */
  .rv-head { padding: 8px 12px; gap: 8px 12px; }
  .rv-id { flex: 1 1 100%; flex-wrap: wrap; }
  .rv-title { flex: 1 1 0; min-width: 60%; }
  .rv-title h1 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; }
  .rv-head .logo-sm { width: 64px; }
  .steps { font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
  .menu-pop { right: auto; left: 0; }
  .menu-item { min-height: 44px; }
}
@media (max-width: 960px) {
  .p-head { flex-wrap: wrap; gap: 8px; }
  .p-user { flex-wrap: wrap; justify-content: flex-end; }
}
