.foto-encuadre-modal{--background:#1a2b45;--foreground:#fff7e8;--card:#1a2b45;--card-foreground:#fff7e8;--primary:#f26b1f;--primary-foreground:#1a2b45;--secondary:#1a2b45;--secondary-foreground:#fff7e8;--accent:#ffd447;--accent-foreground:#1a2b45;--border:#ffd447;--input:#8e99aa;--muted:#34465f;--muted-foreground:#fff7e8;--ring:#ffd447;--editor-white:#fff;--editor-bone:#f5f5f5;--editor-black:#000;--editor-mask:oklch(0% 0 0/.45);--editor-overlay:oklch(16% .035 260/.88);width:calc(100vw - 32px);max-width:1100px;max-height:92dvh;color:var(--foreground);background:var(--background);flex-direction:column;gap:16px;font-family:Barlow Condensed,system-ui,sans-serif;display:flex;overflow:hidden}.foto-encuadre-modal button{cursor:pointer}.foto-encuadre-modal button:disabled{cursor:not-allowed;opacity:.45}.foto-encuadre-modal button[data-slot=switch][data-state=checked]{background:var(--primary)}.foto-editor-layout{grid-template-columns:minmax(0,1fr) 370px;gap:24px;min-height:0;display:grid;overflow:hidden}.foto-editor-preview{aspect-ratio:1;border:1px solid var(--border);background:var(--editor-bone);border-radius:6px;justify-content:center;place-self:start center;align-items:center;width:min(100%,480px);height:auto;display:flex;position:relative;overflow:hidden}.foto-editor-preview[data-fondo=blanco]{background:var(--editor-white)}.foto-editor-preview[data-fondo=negro]{background:var(--editor-black)}.foto-editor-preview[data-fondo=transparente]{background-color:var(--editor-white);background-image:repeating-conic-gradient(var(--border) 0% 25%, transparent 0% 50%);background-size:16px 16px}.foto-editor-frame{aspect-ratio:1;width:auto;max-width:100%;height:100%;max-height:100%;position:relative}.foto-editor-image{position:absolute;top:50%;left:50%}.foto-editor-canvas{object-fit:contain;touch-action:none;width:100%;height:100%;display:block}.foto-editor-canvas.pincel{cursor:crosshair}.foto-editor-loading{background:var(--background);place-items:center;padding:20px;font-size:13px;display:grid;position:absolute;inset:0}.foto-editor-tools{min-width:0;max-height:60vh;padding-right:8px;overflow-y:auto}.foto-editor-history{align-items:center;gap:8px;margin-bottom:12px;display:flex}.foto-editor-fieldset{border:0;min-width:0;margin:0;padding:0}.foto-editor-tools details{border-top:1px solid var(--border)}.foto-editor-tools summary{cursor:pointer;padding:14px 0;font-size:14px;font-weight:700}.foto-editor-section{gap:12px;padding:0 0 18px;display:grid}.foto-editor-buttons{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.foto-editor-zoom{grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:12px;display:grid}.foto-editor-switch{justify-content:space-between;align-items:center;gap:12px;display:flex}.foto-editor-error{color:var(--accent);margin-bottom:12px;font-size:12px}.foto-editor-footer{border-top:1px solid var(--border);background:var(--background);flex-direction:row;flex-shrink:0;justify-content:flex-end;gap:8px;padding-top:14px;display:flex;position:sticky;bottom:0}.foto-editor-crop{border:2px dashed var(--accent);box-shadow:0 0 0 2000px var(--editor-mask);cursor:move;touch-action:none;position:absolute}.foto-editor-crop-handle{background:var(--accent);cursor:se-resize;touch-action:none;width:14px;height:14px;position:absolute;bottom:-6px;right:-6px}@media (width<=1023px){.foto-encuadre-modal{padding:18px}.foto-editor-layout{grid-template-columns:minmax(0,1fr);gap:16px;overflow-y:auto}.foto-editor-preview{width:min(100%,320px);height:auto}.foto-editor-tools{max-height:none;padding:0;overflow:visible}}.foto-encuadre-overlay{z-index:50;background:var(--editor-overlay,oklch(16% .035 260/.88));place-items:center;padding:16px;display:grid;position:fixed;inset:0}.foto-encuadre-modal{border:1px solid var(--border);border-radius:8px;padding:24px}.foto-encuadre-modal h3,.foto-editor-tools summary{color:var(--accent);letter-spacing:0;font-family:Anton,system-ui,sans-serif;font-weight:400}.foto-encuadre-modal h3{margin:0;font-size:24px}.foto-editor-name{margin:4px 0 0}.foto-encuadre-modal button{color:var(--foreground);white-space:normal;height:auto;min-height:32px}.foto-encuadre-modal button.bg-primary{color:var(--primary-foreground)}.foto-encuadre-modal button:hover:not(:disabled){background:var(--accent);color:var(--accent-foreground)}.foto-encuadre-modal button[role=switch]{height:20px;min-height:20px}.foto-encuadre-modal button[role=switch][data-state=checked]{background:var(--primary)}.foto-encuadre-modal button[role=switch]>span{background:var(--editor-white)}.foto-encuadre-modal [role=slider]{background:var(--editor-white);border-color:var(--accent)}.foto-editor-preview[data-fondo=hueso]{background:var(--editor-bone)}.foto-editor-section label{font-size:14px}.foto-editor-buttons button{font-size:13px}.foto-editor-swatch{border:1px solid var(--input);border-radius:50%;flex-shrink:0;width:16px;height:16px;display:inline-block}.foto-editor-swatch[data-color=blanco]{background:var(--editor-white)}.foto-editor-swatch[data-color=hueso]{background:var(--editor-bone)}.foto-editor-swatch[data-color=negro]{background:var(--editor-black)}.foto-editor-footer{flex-wrap:wrap}.foto-editor-error{margin:0}@media (width<=600px){.foto-encuadre-modal{width:calc(100vw - 24px);padding:16px}.foto-editor-layout{gap:12px}}
