/* Editora Publigráficas · editor de calendarios de la web (/disenar/editor/), 10 oct 2026.
   Pantalla completa como el de Vistaprint: barra arriba, herramientas a la izquierda, la hoja en el centro. */
:root {
  --ed-azul: #207DF4; --ed-azul-claro: #e8f1fd; --ed-rojo: #e3262d; --ed-negro: #161616; --ed-gris: #4a4a4a;
  --ed-suave: #6b6b6b; --ed-borde: #dcdfe4; --ed-fondo: #eef0f3; --ed-sel: #1f7ae0;
  --ed-f: "Source Sans 3", system-ui, -apple-system, sans-serif; --ed-fd: "Outfit", system-ui, sans-serif;
}
html, body { height: 100%; }
body.ed-cuerpo { margin: 0; font-family: var(--ed-f); color: var(--ed-negro); background: var(--ed-fondo); overflow: hidden; -webkit-font-smoothing: antialiased; }
.ed-cuerpo button, .ed-cuerpo input, .ed-cuerpo select, .ed-cuerpo textarea { font: inherit; color: inherit; }
.ed-cuerpo [hidden] { display: none !important; }
.ed-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ed { display: grid; grid-template-rows: 60px minmax(0, 1fr); height: 100vh; height: 100dvh; width: 100%; overflow: hidden; }
.ed-corto { display: none; }

