/* Créalo en Línea · tema visual V17.12 */
:root {
  --brand-navy:#002244;
  --brand-purple:#7353da;
  --brand-blue:#4169e1;
  --brand-soft:#f3effc;
  --brand-border:#e0e5ed;
  --bg:#f7f8fa;
  --panel:#ffffff;
  --text:#002244;
  --muted:#58677b;
  --line:#e0e5ed;
  --accent:#4169e1;
  --ok:#166534;
  --danger:#a52d3b;
}
body { font-family:'Open Sans',Arial,sans-serif; background:var(--bg); color:var(--text); }
button,input,select,textarea { font-family:inherit; }
h1,h2,h3 { color:var(--brand-navy); }
.panel { background:#fff; border-color:var(--line); border-radius:16px; box-shadow:0 4px 20px #00224406; }
.group { border-color:var(--line); border-radius:12px; box-shadow:none; }
.editor-tools > .app-header { background:#fff; color:var(--brand-navy); border:0; border-bottom:1px solid var(--line); border-radius:0; display:block; text-align:left; padding:8px 2px 20px; margin-bottom:18px; }
.editor-tools > .app-header h1 { font-size:23px; line-height:1.28; letter-spacing:-.5px; }
.brand-name { display:block; margin-bottom:8px; font-size:12px; font-weight:700; letter-spacing:.08em; color:var(--brand-purple); }
.panel h2,.design-stage-status h2 { font-size:13px; letter-spacing:.025em; font-weight:700; }
.section-icon { display:none; }
label { color:var(--brand-navy); font-weight:700; }
select,input[type='text'],input[type='number'],input[type='file'] { background:#fff; color:var(--text); border:1px solid #cbd3df; border-radius:8px; box-shadow:none; font-weight:400; min-height:44px; }
select:focus,input[type='text']:focus,input[type='number']:focus,input[type='file']:focus { border-color:var(--brand-purple); outline:2px solid #7353da30; outline-offset:2px; box-shadow:none; }
input[type='range'],input[type='checkbox'],input[type='radio'] { accent-color:var(--brand-purple); }
button { background:var(--brand-blue); color:white; border-radius:8px; }
button.secondary { background:#eef1f8; color:var(--brand-navy); }
button.light { background:#f4f6fa; color:var(--brand-navy); }
button.danger { background:#fff0f2; color:var(--danger); }
button:focus-visible { outline:3px solid var(--brand-purple); outline-offset:3px; }
.mode-card { background:#fff; border:1px solid #d8dfea; color:var(--brand-navy); border-radius:10px; box-shadow:none; }
.mode-card:hover { background:var(--brand-soft); border-color:#a58ce8; box-shadow:none; }
.mode-card.active { color:#fff; background:var(--brand-navy); border-color:var(--brand-navy); box-shadow:0 4px 12px #00224414; }
.mode-card strong { font-size:14px; }
.mode-card span { font-size:11px; }
.stage-wrap { background:#f0f3f7; border-color:#e0e5ed; border-radius:16px; }
.canvas-shell { background:#fff; border-radius:12px; box-shadow:0 8px 28px #0022440d; }
.design-stage-status { background:#fff; border-color:var(--line); }
.status.ok { background:#eef7f1; color:#21603c; }
.status.bad { background:#fff0f2; color:#982939; }
.status.notice { background:#fff7e7; color:#805b0b; }
.stage-view-toggle,.canvas-zoom-button,.canvas-reset-view { background:var(--brand-navy); color:#fff; border-color:#ffffffb0; box-shadow:0 4px 12px #00224418; }
.stage-view-toggle.active { background:var(--brand-purple); }
.canvas-zoom-value { color:var(--brand-navy); }
#exportSvgBtn { background:var(--brand-blue); color:#fff; min-height:46px; }
#exportSvgBtn:hover { background:#3154bd; }
.dial-floating-toolbar { background:#fffffffa; border:1px solid var(--brand-border); border-radius:18px; box-shadow:0 8px 32px #0022441c; }
.dial-floating-toolbar button { background:#f4f6fa; color:var(--brand-navy); border-radius:12px; }
.dial-floating-toolbar button:hover { background:var(--brand-soft); }
.dial-floating-toolbar button[aria-expanded='true'] { background:var(--brand-purple); color:#fff; }
.dial-floating-toolbar #deleteBtn { background:#fff0f2; color:var(--danger); }
.dial-floating-toolbar button:focus-visible,.dial-library-popup button:focus-visible { outline-color:var(--brand-purple); }
.dial-library-popup { background:#fff; color:var(--brand-navy); border-color:var(--line); border-radius:16px; box-shadow:0 12px 40px #00224424; }
.dial-library-popup header { background:#fff; color:var(--brand-navy); border-color:var(--line); }
.dial-library-popup .library-close { background:#f3effc; color:var(--brand-navy); }
.dial-library-content .thumbnail-card { background:#fff; color:var(--brand-navy); border-color:var(--line); }
.dial-library-content .thumbnail-card:hover { border-color:#a58ce8; }
.dial-library-content .thumbnail-card.selected { border-color:var(--brand-purple); outline-color:var(--brand-purple); box-shadow:0 0 0 2px #7353da20; }
.thumbnail-label { font-weight:600; }
.designs-dock .my-designs-trigger { background:var(--brand-soft); color:var(--brand-navy); border-color:#d6c9f5; box-shadow:0 4px 18px #00224412; }
.designs-dock .my-designs-trigger[aria-expanded='true'] { background:var(--brand-purple); color:white; border-color:var(--brand-purple); }
.designs-dock .my-designs-dialog { background:white; color:var(--brand-navy); box-shadow:0 8px 35px #00224420; }
.designs-dock header { color:var(--brand-navy); background:white; }
.designs-dock .designs-pin { background:var(--brand-soft); color:#5332b4; border-color:#d6c9f5; }
.designs-dock .designs-pin[aria-pressed='true'] { background:var(--brand-purple); color:white; }
.designs-dock .designs-close { background:#f3f5f9; color:var(--brand-navy); }
.designs-count { background:var(--brand-soft); color:#5332b4; }
.designs-dock .designs-status { color:#5332b4; }
.designs-dock .design-slot { border-color:var(--line); }
.designs-dock .design-slot.is-selected { border-color:var(--brand-purple); background:#faf8ff; box-shadow:0 0 0 1px #7353da40; }
.designs-dock .design-slot-select { color:var(--brand-navy); }
.design-slot-icon { background:#f3f5f8; color:#687994; }
.design-slot-select small,.designs-dock .designs-help { color:var(--muted); }
.designs-dock .designs-save { background:var(--brand-blue); color:white; }
.designs-dock .designs-save:hover { background:#3154bd; }
.designs-dock button:focus-visible { outline-color:var(--brand-purple); }
.design-slot-actions button.secondary { background:#fff5f6; color:var(--danger); border:1px solid #efdadf; }
.image-modal-panel { background:white; border-color:var(--line); border-radius:16px; }
.image-modal-header { background:white; color:var(--brand-navy); text-align:left; }
.image-modal-header h2 { color:var(--brand-navy); }
.image-modal .secondary,.image-modal-close { background:#f3effc; color:var(--brand-navy); }
.image-modal-footer { border-color:var(--line); }
.motion-toast { background:var(--brand-navy); }
@keyframes selectedPop { from { box-shadow:0 0 0 0 #7353da40; } to { box-shadow:0 0 0 4px #7353da00; } }
@media(max-width:600px){
  .editor-tools > .app-header h1 { font-size:21px; }
  .dial-floating-toolbar button svg { width:32px; height:32px; }
}

/* Dos columnas: herramientas y área de diseño; sin panel de exportación. */
@media(min-width:1051px){.app { grid-template-columns:280px minmax(0,1fr); max-width:1200px; }}
@media(min-width:1400px){body.designs-pinned .app { grid-template-columns:240px minmax(0,1fr); }}
.design-slot-actions .design-buy:disabled { color:#687994; background:#f5f6fa; border:1px solid #e0e5ed; opacity:.7; cursor:not-allowed; }

/* V17.14 · Flechas táctiles para tamaño de texto */
.font-size-stepper { display:flex; gap:8px; align-items:stretch; }
.font-size-stepper #fontSizeInput { width:100%; min-width:0; flex:1; font-size:18px; text-align:center; -moz-appearance:textfield; }
.font-size-stepper #fontSizeInput::-webkit-inner-spin-button,
.font-size-stepper #fontSizeInput::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.font-size-arrows { display:flex; flex-direction:column; gap:4px; }
.font-size-arrows button { width:44px; min-height:44px; padding:8px; margin:0; background:var(--brand-soft); color:var(--brand-navy); font-size:17px; touch-action:manipulation; }
.font-size-arrows button:disabled { opacity:.4; cursor:default; }
@media(max-width:600px){#textToolsGroup .row { grid-template-columns:1fr; }}
