:root{color-scheme:light;--navy:#102d4a;--blue:#155bb5;--ink:#192f43;--muted:#617080;--line:#dce3ec;--surface:#fff;--bg:#f3f6fa;--green:#167253;--orange:#995408;--radius:12px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid var(--blue);border-radius:8px;background:var(--blue);color:white;padding:11px 18px;font-weight:650;cursor:pointer;line-height:1.3;text-decoration:none}button:hover,.button:hover{filter:brightness(.94);text-decoration:none}button:disabled{opacity:.55;cursor:wait}.secondary{background:white;color:var(--navy);border-color:var(--line)}.text-button{padding:5px 0;border:0;background:none;color:var(--blue);font-weight:500}.danger{color:#b52e3b}.danger-button{background:#b52e3b;border-color:#b52e3b;color:white}.whatsapp{background:#1a7f45;border-color:#1a7f45;color:white;padding:8px 14px;width:fit-content}.phone-field{gap:10px}.email-check{background:#fff7e6;border:1px solid #f0d49a;border-radius:8px;padding:12px 14px;margin-top:-8px;font-size:14px}.email-check[hidden]{display:none}.email-check p{margin:0 0 10px}.email-check button{padding:7px 14px;white-space:nowrap}.email-check .filter-actions{flex-wrap:wrap;gap:10px 16px}.email-check .check{font-weight:500}.confirmation-status{margin:14px 0 8px;font-size:13px}.fit{width:fit-content}.nowrap{white-space:nowrap}.topbar{min-height:88px;padding:18px 4%;display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--navy);color:#fff}.brand{display:flex;gap:12px;color:#fff;font-size:30px;font-weight:750;line-height:1.25}.brand:hover{text-decoration:none}.brand-icon{width:43px;height:43px;background:#fff;color:var(--navy);border-radius:9px;display:grid;place-items:center;font-weight:900;font-size:28px}.brand small{font-size:15px;letter-spacing:1.8px;display:block;color:#afc5dd;margin-top:6px}.topbar nav{display:flex;gap:12px;align-items:center}.topbar nav a{color:#c2d1e2;padding:8px 12px;border-radius:6px;font-size:14px}.topbar nav a.selected{background:#27425e;color:white}.count{display:inline-grid;place-items:center;min-width:21px;border-radius:5px;background:#f5bf4b;color:var(--navy);font-size:12px;margin-left:4px}.admin-shell{display:flex;min-height:calc(100vh - 140px)}aside{width:210px;flex-shrink:0;background:white;border-right:1px solid var(--line);padding:28px 18px}aside .eyebrow{font-size:10px;padding:0 12px}aside nav{display:flex;flex-direction:column;gap:7px;margin:24px 0 38px}aside nav a{padding:10px 14px;color:var(--muted);font-weight:550;border-radius:7px}aside nav a.active{background:#eaf1fb;color:var(--blue);box-shadow:inset 3px 0 var(--blue)}aside form{padding:0 12px}.workspace{width:100%;min-width:0;padding:35px;max-width:1600px}.store{max-width:1250px;margin:auto;padding:42px 30px 70px;min-height:calc(100vh - 150px)}h1{font-size:clamp(27px,3vw,39px);letter-spacing:-1.2px;line-height:1.16;margin:9px 0 12px;font-weight:760}h2{font-size:20px;letter-spacing:-.4px;line-height:1.3;margin:0 0 16px}p{margin:0 0 14px}.eyebrow{font-size:11px;letter-spacing:1.7px;font-weight:750;color:var(--blue)}.page-heading{display:flex;justify-content:space-between;gap:25px;align-items:center;margin-bottom:28px}.page-heading p{color:var(--muted);margin:0;max-width:650px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:22px}.stack{display:flex;flex-direction:column;gap:18px}.stack>h2{margin:6px 0 0}.stack>p{margin:0}label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:600;color:#3b4e61}input,select,textarea{width:100%;min-width:0;padding:11px 12px;background:#fff;border:1px solid #cdd7e2;border-radius:7px;color:var(--ink);min-height:44px}input:focus,select:focus,textarea:focus{outline:3px solid #b4d3f3;border-color:var(--blue)}textarea{resize:vertical;min-height:90px}input[type=checkbox]{min-height:18px;width:18px;height:18px;accent-color:var(--blue);flex-shrink:0}input[type=file]{font-size:14px}.check{flex-direction:row;align-items:center;flex-wrap:wrap;gap:9px;font-weight:500}.muted,small{color:var(--muted);font-size:14px}small{display:block;font-weight:400}.notice{background:#e6f1fd;border:1px solid #bfd7f1;border-radius:8px;padding:15px 20px;margin:0 0 24px}.notice.error{background:#fff0f0;border-color:#eebbc1;color:#9a2935}.search{display:flex;gap:12px;max-width:510px;margin-bottom:26px}.catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.product-card{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.product-image{aspect-ratio:1.2;background:#e7edf5;display:grid;place-items:center}.product-image img{width:100%;height:100%;object-fit:contain;max-height:320px}.no-image{font-size:14px;color:#718397}.product-body{padding:23px}.product-body h2{font-size:21px;margin-bottom:9px}.description{font-size:14px;color:var(--muted);min-height:42px;margin-bottom:22px}.inline{display:flex;gap:12px;align-items:end}.quantity{width:80px;flex-shrink:0}.inline button{flex:1;min-height:46px}.checkout-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;align-items:start}.payment{border-top:4px solid var(--blue)}.payment h2{font-size:30px;margin-top:10px}.upload-box{padding:18px;background:var(--bg);border:1px dashed #a8bbd2;border-radius:8px}.confirmation{max-width:640px;margin:65px auto;text-align:center}.confirmation .panel{margin-top:25px}.big-total{font-size:36px;font-weight:750;letter-spacing:-1px;display:block;margin:8px 0 16px}.login{max-width:460px;margin:50px auto}.login h1{margin-bottom:25px}.empty{text-align:center;padding:70px 25px;border:1px dashed #c6d3e1;border-radius:12px}.empty h2{margin-bottom:18px}.filters{display:flex;flex-wrap:wrap;align-items:end;gap:16px}.filters label{flex:1 1 175px}.filters button{min-height:45px}.filter-actions{display:flex;gap:15px;align-items:center}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:24px}.stats>div{padding:22px 24px;background:white;border:1px solid var(--line);border-radius:10px}.stats span{font-size:14px;color:var(--muted)}.stats strong{display:block;font-size:29px;margin-top:5px;letter-spacing:-.8px}.table-wrap{overflow:auto}.panel.table-wrap{padding:0}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}th{font-size:12px;letter-spacing:.35px;color:#61758a;background:#f8fafc;padding:15px 18px;white-space:nowrap;font-weight:650}td{padding:18px;border-top:1px solid #e7ecf2;vertical-align:middle}td small{font-size:12px;margin-top:4px}td strong{font-weight:650}tbody tr:hover{background:#fafcff}.badge{display:inline-block;font-size:12px;font-weight:600;padding:5px 9px;border-radius:5px;background:#edf1f6;color:#566b80;max-width:230px;line-height:1.35}.badge.available,.badge.all{background:#e4f4ec;color:#166b4d}.badge.backorder,.badge.none{background:#fff3dc;color:#8b5b14}.badge.mixed,.badge.partial{background:#e8efff;color:#365b9b}.badge.cancelled{background:#f8e6e9;color:#a33345}.empty-cell{text-align:center;padding:50px;color:var(--muted)}.order-overview{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:20px}.order-overview .panel{margin-bottom:24px}.status-stack{display:flex;flex-direction:column;align-items:start;justify-content:center;gap:12px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.edit-lines{min-width:820px}.edit-lines td{padding:10px}.edit-lines td:first-child{width:43%}.edit-lines input{min-width:80px}.variant-lines{min-width:700px}.variant-lines input:not([type=checkbox]){min-width:95px}.variant-lines td{padding:10px}.cancel-row{margin:0 0 25px}.row-between{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0}.row-between+.row-between{border-top:1px solid var(--line)}.qty-input{width:76px}details{border-bottom:1px solid var(--line);padding:12px 0}summary{cursor:pointer;font-size:14px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;padding:15px;background:var(--bg)}.thumbnail{width:140px;height:140px;object-fit:contain;border:1px solid var(--line);border-radius:8px}.positive{color:var(--green);font-weight:650}.negative{color:#b53843;font-weight:650}.formula{background:var(--navy);padding:23px 27px;border-radius:10px;color:white;display:flex;flex-direction:column;gap:7px;margin-bottom:24px}.formula span{font-size:14px;color:#bdd0e4}.reorder{background:#e5effe;color:var(--blue);padding:7px 13px;border-radius:5px}.prose{max-width:850px;line-height:1.8}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}footer{padding:20px 30px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;text-align:center}footer a{font-size:12px}
@media(max-width:1100px){.workspace{padding:25px 20px}aside{width:175px;padding:23px 10px}.catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.order-overview{grid-template-columns:1fr 1fr}.order-overview>div:last-child{grid-column:1/-1}.topbar{padding:18px 25px}}
@media(max-width:760px){.topbar{align-items:flex-start;flex-direction:column;gap:17px;padding:18px 20px}.topbar nav{width:100%;gap:2px}.topbar nav a{padding:8px;font-size:13px}.admin-shell{display:block}aside{width:100%;border-right:0;border-bottom:1px solid var(--line);padding:10px 15px}aside .eyebrow,aside form{display:none}aside nav{flex-direction:row;overflow:auto;margin:0;gap:3px}aside nav a{white-space:nowrap;padding:9px 12px;font-size:14px}aside nav a.active{box-shadow:inset 0 -3px var(--blue)}.workspace,.store{padding:25px 16px 45px}.page-heading{align-items:start;flex-direction:column;gap:15px;margin-bottom:23px}.page-heading .button{width:100%}h1{font-size:29px;letter-spacing:-.8px}.panel{padding:19px}.checkout-grid,.form-grid,.order-overview{grid-template-columns:1fr}.order-overview{gap:0}.catalog{gap:15px}.product-body{padding:16px}.product-body h2{font-size:18px}.inline{flex-wrap:wrap}.quantity{width:100%}.stats{gap:10px;grid-template-columns:1fr}.stats>div{padding:15px 20px;display:flex;align-items:center;justify-content:space-between}.stats strong{font-size:25px;margin:0}.filters{gap:12px}.filters label{flex-basis:calc(50% - 12px)}.filters button{flex:1}.row-between{flex-wrap:wrap}.login{margin:20px auto}.confirmation{margin:30px auto}.brand{font-size:17px}.formula{padding:20px}.formula strong{font-size:15px}td{padding:14px}th{padding:13px 14px}}
@media(max-width:480px){.catalog{grid-template-columns:1fr}.product-image{aspect-ratio:1.4}.filters label{flex-basis:100%}.inline{flex-wrap:nowrap}.quantity{width:75px}.brand-icon{width:38px;height:38px}.topbar nav{justify-content:space-between}.topbar nav a{font-size:12px;padding:7px 5px}}
.checkout-grid>*,.form-grid>*,.order-overview>*{min-width:0}
.package-card{background:white;border:1px solid var(--line);border-radius:10px;padding:20px;margin-bottom:18px}.package-card h3{margin:0 0 6px;font-size:18px}.package-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px}.package-card li{margin:8px 0}.edit-lines{min-width:1080px}

