@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#101010;--panel:#191919;--panel2:#202020;--gold:#d7ad58;--text:#f5f2eb;--muted:#aaa69e;--line:#303030}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif}.topbar{height:76px;padding:0 clamp(20px,6vw,88px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:#101010ed;backdrop-filter:blur(12px);z-index:5}.brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;font-family:Manrope,sans-serif;font-weight:800;letter-spacing:.13em}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--gold);color:var(--gold);font-size:14px;letter-spacing:-.08em}.topbar nav{display:flex;gap:28px}.topbar nav a{color:#c9c5bd;text-decoration:none;font-size:13px}.cart-button,.primary-link,.whatsapp-button{border:0;background:var(--gold);color:#17130c;font-weight:700;border-radius:3px;padding:12px 17px;cursor:pointer;text-decoration:none}.cart-button span{background:#17130c;color:var(--gold);padding:2px 7px;border-radius:20px;margin-left:7px}.hero{min-height:520px;padding:75px clamp(20px,10vw,150px);display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:30px;overflow:hidden;background:radial-gradient(ellipse at 80% 45%,#292319 0%,#101010 48%)}.eyebrow{color:var(--gold);font-size:10px;letter-spacing:.22em;font-weight:700}.hero h1{font:800 clamp(42px,6vw,76px)/1.03 Manrope,sans-serif;letter-spacing:-.055em;margin:20px 0}.hero h1 span{color:var(--gold)}.hero-sub{max-width:470px;color:#bdb8ae;line-height:1.7;margin-bottom:30px}.primary-link span{padding-left:20px}.hero-art{height:340px;position:relative;display:grid;place-items:center}.hero-vr{font:800 clamp(100px,17vw,210px)/1 Manrope,sans-serif;letter-spacing:-.12em;color:#e5dfd2;z-index:1;text-shadow:0 15px 55px #000}.hero-vr span{color:var(--gold)}.orb{position:absolute;border:1px solid #d7ad5866;border-radius:50%;transform:rotate(-25deg)}.orb-one{width:320px;height:150px}.orb-two{width:250px;height:370px;transform:rotate(55deg)}.hero-caption{position:absolute;right:0;bottom:15px;color:var(--gold);font-size:9px;letter-spacing:.2em;line-height:1.7}.catalog-section,.how-section{padding:75px clamp(20px,8vw,115px)}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.section-heading h2,.how-section h2{font:700 clamp(28px,4vw,42px) Manrope,sans-serif;margin:8px 0 24px}.muted{color:var(--muted);font-size:13px}.toolbar{display:flex;gap:12px;margin:15px 0 28px}.toolbar input,.toolbar select{background:#191919;border:1px solid var(--line);color:var(--text);padding:14px 15px;border-radius:3px;font:inherit}.toolbar input{flex:1}.toolbar select{min-width:220px}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.product-card{background:var(--panel);border:1px solid var(--line);border-radius:4px;overflow:hidden;display:flex;flex-direction:column}.product-image{height:190px;background:#242424;display:grid;place-items:center;color:#777;font-size:12px;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:contain;background:#f5f5f5}.product-info{padding:16px;display:flex;flex-direction:column;flex:1}.product-category{color:var(--gold);font-size:9px;letter-spacing:.15em;text-transform:uppercase}.product-info h3{font-size:14px;line-height:1.45;margin:9px 0 12px;flex:1}.price{font:700 19px Manrope,sans-serif;margin:0 0 14px}.add-button{background:transparent;border:1px solid #8e713a;color:var(--gold);padding:10px;cursor:pointer;border-radius:2px;font-weight:600}.add-button:hover{background:var(--gold);color:#17130c}.empty-state{grid-column:1/-1;border:1px dashed #48423a;padding:45px;text-align:center;color:var(--muted)}.how-section{background:#171717}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}.steps article{border-top:1px solid #51432a;padding-top:20px}.steps b{color:var(--gold);font:700 13px Manrope}.steps h3{font:700 18px Manrope}.steps p{color:var(--muted);line-height:1.6;font-size:13px}footer{padding:35px clamp(20px,8vw,115px);border-top:1px solid var(--line);display:flex;align-items:center;gap:25px;flex-wrap:wrap}footer p,footer small{color:var(--muted);font-size:12px}footer small{margin-left:auto}.drawer-backdrop{position:fixed;inset:0;background:#0009;z-index:8;opacity:0;pointer-events:none;transition:.2s}.cart-drawer{position:fixed;z-index:9;right:0;top:0;height:100dvh;width:min(440px,100%);background:#171717;border-left:1px solid var(--line);padding:25px;transform:translateX(100%);transition:.25s;display:flex;flex-direction:column}.cart-open .cart-drawer{transform:translateX(0)}.cart-open .drawer-backdrop{opacity:1;pointer-events:auto}.drawer-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.drawer-head h2{font:700 25px Manrope;margin:5px 0 20px}.icon-button{background:none;border:0;color:white;font-size:30px;cursor:pointer}.cart-items{overflow:auto;flex:1;padding:15px 0}.cart-line{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.cart-line strong{font-size:13px}.cart-line small{display:block;color:var(--muted);margin-top:5px}.qty{display:flex;align-items:center;gap:8px}.qty button{background:#292929;color:white;border:1px solid #444;width:26px;height:26px;cursor:pointer}.cart-footer{border-top:1px solid var(--line);padding-top:18px}.total-row{display:flex;justify-content:space-between}.total-row strong{font:700 20px Manrope}.note{font-size:11px;color:var(--muted);line-height:1.5}.whatsapp-button{width:100%;margin-top:10px;background:#25c56b;color:#062b16}@media(max-width:900px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:1fr;padding-top:60px}.hero-art{height:230px}.topbar nav{display:none}}@media(max-width:560px){.product-grid{grid-template-columns:1fr 1fr;gap:9px}.product-image{height:135px}.product-info{padding:11px}.product-info h3{font-size:12px}.price{font-size:16px}.toolbar{flex-direction:column}.toolbar select{width:100%}.steps{grid-template-columns:1fr}.section-heading{align-items:start;flex-direction:column;gap:0}.hero{min-height:0}.hero-art{height:190px}}

