:root{--paper:#f5f6f3;--ink:#171c29;--navy:#1c2f5c;--blue:#3154c6;--line:#cbd1d8;--muted:#667080}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 Arial,sans-serif}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid var(--blue);outline-offset:3px}[hidden]{display:none!important}a{color:inherit;text-decoration:none}h1,h2,p{margin:0}header{border-bottom:1px solid var(--line);padding:17px 4%;display:flex;align-items:center;gap:25px}header .brand{font-size:1.4rem;font-weight:800;letter-spacing:-.08em;margin-right:auto}.brand span{font-weight:400;letter-spacing:-.045em}header>span{font-size:.75rem;letter-spacing:.12em;font-weight:700}header button{border:1px solid var(--line);background:#fff;padding:8px 13px}main{max-width:1400px;padding:62px 4% 100px;margin:auto}.eyebrow,.section-title>span{font-size:.75rem;font-weight:700;letter-spacing:.13em;color:var(--navy)}h1{font-size:clamp(2.8rem,5vw,5rem);letter-spacing:-.07em;line-height:1.1;margin:17px 0}h1 span{color:var(--blue)}.login-panel{max-width:560px;margin:5vh auto;min-height:55vh}.login-panel>p,.editor-heading p,.section-title p{color:var(--muted);max-width:640px}.login-panel form{display:grid;gap:9px;margin-top:35px}.login-panel label,label{font-size:.88rem;font-weight:700}input{border:1px solid var(--line);background:#fff;border-radius:0;min-height:48px;padding:10px 12px;color:var(--ink);width:100%}.login-panel button,#save-button{background:var(--navy);color:#fff;border:0;padding:14px 18px;font-weight:700;margin-top:12px}.login-panel button:hover,#save-button:hover{background:var(--blue)}.message{margin-top:15px;color:#a52e2e}.editor-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;border-bottom:1px solid var(--ink);padding-bottom:35px}.editor-heading a{border:1px solid var(--navy);padding:12px 16px;white-space:nowrap;font-weight:700}.editor-section{display:grid;grid-template-columns:250px 1fr;gap:30px;border-bottom:1px solid var(--line);padding:40px 0}.section-title h2{font-size:1.8rem;letter-spacing:-.055em;line-height:1.15;margin:12px 0}.section-title p{font-size:.88rem}.fields{display:grid;gap:15px}.fields.two{grid-template-columns:1fr 1fr}.fields label{display:block}.fields input{margin-top:8px}.project-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.project-edit-card{border:1px solid var(--line);background:#fff;padding:18px;min-width:0}.project-edit-card h3{font-size:1rem;margin:0 0 16px;letter-spacing:.02em}.project-edit-card img{display:block;width:100%;height:155px;object-fit:cover;background:#dce1e3}.project-edit-card label{display:block;margin-top:12px}.project-edit-card input{margin-top:6px}.project-edit-card input[type=file]{padding:11px;height:auto;font-size:.8rem}.project-edit-card .upload-message{color:var(--muted);font-size:.8rem;margin-top:7px}.prices-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.price-group{border:1px solid var(--line);background:#fff;padding:18px}.price-group h3{margin:0 0 14px;font-size:1.1rem}.price-group label{display:block;margin-top:10px}.price-group input{margin-top:5px}.save-bar{position:sticky;bottom:0;background:#e8edf8;border:1px solid #c6d1e6;padding:14px 20px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:30px;box-shadow:0 -7px 22px #23364b16}.save-bar p{color:var(--muted);font-size:.9rem}.save-bar button{margin:0;white-space:nowrap}footer{padding:25px 4%;border-top:1px solid var(--line);font-size:.75rem;font-weight:700;letter-spacing:.1em}
@media(max-width:900px){.editor-section{grid-template-columns:1fr}.project-edit-grid{grid-template-columns:1fr 1fr}.prices-editor{grid-template-columns:1fr 1fr}}
@media(max-width:620px){header{flex-wrap:wrap}header>span{display:none}main{padding-top:38px}.editor-heading{display:block}.editor-heading a{display:inline-block;margin-top:20px}.fields.two,.project-edit-grid,.prices-editor{grid-template-columns:1fr}.save-bar{align-items:start;flex-direction:column}.save-bar button{width:100%}}
.save-bar p.error{color:#a52e2e}
.editor-shortcuts{display:flex;gap:8px;flex-wrap:wrap;padding:20px 0;border-bottom:1px solid var(--line)}
.editor-shortcuts a{border:1px solid var(--line);background:#fff;padding:8px 13px;font-size:.88rem;font-weight:700}
.editor-shortcuts a:hover{border-color:var(--blue);color:var(--blue)}
.editor-section{scroll-margin-top:22px}
.project-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.project-edit-card{padding:0}
.project-edit-card summary{list-style:none;display:grid;grid-template-columns:86px 1fr auto;align-items:center;gap:14px;padding:12px;cursor:pointer;min-height:105px}
.project-edit-card summary::-webkit-details-marker{display:none}
.project-edit-card summary span:nth-child(2){font-weight:700;line-height:1.3}
.project-edit-card summary span:last-child{font-size:.76rem;white-space:nowrap;color:var(--navy);font-weight:700}
.project-edit-card summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.project-edit-card .project-thumb{height:78px;width:86px;object-fit:cover}
.project-fields{border-top:1px solid var(--line);padding:16px}
.project-fields .cover-preview{height:200px;width:100%;object-fit:cover}
.project-fields h3{margin:26px 0 8px}
.gallery-count{font-size:.82rem;color:var(--muted)}
.gallery-editor{display:grid;gap:8px;margin-top:12px}
.gallery-row{display:grid;grid-template-columns:80px minmax(0,1fr) auto;gap:9px;align-items:center;background:#f5f6f3;border:1px solid var(--line);padding:8px}
.gallery-row img{width:80px;height:70px;object-fit:cover}
.gallery-row label{margin:0}
.gallery-row input{min-height:40px}
.gallery-actions,.package-actions{display:flex;gap:5px;align-items:center}
.gallery-actions button,.package-actions button{border:1px solid var(--line);background:#fff;color:var(--navy);padding:8px 10px;font-weight:700}
.gallery-actions button:hover,.package-actions button:hover{border-color:var(--blue)}
.gallery-actions button:disabled,.package-actions button:disabled{opacity:.35;cursor:default}
.project-fields .upload-message{margin:6px 0 14px}
.add-package{margin-top:20px;border:0;background:var(--navy);color:#fff;padding:12px 15px;font-weight:700}
.add-package:hover{background:var(--blue)}
.packages-editor{display:grid;gap:28px}
.package-group{min-width:0}
.package-group>h3{font-size:1.3rem;letter-spacing:-.04em;border-bottom:1px solid var(--ink);padding-bottom:8px;margin:0 0 10px}
.package-empty{color:var(--muted);font-size:.9rem;padding:10px 0}
.package-edit-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;border:1px solid var(--line);background:#fff;padding:18px;margin-bottom:10px}
.package-edit-card label{min-width:0;display:block}
.package-edit-card label:has(.pkg-description),.package-edit-card label:has(.pkg-deliverables){grid-column:1/-1}
.package-edit-card textarea,.package-edit-card select{font:inherit;color:var(--ink);width:100%;border:1px solid var(--line);padding:10px 12px;min-height:48px;background:#fff;resize:vertical}
.package-edit-card input,.package-edit-card textarea,.package-edit-card select{margin-top:6px}
.package-edit-card label:has(.pkg-active){display:flex;align-items:center;gap:9px}
.package-edit-card .pkg-active{width:20px;height:20px;min-height:0;accent-color:var(--blue);margin:0}
.package-actions{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px}
.package-actions button:last-child{margin-left:auto}
@media(max-width:1050px){.project-edit-grid{grid-template-columns:1fr}}
@media(max-width:620px){.project-edit-card summary{grid-template-columns:65px 1fr;gap:8px}.project-edit-card .project-thumb{width:65px;height:65px}.project-edit-card summary span:last-child{grid-column:2}.gallery-row{grid-template-columns:65px 1fr}.gallery-row img{width:65px;height:65px}.gallery-actions{grid-column:1/-1}.package-edit-card{grid-template-columns:1fr}.package-edit-card label:has(.pkg-description),.package-edit-card label:has(.pkg-deliverables){grid-column:1}.editor-shortcuts a{flex:1;text-align:center}}
.editor-shortcuts{position:sticky;top:0;z-index:4;background:var(--paper);overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}
.editor-shortcuts button{flex:none;border:1px solid var(--line);background:white;padding:10px 14px;white-space:nowrap;font:700 .9rem Arial,sans-serif}
.editor-shortcuts button[aria-selected=true]{background:var(--navy);color:white}
.admin-module{min-height:360px}
.fields textarea,.settings-grid textarea,.record-editor textarea,.record-editor select,.project-edit-card select,.settings-grid select{width:100%;border:1px solid var(--line);background:white;color:var(--ink);font:inherit;padding:10px 12px;min-height:46px}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-content:start}
.settings-grid label,.record-editor label{display:grid;gap:5px}
.settings-grid input[type=color]{height:50px;padding:4px;width:100%}
.record-editor{display:grid;gap:12px;align-content:start}
.record-card{background:white;border:1px solid var(--line);padding:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
.record-card .wide{grid-column:1/-1}.record-card textarea{resize:vertical}.record-card button,.fields button,#refresh-storage,#refresh-bookings{border:1px solid var(--navy);padding:9px 13px;background:white;color:var(--navy);font-weight:700;width:max-content}
.record-card img,.asset-preview{width:min(100%,320px);height:130px;object-fit:cover}
.record-card input[type=checkbox],fieldset input[type=checkbox]{width:auto;min-height:0;accent-color:var(--blue)}
.project-fields select{width:100%;padding:10px;border:1px solid var(--line);background:#fff;margin-top:6px}
fieldset{border:1px solid var(--line);display:flex;gap:20px;flex-wrap:wrap}fieldset label{display:flex;align-items:center;gap:6px}
#storage-report{margin:20px 0;background:white;border:1px solid var(--line);padding:20px}
#storage-report meter{width:100%;height:24px;margin:12px 0}#storage-report dl{display:grid;grid-template-columns:1fr 1fr;gap:8px}#storage-report dd{font-weight:700;margin:0}
@media(max-width:720px){.settings-grid,.record-card{grid-template-columns:1fr}.record-card .wide{grid-column:1}.editor-shortcuts{margin-inline:-4%;padding-inline:4%}.editor-section{padding:25px 0}}
.check-line{display:flex!important;align-items:center;gap:9px}.check-line input{width:auto;min-height:0;accent-color:var(--blue)}
.design-preview-wrap{padding:24px 0}.design-preview-wrap .eyebrow{display:block;margin-bottom:12px}#design-preview{border:1px solid;padding:30px;max-width:620px}#design-preview h3{font-size:clamp(1.8rem,4vw,3rem);line-height:1.1;margin:0 0 12px}#design-preview p{margin:0 0 22px}#design-preview button{border:0;padding:12px 18px;cursor:default}#design-warning{margin-top:10px;color:var(--muted)}
.quote-summary{padding:13px 15px;background:#f2f5fa;border-left:3px solid var(--blue)}.quote-actions{display:flex;flex-wrap:wrap;gap:8px}.quote-actions button:disabled{opacity:.4;cursor:not-allowed}.quote-feedback{font-weight:700}.editor-help{font-size:.88rem;color:var(--muted);margin:7px 0 20px}#notification-state{margin:10px 0}#enable-device-notifications{background:white;color:var(--navy);border:1px solid var(--line);padding:9px 13px;margin-bottom:10px}
.storage-library{border-top:1px solid var(--line);margin-top:28px;padding-top:22px}.storage-library>p{color:var(--muted);max-width:68ch}.storage-files{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:10px;margin:18px 0}.storage-file{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--line);background:white;min-width:0;cursor:pointer}.storage-file:has(input:disabled){opacity:.7;cursor:default}.storage-file img,.storage-file-icon{width:58px;height:58px;flex:none;object-fit:cover;border-radius:3px;background:#e8edf5}.storage-file-icon{display:grid;place-items:center;font-size:.65rem;font-weight:800;color:var(--blue)}.storage-file>span:not(.storage-file-icon){display:grid;gap:4px;min-width:0;flex:1}.storage-file strong{font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.storage-file small{color:var(--muted);font-size:.74rem;line-height:1.3}.storage-file input{width:19px;height:19px;flex:none;accent-color:var(--blue)}#storage-more,#storage-delete{border:1px solid var(--navy);padding:10px 14px;margin-right:9px;background:white;color:var(--navy);font-weight:700}#storage-delete{background:var(--navy);color:white}#storage-delete:disabled{opacity:.45;cursor:not-allowed}#storage-feedback{min-height:1.5em}
/* Editor de galerías de entrega: guardado independiente del contenido general. */
.delivery-create{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:22px 0}.delivery-create label{display:grid;gap:6px;min-width:min(100%,360px)}.delivery-create input{min-height:46px;padding:10px 12px;border:1px solid var(--line);background:white}.delivery-create button,.delivery-admin-actions button,.delivery-admin-photo-actions button{border:1px solid var(--navy);background:white;color:var(--navy);padding:9px 12px;font-weight:700}.delivery-create button{background:var(--navy);color:white;min-height:46px}#delivery-admin-status{min-height:1.5em;font-weight:700;color:var(--blue)}
.delivery-admin-list{display:grid;gap:13px}.delivery-admin-card{border:1px solid var(--line);background:white}.delivery-admin-card>summary{list-style:none;cursor:pointer;padding:19px 20px;display:flex;justify-content:space-between;align-items:center;gap:15px}.delivery-admin-card>summary::-webkit-details-marker{display:none}.delivery-admin-card>summary::after{content:'+';font-size:1.25rem;color:var(--blue)}.delivery-admin-card[open]>summary::after{content:'−'}.delivery-admin-card>summary strong{font-size:1.08rem}.delivery-admin-card>summary small{color:var(--muted);margin-left:auto}
.delivery-admin-body{border-top:1px solid var(--line);padding:20px}.delivery-admin-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.delivery-admin-settings label{display:grid;gap:6px;font-size:.85rem;font-weight:700}.delivery-admin-settings label:has(textarea){grid-column:1/-1}.delivery-admin-settings input,.delivery-admin-settings select,.delivery-admin-settings textarea{width:100%;border:1px solid var(--line);min-height:46px;background:white;padding:9px 11px;font:inherit;font-weight:400}
.delivery-admin-code{margin:22px 0;padding:16px;background:#f0f4fa;display:flex;gap:12px 20px;align-items:center;flex-wrap:wrap}.delivery-admin-code span{font-size:.74rem;font-weight:700;letter-spacing:.1em;color:var(--muted)}.delivery-admin-code strong{font-size:1.2rem;letter-spacing:.16em;color:var(--navy);overflow-wrap:anywhere}
.delivery-admin-actions{display:flex;gap:8px;flex-wrap:wrap}.delivery-admin-actions button:first-child{background:var(--navy);color:white}.delivery-admin-actions button:disabled,.delivery-admin-photo-actions button:disabled{opacity:.45;cursor:not-allowed}.delivery-admin-upload{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.delivery-admin-upload label{display:grid;gap:10px;font-weight:700}.delivery-admin-upload input{max-width:100%;font-weight:400}.delivery-admin-upload p{color:var(--muted);font-size:.84rem;margin-top:8px}
.delivery-admin-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;margin-top:20px}.delivery-admin-photo{border:1px solid var(--line);padding:10px;display:grid;gap:9px;align-content:start}.delivery-admin-photo img{width:100%;height:165px;object-fit:cover}.delivery-admin-photo label{display:grid;gap:5px;font-size:.82rem;font-weight:700}.delivery-admin-photo input{width:100%;padding:8px;border:1px solid var(--line)}.delivery-admin-photo-actions{display:flex;gap:5px;flex-wrap:wrap}.delivery-admin-photo-actions button{font-size:.8rem}.delivery-admin-photo-actions button:last-child{margin-left:auto}
@media(max-width:720px){.delivery-admin-settings{grid-template-columns:1fr}.delivery-admin-settings label:has(textarea){grid-column:auto}.delivery-admin-card>summary{padding:16px}.delivery-admin-body{padding:15px}.delivery-admin-card>summary small{font-size:.72rem}}
/* Controles editoriales y vistas previas sin recortar originales. */
:root{--paper:#f0eee9;--ink:#202833;--navy:#13243c;--blue:#765b43;--line:#c8c3ba;--muted:#62676e}
.feature-media-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.feature-media-editor>div{border:1px solid var(--line);background:#fff;padding:15px;min-width:0}
.feature-media-editor h3{margin:0 0 12px;font-size:1.1rem}
.feature-preview{display:block;width:100%;height:230px;object-fit:contain;background:#14223a;margin-bottom:14px}
.feature-media-editor label{display:block}.feature-media-editor input{margin-top:7px}
.category-create{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-top:18px}
.category-create label{display:grid;gap:6px}.category-create select{min-height:46px;padding:8px 12px;background:white;border:1px solid var(--line);min-width:155px;font:inherit}
.category-create .add-package{margin:0;min-height:46px}
.categories-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.category-group{min-width:0}.category-group>h3{margin:0 0 13px;padding-bottom:12px;border-bottom:1px solid var(--navy);font-size:1.35rem}
.category-edit-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px 12px;border:1px solid var(--line);background:white;padding:13px;margin-bottom:8px}
.category-edit-card label{display:grid;gap:5px;grid-row:span 2;min-width:0}.category-edit-card input{width:100%}.category-edit-card small{font-size:.8rem;color:var(--muted);text-align:right}
.category-actions{display:flex;justify-content:flex-end;gap:4px}.category-actions button{border:1px solid var(--line);background:white;color:var(--navy);padding:6px 10px;font-size:.84rem}.category-actions button:disabled{opacity:.35}.category-actions button:last-child{border-color:#a8645c;color:#842f2b}
.project-edit-card .project-thumb,.project-fields .cover-preview,.gallery-row img,.delivery-admin-photo img{object-fit:contain;background:#14223a}
.save-bar{background:#e5e0d8;border-color:var(--line)}
@media(max-width:900px){.categories-editor{grid-template-columns:1fr}}
@media(max-width:620px){.feature-media-editor{grid-template-columns:1fr}.feature-preview{height:250px}}
.header-preview-wrap{margin-top:24px}
.header-preview{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;min-height:78px;padding:18px 22px;background:#183958;color:white;transition:background .25s ease,color .25s ease}
.header-preview strong{font-size:1.1rem;letter-spacing:-.06em;white-space:nowrap}
.header-preview nav{display:flex;gap:3px;flex-wrap:wrap}
.header-preview button{border:1px solid transparent;color:inherit;background:transparent;padding:9px 12px;font-size:.84rem}
.header-preview button[aria-pressed=true]{border-color:currentColor;background:color-mix(in srgb,currentColor 13%,transparent)}
#design-preview .preview-main-copy{margin-bottom:5px}
#design-preview .preview-muted-copy{margin-bottom:22px}
.design-color-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.design-color-actions button{min-height:44px;padding:10px 17px;border:1px solid var(--navy);border-radius:30px;background:var(--navy);color:#fff;font-weight:700;cursor:pointer}
.design-color-actions button+button{background:transparent;color:var(--navy)}
.design-color-actions button:disabled{opacity:.55;cursor:wait}
#design-color-feedback{min-height:1.5em;color:var(--navy);font-size:.9rem;margin:10px 0 0}
.project-edit-card .project-featured{width:20px;min-height:20px;height:20px;margin-top:8px;accent-color:var(--blue)}

/* Panel editorial: navegación lateral y grupos de contenido más fáciles de recorrer. */
:root{--sidebar-color:#172b44;--sidebar-ink:#fff}
body{background:#f4f2ee;color:#1d2b38;font-family:Arial,sans-serif}
body>header{background:#faf9f6;padding:18px clamp(18px,3vw,50px)}
main{max-width:1720px;padding:26px clamp(14px,3vw,50px) 90px}
.editor-shell{display:grid;grid-template-columns:minmax(230px,270px) minmax(0,1fr);gap:clamp(28px,4vw,72px);align-items:start}
.editor-main{min-width:0}
.editor-sidebar{position:sticky;top:18px;max-height:calc(100svh - 36px);overflow:auto;scrollbar-width:thin;background:var(--sidebar-color);color:var(--sidebar-ink);border-radius:20px 20px 7px 20px;padding:28px 14px 20px;box-shadow:0 18px 46px #182b401c}
.sidebar-heading{display:grid;gap:8px;padding:0 16px 23px;border-bottom:1px solid color-mix(in srgb,var(--sidebar-ink) 25%,transparent)}
.sidebar-heading>span{font-size:.72rem;font-weight:800;letter-spacing:.16em;opacity:.75}
.sidebar-heading strong{font-size:1.35rem;line-height:1.12;letter-spacing:-.04em}
.sidebar-heading small{font-size:.81rem;opacity:.72}
.editor-shortcuts{display:grid;gap:3px;position:static;overflow:visible;background:transparent;border:0;padding:17px 0 0;scrollbar-width:auto}
.editor-shortcuts .sidebar-group{display:block;padding:15px 16px 5px;color:var(--sidebar-ink);opacity:.62;font-size:.66rem;letter-spacing:.14em;font-weight:800}
.editor-shortcuts button{width:100%;min-height:44px;text-align:left;white-space:normal;border:0;border-radius:10px;background:transparent;color:var(--sidebar-ink);font:600 .91rem/1.25 Arial,sans-serif;padding:11px 16px}
.editor-shortcuts button:hover,.editor-shortcuts button:focus-visible{background:color-mix(in srgb,var(--sidebar-ink) 12%,transparent)}
.editor-shortcuts button[aria-selected=true]{background:color-mix(in srgb,var(--sidebar-ink) 19%,transparent);color:var(--sidebar-ink);font-weight:800}
.editor-heading{border-bottom:1px solid var(--line);align-items:center;padding:12px 0 26px}
.editor-heading h1{font-size:clamp(2.3rem,4vw,3.8rem);line-height:1.05;margin:10px 0 12px}
.editor-heading p{font-size:.98rem;max-width:680px}
.editor-heading a{border:0;border-bottom:1px solid var(--navy);padding:8px 0}
.editor-section{grid-template-columns:minmax(170px,235px) minmax(0,1fr);gap:clamp(22px,3vw,50px);padding:37px 0;border-bottom:1px solid var(--line)}
.section-title h2{font-size:clamp(1.35rem,1.8vw,1.85rem)}
.section-title p{font-size:.91rem;line-height:1.55}
.editor-section input:not([type=checkbox]):not([type=color]),.editor-section textarea,.editor-section select{border-radius:9px;border-color:#c8c9c6}
.editor-section input:focus,.editor-section textarea:focus,.editor-section select:focus{border-color:var(--navy)}
.feature-media-editor>div,.project-edit-card,.package-edit-card,.record-card,.delivery-admin-card,.category-edit-card{border-color:#d6d4ce;border-radius:14px;background:#faf9f6}
.project-edit-card summary{border-radius:14px}
.project-edit-card .project-thumb{border-radius:8px}
.save-bar{z-index:3;border:0;border-top:1px solid #b7bfca;border-radius:14px 14px 0 0;background:#f4f2eef2;backdrop-filter:blur(14px);margin-top:20px;box-shadow:0 -12px 30px #15273712}
#save-button,.add-package,.delivery-create button{border-radius:50px}
.copy-search-label{display:block;max-width:580px}.copy-search-label input{margin:8px 0 6px}
#copy-count{color:var(--muted);font-size:.86rem;margin:0 0 20px}
.copy-editor{display:grid;gap:7px}
.copy-group{border-top:1px solid var(--line);padding:2px 0}
.copy-group:last-child{border-bottom:1px solid var(--line)}
.copy-group>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:1.18rem;font-weight:700;padding:15px 4px}
.copy-group>summary::-webkit-details-marker{display:none}
.copy-group>summary::after{content:'+';font-size:1.4rem;color:var(--blue);order:2}
.copy-group[open]>summary::after{content:'−'}
.copy-group summary small{font-size:.77rem;color:var(--muted);margin-left:auto;font-weight:400}
.copy-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 25px;padding:14px 3px 30px}
.copy-field{display:grid;align-content:start;gap:7px;min-width:0}
.copy-field>span{color:var(--muted);font-size:.82rem;line-height:1.3}
.copy-field textarea{resize:vertical;min-height:88px}
.copy-field input,.copy-field textarea{width:100%;font:400 .96rem/1.45 Arial,sans-serif;padding:11px 13px}
@media(max-width:1050px){.editor-shell{grid-template-columns:220px minmax(0,1fr);gap:28px}.editor-section{grid-template-columns:1fr;gap:20px}.copy-fields{grid-template-columns:1fr}}
@media(max-width:850px){main{padding:16px 4% 70px}.editor-shell{display:block}.editor-sidebar{position:relative;top:auto;max-height:none;border-radius:16px;margin-bottom:24px;padding:15px 12px}.sidebar-heading{padding:3px 12px 12px}.sidebar-heading small{display:none}.editor-shortcuts{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:7px;padding:11px 0 0}.editor-shortcuts .sidebar-group{display:none}.editor-shortcuts button{width:auto;flex:none;white-space:nowrap;padding:10px 14px;background:color-mix(in srgb,var(--sidebar-ink) 9%,transparent)}.editor-heading{padding-top:10px}.editor-section{padding:27px 0}.save-bar{margin-inline:-4%;padding:13px 4%}}
@media(max-width:540px){.editor-heading h1{font-size:2.35rem}.editor-heading a{display:inline-block;margin-top:15px}.copy-fields{grid-template-columns:1fr}.save-bar{flex-direction:row;align-items:center}.save-bar p{font-size:.78rem}.save-bar button{width:auto;padding:12px 15px;font-size:.81rem}}


/* v25 · panel cinematográfico + editor de encuadre */
body{background:radial-gradient(circle at top,#12233a 0,#0b1320 22%,#f2eee7 22.1%,#f2eee7 100%)}
body>header{background:transparent;color:#f3eee5;border-bottom:0;padding:18px clamp(18px,3vw,50px) 10px}
body>header .brand,body>header span,body>header button{color:#f3eee5}
body>header .brand{font-weight:800;letter-spacing:-.06em}
body>header button{border:1px solid rgba(243,238,229,.25);background:rgba(255,255,255,.06);border-radius:999px;padding:10px 16px}
.login-panel{background:#fffdf9;border:1px solid #ddd5c7;border-radius:22px;box-shadow:0 18px 60px rgba(8,16,27,.08)}
.editor-sidebar{background:linear-gradient(180deg,#102038 0%,#0a1424 100%);box-shadow:0 20px 60px rgba(5,10,18,.18)}
.sidebar-heading{border-bottom-color:rgba(255,255,255,.12)}
.editor-shortcuts button[aria-selected=true]{background:rgba(255,255,255,.18)}
.editor-main{background:#fbf8f3;border:1px solid #ddd5c7;border-radius:28px;padding:0 clamp(18px,3vw,34px) 24px;box-shadow:0 18px 60px rgba(10,20,32,.06)}
.editor-heading{padding-top:28px}
.editor-section{border-bottom-color:#ddd5c7}
.section-title span,.eyebrow{letter-spacing:.16em}
.feature-preview,.asset-preview,.project-edit-card .cover-preview{border-radius:14px;border:1px solid #d9d3c7;background:#0e1a2a}
.asset-preview{display:block;max-width:min(100%,360px);max-height:420px;object-fit:cover;margin-top:10px}
.upload-message{font-size:.86rem;color:#5d6570}
.feature-media-editor>div,.project-edit-card,.package-edit-card,.record-card,.delivery-admin-card,.category-edit-card{background:#fffcf8;border-color:#e1d9cc;box-shadow:0 10px 26px rgba(16,32,56,.04)}
#editor-form label>input[type=file]{margin-top:8px}
#editor-form input[type=file]::file-selector-button{border:1px solid #172b44;background:#172b44;color:#fff;border-radius:999px;padding:10px 14px;margin-right:12px;cursor:pointer}
#editor-form input[type=file]::file-selector-button:hover{background:#0d2139}
.save-bar{background:rgba(249,245,239,.92);border-top:1px solid #d8d1c5}
.save-bar button{background:#172b44;color:#fff}
.save-bar p{color:#2a3542}

.image-editor-modal{position:fixed;inset:0;z-index:120;display:grid;place-items:center;background:rgba(5,10,18,.72);backdrop-filter:blur(10px);padding:20px}
.image-editor-dialog{width:min(1080px,100%);max-height:min(92vh,980px);overflow:auto;background:#f8f4ee;border:1px solid #d9d2c5;border-radius:24px;box-shadow:0 40px 120px rgba(0,0,0,.28);padding:24px}
.image-editor-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px}
.image-editor-head h2{margin:8px 0 6px;font-size:clamp(1.8rem,3vw,2.8rem);line-height:1.02}
.image-editor-head p{margin:0;color:#5f6672;max-width:62ch}
#image-editor-close{border:1px solid #d8d1c5;background:#fff;border-radius:999px;width:42px;height:42px;font-size:1.5rem;line-height:1;cursor:pointer}
.image-editor-body{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:24px;align-items:start}
.image-editor-stage{background:linear-gradient(180deg,#102038,#0b1320);border-radius:22px;padding:18px;min-height:340px;display:grid;place-items:center}
.image-editor-frame{position:relative;overflow:hidden;border-radius:16px;background:#0a1424;border:1px solid rgba(255,255,255,.12);width:min(100%,720px);aspect-ratio:4/3;cursor:grab;touch-action:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.image-editor-frame[data-aspect="original"]{aspect-ratio:auto;min-height:360px;height:min(65vh,540px)}
.image-editor-frame img{position:absolute;top:50%;left:50%;user-select:none;-webkit-user-drag:none;max-width:none;max-height:none;transform-origin:center center}
.image-editor-controls{display:grid;gap:16px;align-content:start}
.image-editor-controls label{display:grid;gap:8px;font-weight:700}
.image-editor-controls select,.image-editor-controls input{width:100%}
.image-editor-controls input[type=range]{accent-color:#172b44}
.image-editor-help{margin:0;color:#5f6672;font-size:.92rem;line-height:1.55}
.image-editor-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}
.image-editor-actions button{min-height:46px;padding:10px 18px;border-radius:999px;border:1px solid #172b44;background:#172b44;color:#fff;font-weight:700;cursor:pointer}
.image-editor-actions .secondary{background:transparent;color:#172b44}
@media(max-width:900px){.image-editor-body{grid-template-columns:1fr}.image-editor-dialog{padding:18px}.image-editor-stage{min-height:280px}.image-editor-frame[data-aspect="original"]{height:46vh;min-height:280px}}
@media(max-width:560px){.image-editor-head{align-items:flex-start}.image-editor-actions{flex-direction:column}.image-editor-actions button{width:100%}}

/* El diálogo de encuadre no debe interceptar el formulario de acceso. */
[hidden]{display:none!important}
.hero-media-editor{display:grid;gap:12px;max-width:760px}
.hero-media-editor img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;background:#0e1a2a}
.hero-media-editor label{display:grid;gap:8px}
#feature-hero-message{min-height:1.4em;color:#5d6570;margin:0}
