/* ===== ARTURO FOTOGRAFÍA — IMPRESIÓN DE FOTOS ===== */
:root {
  --af-gold:   #c8a84b;
  --af-dark:   #0f0e0c;
  --af-dark2:  #1a1917;
  --af-cream:  #f4f1ec;
  --af-border: #e4e0d8;
}

/* WRAP */
#arturo-impresion-app { font-family: 'DM Sans', sans-serif; color: #1a1a18; }

/* HEADER */
.ai-product-header { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--af-border); }
.ai-eyebrow  { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--af-gold); margin-bottom: 6px; }
.ai-title    { font-size: 30px; font-weight: 400; line-height: 1.15; margin-bottom: 8px; }
.ai-rating   { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #888; margin-bottom: 10px; }
.ai-stars    { color: var(--af-gold); letter-spacing: 2px; }
.ai-desc     { font-size: 14px; color: #666; line-height: 1.75; }

/* LAYOUT */
.ai-layout   { display: grid; grid-template-columns: 1fr 340px; gap: 0; align-items: start; }
.ai-left     { padding-right: 32px; }
.ai-right    { position: sticky; top: 80px; }

/* SECTIONS */
.ai-section       { margin-bottom: 28px; }
.ai-section-title { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #888; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.ai-section-title::after { content: ''; flex: 1; height: 1px; background: #eee; }
.ai-step { width: 22px; height: 22px; border-radius: 50%; background: var(--af-dark); color: var(--af-gold); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* SIZE TABS */
.ai-size-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.ai-size-tab  { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500; cursor: pointer; border: 1.5px solid #ddd; background: white; color: #777; transition: all .15s; font-family: inherit; }
.ai-size-tab.active { background: var(--af-dark); color: var(--af-gold); border-color: var(--af-dark); }

/* SIZE GRID */
.ai-size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ai-size-btn  { padding: 10px 8px; border: 1.5px solid #ddd; border-radius: 10px; background: white; font-family: inherit; cursor: pointer; transition: all .15s; text-align: center; line-height: 1.35; }
.ai-size-btn:hover  { border-color: var(--af-gold); background: #fdfaf4; }
.ai-size-btn.active { border-color: var(--af-dark); background: var(--af-dark); color: white; }
.ai-sz { font-size: 13px; font-weight: 600; display: block; }
.ai-pr { font-size: 11px; opacity: .65; display: block; margin-top: 2px; }
.ai-size-btn.active .ai-pr { opacity: .75; }

/* PAPER */
.ai-paper-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-paper-btn  { padding: 8px 18px; border: 1.5px solid #ddd; border-radius: 8px; background: white; font-family: inherit; font-size: 13px; cursor: pointer; transition: all .15s; color: #444; }
.ai-paper-btn:hover  { border-color: var(--af-gold); }
.ai-paper-btn.active { border-color: var(--af-dark); background: var(--af-dark); color: var(--af-gold); }

/* BORDER */
.ai-border-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ai-border-card { border: 1.5px solid #ddd; border-radius: 12px; padding: 14px; cursor: pointer; transition: all .2s; display: flex; gap: 12px; align-items: center; background: white; }
.ai-border-card:hover  { border-color: var(--af-gold); background: #fdfaf4; }
.ai-border-card.active { border-color: var(--af-dark); background: var(--af-dark); }
.ai-border-preview     { width: 48px; height: 36px; border-radius: 6px; flex-shrink: 0; overflow: hidden; }
.ai-bp-noborder        { width: 100%; height: 100%; background: linear-gradient(135deg,#c8b89a,#8a7a6a); }
.ai-bp-border          { width: 100%; height: 100%; background: white; border: 2px solid #ddd; display: flex; align-items: center; justify-content: center; }
.ai-bp-inner           { width: 70%; height: 70%; background: linear-gradient(135deg,#c8b89a,#8a7a6a); }
.ai-border-info        { flex: 1; }
.ai-border-name        { font-size: 13px; font-weight: 600; display: block; margin-bottom: 2px; }
.ai-border-card.active .ai-border-name { color: var(--af-gold); }
.ai-border-sub         { font-size: 11px; opacity: .65; }
.ai-border-card.active .ai-border-sub  { color: #aaa; opacity: 1; }

/* DROPZONE */
.ai-dropzone { border: 2px dashed #d4cfc6; border-radius: 16px; background: #faf9f7; padding: 40px 24px; text-align: center; cursor: pointer; transition: all .2s; position: relative; }
.ai-dropzone:hover, .ai-dropzone.drag-over { border-color: var(--af-gold); background: #fdfaf4; }
.ai-dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ai-dz-icon  { font-size: 38px; display: block; margin-bottom: 10px; }
.ai-dz-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.ai-dz-title span { color: var(--af-gold); text-decoration: underline dotted; }
.ai-dz-sub   { font-size: 13px; color: #888; line-height: 1.6; }
.ai-dz-limit { display: inline-block; margin-top: 10px; font-size: 11px; color: #aaa; background: #eee; border-radius: 20px; padding: 3px 12px; }

/* PROGRESS */
.ai-upload-progress  { display: none; margin-top: 14px; }
.ai-progress-header  { display: flex; justify-content: space-between; font-size: 12px; color: #888; margin-bottom: 6px; }
.ai-progress-track   { height: 5px; background: #e4e0d8; border-radius: 3px; overflow: hidden; }
.ai-progress-bar     { height: 100%; background: var(--af-gold); border-radius: 3px; width: 0; transition: width .3s; }
.ai-upload-errors    { margin-top: 10px; font-size: 12px; color: #c0392b; background: #fef0f0; padding: 10px 14px; border-radius: 8px; line-height: 1.8; }
.ai-upload-errors p  { margin: 0; }

/* PHOTOS HEADER */
.ai-photos-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ai-photos-count  { font-size: 13px; color: #888; font-weight: 500; }
.ai-clear-all     { font-size: 12px; color: #e05050; cursor: pointer; background: none; border: none; font-family: inherit; padding: 4px 8px; border-radius: 6px; transition: background .15s; }
.ai-clear-all:hover { background: #fef0f0; }

/* PHOTOS GRID */
.ai-photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.ai-photo-card  { background: white; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--af-border); position: relative; transition: all .2s; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.ai-photo-card:hover { border-color: var(--af-gold); box-shadow: 0 4px 16px rgba(200,168,75,.15); transform: translateY(-1px); }
.ai-photo-edited { position: absolute; top: 6px; left: 6px; background: var(--af-dark); color: var(--af-gold); font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 600; z-index: 2; }
.ai-photo-remove { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.6); color: white; border: none; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; z-index: 2; line-height: 1; }
.ai-photo-card:hover .ai-photo-remove { opacity: 1; }
.ai-thumb-wrap  { width: 100%; height: 110px; overflow: hidden; background: #f0ede8; position: relative; }
.ai-thumb       { width: 100%; height: 100%; object-fit: cover; }
.ai-thumb-border-overlay { position: absolute; inset: 0; box-shadow: inset 0 0 0 8px white; pointer-events: none; }
.ai-photo-body  { padding: 10px; }
.ai-photo-name  { font-size: 10px; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.ai-qty-control { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ai-qty-label   { font-size: 12px; color: #666; font-weight: 500; }
.ai-qty-row     { display: flex; align-items: center; gap: 5px; }
.ai-qty-btn     { width: 26px; height: 26px; border: 1.5px solid #ddd; border-radius: 7px; background: white; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #333; transition: all .15s; line-height: 1; font-weight: 300; }
.ai-qty-btn:hover { background: var(--af-dark); color: var(--af-gold); border-color: var(--af-dark); }
.ai-qty-val     { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }
.ai-edit-btn    { width: 100%; padding: 6px; border: 1.5px solid var(--af-border); border-radius: 8px; background: transparent; font-family: inherit; font-size: 12px; color: #555; cursor: pointer; transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 5px; }
.ai-edit-btn:hover { border-color: var(--af-gold); background: #fdfaf4; color: var(--af-dark); }

/* RIGHT PANEL */
.ai-order-card       { background: white; border-radius: 14px; border: 1px solid var(--af-border); padding: 20px; margin-bottom: 14px; }
.ai-order-card-title { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #888; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #f0ede8; }
.ai-order-row        { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 9px; color: #666; }
.ai-order-row:last-child { margin-bottom: 0; }
.ai-order-row strong { color: #1a1a18; font-weight: 500; }
.ai-order-divider    { border: none; border-top: 1px solid #eee; margin: 12px 0; }
.ai-order-total      { display: flex; justify-content: space-between; align-items: baseline; }
.ai-total-label      { font-size: 15px; font-weight: 600; }
.ai-total-amount     { font-size: 26px; font-weight: 600; color: var(--af-dark); }

/* ORDER PHOTO LIST */
.ai-order-photos     { max-height: 200px; overflow-y: auto; }
.ai-order-row-photo  { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f4f1ec; font-size: 12px; }
.ai-order-row-photo:last-child { border-bottom: none; }
.ai-order-thumb      { width: 32px; height: 32px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.ai-order-fname      { flex: 1; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-order-fqty       { color: var(--af-dark); font-weight: 700; flex-shrink: 0; }

/* ADD TO CART */
.ai-add-cart-btn { width: 100%; padding: 15px; border-radius: 12px; background: var(--af-dark); color: var(--af-gold); border: none; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s; margin-bottom: 12px; }
.ai-add-cart-btn:hover:not(:disabled) { background: #2a2a28; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.ai-add-cart-btn:disabled { background: #d4d0c8; color: #999; cursor: not-allowed; transform: none; box-shadow: none; }

/* TRUST */
.ai-trust-badges { display: flex; justify-content: center; gap: 18px; margin-top: 12px; }
.ai-badge        { text-align: center; font-size: 11px; color: #aaa; line-height: 1.5; }
.ai-badge span   { font-size: 18px; display: block; margin-bottom: 3px; }

/* ===== EDITOR MODAL ===== */
.ai-overlay        { position: fixed; inset: 0; background: rgba(10,9,8,.85); z-index: 999990; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(6px); }
.ai-overlay.open   { opacity: 1; pointer-events: all; }
.ai-editor-modal   { background: white; border-radius: 20px; width: 640px; max-width: 100%; max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; transform: translateY(20px) scale(.97); transition: transform .25s; }
.ai-overlay.open .ai-editor-modal { transform: none; }
.ai-editor-header  { padding: 18px 24px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; background: var(--af-dark); }
.ai-editor-header h2 { font-size: 18px; font-weight: 500; color: var(--af-gold); margin: 0; }
.ai-editor-close   { border: none; background: rgba(255,255,255,.08); font-size: 20px; cursor: pointer; color: #aaa; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.ai-editor-close:hover { background: rgba(255,255,255,.15); color: white; }
.ai-editor-body    { flex: 1; overflow-y: auto; padding: 20px 24px; }

.ai-canvas-wrap    { background: #111; border-radius: 14px; overflow: hidden; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; min-height: 260px; position: relative; }
.ai-canvas-img     { max-width: 100%; max-height: 300px; object-fit: contain; transition: filter .1s, transform .1s; display: block; }
.ai-border-overlay { position: absolute; inset: 0; border: 16px solid white; pointer-events: none; opacity: 0; transition: opacity .2s; }
.ai-border-overlay.show { opacity: 1; }
.ai-bleed-label    { position: absolute; bottom: 10px; right: 10px; font-size: 10px; color: rgba(255,255,255,.4); background: rgba(0,0,0,.4); padding: 3px 8px; border-radius: 4px; }

/* TOOL TABS */
.ai-tool-tabs  { display: flex; gap: 4px; margin-bottom: 16px; background: #f4f1ec; padding: 4px; border-radius: 10px; }
.ai-tool-tab   { flex: 1; padding: 8px 4px; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; border: none; background: transparent; font-family: inherit; color: #777; transition: all .15s; text-align: center; }
.ai-tool-tab.active { background: white; color: var(--af-dark); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.ai-tool-panel { display: none; }
.ai-tool-panel.active { display: block; }

/* SLIDERS */
.ai-slider-group { margin-bottom: 14px; }
.ai-slider-top   { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; color: #444; font-weight: 500; }
.ai-slider-top span:last-child { font-weight: 700; color: var(--af-dark); }
input[type=range]                          { width: 100%; -webkit-appearance: none; height: 5px; border-radius: 3px; background: #e4e0d8; outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb   { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--af-dark); cursor: pointer; }
input[type=range]::-moz-range-thumb       { width: 18px; height: 18px; border-radius: 50%; background: var(--af-dark); cursor: pointer; border: none; }
.ai-reset-btn  { background: none; border: none; font-family: inherit; font-size: 12px; color: #bbb; cursor: pointer; text-decoration: underline dotted; margin-top: 4px; padding: 0; }
.ai-reset-btn:hover { color: #e05050; }

/* FILTERS */
.ai-filters-grid   { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.ai-filter-item    { cursor: pointer; border-radius: 10px; padding: 5px; border: 2px solid transparent; transition: all .15s; text-align: center; }
.ai-filter-item:hover  { border-color: #ddd; background: #f9f9f9; }
.ai-filter-item.active { border-color: var(--af-gold); background: #fdfaf4; }
.ai-filter-preview { width: 100%; aspect-ratio: 3/2; border-radius: 7px; overflow: hidden; margin-bottom: 5px; background: #d4cfc6; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.ai-filter-label   { font-size: 10px; color: #555; font-weight: 500; }
.ai-filter-item.active .ai-filter-label { color: var(--af-dark); font-weight: 600; }

/* TRANSFORM */
.ai-transform-hint { font-size: 13px; color: #888; margin-bottom: 12px; }
.ai-transform-row  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.ai-transform-btn  { padding: 12px 6px; border: 1.5px solid var(--af-border); border-radius: 10px; background: white; font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: all .15s; text-align: center; color: #444; }
.ai-transform-btn:hover { border-color: var(--af-gold); background: #fdfaf4; }
.ai-transform-btn span  { font-size: 22px; display: block; margin-bottom: 4px; }

/* CROP INFO */
.ai-crop-info { background: #fdfaf4; border: 1px solid #f0e8cc; border-radius: 10px; padding: 14px 16px; font-size: 13px; color: #666; line-height: 1.75; }
.ai-crop-info strong { color: var(--af-dark); display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }

/* EDITOR FOOTER */
.ai-editor-footer  { padding: 14px 24px; border-top: 1px solid #eee; display: flex; gap: 10px; flex-shrink: 0; background: #faf9f7; }
.ai-editor-cancel  { flex: 1; padding: 12px; border: 1.5px solid #ddd; border-radius: 10px; background: white; font-family: inherit; font-size: 14px; cursor: pointer; color: #555; transition: all .15s; }
.ai-editor-cancel:hover { border-color: var(--af-gold); }
.ai-editor-apply   { flex: 2; padding: 12px; border: none; border-radius: 10px; background: var(--af-dark); color: var(--af-gold); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; }
.ai-editor-apply:hover { background: #2a2a28; }

/* RESPONSIVE */
@media (max-width: 820px) {
  .ai-layout { grid-template-columns: 1fr; }
  .ai-left   { padding-right: 0; }
  .ai-right  { position: static; margin-top: 24px; }
  .ai-size-grid { grid-template-columns: repeat(2,1fr); }
  .ai-size-tabs { overflow-x: auto; }
}
