/* Maquetador de álbumes (/albumes.php) — se apoya en tarjetas.css */
.am-nav { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; }
.am-nav strong { min-width: 9rem; text-align: center; }
.am-nav-sp { flex: 1; }
.am-nav .btn-secondary { padding: .4rem .9rem; font-size: .85rem; }
.am-strip-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin: 1rem 0 .4rem; font-size: .85rem; }
.am-strip-btns { display: flex; flex-wrap: wrap; gap: .35rem; }
.am-strip-btns .btn-secondary { padding: .3rem .7rem; font-size: .8rem; }
.am-strip-btns .btn-secondary:disabled { opacity: .4; cursor: default; }
.am-strip { display: flex; gap: .5rem; overflow-x: auto; padding: .4rem .2rem .7rem; scrollbar-width: thin; }
.am-thumb { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .2rem; background: #fff; border: 2px solid #e6dce3; border-radius: .5rem; padding: .3rem; cursor: pointer; font: inherit; font-size: .72rem; color: #5b4a57; }
.am-thumb canvas { display: block; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.am-thumb.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, white); font-weight: 700; }
.cm-field { display: block; font-size: .82rem; font-weight: 600; margin: .5rem 0; }
.cm-field input, .cm-field select { width: 100%; margin: .2rem 0 0; font-size: .9rem; font-weight: 400; }
.am-assets button { position: relative; }
.am-assets button.used { border-color: #b9d8c1; }
.am-badge { position: absolute; right: 3px; top: 3px; background: #2f8f4e; color: #fff; font-style: normal; font-size: .65rem; font-weight: 700; border-radius: 999px; padding: 0 .35rem; line-height: 1.4; }
.am-face { position: absolute; left: 3px; bottom: 3px; background: rgba(0,0,0,.6); color: #fff; font-style: normal; font-size: .62rem; border-radius: 999px; padding: 0 .3rem; line-height: 1.5; }
#amShowUnused.on { background: var(--primary); color: #fff; }
.am-prog { position: relative; height: 1.4rem; background: #efe6ec; border-radius: 999px; overflow: hidden; margin: .5rem 0; }
.am-prog > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), #e0566e); transition: width .2s; }
.am-prog > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 600; color: #3b2a38; }
.am-variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.am-variants button { padding: 0; border: 2px solid #e6dce3; border-radius: .5rem; overflow: hidden; cursor: pointer; background: #fff; display: flex; flex-direction: column; font: inherit; }
.am-variants button:hover { border-color: var(--primary); }
.am-variants canvas { width: 100%; height: auto; display: block; }
.am-variants span { font-size: .7rem; padding: .2rem; color: #5b4a57; }
.am-warn { flex: 1 1 100%; background: #fff6e0; border-radius: .6rem; padding: .45rem .8rem; font-size: .82rem; }
.am-preview { width: min(980px, 96vw) !important; }
.am-preview-list { display: flex; flex-direction: column; gap: 1rem; background: #eee; border-radius: .8rem; padding: .8rem; margin: .6rem 0; max-height: 60vh; overflow-y: auto; }
.am-preview-list figure { margin: 0; text-align: center; }
.am-preview-list canvas { max-width: 100%; height: auto; box-shadow: 0 6px 22px rgba(0,0,0,.3); }
.am-preview-list figcaption { font-size: .78rem; font-weight: 700; color: #5b4a57; margin-top: .3rem; }
.am-upload { margin-top: .8rem; }
.am-upload .am-prog { height: 1.8rem; }
#amCanvas { max-width: 100%; }
.cm-btnrow .btn-secondary:disabled, .cm-ico:disabled { opacity: .4; cursor: default; }

/* Pieles del álbum y avisos de zona de corte */
.am-skins { display:flex; align-items:center; gap:.9rem; flex-wrap:wrap; margin:.2rem 0 .8rem; }
.am-skin-list { display:flex; gap:.5rem; flex-wrap:wrap; }
.am-skin { border:2px solid transparent; border-radius:.6rem; padding:3px; background:#fff; cursor:pointer; text-align:center; font:inherit; font-size:.75rem; color:#493d49; }
.am-skin img { display:block; width:64px; height:44px; object-fit:cover; border-radius:.4rem; }
.am-skin.on { border-color:#77556f; box-shadow:0 0 0 2px rgba(119,85,111,.2); }
.am-skin small { display:block; color:#7b6877; }
.am-fold-note strong { color:#c0392b; }
.cm-stage-wrap.am-leather { background-size:cover; background-position:center; padding:clamp(14px,4vw,40px); border-radius:.8rem; box-shadow:inset 0 0 40px rgba(0,0,0,.35); }

/* Bandeja de fotos siempre visible bajo el lienzo */
.am-tray { margin:.6rem 0 .4rem; background:#fff; border:1px solid #e6dce3; border-radius:.8rem; padding:.6rem .7rem; }
.am-tray-head { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; margin-bottom:.4rem; }
.am-tray-head span { color:#7b6877; font-size:.85rem; }
.am-tray-head .btn-secondary { font-size:.78rem; padding:.3rem .8rem; cursor:pointer; }
.am-tray-head .am-tray-up { margin-left:auto; }
.am-tray-list { display:flex !important; gap:.4rem; overflow-x:auto; padding-bottom:.3rem; min-height:72px; align-items:center; }
.am-tray-list button { flex:0 0 72px; width:72px; height:72px; position:relative; }
.am-tray .cm-note { margin:.3rem 0 0; }
.am-spread-designs { grid-template-columns: 1fr; }
.am-chips { display:flex; flex-wrap:wrap; gap:.35rem; margin-bottom:.5rem; }
.am-chip { border:1px solid #e0d3dc; background:#fff; border-radius:999px; padding:.28rem .7rem; font:inherit; font-size:.78rem; cursor:pointer; color:#5b4a57; }
.am-chip.on { background:#77556f; color:#fff; border-color:#77556f; }

.am-magnote { margin: 0 0 .6rem; padding: .6rem .8rem; border-radius: .7rem; background: #fff4d6; border: 1px solid #f0c75e; color: #5b4300; font-size: .92rem; line-height: 1.4; }
.am-magnote[hidden] { display: none; }

.am-covers { max-height: 520px; overflow-y: auto; padding-right: .2rem; }
