/* WicPic dentro de una invitación Wicion · aislado del WicPic standalone */
.wicpic-invite-section{background:var(--seg-bg,var(--wic-invite-section-bg,#f4f8f4));text-align:var(--wic-invite-align,center);color:var(--wic-invite-text,var(--seg-text,#334155))}
.wicpic-invite-card{width:min(520px,100%);margin:0 auto;padding:24px 20px;background:var(--wic-invite-card-bg,#fff);border:1px solid var(--wic-invite-card-border,#d7b06a);border-radius:var(--wic-invite-card-radius,18px);box-shadow:0 16px 38px rgba(24,31,42,.08)}
.wicpic-invite-card.is-cardless{padding:0;background:transparent;border-color:transparent;border-radius:0;box-shadow:none}
.wicpic-invite-title{margin:0 0 10px;font-family:var(--wic-invite-title-font,'Cormorant Garamond',serif);font-size:var(--wic-invite-title-size,34px);line-height:1.12;color:var(--wic-invite-title-color,#1f2a44);font-weight:600}
.wicpic-invite-description{margin:0 auto 12px;max-width:430px;font-size:15px;line-height:1.5;color:var(--wic-invite-text,var(--seg-text,#334155))}
.wicpic-invite-hashtag{display:inline-block;margin:2px 0 16px;color:var(--wic-invite-hashtag,#b89555);font-weight:800;letter-spacing:.03em;text-decoration:none}
.wicpic-invite-media-wrap{display:grid;place-items:center;min-height:20px;margin:0 auto 14px}
.wicpic-invite-media{width:var(--wic-invite-media-size,72px);height:var(--wic-invite-media-size,72px);transform:translate(var(--wic-invite-media-x,0px),var(--wic-invite-media-y,0px));display:grid;place-items:center;background:var(--wic-invite-media-bg,#fff);border-radius:var(--wic-invite-media-radius,16px);overflow:hidden}
.wicpic-invite-media img,.wicpic-invite-media video,.wicpic-invite-media>div{width:100%;height:100%;object-fit:contain;display:block}
.wicpic-invite-media-svg{width:100%;height:100%;background:var(--wic-invite-media-color,#1f2a44);-webkit-mask:var(--wic-invite-mask) center/contain no-repeat;mask:var(--wic-invite-mask) center/contain no-repeat}
.wicpic-invite-qr-link{display:inline-grid;place-items:center;text-decoration:none;color:inherit;cursor:pointer}
.wicpic-invite-qr{width:var(--wic-invite-qr-size,190px);height:var(--wic-invite-qr-size,190px);display:grid;place-items:center;background:var(--wic-invite-qr-bg,#fff);border-radius:12px;padding:8px;box-shadow:0 8px 24px rgba(17,24,39,.08)}
.wicpic-invite-qr>div,.wicpic-invite-qr canvas,.wicpic-invite-qr img{max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important}
.wicpic-invite-qr-caption{display:block;margin:8px 0 0;font-size:11px;line-height:1.35;color:var(--wic-invite-text,var(--seg-text,#334155))}
.wicpic-invite-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin-top:14px;padding:0 16px;border:1px solid var(--wic-invite-card-border,#d7b06a);border-radius:999px;background:var(--wic-invite-title-color,#1f2a44);color:#fff;text-decoration:none;font-size:12px;font-weight:800;cursor:pointer}
.wicpic-invite-disabled{opacity:.55;pointer-events:none}
.wicpic-invite-demo-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:18px auto 0;max-width:420px}
.wicpic-invite-demo-strip img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px;display:block}
.wicpic-invite-note{display:block;margin-top:10px;font-size:9px;opacity:.68}

/* Demo seguro para modelos: popup configurable. */
.wicpic-demo-modal[hidden]{display:none!important}
.wicpic-demo-modal{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:16px;background:color-mix(in srgb,var(--wic-demo-overlay-color,#080a0e) var(--wic-demo-overlay-opacity,76%),transparent);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);overscroll-behavior:contain}
.wicpic-demo-dialog{position:relative;width:min(var(--wic-demo-window-width,620px),100%);max-height:min(760px,92dvh);overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:var(--wic-demo-window-bg,#f7f2ea);color:var(--wic-demo-window-text,#1b1713);border:var(--wic-demo-window-border-width,0px) solid var(--wic-demo-window-border,#e5d8c7);border-radius:var(--wic-demo-window-radius,20px);padding:var(--wic-demo-window-padding,18px);box-shadow:var(--wic-demo-window-shadow,0 26px 80px rgba(0,0,0,.42))}
.wicpic-demo-close{position:sticky;float:right;top:0;z-index:2;width:var(--wic-demo-close-size,34px);height:var(--wic-demo-close-size,34px);border:0;border-radius:50%;background:var(--wic-demo-close-bg,#1b1713);color:var(--wic-demo-close-color,#fff);font-size:calc(var(--wic-demo-close-size,34px) * .62);line-height:1;display:grid;place-items:center;cursor:pointer}
.wicpic-demo-brand,.wicpic-demo-kicker,.wicpic-demo-dialog h3,.wicpic-demo-copy,.wicpic-demo-hash{box-sizing:border-box}
.wicpic-demo-gallery{display:grid;grid-template-columns:repeat(var(--wic-demo-photo-cols,4),minmax(0,1fr));gap:var(--wic-demo-photo-gap,3px);margin:13px 0}
.wicpic-demo-gallery img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--wic-demo-photo-radius,5px);display:block}
.wicpic-demo-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;align-items:center;justify-items:stretch}
.wicpic-demo-file{display:flex;min-height:44px;align-items:center;justify-content:center;gap:var(--wic-demo-action-gap,7px);padding:6px 10px;border:1px solid var(--wic-demo-action-border,#d9cdbd);border-radius:var(--wic-demo-action-radius,11px);background:var(--wic-demo-action-bg,#fff);color:var(--wic-demo-action-text,#1b1713);font-family:var(--wic-demo-action-font,Montserrat,sans-serif);font-size:var(--wic-demo-action-size,11px);font-weight:var(--wic-demo-action-weight,900);cursor:pointer;box-sizing:border-box}
.wicpic-demo-action-svg{display:inline-block;width:var(--wic-demo-action-icon-size,22px);height:var(--wic-demo-action-icon-size,22px);flex:0 0 auto;background:currentColor;-webkit-mask-position:center;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;mask-position:center;mask-size:contain;mask-repeat:no-repeat}
.wicpic-demo-action-svg.is-camera{color:var(--wic-demo-camera-icon,#1b1713);-webkit-mask-image:url('/public/assets/icons/camera.svg');mask-image:url('/public/assets/icons/camera.svg')}
.wicpic-demo-action-svg.is-gallery{color:var(--wic-demo-gallery-icon,#1b1713);-webkit-mask-image:url('/public/assets/icons/picture.svg');mask-image:url('/public/assets/icons/picture.svg')}
.wicpic-demo-file.is-icon-only{min-width:max(44px,calc(var(--wic-demo-action-icon-size,22px) + 18px));min-height:max(44px,calc(var(--wic-demo-action-icon-size,22px) + 18px));width:max-content;padding:5px;border:0;background:transparent;border-radius:0;justify-self:center}
.wicpic-demo-file.is-icon-only .wicpic-demo-action-text{display:none}
.wicpic-demo-file input{display:none}
.wicpic-demo-local-preview{display:grid;grid-template-columns:repeat(var(--wic-demo-photo-cols,4),minmax(0,1fr));gap:var(--wic-demo-photo-gap,3px);margin-top:8px}
.wicpic-demo-local-preview img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--wic-demo-photo-radius,5px);display:block}
.wicpic-demo-safety{margin-top:11px;padding:10px;border:1px solid var(--wic-demo-safety-border,#f1dda8);border-radius:var(--wic-demo-safety-radius,10px);background:var(--wic-demo-safety-bg,#fff4d8);box-sizing:border-box}
.wicpic-demo-safety strong{font-weight:800}
@media(max-width:600px){
  .wicpic-invite-card{padding:20px 14px}
  .wicpic-invite-demo-strip{grid-template-columns:repeat(3,1fr)}
  .wicpic-demo-gallery,.wicpic-demo-local-preview{grid-template-columns:repeat(var(--wic-demo-photo-cols-mobile,3),minmax(0,1fr))}
  .wicpic-demo-actions{grid-template-columns:1fr}
  .wicpic-demo-dialog.has-icon-only-actions .wicpic-demo-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* V57 · QR del álbum con el mismo logo central que /cliente/wicpic */
.wicpic-invite-qr [data-wicpic-qr]{position:relative;display:block;width:100%;height:100%}
.wicpic-invite-qr .wicpic-invite-qr-logo{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  width:var(--wicpic-qr-logo-scale,18%)!important;
  height:var(--wicpic-qr-logo-scale,18%)!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  box-sizing:content-box!important;
  padding:3%!important;
  border-radius:14%!important;
  background:var(--wicpic-qr-logo-bg,#fff)!important;
  z-index:3;
  pointer-events:none;
}
