/* QR para invitaciones: usa la hoja del taller (../qr-3d/styles.css) y añade lo propio */

.drop {
  display: grid; justify-items: center; gap: 4px; text-align: center; cursor: pointer;
  padding: 22px 14px; border: 1.5px dashed var(--line); border-radius: 4px; background: var(--surface);
  transition: border-color .15s, background .15s;
}
.drop svg { width: 30px; height: 30px; color: var(--gold-d); margin-bottom: 4px; }
.drop b { font-size: 1rem; }
.drop small { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.drop:hover, .drop.is-over { border-color: var(--ink); background: rgba(196, 142, 70, .08); }
.drop.has-img { padding: 12px 14px; grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; text-align: left; }
.drop.has-img svg { margin: 0; }
.drop.has-img small { display: block; }

/* escenario: la invitación sobre la mesa */
.stage {
  display: grid; place-items: center; min-height: 260px; padding: 14px; border-radius: 4px;
  background: radial-gradient(120% 100% at 50% 0%, #2a5c45 0%, #173a2a 75%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}
#cv { display: block; max-width: 100%; touch-action: none; cursor: grab; box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25); border-radius: 2px; background: #fff; }
#cv.is-dragging { cursor: grabbing; }
#cv:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }
.inv-tool .warns { margin: 12px 0; }

/* colores sacados de la invitación */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sw { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); position: relative; }
.sw.is-on { outline: 2px solid var(--gold); outline-offset: 3px; }
.sw-pick { position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); background: conic-gradient(#e74c3c, #f1c40f, #2ecc71, #3498db, #9b59b6, #e74c3c); cursor: pointer; }
.sw-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sw-l { font-family: var(--mono); font-size: .66rem; color: var(--muted); margin-left: 4px; }

.seg2 { grid-template-columns: 1fr 1fr !important; margin-top: 10px; }
.f-serif { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.15rem; font-weight: 600; }
.f-sans { font-family: var(--sans); }

/* posición rápida: 3 × 3 */
.pos { display: grid; grid-template-columns: repeat(3, 34px); gap: 4px; }
.pos button { width: 34px; height: 26px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); position: relative; }
.pos button::after { content: ""; position: absolute; inset: 8px 12px; border-radius: 1px; background: var(--muted); opacity: .45; }
.pos button:hover { border-color: var(--ink); }
.pos button:hover::after { opacity: 1; background: var(--ink); }

.center-row .ctile { font-size: 1.25rem; }
.center-row .ctile span { font-family: var(--mono); font-size: .7rem; font-weight: 500; }

.cat-row { cursor: default; }
.cat-row .c-spec::after { content: none; }
.more-tools { margin-top: 22px; color: var(--muted); }
.more-tools a { color: var(--ink); font-weight: 600; }

/* ---------- plantillas ---------- */
.stabs { display: flex; gap: 6px; margin-bottom: 16px; }
.stab { flex: 1; padding: 10px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-weight: 600; font-size: .9rem; color: var(--muted); }
.stab.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.tpl { display: grid; gap: 6px; padding: 6px 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); text-align: center; }
.tpl canvas { width: 100%; height: auto; aspect-ratio: 5 / 7; border-radius: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.tpl span { font-size: .76rem; font-weight: 600; line-height: 1.2; }
.tpl:hover { border-color: var(--muted); }
.tpl.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tpl-vars { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tvar { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .8rem; }
.tvar i { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.tvar i + i { margin-left: -12px; }
.tvar.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tpl-edit summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: 6px 0 10px; }
.tpl-fields .inp { margin-bottom: 10px; }
@media (min-width: 980px) { .tpl-grid { grid-template-columns: repeat(3, 1fr); } }