.product-image > a {display:block;width:100%;height:100%}
.photo-thumbs {display:flex;gap:8px;padding:10px;overflow-x:auto;max-width:100%}
.photo-thumbs button {flex:0 0 54px;padding:3px;background:white;border:2px solid transparent;border-radius:8px}
.photo-thumbs button[aria-pressed="true"] {border-color:#155bd7}
.photo-thumbs img {display:block;width:44px;height:50px;object-fit:contain}
.photo-editor {display:flex;flex-wrap:wrap;gap:18px}
.photo-editor > div {border:1px solid #dce3ec;border-radius:10px;padding:10px}
.photo-editor .thumbnail {width:110px;height:110px;object-fit:contain}
.product-card,.product-gallery {min-width:0}

/* Carrusel: tamaño estable con cualquier proporción de fotografía. */
.product-gallery {width:100%;overflow:hidden;background:#eaf0f6}
.gallery-stage {position:relative;width:100%;height:280px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.gallery-stage [data-gallery-slide] {display:block;position:absolute;inset:0;width:100%;height:100%}
.gallery-stage [data-gallery-slide][hidden] {display:none}
.gallery-stage img {display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.gallery-controls {display:flex;align-items:center;justify-content:center;gap:18px;padding:8px 12px;background:#f6f8fb}
.gallery-controls button {display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-width:40px;padding:0;border:1px solid #d0dbea;border-radius:50%;background:#fff;color:#193c69;font-size:28px;line-height:1}
.gallery-controls button:hover {background:#e4ecf8}
.gallery-controls span {min-width:48px;text-align:center;font-size:13px;color:#415771;font-variant-numeric:tabular-nums}
@media(max-width:480px){.gallery-stage{height:250px}}

.table-wrap {max-width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-scroll-controls {display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px;width:100%;min-width:0}
.table-scroll-controls[hidden] {display:none}
.table-scroll-controls span {font-size:12px;color:var(--muted);text-align:center}
.table-scroll-controls button {flex:0 0 44px;width:44px;min-height:44px;padding:7px;background:#fff;color:var(--blue);border-color:var(--line)}
.table-scroll-controls button:disabled {opacity:.35;cursor:default}
.mobile-product-edit {display:none}
input[type=radio] {width:18px;height:18px;min-height:18px;flex-shrink:0;accent-color:var(--blue)}
@media(max-width:760px){.mobile-product-edit{display:inline-flex;align-items:center;min-height:44px;margin-top:4px;font-weight:650}.table-wrap td:first-child{min-width:135px}}
.brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}
.quick-action{margin-top:8px}.compact-button{padding:7px 10px;min-height:34px;font-size:12px;white-space:nowrap}
