/* Contenido (23-oct-2026, prototipo v4 aprobado por Gaby): una columna de lectura, un solo botón primario a la vista, una
   superficie suave para lo activo, títulos en minúscula, movimiento mínimo. Todo con prefijo k- (no choca con .card, .bar…). */
.ct3 { --s: 56px; --surf: color-mix(in srgb, var(--ink) 4%, var(--bg)); max-width: 640px; margin: 0 auto; padding: 12px 0 80px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.ct3 .k-faint { color: var(--ink-3); font-size: 13.5px; font-weight: 400; }
.ct3 a { color: inherit; }
.ct3 ::selection { background: color-mix(in srgb, var(--ink) 12%, transparent); }

.k-tabs { display: flex; gap: 28px; margin: 4px 0 var(--s); font-size: 15px; }
.k-tabs a { color: var(--ink-3); padding: 8px 0; border-bottom: 2px solid transparent; text-decoration: none; transition: color .15s; }
.k-tabs a:hover { color: var(--ink-2); } .k-tabs a.k-on { color: var(--ink); border-color: var(--ink); }
.k-tabs a span { font-size: 12px; color: var(--ink-3); margin-left: 2px; vertical-align: 2px; }
.k-tabs a.k-tmp { margin-left: auto; color: var(--ink-3); }

.k-hd { margin-bottom: var(--s); }
.k-hd h1 { font: 500 28px/1.15 var(--font); letter-spacing: -.025em; margin: 0 0 8px; }
.k-hd p { margin: 0; color: var(--ink-3); font-size: 14px; }
.k-sec { margin-bottom: var(--s); }
.k-sec h2 { font: 500 14px/1.3 var(--font); color: var(--ink-2); margin: 0 0 16px; display: flex; gap: 10px; align-items: baseline; }
.k-sec h2 .k-faint { font-size: 13px; }

/* la pila: lo activo sobre una superficie suave */
.k-stack { position: relative; }
.k-dots { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; min-height: 20px; flex-wrap: wrap; }
.k-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-card); transition: background .2s; } .k-dots i.k-on { background: var(--ink); } .k-dots i.k-past { background: var(--ink-3); }
.k-dots span { margin-left: 6px; color: var(--ink-3); font-size: 13px; }
.k-card { display: none; grid-template-columns: 1fr; gap: 16px; padding: 22px; background: var(--surf); border-radius: 18px; animation: ct-in .22s ease-out; }
.k-card.k-now { display: grid; }
@keyframes ct-in { from { transform: translateY(6px); } to { transform: none; } }
.k-card-txt { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.k-why { margin: 0 0 4px; color: var(--ink-2); font-size: 14px; }
.k-ed { font: inherit; font-size: 14.5px; line-height: 1.5; color: var(--ink); border: 0; border-bottom: 1px solid transparent; padding: 0 0 6px; background: transparent; width: 100%; resize: none; }
.ct3 .k-ed { border: 0 !important; border-bottom: 1px solid transparent !important; box-shadow: none !important; border-radius: 0; }
.ct3 .k-ed:hover { border-color: var(--line-card) !important; } .ct3 .k-ed:focus { outline: 0; border-color: var(--ink) !important; }
.k-cap { display: flex; flex-direction: column; gap: 4px; }
.k-chk summary { cursor: pointer; color: var(--ink-3); font-size: 13.5px; list-style: none; } .k-chk summary::-webkit-details-marker { display: none; }
.k-chk ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-3); } .k-chk li.k-w { color: #8a5a3c; } .k-chk li.k-x { color: #a33; }
.k-card-f { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 4px; }
.k-card-f .k-msg { margin-right: auto; color: #a33; font-size: 13.5px; }
.k-b { height: 40px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: transform .1s, opacity .15s; }
.k-b:hover { opacity: .92; } .k-b:active { transform: scale(.98); } .k-b[disabled] { opacity: .5; cursor: progress; }
.k-b.k-q { background: transparent; color: var(--ink-3); padding: 0 6px; font-weight: 400; } .k-b.k-q:hover { color: var(--ink); opacity: 1; }
.k-tb { background: none; border: 0; font: inherit; font-size: 14px; color: var(--ink-3); cursor: pointer; padding: 6px 8px; border-radius: 8px; text-decoration: none; }
.k-tb:hover { background: var(--surf); color: var(--ink); } .k-tb.k-on { color: var(--ink); font-weight: 500; }
.k-done { display: none; color: var(--ink-3); padding: 22px; background: var(--surf); border-radius: 18px; } .k-done.k-now { display: block; }
.k-keys { margin: 10px 0 0; color: var(--ink-3); font-size: 12.5px; cursor: help; }
.k-dec-p { margin: 0; font-size: 16px; line-height: 1.5; }

/* grabar */
.k-fmt { margin: 0; }
.k-shots { list-style: none; margin: 0; padding: 0; }
.k-shots li { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line-row); cursor: pointer; transition: background .15s; }
.k-shots li:hover { background: linear-gradient(90deg, var(--surf), transparent); }
.k-shots li em { margin-left: auto; font-style: normal; }
.k-tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-card); flex: none; position: relative; transition: background .15s, border-color .15s; }
.k-shots li:hover .k-tick { border-color: var(--ink-3); }
.k-shots li.k-ok .k-tick { background: var(--ink); border-color: var(--ink); }
.k-shots li.k-ok .k-tick::after { content: ''; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.k-shots li.k-ok span { color: var(--ink-3); }
.k-shots li.k-subiendo .k-tick { border-style: dashed; border-color: var(--ink-3); animation: ct-gira 1s linear infinite; }
@keyframes ct-gira { to { transform: rotate(360deg); } }

/* números */
.k-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: var(--s); }
.k-nums div { display: flex; flex-direction: column; gap: 4px; } .k-nums b { font: 500 30px/1.05 var(--font); letter-spacing: -.03em; } .k-nums span { color: var(--ink-3); font-size: 13px; }
.k-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.k-grid.k-v { grid-template-columns: repeat(4, 1fr); }
.k-t { position: relative; display: block; text-decoration: none; }
.k-t .k-ph { aspect-ratio: 1; border-radius: 6px; } .k-grid.k-v .k-t .k-ph { aspect-ratio: 9/16; }
.k-ph { position: relative; border-radius: 10px; overflow: hidden; display: flex; align-items: flex-end; padding: 8px; color: #fff; font-size: 11px; background: linear-gradient(160deg, #b9b2a6, #5e5850); }
.k-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-ph span { position: relative; background: rgba(0,0,0,.28); border-radius: 5px; padding: 1px 6px; } .k-ph span:empty { display: none; }
.k-t > b { position: absolute; top: 8px; left: 8px; font-size: 11.5px; font-weight: 500; background: rgba(255,255,255,.92); color: #222; border-radius: 999px; padding: 2px 8px; }
.k-t.k-prog .k-ph { opacity: .55; } .k-t.k-prog .k-ph::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px); }
.k-t.k-dim .k-ph { filter: grayscale(1); opacity: .5; }
.k-t.k-sin > b { background: rgba(255,255,255,.7); color: #666; }
.k-prog > b { font-weight: 500; }
.k-t .k-hook { position: absolute; left: 10px; right: 10px; top: 36%; margin: 0; color: #fff; font: 800 11px/1.2 var(--font); text-align: center; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.k-rows { display: flex; flex-direction: column; }
.k-row { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line-row); }
.k-row:last-child { border-bottom: 1px solid var(--line-row); }
.k-row b { font-weight: 500; flex: none; } .k-row .k-tb { margin-left: auto; align-self: center; }
.k-row.k-dim { color: var(--ink-3); } .k-row.k-dim b { font-weight: 400; }
.k-row.k-add input, .ct3 .k-row.k-add input { font: inherit; border: 0 !important; box-shadow: none !important; background: transparent; color: var(--ink); width: 100%; padding: 0; } .k-row.k-add input::placeholder { color: var(--ink-3); } .k-row.k-add input:focus { outline: 0; }
.ct3.k-stopped .k-sec:not(.k-parar) { opacity: .4; pointer-events: none; }
.k-row-acts { margin-left: auto; display: flex; gap: 2px; align-self: center; } .k-row-acts .k-tb { margin-left: 0; }
.ct3 input.k-num { width: 3.2em; font: inherit; font-size: 13.5px; border: 0 !important; border-bottom: 1px solid var(--line-card) !important; box-shadow: none !important; background: transparent; padding: 0 2px; text-align: center; border-radius: 0; color: var(--ink); }
.ct3 input.k-num:focus { outline: 0; border-color: var(--ink) !important; }

/* editor estilo Canva: un lienzo por diapositiva; las miniaturas de abajo son clones vivos del lienzo */
.k-patron .k-t { cursor: pointer; } .k-patron .k-t:hover .k-ph { outline: 2px solid var(--ink); }
.k-canvas { display: flex; flex-direction: column; gap: 10px; position: relative; }
.k-stages { position: relative; width: 300px; margin: 0 auto; }
.k-stage { display: none; position: relative; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: #999; user-select: none; touch-action: none; container-type: inline-size; }
.k-canvas[data-ratio="9/16"] .k-stage { aspect-ratio: 9/16; } .k-canvas[data-ratio="9/16"] .k-stages { width: 240px; }
.k-stage.k-now { display: block; }
.k-bg { position: absolute; inset: 0; }
.k-bg img, .k-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: center; transform: translate(var(--x, 0%), var(--y, 0%)) scale(var(--z, 1)); }
.k-bg.k-falta { background: #3A3A3C; }
.k-stage.k-crop .k-bg { cursor: grab; } .k-stage.k-crop::after { content: ''; position: absolute; inset: 0; outline: 2px dashed rgba(255,255,255,.7); outline-offset: -6px; pointer-events: none; }
.k-stage.k-crop .k-el { pointer-events: none; opacity: .4; }
.k-el { position: absolute; margin: 0; cursor: move; color: #fff; box-sizing: border-box; padding: 0; border: 1.5px solid transparent; border-radius: 4px; line-height: 1.12; white-space: pre-line; word-wrap: break-word; }
.k-el:hover { border-color: rgba(255,255,255,.55); }
.k-el.k-sel { border-color: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.k-el:focus { outline: 0; }
.k-el.k-cardly { box-sizing: border-box; }
.k-el.k-tag { display: inline-block; padding: .38em .85em; border-radius: 999px; white-space: nowrap; }
.k-handle { display: none; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 1.5px solid #333; cursor: nwse-resize; z-index: 3; }
.k-handle.k-show { display: block; }
.k-fab { display: none; position: absolute; z-index: 4; gap: 2px; background: var(--ink); border-radius: 10px; padding: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.k-fab.k-show { display: flex; }
.k-fb { width: 30px; height: 28px; border: 0; background: transparent; color: var(--bg); font: inherit; font-size: 13px; border-radius: 6px; cursor: pointer; }
.k-fb:hover { background: rgba(255,255,255,.15); }
.k-bar { display: flex; gap: 2px; align-items: center; justify-content: center; flex-wrap: wrap; }
.k-bar .k-tb { font-size: 13.5px; } .k-bar .k-tb.k-on { background: var(--surf); color: var(--ink); } .k-bar-hint { width: 100%; text-align: center; font-size: 12px; }
.k-tray { display: none; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; } .k-tray.k-show { display: flex; }
.k-sw { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.k-sw:hover { border-color: var(--ink-3); }
.k-fotos { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; } .k-fotos .k-ph { width: 44px; height: 56px; cursor: pointer; border-radius: 6px; padding: 0; } .k-fotos .k-ph:hover { outline: 2px solid var(--ink); }
.k-tray input[type=range] { width: 160px; accent-color: var(--ink); }
.k-tray input[type=search], .ct3 .k-tray input[type=search] { font: inherit; font-size: 13.5px; border: 0 !important; border-bottom: 1px solid var(--line-card) !important; box-shadow: none !important; background: transparent; padding: 2px 4px; width: 220px; border-radius: 0; }
.k-thumbs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.k-thumb { width: 56px; aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; position: relative; cursor: pointer; border: 2px solid transparent; background: #999; }
.k-canvas[data-ratio="9/16"] .k-thumb { aspect-ratio: 9/16; }
.k-thumb.k-on { border-color: var(--ink); }
.k-thumb .k-stage { display: block; position: absolute; left: 0; top: 0; width: 300px; transform: scale(calc(52 / 300)); transform-origin: 0 0; border-radius: 0; pointer-events: none; }
.k-canvas[data-ratio="9/16"] .k-thumb .k-stage { width: 240px; transform: scale(calc(52 / 240)); }
.k-thumb i { position: absolute; right: 4px; bottom: 2px; font-size: 10px; color: #fff; font-style: normal; text-shadow: 0 0 4px #000; }
.k-story-card { position: absolute; left: 12%; right: 12%; top: 38%; background: rgba(255,255,255,.94); color: #222; border-radius: 8px; padding: 10px; font-size: 11.5px; line-height: 1.4; text-align: center; }

@media (max-width: 700px) { .k-card { padding: 16px; } .k-nums { grid-template-columns: 1fr 1fr; } .k-tabs { gap: 18px; overflow-x: auto; } .k-tabs a.k-tmp { margin-left: 0; } }
