:root {
  --crema: #FBF7F2;
  --papel: #FFFFFF;
  --tinta: #1F2A2E;
  --tinta-2: #5B6B70;
  --linea: #EADFD3;
  --coral: #FF6B4A;
  --coral-2: #E4532F;
  --coral-suave: #FFE6DF;
  --salvia: #2F9E8F;
  --salvia-suave: #DDF2EE;
  --mostaza: #F2B53C;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(31,42,46,.06), 0 8px 24px rgba(31,42,46,.06);
  font-family: ui-sans-serif, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--tinta);
  background: var(--crema);
}
* { box-sizing: border-box; }
body { margin: 0; display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -.02em; margin: 0; }
[hidden] { display: none !important; }

/* Barra lateral */
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--linea); background: var(--papel); display: flex; flex-direction: column; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 6px; }
.brand-mark svg { width: 34px; height: 34px; display: block; }
.brand-mark rect { fill: var(--tinta); }
.brand-mark circle { fill: var(--coral); }
.brand-mark path { stroke: var(--crema); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.brand-word { font-weight: 800; font-size: 21px; letter-spacing: -.03em; display: flex; flex-direction: column; line-height: 1; }
.brand-word span { font-weight: 600; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--coral-2); margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav-soon { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-size: 14.5px; font-weight: 550; }
.nav i { font-style: normal; width: 22px; text-align: center; color: var(--tinta-2); }
.nav a:hover { background: var(--crema); }
.nav a.active { background: var(--coral-suave); color: var(--coral-2); }
.nav a.active i { color: var(--coral-2); }
.nav-soon { color: #9AA6A9; cursor: default; }
.nav-soon em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--crema); padding: 2px 7px; border-radius: 99px; }
.side-note { margin-top: auto; font-size: 12.5px; line-height: 1.45; color: var(--tinta-2); background: var(--salvia-suave); border-radius: 12px; padding: 12px 14px; }
.side-note strong { display: block; color: var(--salvia); margin-bottom: 3px; font-size: 13px; }

main { padding: 40px clamp(20px, 4vw, 56px) 80px; max-width: 1180px; width: 100%; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 10px 16px; font: inherit; font-weight: 650; font-size: 14.5px; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-2); }
.btn-primary:disabled { background: #F4C3B6; cursor: not-allowed; }
.btn-ghost { background: transparent; border: 1px solid var(--linea); color: var(--tinta); }
.btn-ghost:hover { background: var(--crema); }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }

