/* ============================================================================================================
   «Calm light» (30-11-2026): el aspecto del portal de Claudia — azul marino y cian de BWT, lienzo claro, tarjetas
   blancas, Inter y menú lateral con la persona al pie. La paleta Kodak queda para vídeos, catálogos y PDF; ya no
   es el color de la interfaz. Se carga después de app.css y manda sobre él; --y pasa a ser el tinte de
   «seleccionado». Para volver al aspecto de antes basta quitar el <link> de index.html.
   ============================================================================================================ */
:root { --navy: #0A2A6B; --navy-2: #123a8c; --cyan: #1EA7DC; --link: #0B79A8; --tint: #E7EFFB; --y: #E7EFFB;
        --ink: #0F1B33; --muted: #5B6B85; --line: #E4E9F1; --bg: #F6F8FB; --ok: #067647; --err: #B42318; }
body { font: 15px/1.5 Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea, .btn, .link, .prod, .scene, .seg button, .pager button, .rev-pics figcaption { font-family: inherit !important; }
a { color: var(--link); }
h1 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; } h2 { font-size: 16px; font-weight: 600; } h3 { font-size: 15px; font-weight: 600; }
main { max-width: 1280px; padding: 28px 32px 72px; }
.card { border-radius: 16px; padding: 22px 24px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(15, 27, 51, .04); }
.muted { color: var(--muted); }

/* --- estructura: fuera, los logotipos centrados sobre la tarjeta de acceso; dentro, menú lateral ------------- */
.top { border-bottom: 0; background: transparent; justify-content: center; padding: 34px 20px 0; gap: 14px; }
.logos { display: flex; align-items: center; gap: 12px; }
.logo.bwt { height: 26px; margin: 0; } .logo.strand { height: 24px; padding: 0 0 0 12px; margin: 0; border-right: 0; border-left: 1px solid var(--line); }
.brand b { font-weight: 600; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.foot { display: flex; align-items: center; gap: 10px; } .who, #logout { display: none; }
.uilang, header nav[hidden] + .uilang { margin: 0; }
body.in { padding-left: 252px; }
body.in .top { position: fixed; z-index: 10; inset: 0 auto 0 0; width: 252px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start;
               gap: 4px; padding: 24px 14px 14px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
body.in .logos { padding: 0 10px; } body.in .brand { padding: 6px 10px 18px; }
body.in nav { margin: 0; flex-direction: column; align-items: stretch; gap: 2px; }
nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; font-weight: 500; font-size: 15px; color: #33415c; }
nav a::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
nav a:hover { background: #F1F5FA; } nav a.on { background: var(--tint); color: var(--navy); font-weight: 600; }
nav a[href="#create"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M10 9.5v5l4.5-2.5z'/%3E%3C/svg%3E"); }
nav a[href="#campaigns"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10 5 7.5 4.5 4 4.5v13c3.5 0 6 .5 8 2 2-1.5 4.5-2 8-2v-13c-3.5 0-6 .5-8 2zM12 6.5v13'/%3E%3C/svg%3E"); }
nav a[href="#material"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.7'/%3E%3Cpath d='M4 17l5-4.5 3.5 3 3-2.5 4.5 4'/%3E%3C/svg%3E"); }
nav a[href="#brands"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v4h3l7 4V6l-7 4zM17.5 9.5a4 4 0 010 5M8 14.5V19'/%3E%3C/svg%3E"); }
nav a[href="#admin"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8.5' r='3.2'/%3E%3Cpath d='M3 19c.5-3.2 3-5 6-5s5.5 1.8 6 5M16 5.6a3.2 3.2 0 010 5.8M18 14.3c1.7.7 2.7 2.3 3 4.7'/%3E%3C/svg%3E"); }
body.in .foot { margin-top: auto; flex-direction: column; align-items: stretch; gap: 10px; padding-top: 14px; }
body.in .who { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.av { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--cyan); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.who-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; } .who-t b { font-weight: 600; font-size: 14px; } .who-t small { color: var(--muted); font-size: 12.5px; }
.who-t b, .who-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.in #logout { display: inline-block; font-size: 13px; color: var(--muted); text-decoration: none; padding: 6px 8px; } body.in #logout:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 900px) {
  body.in { padding-left: 0; }
  body.in .top { position: static; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  body.in .brand { display: none; } body.in nav { flex-direction: row; flex-wrap: wrap; order: 3; width: 100%; } nav a { padding: 7px 10px; font-size: 14px; } nav a::before { width: 18px; height: 18px; }
  body.in .foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; padding: 0; } body.in .who { border: 0; padding: 0; } .who-t { display: none; }
  main { padding: 18px 14px 60px; }
}

/* --- piezas -------------------------------------------------------------------------------------------------- */
input, select, textarea { border-color: #D5DCE8; border-radius: 10px; color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(30, 167, 220, .22); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
input[type=checkbox], input[type=radio] { accent-color: var(--navy); }
label { font-weight: 500; }
.btn { background: var(--navy); border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: 14.5px; } .btn:hover { background: var(--navy-2); }
.btn.wide { background: var(--navy); color: #fff; font-size: 15.5px; padding: 12px 18px; } .btn.wide:hover { background: var(--navy-2); }
.btn.dark { background: var(--navy); } .btn.small { border-radius: 8px; }
.btn.small.pdf, .cat-head .btn { background: var(--navy); color: #fff; }
.cat-head #cat-pdf-light, .cat-head #ws-pdf-light { background: #fff; color: var(--navy); border: 1px solid #C9D5EA; }
.btn.ghost, .btn.wide.ghost { background: #fff; color: var(--navy); border: 1px solid #C9D5EA; } .btn.ghost:hover { background: #F1F5FA; }
.link { color: var(--link); font-weight: 500; text-decoration: none; } .link:hover { text-decoration: underline; } .bactions .link.danger, .link.danger { color: var(--err); }
.n { background: var(--tint); color: var(--navy); font-weight: 600; }
.seg { border-color: var(--line); background: #fff; padding: 3px; gap: 2px; border-radius: 12px; }
.seg button { border-radius: 9px; font-weight: 500; color: #33415c; padding: 8px 14px; } .seg.small button { padding: 5px 10px; }
.seg button:hover { background: #F1F5FA; }
.seg button.on, .pager button.on, #lib-cats button.rev { background: var(--tint); color: var(--navy); font-weight: 600; } .pager button.on { border-color: #C9D5EA; }
.seg.tpls { border: 0; padding: 0; gap: 8px; background: transparent; }
.seg.tpls button { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; } .seg.tpls button.on { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(30, 167, 220, .18); }
.seg.brandsel button { font-size: 15px; font-weight: 600; padding: 9px 20px; min-width: 130px; }
.subnav { border: 0; background: transparent; padding: 0; gap: 4px; border-bottom: 1px solid var(--line); border-radius: 0; display: flex; margin: 0 0 20px; }
.subnav a { padding: 9px 14px; font-weight: 500; color: var(--muted); border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--ink); } .subnav a.on { background: transparent; color: var(--navy); font-weight: 600; border-bottom-color: var(--navy); }
.prod, .scene { border-width: 1px; border-radius: 12px; font-weight: 500; }
.prod.on, .scene.on, .feat.on, .film-chips button.on, .ce-images button.on { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(30, 167, 220, .22); }
.feat.on { background: #F4F9FE; } .feat.on .k { background: var(--navy); color: #fff; border-color: var(--navy); }
.opts label:has(input:checked) { background: var(--tint); border-color: #B9CDEE; color: var(--navy); }
.tprod .ord { background: var(--navy); } .scene .mine { background: var(--navy); color: #fff; }
.callout { background: #EEF5FD; border-left-color: var(--cyan); border-radius: 10px; } #ws-micro-how.ok { background: #ECFDF3; border-left-color: #079455; }
.st { font-weight: 600; background: #EEF2F7; color: #475467; } .st.done { background: #ECFDF3; color: #067647; } .st.error { background: #FEF3F2; color: #B42318; } .st.rendering, .st.queued { background: #FFFAEB; color: #B54708; }
th { font-weight: 600; color: var(--muted); } .cap { background: var(--bg); border-radius: 10px; }
#toast { background: var(--ink); border-radius: 12px; font-weight: 500; box-shadow: 0 8px 24px rgba(15, 27, 51, .25); }
.blogo { background: var(--tint); color: var(--navy); font-weight: 700; } .bactions { background: #FAFBFD; }
.brandcard, .mat, .cat-cover, .cat-page, .lib-item, .rev-item, .xp-item, .xp-scene { border-radius: 14px; }
.guide, .xp-ai { background: #FAFBFD; } .xp-say textarea { background: #F7FAFE; }
.xp-sh { background: var(--ink); } .xp-sh b { background: var(--tint); color: var(--navy); } .xp-sh .link { color: #9CD8F2; } .xp-pick-grid button:hover { outline-color: var(--cyan); }
.ct-range i { background: var(--cyan); } .ct-range input::-webkit-slider-thumb { background: var(--navy); } .ct-range input::-moz-range-thumb { background: var(--navy); } #lv-focus { border-color: var(--cyan); }
#ce-flip.on { background: var(--navy); } .ce-refill { background: #F4F9FE; border-color: #B9CDEE; }
.modal { background: rgba(15, 27, 51, .55); } .modal-box { border-radius: 16px; }
.frame { border-radius: 12px; background: #0F1B33; } .frame p { color: #9fb0cc; }
.narrow { margin-top: 26px; padding: 28px 30px; } .narrow form .btn { width: 100%; margin-top: 8px; }
@media (max-width: 900px) { .subnav { overflow-x: auto; flex-wrap: nowrap; } .subnav a { white-space: nowrap; } }
.cc-act .link, .bactions .link { padding: 4px 0; }

/* --- «Crear vídeo» como asistente por pasos (wizard.js) ------------------------------------------------------ */
.wz .editor { grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; }
.wz .card.wz-off { display: none; }
.wz-bar { display: flex; gap: 6px; margin: 0 0 18px; overflow-x: auto; padding: 2px; }
.wz-bar button { display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: max-content; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
.wz-bar button i { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #EEF2F7; color: #475467; font-style: normal; font-size: 12.5px; font-weight: 600; }
.wz-bar button:hover { background: #F8FAFC; color: var(--ink); }
.wz-bar button.done { color: var(--ink); } .wz-bar button.done i { background: #ECFDF3; color: #067647; }
.wz-bar button.on { border-color: var(--navy); color: var(--navy); font-weight: 600; box-shadow: 0 0 0 1px var(--navy) inset; } .wz-bar button.on i { background: var(--navy); color: #fff; }
.wz .steps > .card, .wz .wz-rev > .card { min-height: 300px; margin-bottom: 14px; }
.wz .wz-rev { display: contents; }
.wz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wz-sum { display: grid; margin: 14px 0 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wz-sum button { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; font-size: 14.5px; cursor: pointer; color: var(--ink); }
.wz-sum button:last-child { border-bottom: 0; } .wz-sum button:hover { background: #F8FAFC; } .wz-sum b { font-weight: 600; } .wz-sum .empty span { color: var(--muted); }
.wz-go .btn.wide { max-width: 360px; margin-top: 0; }
.wz .scenes.wide { max-height: 520px; }
@media (max-width: 900px) { .wz .editor { grid-template-columns: 1fr; } .wz-bar button span { display: none; } .wz-bar button.on span { display: inline; } .wz-bar button { flex: 0 0 auto; } .wz-bar button.on { flex: 1 1 auto; } .wz-sum button { grid-template-columns: 1fr; gap: 2px; } }
.wz:not(.wz-last) .preview #go, .wz:not(.wz-last) .preview #go-batch, .wz:not(.wz-last) .preview #go + .muted, .wz:not(.wz-last) .preview #go-batch + .muted { display: none; }
.wz-go { margin: 0; }
.wz .frame img { max-height: calc(100vh - 340px); }
.st { white-space: nowrap; } .ws-plain input[type=checkbox], .ws-nw input[type=checkbox] { width: auto; margin: 0; flex: none; } .ws-plain { white-space: nowrap; }
