/* Glowtto | Panel Inicio & banners, companion to existing hero-blend editors.
   Palette: cream #fffaf7, rose #ae576b, chocolate #5b3a38. */
.glow-header-social{max-width:none;display:flex;gap:14px;align-items:center;justify-content:flex-end;padding:6px max(22px,calc((100vw - 1160px)/2));background:#fffaf7;color:#966776;border-bottom:1px solid #f0e1dc;min-height:34px}
.glow-header-social.hidden{display:none!important}
.glow-header-social-title{font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
#glowHeaderSocialLinks{display:flex;align-items:center;flex-wrap:wrap;gap:13px}
.glow-header-social-link{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:#865b67;font-size:11px;font-weight:600;min-height:25px;border-radius:10px;padding:3px 5px;transition:color .18s,background .18s,transform .18s}
.glow-header-social-link:hover,.glow-header-social-link:focus-visible{color:#a34863;background:#f9e7e9;transform:translateY(-1px)}
.glow-header-social-icon{display:grid;place-items:center;width:19px;height:19px;border-radius:6px;background:#f3dfe5;color:#a24b68;font-size:14px;font-weight:800;font-family:Arial,sans-serif}
.glow-header-social-link[data-network="tiktok"] .glow-header-social-icon{font-size:16px}
.glow-header-social-link[data-network="instagram"] .glow-header-social-icon{font-size:21px;line-height:1}
/* Editor cards */
.home-editor-main{background:linear-gradient(160deg,#fffdfa,#fff9f9)}
.home-editor-main .section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;flex-wrap:wrap}
.home-editor-main .section-heading h3{font-size:clamp(19px,2.4vw,26px);color:#5b3a38;margin:4px 0}
.home-editor-layout{display:grid;grid-template-columns:minmax(235px,.75fr) minmax(0,1.45fr);gap:22px;margin-top:17px}
.home-editor-sidebar{min-width:0}
.home-editor-sidebar h4{font-size:14px;color:#6a444d;margin:0 0 6px}
.home-editor-sidebar>p{margin:0 0 12px}
.home-editor-slides{display:grid;gap:8px}
.home-editor-slide-card{border:1px solid #eadbd9;display:flex;align-items:center;gap:11px;text-align:left;padding:9px;background:white;border-radius:15px;width:100%;min-width:0;color:#644750;transition:border-color .25s,background .25s,transform .25s,box-shadow .25s}
.home-editor-slide-card:hover{transform:translateY(-1px);border-color:#ce9caa;box-shadow:0 8px 20px #6e3e4811}
.home-editor-slide-card.selected{background:#fff6f5;border-color:#ab6078;box-shadow:0 0 0 2px #e7cdd6}
.home-editor-slide-card.is-disabled{opacity:.62}
.home-editor-slide-card>img,.home-editor-slide-decor{width:66px;height:59px;object-fit:cover;border-radius:10px;flex:none;background:linear-gradient(145deg,#fff2ee,#edd9e2)}
.home-editor-slide-decor{display:grid;place-items:center;font-size:28px;color:#bd849b}
.home-editor-slide-info{display:flex;min-width:0;flex-direction:column;gap:2px}
.home-editor-slide-info small{font-size:10px;color:#a56e7c}
.home-editor-slide-info strong{font-size:12px;color:#56363d}
.home-editor-slide-info>span{font-size:10px;color:#8f7b7a;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:235px}
.home-editor-shortcuts{border:1px solid #ecdcd9;border-radius:14px;background:#fff;padding:13px;margin-top:16px;display:grid;gap:6px}
.home-editor-shortcuts strong{font-size:12px;color:#735257}
.home-editor-shortcuts p{margin:0 0 5px}
.home-editor-shortcuts button{font-size:11px;min-height:35px}
.home-editor-maincol{min-width:0}
.home-editor-tabs{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 11px}
.home-editor-tabs>strong{font-size:13px;color:#62454c}
.home-editor-tabs>div{display:flex;gap:5px;background:#f8eeed;padding:4px;border-radius:13px}
.home-editor-tabs button{font-size:11px;border:0;border-radius:9px;background:transparent;color:#92636e;padding:8px 12px;font-weight:700}
.home-editor-tabs button[aria-pressed="true"]{background:white;color:#a75268;box-shadow:0 2px 9px #653b4a19}
.home-editor-preview-outer{background:#f7eff0;border:1px solid #ead5dc;border-radius:20px;padding:10px;display:flex;justify-content:center;min-width:0;overflow:hidden;transition:background .3s}
.home-editor-preview{--home-preview-fade:.78;--home-preview-focus-x:75%;--home-preview-focus-y:50%;--home-preview-zoom:100%;--home-preview-fit:cover;isolation:isolate;position:relative;display:grid;align-items:center;min-height:285px;width:100%;border-radius:15px;overflow:hidden;background:linear-gradient(110deg,#fffaf7 5%,#f6e8e5 72%,#efdbdb);box-shadow:0 5px 22px #64414b10}
.home-editor-preview[data-theme="mint"]{background:linear-gradient(115deg,#f2faf7,#e9f3ed 65%,#f2e8ee)}
.home-editor-preview[data-theme="purple"]{background:linear-gradient(115deg,#f9edf1,#e9d5df)}
.home-editor-preview[data-theme="lavender"]{background:linear-gradient(115deg,#f9f1fc,#efe3f5)}
.home-editor-preview[data-theme="lilac"]{background:linear-gradient(115deg,#faf2ff,#e9d6f0)}
.home-editor-preview[data-theme="peach"]{background:linear-gradient(115deg,#fff6ef,#f5ded5)}
.home-editor-preview[data-theme="rose"]{background:linear-gradient(115deg,#fff9f6,#f7e3e1)}
.home-editor-preview.is-disabled:after{content:"Oculto en tienda";position:absolute;z-index:5;inset:0;background:#fffafa8c;display:grid;place-items:center;font-size:17px;font-weight:800;color:#874d60}
.home-editor-preview-image{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.home-editor-preview-image img{position:absolute;top:0;right:0;height:100%;width:76%;object-fit:var(--home-preview-fit);object-position:var(--home-preview-focus-x) center;transform:scale(var(--home-preview-zoom));-webkit-mask-image:linear-gradient(to right,transparent 0%,#000 52%);mask-image:linear-gradient(to right,transparent 0%,#000 52%)}
.home-editor-preview-image:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fffaf7 0%,#fffaf7eb 30%,#fffaf7a8 51%,transparent 86%);opacity:var(--home-preview-fade)}
.home-editor-image-placeholder{position:absolute;right:10%;top:22%;font-size:110px;color:#c89caf55}
.home-editor-preview-copy{position:relative;z-index:1;padding:23px 26px;width:58%;min-width:0}
.home-editor-preview-copy small{font-size:10px;color:#aa5b73;font-weight:800;letter-spacing:.085em;text-transform:uppercase}
.home-editor-preview-copy h3{font-size:clamp(23px,3vw,34px);letter-spacing:-.035em;line-height:1.13;color:#593940;margin:7px 0 9px;overflow-wrap:anywhere}
.home-editor-preview-copy h3 em{color:#b05770;font-style:normal}
.home-editor-preview-copy p{font-size:11px;line-height:1.55;color:#755b60;margin:7px 0 14px;max-width:330px;white-space:pre-wrap}
.home-editor-preview-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.home-editor-preview-meta b{color:#ac5369;font-size:14px}
.home-editor-preview-button{background:#a74d65;border-radius:14px;padding:10px 15px;color:white;font-weight:750;font-size:11px;display:inline-block}
.home-editor-preview-outer[data-device="mobile"]{padding:9px 12px}
.home-editor-preview-outer[data-device="mobile"] .home-editor-preview{width:min(100%,345px);min-height:460px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}
.home-editor-preview-outer[data-device="mobile"] .home-editor-preview-copy{order:0;width:100%;padding:20px 19px 0}
.home-editor-preview-outer[data-device="mobile"] .home-editor-preview-copy h3{font-size:27px}
.home-editor-preview-outer[data-device="mobile"] .home-editor-preview-copy p{font-size:11px;margin:11px 0}
.home-editor-preview-outer[data-device="mobile"] .home-editor-preview-image{order:1;position:relative;height:var(--home-preview-mobile-height,180px);width:100%;margin-top:13px;min-height:140px}
.home-editor-preview-outer[data-device="mobile"] .home-editor-preview-image img{width:100%;height:100%;object-position:var(--home-preview-focus-x) var(--home-preview-focus-y);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 25%);mask-image:linear-gradient(to bottom,transparent,#000 25%)}
.home-editor-preview-outer[data-device="mobile"] .home-editor-preview-image:after{background:linear-gradient(180deg,#fffaf7 0%,#fffaf760 24%,transparent 55%)}
.home-editor-preview-outer[data-device="mobile"] .home-editor-image-placeholder{font-size:65px;right:40%;top:0}
.home-editor-preview-outer[data-device="mobile"] .home-editor-preview-meta{margin-bottom:10px}
.home-editor-warning{margin:8px 0 15px;color:#8a717b}
.home-editor-form{border:1px solid #ecdfe4;background:#fff;border-radius:16px;padding:16px;display:grid;gap:13px}
.home-editor-form>label,.home-editor-form .form-cols label{margin:0}
.home-editor-form .row-actions{display:flex;gap:8px;flex-wrap:wrap}
.home-editor-form .row-actions button{font-size:11px;min-height:39px;padding:9px 13px}
.home-editor-form textarea{min-height:70px}
.home-editor-form .checklabel{font-size:12px;color:#725564;display:flex;align-items:center;gap:10px}
.home-editor-form .checklabel input{width:auto}
#homeEditorFeedback{margin:2px 0 0;color:#2e7d50}
#homeEditorFeedback.is-error{color:#b13951}
/* Existing visual and campaign panels are now in the homepage tab. */
#adminHome .home-visual-admin,#adminHome .home-campaign-admin{margin-top:18px}
#adminHome .home-visual-admin .section-heading h3{color:#6b3e4b}
@media(max-width:880px){.home-editor-layout{grid-template-columns:1fr;gap:15px}.home-editor-slides{grid-template-columns:repeat(2,minmax(0,1fr))}.home-editor-preview{min-height:300px}}
@media(max-width:600px){
 .glow-header-social{justify-content:center;padding:5px 8px;gap:8px;min-height:30px}
 .glow-header-social-title{font-size:9px}
 #glowHeaderSocialLinks{gap:7px}
 .glow-header-social-link{font-size:10px;padding:3px}
 .glow-header-social-icon{width:22px;height:22px}
 .glow-header-social-label{display:none}
 .home-editor-main{padding:12px}
 .home-editor-slides{grid-template-columns:1fr}
 .home-editor-slide-card>img,.home-editor-slide-decor{width:64px;height:56px}
 .home-editor-form{padding:11px}
 .home-editor-form .form-cols{display:grid;grid-template-columns:1fr;gap:10px}
 .home-editor-preview{min-height:240px}
 .home-editor-preview-copy{padding:17px;width:68%}
 .home-editor-preview-copy h3{font-size:23px}
 .home-editor-preview-copy p{font-size:10px}
 .home-editor-preview-outer[data-device="mobile"] .home-editor-preview{min-height:450px}
}
@media(prefers-reduced-motion:reduce){.home-editor-slide-card,.glow-header-social-link{transition:none!important}}

.home-editor-feature-panel{margin-top:18px;background:#fffdfb}
.home-editor-feature-panel h3{color:#69464e;margin:4px 0 7px}
.home-editor-top-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:12px 0 15px}
.home-editor-small-feature{display:flex;align-items:center;gap:9px;border:1px solid #f0dedf;border-radius:13px;padding:10px;background:#fff;min-width:0}
.home-editor-small-feature>img{width:55px;height:58px;object-fit:contain;flex:none;border-radius:8px;background:#faf2f2}
.home-editor-small-feature>div{min-width:0;display:grid;gap:3px}
.home-editor-small-feature strong{font-size:11px;line-height:1.35;color:#5b3a38;overflow-wrap:anywhere}
.home-editor-small-feature small{font-size:11px;font-weight:700;color:#a75069}
.home-editor-feature-panel .row-actions{display:flex;flex-wrap:wrap;gap:9px}
@media(max-width:950px){.home-editor-top-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.home-editor-top-products{grid-template-columns:1fr}.home-editor-small-feature>img{width:53px;height:53px}}


/* V8.20: coherent visual transforms for desktop hero and both editorial previews.
   Object-position alone often does nothing for same-aspect-ratio product photos.
   Panning here moves the entire photo; Android retains its independent layout. */
@media(min-width:681px){
 #homeHero .has-blended-photo .hero-blend-photo picture img{
   width:var(--hero-desktop-width,75%)!important;
   right:3%;
   object-position:center var(--hero-desktop-focus-y,50%);
   transform:translate3d(var(--hero-desktop-pan-x,0%),var(--hero-desktop-pan-y,0%),0) scale(var(--hero-desktop-zoom,100%))!important;
   transform-origin:center center;
   transition:transform .14s cubic-bezier(.22,1,.36,1),object-position .14s ease;
   will-change:transform;
 }
}
#homeVisualAdmin #visualPhotoPreview.hero-blend-preview:not(.is-mobile) .preview-photo picture img{
 width:var(--preview-desktop-width,75%)!important;
 right:3%;
 object-position:center var(--preview-desktop-y,50%);
 transform:translate3d(var(--preview-pan-x,0%),var(--preview-pan-y,0%),0) scale(var(--preview-zoom,100%))!important;
 transform-origin:center center;
 transition:transform .14s cubic-bezier(.22,1,.36,1);
 will-change:transform;
}
#homeEditorPreviewOuter[data-device="desktop"] .home-editor-preview-image img,
.home-editor-preview-outer[data-device="desktop"] .home-editor-preview-image img{
 width:var(--home-preview-image-width,75%);
 object-position:center var(--home-preview-focus-y,50%);
 transform:translate3d(var(--home-preview-shift-x,0%),var(--home-preview-shift-y,0%),0) scale(var(--home-preview-zoom,100%));
 transition:transform .14s cubic-bezier(.22,1,.36,1);
}
.hero-bulk-layout{
 grid-column:1/-1;
 display:grid;
 grid-template-columns:minmax(0,1.3fr) minmax(160px,.9fr) auto;
 gap:12px;
 align-items:end;
 background:linear-gradient(130deg,#fffdfb,#f9efeb);
 border:1px solid #ebd8d3;
 border-radius:15px;
 padding:14px;
 min-width:0;
}
.hero-bulk-layout strong{font-size:13px;color:#6d404a}
.hero-bulk-layout p.tiny{margin:5px 0 0;line-height:1.6;max-width:500px;color:#876d72}
.hero-bulk-layout label{margin:0;min-width:0;font-size:11px;color:#75545f}
.hero-bulk-layout select{width:100%;max-width:100%;margin-top:5px}
.hero-bulk-layout button{min-height:46px;padding:10px 13px;white-space:normal;font-size:11px}
@media(max-width:900px){.hero-bulk-layout{grid-template-columns:1fr 1fr}.hero-bulk-layout>div{grid-column:1/-1}}
@media(max-width:580px){.hero-bulk-layout{grid-template-columns:1fr}.hero-bulk-layout>div{grid-column:auto}.hero-bulk-layout button{width:100%}}
@media(prefers-reduced-motion:reduce){
 #homeHero .has-blended-photo .hero-blend-photo picture img,
 #homeVisualAdmin #visualPhotoPreview.hero-blend-preview:not(.is-mobile) .preview-photo picture img,
 .home-editor-preview-outer[data-device="desktop"] .home-editor-preview-image img{transition:none!important}
}

/* Direct-manipulation desktop preview. Kept separate from Android scrolling. */
#homeVisualAdmin[data-preview-device="desktop"] #visualPhotoPreview{
 cursor:grab;touch-action:none;
}
#homeVisualAdmin[data-preview-device="desktop"] #visualPhotoPreview.is-dragging{
 cursor:grabbing;
}
#homeVisualAdmin[data-preview-device="desktop"] #visualPhotoPreview.is-dragging .preview-photo img{
 transition:none!important;
}
.hero-preview-tip{grid-column:1/-1;text-align:center;color:#896e72;margin:-3px 0 2px;font-size:11px}
#homeVisualAdmin[data-preview-device="mobile"] .hero-preview-tip{display:none}