/* Inicio */
.hero { padding: 26px 0 34px; max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; color: var(--salvia); margin: 0 0 12px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.04; }
.hero mark { background: linear-gradient(transparent 62%, var(--mostaza) 62%); color: inherit; padding: 0 2px; }
.lead { font-size: 18px; line-height: 1.5; color: var(--tinta-2); margin: 16px 0 26px; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tool { position: relative; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px; text-decoration: none; color: var(--tinta-2); }
.tool h3 { color: var(--tinta); font-size: 17px; margin: 12px 0 6px; }
.tool p { margin: 0 0 14px; font-size: 14px; line-height: 1.45; }
.tool-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--crema); font-size: 19px; color: var(--tinta); }
.tool-live { border-color: var(--coral); box-shadow: var(--sombra); }
.tool-live .tool-ico { background: var(--coral); color: #fff; }
.tool-live:hover { transform: translateY(-2px); transition: transform .15s; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; background: var(--crema); color: var(--tinta-2); }
.tag-ok { background: var(--salvia-suave); color: var(--salvia); }

/* Mejorar */
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 32px; }
.page-head p { color: var(--tinta-2); margin: 6px 0 0; }
.workbench { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.drop { min-height: 300px; border: 2px dashed #E3CDBF; border-radius: 18px; background: var(--papel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--coral); background: #FFF8F5; outline: none; }
.drop-ico { font-size: 34px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-suave); color: var(--coral-2); }
.drop strong { font-size: 18px; }
.drop span { color: var(--tinta-2); font-size: 14px; }
.drop-files { margin-top: 8px; font-weight: 650; color: var(--salvia) !important; }
.drop { position: relative; overflow: hidden; }
.drop.has-preview { padding: 14px 14px 46px; border-style: solid; border-color: var(--linea); background: #F6F0E9; }
.drop.has-preview > .drop-ico, .drop.has-preview > strong, .drop.has-preview > span:not(.drop-change):not(.drop-files) { display: none; }
.drop.has-preview .drop-files { position: absolute; top: 12px; left: 12px; margin: 0; background: rgba(255,255,255,.94); padding: 4px 10px; border-radius: 99px; font-size: 12.5px; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; }
.drop-preview { width: 100%; flex: 1; display: grid; gap: 8px; place-items: center; min-height: 0; }
.drop-preview.single img { max-width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; box-shadow: var(--sombra); }
.drop-preview.multi { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); align-content: start; }
.drop-preview.multi img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.drop-change { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 13px !important; font-weight: 600; color: var(--tinta-2); white-space: nowrap; }
.options { background: var(--papel); border: 1px solid var(--linea); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; display: flex; justify-content: space-between; width: 100%; }
legend output { font-weight: 600; color: var(--salvia); }
.seg { display: flex; background: var(--crema); border-radius: 11px; padding: 3px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { flex: 1; text-align: center; padding: 8px 6px; border-radius: 9px; font-weight: 650; font-size: 14px; cursor: pointer; color: var(--tinta-2); }
.seg input:checked + label { background: var(--papel); color: var(--tinta); box-shadow: 0 1px 3px rgba(31,42,46,.12); }
.seg input:focus-visible + label { outline: 2px solid var(--coral); }
.seg-sm label { padding: 5px 10px; font-size: 13px; white-space: nowrap; }
input[type=range] { width: 100%; accent-color: var(--coral); }
.range-hint { display: flex; justify-content: space-between; font-size: 12px; color: var(--tinta-2); }
.price { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; background: var(--salvia-suave); border-radius: 12px; padding: 10px 12px; }
.price span { font-size: 13px; color: var(--tinta-2); }
.price strong { font-size: 18px; color: var(--salvia); text-align: right; }
.price small { grid-column: 1 / -1; color: var(--tinta-2); font-size: 12px; }

.jobs-head { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 12px; }
.jobs-head h2 { font-size: 20px; }
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.job { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; }
.job-thumb { aspect-ratio: 4 / 3; background: #F3ECE4 center / cover no-repeat; position: relative; cursor: default; }
.job.done .job-thumb { cursor: zoom-in; }
.job-badge { position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.92); }
.job.done .job-badge { color: var(--salvia); }
.job.error .job-badge { color: var(--coral-2); }
.job-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.job-name { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-meta { font-size: 12.5px; color: var(--tinta-2); }
.bar { height: 7px; border-radius: 99px; background: var(--crema); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--coral), var(--mostaza)); border-radius: 99px; transition: width .3s; }
.job.queued .bar > i { width: 100% !important; background: repeating-linear-gradient(45deg, var(--linea) 0 8px, var(--crema) 8px 16px); animation: slide 1s linear infinite; background-size: 22px 22px; }
@keyframes slide { to { background-position: 22px 0; } }
.job-actions { display: flex; gap: 6px; }
.job-actions .btn-primary { flex: 1; }
.job-err { font-size: 13px; color: var(--coral-2); }
.empty { color: var(--tinta-2); }

/* Comparador */
.compare { width: min(1200px, 96vw); height: min(860px, 94vh); padding: 0; border: 0; border-radius: 18px; background: var(--tinta); color: var(--crema); overflow: hidden; }
.compare[open] { display: flex; flex-direction: column; }
.compare::backdrop { background: rgba(20,26,28,.7); }
.compare-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #33444A; }
.compare-bar strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30%; }
.cmp-meta { color: #A9B6B9; font-size: 13px; margin-right: auto; }
.compare .seg { background: #2B3A3F; }
.compare .seg label { color: #A9B6B9; }
.compare .seg input:checked + label { background: var(--crema); color: var(--tinta); }
.compare .btn-ghost { color: var(--crema); border-color: #3E5157; }
.compare .btn-ghost:hover { background: #2B3A3F; }
.cmp-stage { flex: 1; overflow: hidden; display: grid; place-items: center; padding: 14px; background: repeating-conic-gradient(#26343A 0 25%, #2B3A3F 0 50%) 0 0 / 22px 22px; }
.cmp-stage.real { overflow: auto; place-items: start; }
.cmp-frame { position: relative; user-select: none; touch-action: none; cursor: ew-resize; line-height: 0; }
.cmp-frame img { display: block; }
.cmp-stage:not(.real) .cmp-frame img#cmp-after { max-width: calc(min(1200px, 96vw) - 28px); max-height: calc(min(860px, 94vh) - 100px); }
.cmp-before { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 50% 0 0); }
.cmp-before img { width: 100%; height: 100%; image-rendering: auto; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--crema); pointer-events: none; }
.cmp-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--coral); color: #fff; font-size: 11px; line-height: 1; padding: 9px 8px; border-radius: 99px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.cmp-label { position: absolute; top: 12px; font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 99px; background: rgba(31,42,46,.75); color: var(--crema); pointer-events: none; }
.cmp-stage.real .cmp-label { position: sticky; }
.cmp-label.l { left: 12px; } .cmp-label.r { right: 12px; }

/* Menú lateral por grupos */
.nav-group { margin: 12px 10px 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #A3AEB1; }

/* Opciones extra */
.toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle .sw { flex: none; width: 38px; height: 22px; border-radius: 99px; background: var(--linea); position: relative; transition: background .15s; margin-top: 1px; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.toggle input:checked + .sw { background: var(--salvia); }
.toggle input:checked + .sw::after { transform: translateX(16px); }
.toggle input:focus-visible + .sw { outline: 2px solid var(--coral); }
.toggle b { display: block; font-size: 13.5px; }
.toggle small { color: var(--tinta-2); font-size: 12px; }
.select { width: 100%; font: inherit; font-size: 14px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--linea); background: var(--crema); color: var(--tinta); }
.color { margin-top: 8px; width: 100%; height: 36px; border: 1px solid var(--linea); border-radius: 10px; background: none; padding: 2px; }
.opt-note { margin: 0; font-size: 12px; color: var(--tinta-2); line-height: 1.4; }
#opts { display: flex; flex-direction: column; gap: 16px; }

/* Vista previa de vídeo / audio */
.drop-preview.single video { max-width: 100%; max-height: 420px; border-radius: 10px; background: #000; }
.drop-preview.multi video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; background: #000; }
.audio-chip { display: flex; align-items: center; gap: 10px; background: var(--papel); border: 1px solid var(--linea); border-radius: 12px; padding: 12px 14px; max-width: 100%; }
.audio-chip b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-suave); color: var(--coral-2); }
.audio-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

/* Editor de pincel */
.stagecol { min-width: 0; }
.editor { border: 1px solid var(--linea); border-radius: 18px; background: var(--papel); overflow: hidden; }
.editor-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--linea); }
.editor-tip { font-weight: 650; font-size: 13.5px; margin-right: auto; color: var(--coral-2); }
.brush { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.brush input { width: 110px; }
.editor-stage { display: grid; place-items: center; padding: 12px; background: repeating-conic-gradient(#F3ECE4 0 25%, #FBF7F2 0 50%) 0 0 / 20px 20px; min-height: 300px; }
.editor-frame { position: relative; line-height: 0; }
.editor-frame img { max-width: 100%; max-height: 520px; display: block; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.editor-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }

/* Tarjetas */
.job-thumb.checker { background-size: contain, 18px 18px; background-repeat: no-repeat, repeat; background-position: center, 0 0; }
.job-tool { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--salvia); }
.job-thumb.is-media { display: grid; place-items: center; background: #26343A; overflow: hidden; }
.job-thumb.is-media video { width: 100%; height: 100%; object-fit: cover; }
.job-thumb.audio b { font-size: 40px; color: var(--coral); }
.job.done .job-thumb.is-media { cursor: pointer; }
.dl-menu { position: relative; }
.dl-menu summary { list-style: none; }
.dl-menu summary::-webkit-details-marker { display: none; }
.dl-menu > div { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 5; background: var(--papel); border: 1px solid var(--linea); border-radius: 12px; box-shadow: var(--sombra); padding: 6px; display: flex; flex-direction: column; min-width: 190px; }
.dl-menu > div a { justify-content: flex-start; border: 0; }

/* Visor */
.viewer .vw-actions { display: flex; gap: 8px; }
.vw-body { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.vid-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vid-pair figure { margin: 0; }
.vid-pair figcaption { font-size: 12px; font-weight: 700; margin-bottom: 6px; color: #A9B6B9; }
.vid-pair video, .vw-video { width: 100%; max-height: 62vh; background: #000; border-radius: 10px; }
.vw-video { max-height: 46vh; }
.vw-tip { margin: 0; color: #A9B6B9; font-size: 13px; }
.vw-text { background: var(--crema); color: var(--tinta); border-radius: 12px; padding: 16px 18px; font-size: 15px; line-height: 1.65; white-space: pre-wrap; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 30px); background: var(--tinta); color: var(--crema); padding: 11px 18px; border-radius: 12px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 10; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  body { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--linea); }
  .nav { flex-direction: row; overflow-x: auto; width: 100%; }
  .nav-soon, .side-note { display: none; }
  .workbench { grid-template-columns: 1fr; }
  main { padding-top: 24px; }
}

/* ---------- Fase 2: créditos, cuenta, planes, traducir ---------- */
.nav em.new { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--mostaza); color: var(--tinta); padding: 2px 7px; border-radius: 99px; }
.tag-new { background: #FDF0D2; color: #8A6212; }
.account { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.wallet { display: flex; align-items: baseline; gap: 8px; text-decoration: none; background: var(--salvia-suave); border-radius: 12px; padding: 10px 12px; }
.wallet-num { font-size: 22px; font-weight: 800; color: var(--salvia); }
.wallet-txt { font-size: 12px; color: var(--tinta-2); line-height: 1.3; }
.wallet:hover { outline: 2px solid var(--salvia); }
.who { display: flex; align-items: center; gap: 8px; }
.who .btn-primary { width: 100%; }
.who-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price strong.short { color: var(--coral-2); }

.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 26px; }
.promise div { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px 16px; }
.promise b { display: block; margin-bottom: 4px; }
.promise span { font-size: 13.5px; color: var(--tinta-2); }

.my-wallet { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.my-wallet div { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 12px 16px; min-width: 180px; }
.my-wallet span, .my-wallet small { display: block; font-size: 12.5px; color: var(--tinta-2); }
.my-wallet b { display: block; font-size: 20px; margin: 2px 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan { position: relative; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sombra); }
.plan h3 { margin: 0; font-size: 18px; }
.plan-price b { font-size: 30px; }
.plan-price span { color: var(--tinta-2); margin-left: 4px; }
.plan-price { margin: 0; }
.plan ul { margin: 0 0 6px; padding-left: 18px; font-size: 14px; line-height: 1.6; flex: 1; }
.plan-hot { border: 2px solid var(--coral); }
.plan-flag { position: absolute; top: -11px; left: 18px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.plan-current { outline: 3px solid var(--salvia-suave); }
.plan-mine { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--salvia); background: var(--salvia-suave); padding: 6px 12px; border-radius: 99px; }
.plan .btn[disabled] { opacity: .6; cursor: not-allowed; }
.sub-h { font-size: 20px; margin: 34px 0 12px; }
.cost-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.cost-table div { display: flex; justify-content: space-between; gap: 12px; background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.cost-table b { text-align: right; font-weight: 600; }
.cost-table .cost-free { background: var(--salvia-suave); border-color: transparent; }
.credits-note { font-size: 13px; color: var(--tinta-2); line-height: 1.55; max-width: 780px; }

.auth { border: 0; border-radius: 18px; padding: 0; width: min(420px, 94vw); box-shadow: 0 30px 80px rgba(31,42,46,.25); background: var(--papel); color: var(--tinta); margin: auto; }
.auth::backdrop { background: rgba(31,42,46,.45); }
.auth form { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 22px; }
.auth-x { position: absolute; top: 10px; right: 10px; }
.auth-tabs { align-self: flex-start; }
.auth-lead, .auth-fine { margin: 0; font-size: 13.5px; color: var(--tinta-2); }
.auth-fine { font-size: 12px; text-align: center; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; }
.field small { font-weight: 400; color: var(--tinta-2); }
.field input { font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linea); background: var(--crema); }
.field input:focus { outline: 2px solid var(--coral); border-color: transparent; }
.auth-err { margin: 0; color: var(--coral-2); font-size: 13.5px; font-weight: 600; }
.vw-audio { width: 100%; margin-bottom: 12px; }

@media (max-width: 860px) {
  .account { flex-direction: row; width: 100%; align-items: center; }
  .wallet { flex: 1; }
}

/* ---------- Fase 3: editor con resultado, prueba gratis, recuadros ---------- */
.btn-try { border: 2px solid var(--salvia); color: var(--salvia); background: var(--papel); }
.btn-try:hover:not(:disabled) { background: var(--salvia-suave); }
.btn-try:disabled { opacity: .5; }
.res-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.res-cards input { position: absolute; opacity: 0; pointer-events: none; }
.res-cards label { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 2px; border: 1.5px solid var(--linea); border-radius: 11px; cursor: pointer; background: var(--papel); }
.res-cards label b { font-size: 13.5px; }
.res-cards label small { font-size: 11px; color: var(--tinta-2); }
.res-cards input:checked + label { border-color: var(--coral); background: var(--coral-suave); }
.res-cards input:checked + label b { color: var(--coral-2); }
.res-cards input:focus-visible + label { outline: 2px solid var(--coral); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #FDF0D2; color: #8A6212; }
.pill-salvia { background: var(--salvia-suave); color: var(--salvia); }

.boxer-frame { position: relative; line-height: 0; }
.boxer-frame video { max-width: 100%; max-height: 480px; display: block; border-radius: 6px; }
.boxer-layer { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
.boxer-layer .box { position: absolute; border: 2px solid var(--coral); background: rgba(255,107,74,.22); border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.boxer-layer .box.drawing { border-style: dashed; }
.box-x { position: absolute; top: -11px; right: -11px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--tinta); color: #fff; font-size: 11px; line-height: 22px; padding: 0; cursor: pointer; }
.boxer-count { font-size: 12.5px; color: var(--tinta-2); }
.boxer-seek { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 12.5px; color: var(--tinta-2); border-top: 1px solid var(--linea); }
.boxer-seek input { flex: 1; accent-color: var(--coral); }

.stage { border: 1px solid var(--linea); border-radius: 18px; background: var(--papel); overflow: hidden; scroll-margin-top: 16px; }
.st-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--linea); }
.st-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.st-meta { font-size: 12.5px; color: var(--tinta-2); }
.st-view { position: relative; display: grid; place-items: center; min-height: 320px; max-height: 64vh; padding: 12px;
  background: repeating-conic-gradient(#F3ECE4 0 25%, #FBF7F2 0 50%) 0 0 / 20px 20px; }
.st-view > img, .st-view > video { max-width: 100%; max-height: calc(64vh - 24px); border-radius: 8px; display: block; }
.st-busy > img, .st-busy > video, .st-fail > img, .st-fail > video { filter: saturate(.6) brightness(.85); }
.st-audio { display: flex; align-items: center; gap: 10px; padding: 22px 26px; background: var(--papel); border-radius: 14px; font-weight: 600; }
.st-audio b { font-size: 26px; color: var(--coral); }
.st-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; }
.st-card { width: min(340px, 92%); background: rgba(31,42,46,.9); color: var(--crema); border-radius: 16px; padding: 18px 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; box-shadow: 0 12px 40px rgba(31,42,46,.35); }
.st-card .bar { width: 100%; background: rgba(255,255,255,.15); }
.st-card small { color: #C5D0D2; font-size: 12.5px; line-height: 1.4; }
.st-card .st-calm { color: #9FB0B3; font-size: 11.5px; }
.st-card .st-err { color: #FFD3C8; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--coral); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.st-scroll { overflow: auto; }
.st-scroll[data-zoom="zoomed"] { place-items: start; cursor: grab; }
.st-scroll.panning { cursor: grabbing; }
.st-cmp { position: relative; line-height: 0; user-select: none; touch-action: none; cursor: ew-resize; }
.st-cmp.checker { background: repeating-conic-gradient(#EFE8E0 0 25%, #fff 0 50%) 0 0 / 18px 18px; }
.st-cmp img { display: block; -webkit-user-drag: none; }
.st-scroll[data-zoom="fit"] .st-cmp img.st-after { max-width: 100%; max-height: calc(64vh - 24px); }
.st-scroll[data-zoom="zoomed"] .st-cmp img.st-after { width: 100%; }
.st-before { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 50% 0 0); }
.st-before img { width: 100%; height: 100%; }
.st-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff; cursor: ew-resize; }
.st-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--coral); color: #fff; font-size: 11px; line-height: 1; padding: 9px 8px; border-radius: 99px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.st-cmp .cmp-label { position: absolute; }
.st-vwrap { position: relative; line-height: 0; }
.st-vwrap video { display: block; border-radius: 8px; background: #000; }
.st-scroll[data-zoom="fit"] .st-vwrap video { max-width: 100%; max-height: calc(64vh - 24px); }
.st-scroll[data-zoom="zoomed"] .st-vwrap video { width: 100%; }
.st-vwrap .st-before { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: none; visibility: hidden; pointer-events: none; object-fit: contain; }
.st-vwrap.show-orig .st-before { visibility: visible; }
.st-orig-tag { position: absolute; top: 10px; left: 10px; line-height: 1; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 99px; background: var(--tinta); color: var(--crema); visibility: hidden; }
.st-vwrap.show-orig .st-orig-tag { visibility: visible; }
.st-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--linea); }
.st-hint { font-size: 12.5px; color: var(--tinta-2); margin-right: auto; }
.st-hold { margin-right: auto; user-select: none; touch-action: none; }
.st-hold:active { background: var(--tinta); color: var(--crema); }
.st-zoom { display: flex; align-items: center; gap: 4px; }
.st-zpct { min-width: 62px; text-align: center; font-size: 13px; font-weight: 650; }

.st-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; }
.st-media { display: grid; place-items: center; padding: 12px; background: #1F2A2E; min-height: 300px; }
.st-media video { max-width: 100%; max-height: 58vh; border-radius: 8px; }
.st-media audio { width: 100%; }
.st-text { display: flex; flex-direction: column; border-left: 1px solid var(--linea); min-height: 0; max-height: 64vh; }
.st-text-head { padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 3px; }
.st-text-head small { color: var(--tinta-2); font-size: 12.5px; line-height: 1.4; }
.st-segs { flex: 1; overflow: auto; padding: 0 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.st-loading, .st-plain { font-size: 14px; color: var(--tinta-2); line-height: 1.55; padding: 4px; white-space: pre-wrap; }
.seg-row { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: start; padding: 6px; border-radius: 10px; }
.seg-row.now { background: var(--coral-suave); }
.seg-time { border: 0; background: var(--crema); color: var(--tinta-2); font: inherit; font-size: 12px; font-weight: 700; padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.seg-time:hover { background: var(--salvia-suave); color: var(--salvia); }
.seg-row textarea { font: inherit; font-size: 14px; line-height: 1.4; resize: vertical; padding: 6px 8px; border: 1px solid var(--linea); border-radius: 8px; background: var(--papel); color: var(--tinta); }
.seg-row textarea:focus { outline: 2px solid var(--coral); border-color: transparent; }
.st-text-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--linea); }

.st-trial { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(90deg, #FFF3E6, var(--coral-suave)); border-top: 1px solid var(--linea); }
.st-trial > div { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.st-trial span { color: var(--tinta-2); }
.st-dl { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--linea); }

@media (max-width: 860px) {
  .st-split { grid-template-columns: 1fr; }
  .st-text { border-left: 0; border-top: 1px solid var(--linea); }
  .res-cards { grid-template-columns: repeat(2, 1fr); }
}
.st-zlabel { font-size: 12.5px; color: var(--tinta-2); margin-right: 2px; }
.st-zpct { min-width: 40px; }

.stage { container-type: inline-size; }
@container (max-width: 760px) {
  .st-split { grid-template-columns: 1fr; }
  .st-text { border-left: 0; border-top: 1px solid var(--linea); max-height: none; }
  .st-segs { max-height: 340px; }
}
.st-orig-tag { left: auto; right: 10px; }

/* ================= Diseño C · Mesa de trabajo ================= */
body { display: block; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 26px; height: 64px; padding: 0 clamp(16px, 3vw, 36px); background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--linea); }
.brand { padding: 0; gap: 9px; flex-shrink: 0; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-word { flex-direction: row; align-items: baseline; font-size: 20px; font-weight: 800; }
.brand-word b { color: var(--coral); font-weight: 800; }
.brand-word small { font-size: 11px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-2); margin-left: 7px; }
.topnav { display: flex; gap: 4px; height: 100%; }
.topnav a { display: flex; align-items: center; padding: 0 12px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--tinta-2); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.topnav a:hover { color: var(--tinta); }
.topnav a.active { color: var(--tinta); border-bottom-color: var(--coral); }
.topbar .account { margin: 0 0 0 auto; flex-direction: row; align-items: center; gap: 10px; }
.topbar .wallet { padding: 6px 12px 6px 10px; border-radius: 99px; align-items: center; gap: 6px; }
.wallet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--salvia); }
.topbar .wallet-num { font-size: 15px; }
.topbar .wallet-txt { font-size: 12.5px; color: #1F6E63; }
.topbar .who { gap: 8px; }
.topbar .who .btn-primary, .topbar .who .btn { width: auto; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--mostaza); color: var(--tinta); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.topbar .who-name { max-width: 140px; }
.btn-dark { background: var(--tinta); color: #fff; }
.btn-dark:hover { background: #33444A; }
main { max-width: 1320px; margin: 0 auto; padding: 26px clamp(16px, 3vw, 36px) 70px; }

/* Inicio */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: none; padding: 26px 0 40px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { position: relative; border-radius: 24px; padding: 26px 26px 70px; background: repeating-conic-gradient(#F1E9DF 0 25%, #FBF7F2 0 50%) 0 0 / 18px 18px; border: 1px solid var(--linea); }
.ha-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #2F9E8F, #1F2A2E 70%); box-shadow: var(--sombra); }
.ha-frame::after { content: ""; position: absolute; left: 14%; bottom: 0; width: 46%; height: 52%; background: var(--mostaza); border-radius: 50% 50% 0 0; opacity: .9; }
.ha-frame::before { content: ""; position: absolute; right: 16%; top: 18%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--coral); z-index: 1; }
.ha-before { position: absolute; inset: 0; width: 50%; z-index: 2; backdrop-filter: blur(5px) saturate(.5); background: rgba(251,247,242,.12); }
.ha-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #fff; z-index: 3; }
.ha-l, .ha-r { position: absolute; top: 12px; z-index: 3; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(31,42,46,.75); color: #fff; }
.ha-l { left: 12px; } .ha-r { right: 12px; }
.ha-bar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; background: var(--tinta); color: #fff; border-radius: 99px; padding: 7px 7px 7px 16px; font-size: 13px; box-shadow: 0 10px 30px rgba(31,42,46,.3); }
.ha-bar span { color: #B9C6C9; }
.ha-bar i { font-style: normal; border: 1.5px solid var(--salvia); color: #7FD6CA; border-radius: 99px; padding: 5px 11px; }
.ha-bar b { background: var(--coral); border-radius: 99px; padding: 6px 13px; }
.sub-h { margin: 30px 0 12px; }
.tools { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tool { border-radius: 18px; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; }
.tool p { flex: 1; }
.tool-live { border-color: var(--linea); box-shadow: var(--sombra); }
.tool-live:hover { border-color: var(--coral); }
.tool-ico { width: 46px; height: 46px; border-radius: 14px; font-size: 21px; }
.tools-video .tool-live .tool-ico { background: var(--tinta); }

/* Pestañas de herramientas */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin-bottom: 14px; scrollbar-width: thin; }
.tab { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 8px 15px; border-radius: 99px; background: var(--papel); border: 1px solid var(--linea); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--tinta); }
.tab i { font-style: normal; color: var(--tinta-2); }
.tab:hover { border-color: var(--tinta-2); }
.tab.active { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.tab.active i { color: var(--coral); }
.tab em { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 99px; background: var(--mostaza); color: var(--tinta); }
.tab-soon { color: #9AA6A9; cursor: default; border-style: dashed; }
.tab-soon em { background: var(--crema); color: var(--tinta-2); }
.tool-head { margin-bottom: 14px; }
.tool-head h1 { font-size: 26px; }
.tool-head p { max-width: 760px; }

/* Mesa de trabajo */
.mesa { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; padding: 18px; border-radius: 24px; border: 1px solid var(--linea);
  background: repeating-conic-gradient(#F3ECE4 0 25%, #FBF7F2 0 50%) 0 0 / 22px 22px; }
.mesa .drop { min-height: 440px; background: rgba(255,255,255,.92); border-color: #E3CDBF; }
.mesa .editor, .mesa .stage { box-shadow: var(--sombra); }
.mesa .options { position: sticky; top: 82px; max-height: calc(100vh - 190px); overflow: auto; border-radius: 18px; box-shadow: 0 1px 2px rgba(31,42,46,.06), 0 14px 34px rgba(31,42,46,.1); padding: 16px; gap: 14px; }
.opt-title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-2); }
.actionbar { grid-column: 1 / -1; justify-self: center; position: sticky; bottom: 16px; z-index: 6; display: flex; align-items: center; gap: 10px; margin-top: 4px;
  background: var(--tinta); color: #fff; border-radius: 99px; padding: 8px 8px 8px 20px; box-shadow: 0 14px 40px rgba(31,42,46,.32); max-width: 100%; }
.actionbar .price { display: flex; flex-direction: column; gap: 0; background: none; padding: 0 6px 0 0; border-radius: 0; min-width: 150px; }
.actionbar .price strong { color: #fff; font-size: 15.5px; text-align: left; }
.actionbar .price strong.short { color: #FFB4A2; }
.actionbar .price small { color: #B9C6C9; font-size: 12px; grid-column: auto; white-space: nowrap; }
.actionbar .btn { border-radius: 99px; padding: 11px 20px; font-size: 15px; }
.actionbar .btn-primary:disabled { background: #6E4B43; color: #D9B8AE; }
.actionbar .btn-try { background: transparent; border: 1.5px solid var(--salvia); color: #7FD6CA; }
.actionbar .btn-try:hover:not(:disabled) { background: rgba(47,158,143,.18); }
.actionbar .btn-try:disabled { opacity: .45; }
.jobs-head { margin-top: 30px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; }
}
@media (max-width: 860px) {
  .topbar { height: auto; flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px 0; }
  .topbar .account { margin-left: auto; }
  .topnav { order: 3; width: 100%; height: 44px; overflow-x: auto; }
  .topbar .who-name, .topbar .wallet-txt { display: none; }
  .mesa { grid-template-columns: 1fr; padding: 10px; border-radius: 18px; }
  .mesa .drop { min-height: 260px; }
  .mesa .options { position: static; max-height: none; }
  .actionbar { bottom: 8px; width: 100%; border-radius: 18px; flex-wrap: wrap; padding: 10px; justify-content: flex-end; }
  .actionbar .price { flex: 1 1 100%; padding: 0 4px 4px; }
  .actionbar .btn { flex: 1; }
}.mesa.has-stage .actionbar { display: none; }
.mesa.has-stage { padding-bottom: 18px; }
@media (max-width: 860px) {
  .topbar .wallet { flex: none; }
  .topnav a { white-space: nowrap; padding: 0 10px; font-size: 14px; }
  .topbar { position: static; }
  .tool-head h1 { font-size: 22px; }
}
@media (max-width: 520px) {
  .ha-bar span { display: none; }
  .ha-bar { font-size: 12px; }
  .hero-art { padding: 16px 16px 64px; }
}

/* Pincel Borrar / Proteger */
.brush-modes { flex-shrink: 0; }
.brush-modes label { padding: 6px 12px; font-size: 13px; }
.brush-modes #bm-erase:checked + label { background: var(--coral); color: #fff; }
.brush-modes #bm-keep:checked + label { background: var(--salvia); color: #fff; }
.keep-count { font-size: 12.5px; font-weight: 650; color: var(--salvia); }
.editor.keep-mode .editor-tip { color: var(--salvia); }
.editor.keep-mode #editor-canvas { cursor: cell; }
.brush-modes #bm-smart:checked + label { background: var(--coral); color: #fff; }
.brush-modes #bm-erase:checked + label { background: var(--mostaza); color: var(--tinta); }
.editor[data-brush="erase"] .editor-tip { color: #8A6212; }
.eng-cards { grid-template-columns: 1fr 1fr; }
.eng-cards label small { text-align: center; }
#eng-note { margin-top: 8px; }
