@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Cormorant+Garamond:wght@500;600;700&display=swap');
:root{
  --bg:#090908;
  --panel:#11110f;
  --panel-2:#171713;
  --card:#121210;
  --line:#2b2b25;
  --ink:#f3ede0;
  --muted:#b9b19e;
  --gold:#c9a45d;
  --gold-soft:#dbc28e;
  --chip:#181814;
  --white:#fff;
  --danger:#c96d6d;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans',Arial,sans-serif}
button,input,select,textarea{font:inherit}
a{color:inherit}
button{cursor:pointer}
.shell{max-width:1320px;margin:auto;padding:0 28px}
.topline{background:#123238;color:#efe7d8;text-align:center;font-size:10px;letter-spacing:2px;padding:10px 16px;border-bottom:1px solid #1d474e}
.main-header{position:sticky;top:0;z-index:30;background:rgba(9,9,8,.88);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.header-wrap{display:flex;align-items:center;gap:22px;min-height:88px}
.brand-block{text-decoration:none;display:flex;align-items:center;gap:14px;min-width:0}
.brand-emblem{width:54px;height:54px;border:1px solid rgba(201,164,93,.35);border-radius:50%;display:grid;place-items:center;background:#0c0c0b;color:var(--gold);font-size:24px;box-shadow:inset 0 0 0 4px rgba(201,164,93,.06)}
.brand-text{display:grid;gap:3px}
.brand-text strong{font-size:33px;letter-spacing:4px;line-height:1;font-family:'Cormorant Garamond',serif;font-weight:700}
.brand-text small{font-size:10px;letter-spacing:2.7px;color:var(--muted)}
.main-nav{display:flex;gap:24px;margin-left:auto}
.main-nav a{text-decoration:none;color:#f1ebdd;font-size:13px;opacity:.92}
.main-nav a:hover{color:var(--gold-soft)}
.header-actions{display:flex;align-items:center;gap:12px}
.mode-pill{border:1px solid var(--line);padding:12px 18px;border-radius:14px;background:var(--chip);color:var(--muted);font-weight:600}
.mode-pill.active{background:#eee7d6;color:#0f0f0d}
.cart-button{border:1px solid #38382f;background:#fcf6e8;color:#161613;padding:12px 18px;border-radius:14px;font-weight:700}
.cart-button span{display:inline-grid;place-items:center;min-width:23px;height:23px;margin-left:8px;border-radius:999px;background:#181813;color:#f0e7d3;padding:0 7px;font-size:12px}
.hero-ayne{background:radial-gradient(circle at top right, rgba(201,164,93,.08), transparent 35%),linear-gradient(180deg,#0c0c0b 0%,#0a0a09 100%);padding:36px 0 50px;border-bottom:1px solid var(--line)}
.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:34px;align-items:center}
.eyebrow{font-size:10px;letter-spacing:3px;color:#a89d84;font-weight:700;text-transform:uppercase}
.hero-copy h1,.catalog-head h2,.how h2,.drawer-head h2{font:600 clamp(52px,7vw,82px)/.94 'Cormorant Garamond',Georgia,serif;letter-spacing:-1.5px;margin:16px 0 18px;color:#f5efe2}
.catalog-head h2,.how h2{font-size:clamp(34px,4vw,52px);line-height:1.02;margin:10px 0}
.hero-copy h1 em{font-style:normal;color:var(--gold)}
.hero-copy p{max-width:700px;color:#c6bca8;font-size:16px;line-height:1.9}
.hero-search{display:flex;gap:10px;max-width:640px;margin:28px 0 18px}
.hero-search input,.toolbar select,.searchbox input,.form-grid input,.form-grid select,.panel textarea,.narrow input{width:100%;min-width:0;background:#13130f;border:1px solid #302f27;color:#f4eedf;padding:15px 16px;border-radius:14px;outline:none}
.hero-search input:focus,.searchbox input:focus,.toolbar select:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,164,93,.12)}
.hero-notes{display:flex;flex-wrap:wrap;gap:18px;color:#b8af9a;font-size:12px}
.hero-panel{display:flex;justify-content:flex-end}
.hero-card{width:min(390px,100%);background:linear-gradient(180deg,#151511,#0f0f0d);border:1px solid #2f2d25;border-radius:28px;padding:32px;box-shadow:0 20px 60px rgba(0,0,0,.24)}
.hero-card small{display:block;font-size:11px;letter-spacing:2px;color:var(--gold-soft);margin-bottom:12px}
.hero-card b{display:block;font-family:'Cormorant Garamond',serif;font-size:44px;letter-spacing:3px;margin-bottom:10px}
.hero-card p{color:#c5bca8;line-height:1.8;margin-bottom:24px}
.btn{display:inline-block;text-decoration:none;border:none;border-radius:14px;padding:14px 20px;font-weight:700}
.btn.gold{background:var(--gold);color:#111}
.btn.dark{background:#1a1a16;color:#f3ebde;border:1px solid #333227}
.btn:hover{filter:brightness(1.05)}
.catalog-head{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:42px 0 18px}
.catalog-count{display:grid;gap:6px;text-align:right}
.catalog-count strong{font:600 54px/1 'Cormorant Garamond',serif;color:#f5efe2}
.catalog-count small{font-size:11px;letter-spacing:3px;color:#a99f89}
.chip-scroller{display:flex;gap:10px;flex-wrap:wrap;padding-bottom:18px}
.chip{background:var(--chip);color:#efe9dc;border:1px solid #2c2b23;border-radius:999px;padding:11px 18px;font-weight:700}
.chip.active,.chip:hover{background:#f1e8d7;color:#0b0b09;border-color:#f1e8d7}
.toolbar-ayne{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;margin-bottom:26px}
.searchbox{display:grid;grid-template-columns:1fr auto;gap:10px}
.search-btn{background:#1c1b17;color:#f2ebde;border:1px solid #363429;border-radius:14px;padding:0 18px;font-weight:700}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;padding-bottom:70px}
.product-card{background:linear-gradient(180deg,#131310,#0f0f0d);border:1px solid #292822;border-radius:22px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.product-img{height:300px;background:linear-gradient(180deg,#1b1b17,#12120f);display:grid;place-items:center;position:relative;overflow:hidden}
.product-img img{width:100%;height:100%;object-fit:cover}
.product-img .fallback{display:grid;place-items:center;width:100%;height:100%;font-size:86px;color:#9b947f;background:radial-gradient(circle at center, #21211c 0%, #151512 60%, #12120f 100%)}
.tag{position:absolute;top:14px;left:14px;background:#efe6d5;color:#161511;padding:7px 11px;border-radius:999px;font-size:10px;letter-spacing:1px;font-weight:700}
.product-content{padding:18px 18px 20px}
.product-cat{font-size:10px;letter-spacing:2px;color:#a79c85;text-transform:uppercase}
.product-name{margin:8px 0 7px;font:600 20px/1.05 'Cormorant Garamond',serif;color:#f6f0e4;min-height:62px}
.product-code{font-size:11px;color:#908974;margin-bottom:8px}
.product-price{font-size:30px;font-weight:700;color:#f7efdf;margin:10px 0 14px;display:flex;gap:4px;align-items:flex-start}
.product-price .peso{font-size:.8em;color:var(--gold-soft)}
.product-footer{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.product-footer button{border:none;border-radius:14px;background:var(--gold);color:#111;padding:13px 14px;font-weight:700}
.product-footer input{width:62px;text-align:center;background:#151510;border:1px solid #333126;color:#f4eedf;padding:12px;border-radius:14px}
.empty{text-align:center;padding:60px 20px;color:#bcb19a}
.how-ayne{border-top:1px solid var(--line);background:#0d0d0b;padding:70px 0 90px}
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;margin-top:30px}
.steps>div{padding:24px;border:1px solid #2a2922;border-radius:20px;background:linear-gradient(180deg,#141411,#10100e)}
.steps strong{display:block;font:600 38px 'Cormorant Garamond',serif;color:var(--gold);margin-bottom:8px}
.steps h3{font:600 28px 'Cormorant Garamond',serif;margin:0 0 10px;color:#f5efdf}
.steps p{line-height:1.8;color:#c3b9a3}
footer{border-top:1px solid var(--line);background:#0a0a09;color:#f5efdf;padding:46px 0}
.footer-inner{display:flex;justify-content:space-between;gap:26px;align-items:flex-start}
.footer-inner b{font:600 34px 'Cormorant Garamond',serif;letter-spacing:3px}
.footer-inner p{max-width:420px;line-height:1.8;color:#b6ad98}
.footer-inner a{color:var(--gold-soft)}
.overlay{position:fixed;inset:0;background:rgba(6,6,5,.72);z-index:40}
.drawer{position:fixed;top:0;right:0;width:min(460px,100%);height:100%;background:#11110f;border-left:1px solid #2c2b24;transform:translateX(103%);transition:transform .25s;z-index:41;display:flex;flex-direction:column;box-shadow:-12px 0 40px rgba(0,0,0,.35)}
.drawer.open{transform:translateX(0)}
.drawer-head{display:flex;justify-content:space-between;gap:14px;padding:28px;border-bottom:1px solid var(--line)}
.drawer-head small{letter-spacing:2px;color:#aa9f88}
.close{background:none;border:none;color:#f1ead9;font-size:20px}
.drawer-list{padding:18px 28px;overflow:auto;flex:1}
.cart-line{display:grid;grid-template-columns:1fr auto;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}
.cart-line b{display:block;margin-bottom:4px}
.cart-line small{color:#aa9f88;line-height:1.6}
.cart-line button{background:none;border:none;color:var(--danger)}
.drawer-foot{padding:24px 28px;border-top:1px solid var(--line)}
.drawer-foot small{display:block;color:#afa48e;line-height:1.7;margin:10px 0 16px}
.total{display:flex;justify-content:space-between;align-items:center;gap:12px}
.total strong{font-size:28px}
.full{width:100%}
.admin-body{background:#0a0a09;color:#f4edde}
.admin-shell{max-width:1260px;padding:25px;margin:auto}
.admin-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.admin-top h1,.panel h2{font:600 42px 'Cormorant Garamond',serif;margin:10px 0;color:#f4edde}
.admin-columns{display:grid;grid-template-columns:1.15fr .85fr;gap:20px;align-items:start}
.panel{background:#121210;border:1px solid #292822;border-radius:20px;padding:24px;margin-bottom:20px}
.panel p{color:#b8af9a;line-height:1.8}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-grid label{font-size:12px;display:flex;flex-direction:column;gap:8px;font-weight:700;color:#bcae8a}
.form-grid .wide{grid-column:1/-1}
.form-grid .check{flex-direction:row;align-items:center;font-weight:500;color:#d7ccb4}
.form-grid .check input{width:auto}
.form-grid button{grid-column:1/-1}
.panel textarea{width:100%;resize:vertical;margin-bottom:10px}
.narrow{max-width:520px;margin:80px auto}
.alert{padding:15px;margin-bottom:15px;border-radius:14px}
.error{background:#3a1717;color:#ffd5d5;border:1px solid #6f2e2e}
.good{background:#13291d;color:#d8f0de;border:1px solid #2f6640}
.admin-products{max-height:860px;overflow:auto}
.admin-item{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:12px 0}.admin-item img,.admin-img-placeholder{width:56px;height:56px;object-fit:cover;background:#1b1b17;display:grid;place-items:center;flex-shrink:0;border-radius:10px;color:#b0a58d}.admin-item>div:nth-child(2){min-width:0;flex:1}.admin-item b{display:block;font-size:12px}.admin-item small{display:block;margin-top:5px;color:#978f7d}.admin-item form{display:flex;gap:6px}.admin-item button,.ghost{background:#1c1c18;border:1px solid #35342b;padding:8px 10px;color:#f0e8d9;border-radius:10px}.admin-item button:last-child{color:#f3bbbb}.ghost{display:inline-block;text-decoration:none}
code{background:#1a1a16;padding:3px 6px;border-radius:6px;color:#efdcb0}
@media(max-width:1024px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.main-nav{display:none}.hero-grid{grid-template-columns:1fr}.hero-panel{justify-content:flex-start}.admin-columns{grid-template-columns:1fr}}
@media(max-width:680px){.shell{padding:0 16px}.header-wrap{min-height:76px;gap:12px}.brand-text strong{font-size:24px}.brand-text small{font-size:8px}.brand-emblem{width:44px;height:44px}.header-actions .mode-pill{display:none}.cart-button{padding:10px 12px;border-radius:12px;font-size:12px}.hero-copy h1{font-size:54px}.hero-search{grid-template-columns:1fr;display:grid}.catalog-head{display:block}.catalog-count{text-align:left;margin-top:10px}.toolbar-ayne{grid-template-columns:1fr}.searchbox{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-img{height:205px}.product-name{font-size:15px;min-height:48px}.product-price{font-size:24px}.steps{grid-template-columns:1fr}.footer-inner{display:grid}.form-grid{grid-template-columns:1fr}.admin-shell{padding:12px}.panel{padding:16px}}

/* Ficha descriptiva AYNE */
.detail-trigger{width:100%;margin:1px 0 12px;border:1px solid #5b5038;border-radius:10px;background:#1a1915;color:#e8d0a1;padding:10px;font-weight:600;text-align:left}
.detail-trigger:hover{background:#29251c}
.detail-modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:51;background:#131310;color:#f3ecdd;border:1px solid #50432b;border-radius:20px;width:min(850px,94vw);max-height:88vh;overflow:auto;box-shadow:0 25px 85px #000a;padding:26px}
.detail-modal[hidden]{display:none}
.detail-close{position:absolute;top:14px;right:16px;background:#2d2921;color:white;border:0;border-radius:50%;width:36px;height:36px;z-index:2}
#detailContent{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:26px}
.detail-photo{border-radius:14px;min-height:250px;background:white;display:flex;align-items:center;justify-content:center;overflow:hidden}
.detail-photo img{max-width:100%;width:100%;max-height:460px;object-fit:contain}
.detail-copy{padding:10px 4px}.detail-copy h2{font:600 36px/1.1 'Cormorant Garamond',Georgia,serif;margin:12px 0}.detail-copy h3{font-size:14px;color:#e5c27e;margin:20px 0 8px}.detail-desc{white-space:pre-line;line-height:1.8;color:#d5cbb8}.detail-price{font-size:28px;font-weight:700}
.modal-open{overflow:hidden}
@media(max-width:650px){#detailContent{grid-template-columns:1fr}.detail-modal{padding:18px}.detail-photo{min-height:170px}.detail-copy h2{font-size:29px}}

.checkout-modal{position:fixed;z-index:52;top:50%;left:50%;transform:translate(-50%,-50%);width:min(520px,94vw);max-height:94vh;overflow:auto;background:#14130f;color:#f3ecdd;border:1px solid #655234;border-radius:22px;padding:28px;box-shadow:0 28px 90px #000a}
.checkout-modal[hidden]{display:none}.checkout-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.checkout-head small{font-size:10px;letter-spacing:2px;color:#c8a968}.checkout-head h2{font:600 37px 'Cormorant Garamond',serif;margin:8px 0 0}.checkout-modal form{display:grid;gap:15px}.checkout-modal label{display:grid;gap:7px;font-size:13px;font-weight:600;color:#e7d2ab}.checkout-modal input{width:100%;border:1px solid #4a3f2e;background:#0f0f0c;border-radius:12px;padding:14px;color:white;outline:none}.checkout-modal input:focus{border-color:#d2aa60}.checkout-help{color:#b7ad9b;line-height:1.7;font-size:12px}.checkout-error{color:#ffb8b8;background:#3c1d1d;padding:10px;border-radius:10px}

/* AYNE V12 PREVIEW: barra compacta y catalogo móvil */
.ayne-category-toggle{display:inline-flex;align-items:center;justify-content:center;margin:0 0 12px;padding:13px 18px;border:1px solid #705b34;border-radius:12px;background:#211d15;color:#f2deb2;font-weight:700;min-height:44px}
#chipFilters.ayne-chips-collapsed:not(.ayne-chips-expanded){max-height:0;overflow:hidden;padding:0;margin:0;gap:0}
#chipFilters.ayne-chips-expanded{max-height:300px;overflow-y:auto;overscroll-behavior:contain;padding:10px 0 16px}
.ayne-pager{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:0 0 48px}
.ayne-page-info{color:#d7c5a3;font-size:13px;width:100%;text-align:center}
.ayne-page-button{background:#c9a45d;border:0;border-radius:12px;padding:12px 20px;min-height:44px;font-weight:700;color:#111}
.ayne-page-button:disabled{opacity:.4;cursor:not-allowed}
.product-img img{object-fit:contain;background:#fff}
@media(max-width:680px){
 .header-wrap{gap:7px}.brand-text strong{letter-spacing:1.5px;font-size:21px}.header-actions{margin-left:auto}
 .catalog-head{padding-top:22px}.hero-ayne{padding:18px 0 26px}.hero-copy h1{font-size:clamp(34px,11vw,50px)}
 .hero-copy p{font-size:13px;line-height:1.55}
 .hero-card{padding:20px}.catalog-count strong{font-size:32px}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .product-card{border-radius:14px;min-width:0}.product-img{height:clamp(132px,43vw,190px)}
 .product-content{padding:10px}.product-name{font-size:16px;line-height:1.12;min-height:54px}
 .product-cat{letter-spacing:.5px;font-size:9px}.product-price{font-size:22px;margin:8px 0}
 .product-footer{grid-template-columns:minmax(0,1fr) 48px;gap:4px}.product-footer button{font-size:11px;padding:12px 5px;border-radius:9px}
 .product-footer input{width:48px;padding:10px 2px;border-radius:9px}
 .detail-trigger{font-size:11px;padding:9px 6px}
 .tag{left:6px;top:8px;font-size:8px;padding:5px}
 .toolbar-ayne{gap:8px}.searchbox{grid-template-columns:minmax(0,1fr) auto}
 .search-btn{padding:0 12px}.hero-panel{display:none}
}
@media(max-width:360px){.product-grid{grid-template-columns:1fr 1fr}.product-footer{grid-template-columns:1fr}.product-footer input{width:100%}}