/* ---------- barra de arriba ---------- */
.ed-barra { display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--ed-borde); position: relative; z-index: 30; min-width: 0; }
.ed-volver { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ed-negro); font-weight: 600; font-size: 15px; padding: 8px 10px 8px 4px; border-radius: 10px; flex: none; }
.ed-volver:hover { background: #f3f4f6; }
.ed-volver img { height: 30px; width: auto; display: block; }
.ed-volver svg { width: 20px; height: 20px; }
.ed-sep { width: 1px; height: 28px; background: var(--ed-borde); flex: none; }
.ed-titulo { min-width: 0; display: grid; line-height: 1.2; }
.ed-titulo b { font-family: var(--ed-fd); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-titulo small { font-size: 13px; color: var(--ed-suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-estado { font-size: 13px; color: var(--ed-suave); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.ed-estado i { width: 8px; height: 8px; border-radius: 50%; background: #2fa84f; display: inline-block; }
.ed-estado[data-e="guardando"] i { background: #f0a400; }
.ed-estado[data-e="error"] i { background: var(--ed-rojo); }
.ed-estado[data-e="sin"] i { background: #b8bec8; }
.ed-espacio { flex: 1; }
.ed-btn-i { width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; color: var(--ed-negro); }
.ed-btn-i:hover:not(:disabled) { background: #f1f3f6; }
.ed-btn-i:active:not(:disabled) { background: #e6e9ee; transform: scale(.96); }
.ed-btn-i:disabled { opacity: .35; cursor: default; }
.ed-btn-i svg { width: 21px; height: 21px; }
.ed-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 1.5px solid var(--ed-negro); background: #fff; padding: 9px 16px; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--ed-negro); transition: background .12s, transform .1s; }
.ed-btn:hover { background: #f4f5f7; }
.ed-btn:active { transform: scale(.98); }
.ed-btn svg { width: 18px; height: 18px; flex: none; }
.ed-btn--azul { background: var(--ed-azul); border-color: var(--ed-azul); color: #fff; }
.ed-btn--azul:hover { background: #033a8a; }
.ed-btn--suave { border-color: var(--ed-borde); }
.ed-btn:disabled { opacity: .55; cursor: default; transform: none; }
.ed-precio-mini { font-size: 13px; color: var(--ed-suave); text-align: right; line-height: 1.2; white-space: nowrap; }
.ed-precio-mini b { display: block; color: var(--ed-negro); font-size: 15px; }

/* ---------- cuerpo: riel, panel, escena ---------- */
.ed-medio { display: grid; grid-template-columns: 78px auto minmax(0, 1fr); min-height: 0; position: relative; }
.ed-riel { background: #fff; border-right: 1px solid var(--ed-borde); display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; overflow-y: auto; z-index: 20; }
.ed-riel button { border: 0; background: transparent; border-radius: 12px; padding: 9px 2px 8px; display: grid; justify-items: center; gap: 4px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ed-gris); }
.ed-riel button svg { width: 24px; height: 24px; }
.ed-riel button:hover { background: #f3f5f8; color: var(--ed-negro); }
.ed-riel button[aria-pressed="true"] { background: var(--ed-azul-claro); color: var(--ed-azul); }
.ed-panel { width: 320px; background: #fff; border-right: 1px solid var(--ed-borde); overflow-y: auto; z-index: 15; display: flex; flex-direction: column; }
.ed-panel[hidden] { display: none; }
.ed-panel-cab { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 6px; position: sticky; top: 0; background: #fff; z-index: 2; }
.ed-panel-cab h2 { margin: 0; font-family: var(--ed-fd); font-size: 19px; }
.ed-panel-in { padding: 6px 16px 24px; display: grid; gap: 14px; align-content: start; }
.ed-panel p { margin: 0; font-size: 14.5px; color: var(--ed-gris); line-height: 1.45; }
.ed-panel h3 { margin: 6px 0 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ed-suave); }
.ed-subir { display: grid; justify-items: center; gap: 6px; text-align: center; border: 2px dashed #b9c4d3; border-radius: 14px; padding: 18px 12px; cursor: pointer; background: #f8fafc; color: var(--ed-gris); font-size: 14.5px; transition: border-color .12s, background .12s; }
.ed-subir:hover, .ed-subir.encima { border-color: var(--ed-azul); background: var(--ed-azul-claro); }
.ed-subir b { color: var(--ed-azul); font-size: 15.5px; }
.ed-subir svg { width: 28px; height: 28px; color: var(--ed-azul); }
.ed-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ed-fotos button { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: #eef1f5; cursor: pointer; }
.ed-fotos button img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.ed-fotos button:hover img { transform: scale(1.05); }
.ed-fotos button:focus-visible { outline: 3px solid var(--ed-sel); outline-offset: 2px; }
.ed-fotos .usada::after { content: "✓"; position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--ed-azul); color: #fff; font-size: 12px; display: grid; place-items: center; }
.ed-fotos .cargando { display: grid; place-items: center; font-size: 12px; color: var(--ed-suave); }
.ed-plantillas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ed-plantillas button { border: 2px solid transparent; background: #f3f5f8; border-radius: 12px; padding: 8px; cursor: pointer; display: grid; gap: 6px; text-align: left; }
.ed-plantillas button:hover { border-color: #c5cfdc; }
.ed-plantillas button[aria-pressed="true"] { border-color: var(--ed-azul); background: var(--ed-azul-claro); }
.ed-plantillas .ed-mini { box-shadow: 0 2px 8px rgba(0,0,0,.12); background: #fff; border-radius: 3px; overflow: hidden; pointer-events: none; }
.ed-plantillas small { font-weight: 700; font-size: 13.5px; }
.ed-campos { display: grid; gap: 10px; }
.ed-campo { display: grid; gap: 4px; }
.ed-campo label, .ed-etq { font-size: 13.5px; font-weight: 700; color: var(--ed-gris); }
.ed-campo textarea, .ed-campo input[type="text"], .ed-campo select, .ed-select { width: 100%; box-sizing: border-box; border: 1.5px solid #c4cad3; border-radius: 10px; padding: 9px 11px; font-size: 15.5px; background: #fff; resize: vertical; min-height: 42px; }
.ed-campo textarea:focus, .ed-campo input:focus, .ed-campo select:focus, .ed-select:focus { outline: none; border-color: var(--ed-sel); box-shadow: 0 0 0 3px rgba(31,122,224,.18); }
.ed-campo.activo textarea { border-color: var(--ed-sel); }
.ed-anadir { display: grid; gap: 8px; }
.ed-anadir button { border: 1.5px solid var(--ed-borde); background: #fff; border-radius: 12px; padding: 12px 14px; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.ed-anadir button:hover { border-color: var(--ed-negro); }
.ed-anadir button span { font-family: var(--ed-fd); }
.ed-colores { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-color { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; position: relative; }
.ed-color[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ed-sel); }
.ed-color-libre { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(0,0,0,.18); position: relative; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); cursor: pointer; }
.ed-color-libre input { position: absolute; inset: -6px; width: 150%; height: 150%; opacity: 0; cursor: pointer; }
.ed-opciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.ed-opciones button { border: 1.5px solid var(--ed-borde); background: #fff; border-radius: 10px; padding: 8px 6px; cursor: pointer; display: grid; justify-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.ed-opciones button[aria-pressed="true"] { border-color: var(--ed-azul); background: var(--ed-azul-claro); color: var(--ed-azul); }
.ed-rejilla { display: grid; gap: 2px; width: 46px; height: 46px; }
.ed-rejilla i { background: currentColor; opacity: .35; border-radius: 1px; }
.ed-rango { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.ed-rango input { width: 100%; accent-color: var(--ed-azul); }
.ed-rango output { font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--ed-gris); min-width: 3.5em; text-align: right; }
.ed-aviso { border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.45; background: #fff4e5; color: #7a4b00; }
.ed-aviso--info { background: var(--ed-azul-claro); color: #0b3a78; }

/* ---------- escena y hoja ---------- */
.ed-zona { position: relative; min-width: 0; min-height: 0; grid-column: 3; grid-row: 1; }
.ed-riel { grid-column: 1; grid-row: 1; }
.ed-panel { grid-column: 2; grid-row: 1; }
.ed-escena { position: absolute; inset: 0; overflow: auto; min-width: 0; min-height: 0; display: grid; place-items: start center; padding: 76px 40px 90px; box-sizing: border-box; overscroll-behavior: contain; touch-action: pan-x pan-y; }
.ed-lienzo { position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 30px rgba(20,30,50,.16); background: #fff; flex: none; user-select: none; -webkit-user-select: none; touch-action: none; }
.ed-lienzo .pgd-el { cursor: move; }
.ed-lienzo .pgd-texto-in[contenteditable="true"] { cursor: text; user-select: text; -webkit-user-select: text; outline: none; caret-color: var(--ed-sel); }
.ed-guias { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.ed-segura { position: absolute; border: 1px dashed rgba(31,122,224,.55); }
.ed-guia { position: absolute; background: #ff3d8b; z-index: 4; pointer-events: none; }
.ed-guia--v { width: 1px; top: 0; bottom: 0; }
.ed-guia--h { height: 1px; left: 0; right: 0; }
.ed-capa { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.ed-caja { position: absolute; box-sizing: border-box; pointer-events: none; }
.ed-caja--hover { outline: 1.5px solid rgba(31,122,224,.6); }
.ed-caja--sel { outline: 2px solid var(--ed-sel); }
.ed-caja--ajustar { outline: 2px dashed #f0a400; }
.ed-asa { position: absolute; width: 14px; height: 14px; background: #fff; border: 2px solid var(--ed-sel); border-radius: 50%; box-sizing: border-box; pointer-events: auto; touch-action: none; }
.ed-asa::before { content: ""; position: absolute; inset: -10px; }
.ed-asa[data-asa="nw"] { left: -7px; top: -7px; cursor: nwse-resize; }
.ed-asa[data-asa="ne"] { right: -7px; top: -7px; cursor: nesw-resize; }
.ed-asa[data-asa="sw"] { left: -7px; bottom: -7px; cursor: nesw-resize; }
.ed-asa[data-asa="se"] { right: -7px; bottom: -7px; cursor: nwse-resize; }
.ed-asa[data-asa="n"], .ed-asa[data-asa="s"] { left: calc(50% - 11px); width: 22px; height: 9px; border-radius: 5px; cursor: ns-resize; }
.ed-asa[data-asa="n"] { top: -5px; } .ed-asa[data-asa="s"] { bottom: -5px; }
.ed-asa[data-asa="w"], .ed-asa[data-asa="e"] { top: calc(50% - 11px); width: 9px; height: 22px; border-radius: 5px; cursor: ew-resize; }
.ed-asa[data-asa="w"] { left: -5px; } .ed-asa[data-asa="e"] { right: -5px; }
.ed-etiqueta-res { position: absolute; left: 0; top: calc(100% + 6px); background: #fff4e5; color: #7a4b00; border-radius: 6px; padding: 3px 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.ed-etiqueta-res--mala { background: #fdeceb; color: #b4140a; }

/* barra de herramientas del elemento escogido (flota arriba de la hoja) */
.ed-herr { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 12; display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 8px 24px rgba(20,30,50,.14); max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none; }
.ed-herr::-webkit-scrollbar { display: none; }
.ed-herr .ed-sep { height: 24px; margin: 0 4px; }
.ed-herr select { border: 1.5px solid var(--ed-borde); border-radius: 9px; padding: 7px 8px; font-size: 14.5px; background: #fff; max-width: 170px; }
.ed-herr .ed-btn-i { width: 36px; height: 36px; }
.ed-herr .ed-btn-i[aria-pressed="true"] { background: var(--ed-azul-claro); color: var(--ed-azul); }
.ed-herr .ed-txt-btn { border: 0; background: transparent; border-radius: 9px; padding: 8px 10px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.ed-herr .ed-txt-btn:hover { background: #f1f3f6; }
.ed-herr .ed-txt-btn[aria-pressed="true"] { background: #fff4e0; color: #8a5a00; }
.ed-herr .ed-txt-btn svg { width: 18px; height: 18px; }
.ed-tam { display: flex; align-items: center; border: 1.5px solid var(--ed-borde); border-radius: 9px; }
.ed-tam button { border: 0; background: transparent; width: 30px; height: 34px; cursor: pointer; font-size: 18px; }
.ed-tam input { width: 44px; border: 0; text-align: center; font-size: 14.5px; padding: 0; -moz-appearance: textfield; }
.ed-tam input::-webkit-inner-spin-button { display: none; }
.ed-muestra-color { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); position: relative; overflow: hidden; flex: none; cursor: pointer; }
.ed-muestra-color input { position: absolute; inset: -8px; width: 200%; height: 200%; opacity: 0; cursor: pointer; }
.ed-herr .ed-rango { min-width: 150px; grid-template-columns: auto 1fr auto; padding: 0 6px; }
.ed-herr .ed-rango label { font-size: 13px; font-weight: 700; color: var(--ed-gris); }

/* zoom abajo a la derecha */
.ed-zoom { position: absolute; right: 18px; bottom: 18px; z-index: 12; display: flex; align-items: center; gap: 2px; background: #fff; border-radius: 12px; padding: 4px; box-shadow: 0 4px 16px rgba(20,30,50,.14); }
.ed-zoom button { border: 0; background: transparent; min-width: 36px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 18px; font-weight: 700; }
.ed-zoom button:hover { background: #f1f3f6; }
.ed-zoom .ed-zoom-n { font-size: 13.5px; min-width: 56px; font-variant-numeric: tabular-nums; }
.ed-medida-chip { position: absolute; left: 18px; bottom: 18px; z-index: 12; background: #fff; border-radius: 12px; padding: 8px 12px; font-size: 13.5px; color: var(--ed-gris); box-shadow: 0 4px 16px rgba(20,30,50,.14); display: flex; gap: 10px; align-items: center; }
.ed-medida-chip label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.ed-medida-chip input { accent-color: var(--ed-azul); }

/* ---------- ventanas ---------- */
.ed-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.ed-modal-fondo { position: absolute; inset: 0; background: rgba(15,20,30,.55); }
.ed-modal-caja { position: relative; background: #fff; border-radius: 18px; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px; box-sizing: border-box; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: ed-entra .22s cubic-bezier(.2,.8,.2,1); }
.ed-modal-caja--ancha { width: min(980px, 100%); }
@keyframes ed-entra { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.ed-modal-caja h2 { font-family: var(--ed-fd); font-size: 24px; margin: 0 0 8px; letter-spacing: -.01em; }
.ed-modal-caja p { margin: 0 0 14px; color: var(--ed-gris); line-height: 1.5; font-size: 15.5px; }
.ed-modal-x { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f1f4f9; font-size: 24px; cursor: pointer; }
.ed-modal-acciones { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.ed-vista { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.ed-vista-hoja { background: linear-gradient(#e9e4dc, #ddd6cb); border-radius: 14px; padding: 34px; display: grid; place-items: center; }
.ed-vista-hoja > div { width: min(100%, 420px); box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 18px 40px rgba(0,0,0,.25); }
.ed-lista-revisar { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; font-size: 14.5px; }
.ed-lista-revisar li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.ed-lista-revisar li::before { content: "✓"; color: #2fa84f; font-weight: 700; }
.ed-lista-revisar li.mal::before { content: "!"; color: #b4140a; width: 1ch; text-align: center; }
.ed-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; cursor: pointer; background: #f5f7fa; border-radius: 12px; padding: 12px; }
.ed-check input { width: 20px; height: 20px; accent-color: var(--ed-azul); flex: none; margin-top: 1px; }
.ed-pedido { display: grid; gap: 14px; }
.ed-pedido .ed-opciones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ed-pedido .ed-opciones button { justify-items: start; text-align: left; padding: 10px 12px; font-size: 14px; }
.ed-pedido .ed-opciones button b { font-size: 15px; }
.ed-pedido .ed-opciones button small { font-weight: 400; color: var(--ed-suave); }
.ed-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ed-borde); padding-top: 12px; }
.ed-total b { font-family: var(--ed-fd); font-size: 22px; color: var(--ed-azul); white-space: nowrap; }
.ed-total small { color: var(--ed-suave); font-size: 13.5px; }
.ed-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: #1d2430; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 15px; z-index: 95; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.ed-cargando { position: fixed; inset: 0; display: grid; place-items: center; background: var(--ed-fondo); z-index: 99; font-size: 16px; color: var(--ed-gris); }

/* ---------- celular: riel abajo, panel como hoja que sube ---------- */
@media (max-width: 820px) {
  .ed { grid-template-rows: 56px minmax(0, 1fr) 66px; }
  .ed-barra { gap: 6px; padding: 0 8px; }
  .ed-volver span, .ed-titulo small, .ed-estado span, .ed-precio-mini, .ed-sep, [data-solo-pc] { display: none !important; }
  .ed-volver img { height: 26px; }
  .ed-barra { overflow: hidden; }
  .ed-largo, .ed-medida-chip, .ed-titulo { display: none !important; }
  .ed-espacio { flex: 1; }
  .ed-corto { display: inline; }
  .ed-btn { padding: 8px 12px; font-size: 14.5px; }
  .ed-medio { grid-template-columns: minmax(0, 1fr); grid-row: 2; }
  .ed-zona { grid-column: 1; grid-row: 1; }
  .ed-riel { position: fixed; left: 0; right: 0; bottom: 0; height: 66px; flex-direction: row; justify-content: space-around; border-right: 0; border-top: 1px solid var(--ed-borde); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-sizing: border-box; overflow-x: auto; }
  .ed-riel button { padding: 6px 8px; font-size: 11.5px; min-width: 54px; }
  .ed-riel button svg { width: 22px; height: 22px; }
  .ed-panel { position: fixed; left: 0; right: 0; bottom: 66px; width: auto; max-height: 52dvh; border-right: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(20,30,50,.18); z-index: 25; }
  .ed-escena { padding: 64px 14px 70px; }
  .ed-herr { top: 8px; }
  .ed-zoom { right: 10px; bottom: 10px; }
  .ed-medida-chip { left: 10px; bottom: 10px; padding: 6px 10px; }
  .ed-vista { grid-template-columns: minmax(0, 1fr); }
  .ed-vista-hoja { padding: 18px; }
  .ed-modal-caja { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { .ed-modal-caja { animation: none; } .ed-fotos button img { transition: none; } }

/* Botones sobre el marco del elemento escogido (como Canva): editar, duplicar y borrar, arriba a la derecha. */
.ed-acciones { position: absolute; right: -4px; bottom: calc(100% + 10px); display: flex; gap: 6px; pointer-events: auto; z-index: 7; }
.ed-acciones--abajo { bottom: auto; top: calc(100% + 10px); }
.ed-accion { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #d6dbe3; background: #fff; color: var(--ed-negro); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(20,30,50,.18); padding: 0; transition: transform .1s, color .12s, border-color .12s; }
.ed-accion svg { width: 18px; height: 18px; }
.ed-accion:hover { border-color: var(--ed-sel); color: var(--ed-sel); }
.ed-accion--borrar:hover { border-color: #f0b4ae; color: #b4140a; }
.ed-accion:active { transform: scale(.92); }
/* Celular: caja para escribir arriba, con el teclado abajo y la hoja en medio. */
.ed-escribir { position: fixed; left: 0; right: 0; top: 56px; z-index: 45; display: flex; gap: 10px; align-items: flex-end; background: #fff; padding: 10px 12px; box-shadow: 0 10px 28px rgba(20,30,50,.2); }
.ed-escribir textarea { flex: 1; min-height: 46px; max-height: 32vh; box-sizing: border-box; border: 2px solid var(--ed-sel); border-radius: 12px; padding: 10px 12px; font-size: 16px; line-height: 1.35; resize: none; }
.ed-escribir textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(31,122,224,.18); }
.ed-escribir .ed-btn { height: 46px; }
@media (max-width: 820px) { .ed-accion { width: 40px; height: 40px; } .ed-accion svg { width: 20px; height: 20px; } }
/* Agenda y papel regalo con su logo (24 oct 2026): notas cortas en los paneles y en el pedido. */
.ed-nota { font-size: 13px; color: var(--ed-suave); margin: 6px 0 10px; line-height: 1.4; }
.ed-opciones button small { font-weight: 400; color: var(--ed-suave); font-size: 11.5px; }
.ed-plantillas .ed-mini .pgd-hoja { box-shadow: 0 1px 4px rgba(0,0,0,.18); }
