@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');
:root{--cream:#f7f1e7;--ivory:#fffdf8;--ink:#302a23;--muted:#81786b;--gold:#a88a4c;--green:#4e8777;--line:#e9e0d2;--serif:'Playfair Display',Georgia,serif;--sans:'DM Sans',Arial,sans-serif;--shadow:0 14px 44px #302a2314}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--sans);font-size:15px;line-height:1.55}a{color:inherit}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}button{color:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:focus-visible{outline:3px solid #4e877780;outline-offset:3px}.site-header{height:74px;padding:0 clamp(20px,6vw,88px);display:flex;align-items:center;justify-content:space-between;background:var(--ivory);border-bottom:1px solid var(--line)}.brand{text-decoration:none;display:inline-flex;gap:10px;align-items:center;font-size:16px;font-weight:600;letter-spacing:.01em}.brand i{font-family:var(--serif);font-weight:500;color:var(--gold)}.brand-mark{width:32px;height:32px;border:1px solid var(--gold);border-radius:50%;display:grid;place-items:center;font:italic 21px var(--serif);color:var(--gold)}.cart-trigger{border:0;background:transparent;cursor:pointer;font-weight:600}.cart-count{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:5px;padding:0 6px;background:var(--green);color:white;border-radius:99px;font-size:12px}.hero{max-width:1280px;margin:auto;padding:48px clamp(20px,6vw,88px) 70px;display:grid;grid-template-columns:1fr .92fr;gap:7%;align-items:center}.hero-copy{padding:18px 0}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.19em;color:var(--gold);margin:0 0 12px}.hero h1,.admin-intro h1{font:500 clamp(40px,5vw,68px)/1.12 var(--serif);letter-spacing:-.035em;margin:0 0 20px}.hero h1 em{font-weight:500;color:var(--green)}.hero-copy>p:not(.eyebrow){max-width:400px;color:var(--muted);font-size:16px}.text-link{display:inline-block;color:var(--green);font-weight:600;text-decoration:none;margin-top:14px}.hero-image-wrap{height:390px;position:relative;background:#e9dfce;overflow:hidden;border-radius:3px}.hero-image{width:100%;height:100%;object-fit:contain;display:block}.hero-note{position:absolute;right:0;bottom:0;padding:12px 20px;background:var(--ivory);font:italic 15px var(--serif);color:var(--green)}.catalog-section{background:var(--ivory);padding:65px clamp(20px,6vw,88px) 82px}.section-heading,.catalog-controls,.admin-toolbar{max-width:1280px;margin:0 auto}.section-heading{display:flex;align-items:end;justify-content:space-between}.section-heading h2,.drawer-head h2,.admin-toolbar h2,.login-panel h2,.edit-dialog h2{font:500 34px var(--serif);margin:0}.result-count,.muted{font-size:13px;color:var(--muted)}.catalog-controls{display:flex;gap:12px;margin-top:26px}.search-field{height:48px;display:flex;gap:10px;align-items:center;background:#f7f4ee;border:1px solid var(--line);padding:0 14px;flex:1;color:var(--gold)}.search-field input{width:100%;background:transparent;border:0;outline:0;color:var(--ink)}.search-field input:focus-visible{outline:0}.select-label select{height:48px;background:#f7f4ee;border:1px solid var(--line);padding:0 34px 0 12px;color:var(--ink);max-width:100%}.category-list{display:flex;gap:9px;overflow:auto;padding:22px 0 25px;max-width:1280px;margin:auto}.category-chip{white-space:nowrap;border:1px solid var(--line);background:transparent;border-radius:99px;padding:8px 16px;cursor:pointer;color:var(--muted);font-size:13px}.category-chip[aria-pressed=true],.category-chip:hover{background:var(--green);border-color:var(--green);color:white}.product-grid{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px}.product-card{min-width:0}.product-image-wrap{position:relative;background:#f1ece3;aspect-ratio:1;overflow:hidden;cursor:zoom-in}.product-image{width:100%;height:100%;object-fit:contain;display:block;transition:transform .3s}.product-card:hover .product-image{transform:scale(1.035)}.quick-add{position:absolute;right:10px;bottom:10px;border:0;border-radius:50%;background:var(--ivory);width:42px;height:42px;font-size:24px;color:var(--green);cursor:pointer;box-shadow:var(--shadow)}.product-meta{padding:12px 2px}.product-category{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:var(--gold)}.product-title{font:500 17px/1.35 var(--serif);margin:3px 0 5px}.product-price{font-weight:600;color:var(--green);font-size:14px}.status-message{text-align:center;color:var(--muted);padding:18px}.status-message:empty{display:none}.site-footer{padding:32px clamp(20px,6vw,88px);display:flex;align-items:center;justify-content:space-between;gap:18px;color:var(--muted);font-size:13px}.site-footer p{margin:0}.admin-link{color:var(--green);text-decoration:none}.scrim{position:fixed;inset:0;background:#211c16a6;z-index:5}.cart-drawer{position:fixed;z-index:6;right:0;top:0;height:100dvh;width:min(460px,100%);background:var(--ivory);box-shadow:var(--shadow);transform:translateX(105%);transition:transform .25s;display:flex;flex-direction:column;padding:25px}.cart-drawer.open{transform:translateX(0)}.drawer-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:18px;border-bottom:1px solid var(--line)}.drawer-head h2{font-size:28px}.icon-button{background:transparent;border:0;font-size:30px;cursor:pointer;line-height:1}.cart-items{overflow:auto;flex:1}.cart-row{display:grid;grid-template-columns:62px 1fr auto;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);align-items:center}.cart-row img{width:62px;height:72px;object-fit:contain;background:var(--cream)}.cart-row h3{font:500 15px var(--serif);margin:0 0 4px}.cart-row p{font-size:12px;color:var(--muted);margin:0}.qty-controls{display:flex;gap:8px;align-items:center;margin-top:8px}.qty-controls button,.remove-item{border:1px solid var(--line);background:transparent;width:27px;height:27px;border-radius:50%;cursor:pointer}.remove-item{color:#945f4e}.cart-footer{border-top:1px solid var(--line);padding-top:15px}.cart-total{font-size:18px;font-weight:600;margin:0}.total-note,.privacy-note{font-size:12px;color:var(--muted);margin:4px 0 15px}.cart-actions{display:grid;grid-template-columns:.8fr 1.5fr;gap:9px}.button{border-radius:2px;min-height:44px;padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;text-align:center;font-weight:600;font-size:13px;cursor:pointer;border:1px solid transparent}.button-primary{background:var(--green);color:white}.button-outline{background:transparent;border-color:var(--line);color:var(--ink)}.button:disabled{opacity:.55;cursor:wait}.privacy-note{text-align:center;margin:12px 0 0}.toast{position:fixed;z-index:20;left:50%;bottom:24px;transform:translate(-50%,20px);background:var(--ink);color:white;padding:11px 18px;border-radius:3px;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.image-dialog,.edit-dialog{border:0;padding:24px;background:var(--ivory);box-shadow:var(--shadow);max-width:min(92vw,760px);max-height:90dvh}.image-dialog::backdrop,.edit-dialog::backdrop{background:#211c16b8}.image-dialog img{display:block;max-width:100%;max-height:80dvh;object-fit:contain}.dialog-close{position:absolute;right:8px;top:8px;background:var(--ivory);border-radius:50%;width:40px;height:40px}.admin-main{min-height:70vh;max-width:1000px;margin:0 auto;padding:52px 22px 75px}.admin-intro{margin-bottom:28px}.admin-intro h1{font-size:46px;margin-bottom:6px}.admin-intro>p:last-child,.login-panel>p{color:var(--muted)}.panel{background:var(--ivory);padding:25px;box-shadow:var(--shadow);max-width:460px}.login-panel form{display:grid;gap:10px}.login-panel label,.edit-dialog form>label{font-size:13px;font-weight:600}.login-panel input,.edit-dialog input:not([type=checkbox]),.edit-dialog textarea{width:100%;border:1px solid var(--line);background:white;padding:11px 12px;color:var(--ink);margin-bottom:7px}.login-panel .button{margin-top:5px}.form-error{color:#a33;font-size:13px;min-height:1em;margin:0}.admin-panel[hidden],.login-panel[hidden]{display:none}.admin-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.admin-toolbar h2{font-size:28px}.toolbar-actions{display:flex;gap:9px}.admin-search{max-width:100%;margin-bottom:17px}.admin-product-list{display:grid;gap:9px}.admin-product{display:grid;grid-template-columns:58px 1fr auto;gap:14px;align-items:center;background:var(--ivory);padding:11px 14px;border:1px solid var(--line)}.admin-product img{width:58px;height:64px;object-fit:contain;background:var(--cream)}.admin-product h3{font:500 16px var(--serif);margin:0 0 3px}.admin-product p{margin:0;color:var(--muted);font-size:12px}.admin-product .button{min-height:36px;padding:7px 12px}.state-pill{font-size:10px;color:var(--green);margin-left:7px}.state-pill.off{color:#9b6555}.edit-dialog{width:min(520px,94vw);padding:26px}.edit-dialog form{display:grid;gap:9px}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.dialog-heading h2{font-size:28px}.checkbox-label{display:flex;align-items:center;gap:9px!important;font-weight:500!important}.checkbox-label input{accent-color:var(--green);width:17px;height:17px}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:6px}
@media(min-width:700px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:38px 22px}.cart-drawer{padding:30px}.product-title{font-size:19px}}@media(min-width:1000px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 24px}}@media(max-width:680px){.site-header{height:64px}.hero{padding-top:27px;padding-bottom:38px;grid-template-columns:1fr;gap:22px}.hero-copy{padding:0}.hero h1{font-size:43px}.hero-copy>p:not(.eyebrow){font-size:14px;margin-bottom:9px}.hero-image-wrap{height:min(70vw,330px)}.catalog-section{padding-top:38px;padding-bottom:50px}.section-heading{align-items:start;gap:10px}.section-heading h2{font-size:30px}.result-count{max-width:120px;text-align:right}.catalog-controls{gap:8px}.select-label select{max-width:135px;padding-left:8px;padding-right:23px;font-size:12px}.product-grid{gap:25px 12px}.product-title{font-size:16px}.site-footer{flex-wrap:wrap}.site-footer p{width:100%;order:3}.admin-main{padding-top:35px}.admin-toolbar{align-items:flex-start;gap:12px;flex-direction:column}.toolbar-actions{flex-wrap:wrap}.admin-product{grid-template-columns:48px 1fr auto;gap:9px;padding:9px}.admin-product img{width:48px;height:54px}.admin-product h3{font-size:14px}.admin-product .button{font-size:11px;padding:7px}.cart-actions{grid-template-columns:1fr 1.45fr}}