.delivery-strip{margin:0;padding:19px clamp(20px,8vw,115px);display:flex;align-items:center;gap:14px;background:linear-gradient(90deg,#211b10,#171717);border-top:1px solid #5d4827;border-bottom:1px solid #5d4827}.delivery-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border:1px solid var(--gold);border-radius:50%;color:var(--gold);font-size:18px}.delivery-strip div{display:flex;flex-direction:column;gap:4px}.delivery-strip strong{font:700 14px Manrope,sans-serif;color:var(--text)}.delivery-strip small{font-size:12px;color:var(--muted)}.delivery-tag{margin-left:auto;color:var(--gold);font-size:9px;letter-spacing:.2em;font-weight:700}@media(max-width:560px){.delivery-strip{padding:16px 20px}.delivery-strip small{line-height:1.5}.delivery-tag{display:none}}


/* --- Mejoras de catálogo: filtros, orden y ficha de producto --- */
.toolbar { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(190px, 1fr) minmax(190px, 1fr); gap: 12px; }
.toolbar input, .toolbar select {
  min-width: 0; width: 100%; min-height: 48px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--panel);
  color: var(--text); font: inherit; outline: none;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--gold); }
.product-card { cursor: pointer; }
.product-image {
  height: 230px; display: grid; place-items: center; overflow: hidden;
  background: #f7f7f5; color: #777; padding: 12px;
}
.product-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-image.image-error { background: var(--panel2); color: var(--muted); font-size: 13px; }
.product-category { display: inline-block; }
.product-card h3 { line-height: 1.35; }
.product-modal-backdrop {
  position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.78);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.product-modal {
  position: fixed; z-index: 21; left: 50%; top: 50%; transform: translate(-50%,-46%);
  width: min(940px, calc(100vw - 32px)); max-height: min(88vh, 850px); overflow: auto;
  padding: 28px; background: #191919; border: 1px solid #38332a; border-radius: 8px;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.product-modal.is-open, .product-modal-backdrop.is-open { opacity: 1; visibility: visible; }
.product-modal.is-open { transform: translate(-50%,-50%); }
.product-modal-close {
  position: sticky; float: right; top: 0; z-index: 2; width: 40px; height: 40px;
  margin: -12px -12px 4px 8px; border: 1px solid var(--line); border-radius: 50%;
  background: #242424; color: var(--text); font-size: 26px; cursor: pointer;
}
.product-modal-layout { clear: both; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 30px; }
.product-modal-image {
  min-height: 360px; max-height: 560px; display: grid; place-items: center;
  padding: 18px; background: #f7f7f5; border-radius: 5px; color: #777;
}
.product-modal-image img { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: contain; }
.product-modal-info { padding: 12px 4px; }
.product-modal-info h2 { margin: 10px 0 12px; font: 800 clamp(25px,3vw,36px)/1.15 Manrope,sans-serif; }
.product-modal-price { color: var(--gold); font-size: 26px; font-weight: 800; margin: 18px 0 26px; }
.product-modal-info h3 { font-size: 14px; margin: 0 0 10px; }
.product-modal-description { color: #c7c2b8; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 26px; }
.product-modal-info .whatsapp-button { width: 100%; min-height: 48px; }
body.product-detail-open { overflow: hidden; }
@media (max-width: 760px) {
  .toolbar { grid-template-columns: 1fr; }
  .product-image { height: 190px; }
  .product-modal { padding: 18px; max-height: 92vh; }
  .product-modal-layout { grid-template-columns: 1fr; gap: 18px; }
  .product-modal-image { min-height: 240px; max-height: 340px; }
  .product-modal-image img { max-height: 300px; }
  .product-modal-info { padding: 0 2px 8px; }
}

/* Ajuste v1.1: controles siempre visibles y foto claramente interactiva */
.toolbar { display:grid !important; grid-template-columns:minmax(220px,1.5fr) minmax(190px,1fr) minmax(190px,1fr); }
.toolbar select, .toolbar input { display:block !important; visibility:visible !important; opacity:1 !important; }
.product-image { cursor:zoom-in; }
.product-image img { cursor:zoom-in; }
.product-card { cursor:pointer; }
@media (max-width:760px) {
  .toolbar { grid-template-columns:1fr !important; }
}


/* v1.2: botón de foto explícito y modal con capas/visibilidad inequívocas */
.product-photo-button {
  display:block; width:100%; padding:0; margin:0; border:0; background:transparent;
  color:inherit; cursor:zoom-in; text-align:inherit;
}
.product-photo-button .product-image { width:100%; }
.product-modal-backdrop {
  display:none; position:fixed; inset:0; z-index:9998;
  background:rgba(0,0,0,.82); opacity:1; visibility:visible;
}
.product-modal-backdrop.is-open { display:block; }
.product-modal {
  display:none; position:fixed; z-index:9999; inset:4vh 4vw;
  width:auto; max-height:92vh; max-width:none; left:auto; top:auto;
  transform:none; margin:0; overflow:auto; opacity:1; visibility:visible;
  background:#191919; border:1px solid #494236; border-radius:10px;
  padding:clamp(16px,3vw,34px);
}
.product-modal.is-open { display:block; transform:none; }
.product-modal-layout {
  display:grid; grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);
  align-items:start; gap:clamp(18px,3vw,36px);
}
.product-modal-image {
  width:100%; min-height:300px; height:min(68vh,620px); max-height:none;
  display:flex; align-items:center; justify-content:center;
  background:#f7f7f5; border-radius:8px; overflow:hidden;
}
.product-modal-image img {
  display:block; width:100%; height:100%; max-height:none; object-fit:contain;
}
.product-modal-description { white-space:pre-wrap; overflow-wrap:anywhere; }
.product-modal-close { position:sticky; top:0; z-index:3; float:right; }
@media(max-width:700px) {
  .product-modal { inset:2vh 3vw; max-height:96vh; padding:14px; }
  .product-modal-layout { grid-template-columns:1fr; gap:14px; }
  .product-modal-image { height:38vh; min-height:220px; }
}

/* Reparación robusta: modal oculto hasta que se selecciona un producto */
.product-modal[hidden], .product-modal-backdrop[hidden] { display:none !important; }
.product-modal { display:none; position:fixed; z-index:9999; inset:3vh 3vw; width:auto; max-width:none; max-height:94vh; overflow:auto; transform:none; opacity:1; visibility:visible; margin:0; padding:clamp(16px,3vw,34px); background:#191919; border:1px solid #494236; border-radius:10px; }
.product-modal.is-open { display:block !important; }
.product-modal-backdrop { display:none; position:fixed; inset:0; z-index:9998; background:rgba(0,0,0,.82); opacity:1; visibility:visible; }
.product-modal-backdrop.is-open { display:block !important; }
.product-modal-layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr); align-items:start; gap:clamp(18px,3vw,36px); }
.product-modal-image { width:100%; min-height:300px; height:min(68vh,620px); display:flex; align-items:center; justify-content:center; background:#f7f7f5; border-radius:8px; overflow:hidden; }
.product-modal-image img { display:block; width:100%; height:100%; object-fit:contain; }
.product-photo-button { display:block; width:100%; padding:0; margin:0; border:0; background:transparent; color:inherit; cursor:zoom-in; }
.product-card { cursor:pointer; }
@media(max-width:700px){.product-modal{inset:2vh 3vw;max-height:96vh;padding:14px}.product-modal-layout{grid-template-columns:1fr;gap:14px}.product-modal-image{height:38vh;min-height:220px}}