.button[aria-disabled="true"]{opacity:.5;pointer-events:none;cursor:not-allowed}.hero-image-wrap{background:#eee5d6}.cart-drawer.open{overscroll-behavior:contain}

/* Ajustes solicitados: portada sin foto, promoción plegable y carrito fijo. */
.hero.hero-text-only{display:block;max-width:1040px;padding:42px clamp(20px,6vw,88px) 35px;min-height:0}
.hero-text-only .hero-copy{max-width:850px;margin:0;padding:0}
.hero-text-only h1{font-size:clamp(42px,6vw,70px)}
.promotion-slot{max-width:1280px;margin:0 auto;padding:0 clamp(20px,6vw,88px) 28px}
.promotion-panel{overflow:hidden;border:1px solid var(--line);background:var(--ivory);box-shadow:var(--shadow)}
.promotion-panel summary{list-style:none;display:grid;grid-template-columns:auto 1fr auto auto;gap:14px;align-items:center;padding:17px 20px;cursor:pointer}
.promotion-panel summary::-webkit-details-marker{display:none}
.promotion-panel summary strong{font:500 22px var(--serif);color:var(--ink)}
.promotion-label{font-size:10px;font-weight:700;letter-spacing:.16em;color:var(--gold)}
.promotion-teaser{font-size:13px;color:var(--muted);text-align:right}
.promotion-chevron{font-size:23px;color:var(--green);transition:transform .18s}
.promotion-panel[open] .promotion-chevron{transform:rotate(180deg)}
.promotion-copy{border-top:1px solid var(--line);padding:16px 20px 20px;color:var(--ink)}
.promotion-copy p{margin:0;white-space:pre-line}
#promotion-empty{color:var(--muted);font-size:14px}
.catalog-section{padding-top:38px}
.cart-trigger{position:fixed;top:auto;right:20px;bottom:20px;z-index:4;display:flex;align-items:center;gap:8px;min-height:52px;padding:12px 18px;border:1px solid #ffffff55;border-radius:999px;background:var(--green);color:white;box-shadow:0 10px 30px #302a2330;font-weight:700}
.cart-trigger:hover{background:#3d7465}
.cart-trigger .cart-count{background:var(--ivory);color:var(--green)}
.button[aria-disabled="true"]{opacity:.5;pointer-events:none;cursor:not-allowed}
.image-fallback{object-fit:contain!important;background:var(--cream)}
.promotion-editor.panel{max-width:none;margin:0 0 30px;padding:22px 25px}
.promotion-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:15px}
.promotion-editor-heading h2{font:500 27px var(--serif);margin:0}
.promotion-editor-heading .muted{margin:0}
.promotion-editor form{display:grid;gap:10px}
.promotion-editor form>label:not(.checkbox-label){font-size:13px;font-weight:600}
.promotion-editor textarea{width:100%;border:1px solid var(--line);background:white;padding:11px 12px;color:var(--ink);resize:vertical}
.promotion-editor .checkbox-label{justify-content:flex-start;gap:9px;font-weight:500}
.promotion-editor .checkbox-label input{accent-color:var(--green);width:17px;height:17px}
.promotion-editor-actions{display:flex;justify-content:space-between;align-items:center;gap:14px}
.promotion-editor-actions p{margin:0;min-height:1em}
.success-message{color:var(--green)!important}
@media(max-width:680px){
  .hero.hero-text-only{padding:30px 20px 27px}
  .hero-text-only h1{font-size:42px;margin-bottom:13px}
  .promotion-slot{padding:0 16px 18px}
  .promotion-panel summary{grid-template-columns:auto 1fr auto;gap:8px 12px;padding:14px}
  .promotion-panel summary strong{font-size:20px}
  .promotion-teaser{grid-column:2;grid-row:2;text-align:left;font-size:12px}
  .promotion-chevron{grid-column:3;grid-row:1 / span 2}
  .catalog-section{padding-top:30px}
  .cart-trigger{right:14px;bottom:14px;min-height:50px;padding:11px 15px}
  .promotion-editor.panel{padding:18px 15px}
  .promotion-editor-heading{align-items:flex-start;flex-direction:column;gap:4px}
  .promotion-editor-actions{align-items:stretch;flex-direction:column}
}

/* Fondo elegido por el usuario: crema texturado, con contraste suficiente para leer. */
body{background:var(--cream) url('/backgrounds/fondo_crema.jpg') center center/cover fixed no-repeat}
.site-header{background:rgba(255,253,248,.84);backdrop-filter:none}
.catalog-section{background:rgba(255,253,248,.83)}
.promotion-panel{background:rgba(255,253,248,.88)}
.hero-text-only .hero-copy>p:not(.eyebrow){max-width:650px}
@media(max-width:680px){body{background-attachment:scroll;background-size:auto 100vh}.site-header{backdrop-filter:none}}

/* Gestión de fotos agrupadas y acciones administrativas. */
.admin-product-actions{display:flex;gap:7px;align-items:center}.image-previews{display:flex;flex-wrap:wrap;gap:10px}.image-preview{display:flex;align-items:center;gap:9px;padding:8px;border:1px solid var(--line);background:var(--ivory);min-width:0}.image-preview img{width:62px;height:62px;object-fit:contain;background:var(--cream)}.image-preview span{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.image-preview .button{min-height:34px;padding:6px 10px}.promotion-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin-top:14px}.promotion-images:empty{display:none}.promotion-images img{display:block;width:100%;height:clamp(120px,24vw,250px);object-fit:contain;background:var(--cream)}.promotion-copy #promotion-text[hidden]{display:none}
@media(max-width:680px){.admin-product{grid-template-columns:48px 1fr;}.admin-product-actions{grid-column:2;flex-wrap:wrap}.admin-product-actions .button{flex:1}.image-preview{width:100%;}.image-preview img{width:54px;height:54px}.image-preview span{flex:1}.promotion-images{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
