:root{
  --bg:#f5f3f9; --surface:#fff; --panel:#eeebf5; --line:#ddd8e9;
  --ink:#1a1233; --muted:#675f7d; --brand:#2f1b66; --brand-2:#43298a;
  --gold:#d9a441; --gold-2:#c8932f; --wa:#1fa855; --danger:#c62f4a;
  --radius:14px; --shadow:0 1px 2px rgba(26,18,51,.06),0 8px 24px rgba(26,18,51,.06);
  --display:"Archivo",system-ui,sans-serif; --body:"Instrument Sans",system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{background:var(--bg);color:var(--ink);font:400 1rem/1.6 var(--body);min-height:100vh;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
[hidden]{display:none!important}

/* Barra superior */
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:1.5rem;padding:.8rem clamp(1rem,4vw,3rem);background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:.65rem;font:700 1.25rem var(--display);font-stretch:112%;letter-spacing:-.01em;color:var(--ink);text-decoration:none}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--brand);color:var(--gold);font:800 1.1rem var(--display)}
.tabs{display:flex;gap:.25rem;margin-inline:auto;overflow-x:auto}
.tab{background:none;border:0;padding:.55rem 1rem;color:var(--muted);font-weight:500;white-space:nowrap;border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.tab:hover{color:var(--ink)}
.tab.is-active{color:var(--brand);font-weight:600;border-bottom-color:var(--gold)}
.cat-ico{display:inline-grid;place-items:center;width:54px;height:54px;border-radius:14px;background:var(--c);color:#fff;margin-right:.7rem;vertical-align:middle}
.cat-ico svg{width:36px;height:36px}
.cart-btn{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff;border:1px solid var(--line);transition:border-color .2s}
.cart-btn:hover{border-color:var(--brand)}
.cart-count{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--gold);color:var(--ink);font:700 .72rem/20px var(--body);text-align:center}

/* Portada */
.hero{background:var(--brand);color:#fff}
.hero-in{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:clamp(1.5rem,4vw,4rem);max-width:1280px;margin:auto;padding:clamp(2.5rem,6vw,5rem) clamp(1rem,4vw,3rem)}
.hero h1{font:800 clamp(2.3rem,5vw,4.2rem)/1.04 var(--display);font-stretch:112%;letter-spacing:-.025em;margin-bottom:1.25rem;max-width:none}
.hero h1 span{display:block}
.hero h1 span:nth-child(2){margin-left:.5em}
.hero h1 .hl{color:var(--gold);margin-left:1em}
.hero p{color:#d5ccec;font-size:1.1rem;max-width:46ch;margin-bottom:1.75rem}
.hero-media{background:#fff;border-radius:20px;padding:1rem;box-shadow:0 24px 48px rgba(0,0,0,.28)}
.hero-media img{width:100%;aspect-ratio:1/1;object-fit:contain;border-radius:12px}
@media(max-width:820px){.hero-in{grid-template-columns:1fr}.hero h1{max-width:none}.hero-media img{aspect-ratio:4/3}}

/* Botones */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.8rem 1.4rem;border:0;border-radius:10px;font-weight:600;text-decoration:none;transition:background .2s,transform .1s}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-2)}
.btn-accent{background:var(--gold);color:var(--ink)}
.btn-accent:hover{background:#e6b45a}
.btn-wa{background:var(--wa);color:#fff}
.btn-wa:hover{background:#188f48}
.btn-ghost{border:1px solid var(--brand);color:var(--brand);background:#fff}
.btn-block{width:100%}

/* Catálogo */
.catalog{padding:clamp(2.5rem,5vw,4rem) clamp(1rem,4vw,3rem);max-width:1280px;margin:auto}
.catalog h2{font:700 clamp(1.6rem,3.5vw,2.2rem) var(--display);font-stretch:112%;letter-spacing:-.01em;margin-bottom:1.75rem}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr));gap:1.75rem}
.card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;transition:box-shadow .25s}
.card:hover{box-shadow:0 2px 4px rgba(26,18,51,.08),0 16px 36px rgba(26,18,51,.12)}
.gallery{position:relative;aspect-ratio:4/3;background:var(--panel)}
.gallery img{width:100%;height:100%;object-fit:contain}
.arrow{position:absolute;top:50%;translate:0 -50%;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.92);font-size:1.4rem;line-height:1;color:var(--brand);transition:background .2s}
.arrow:hover{background:#fff;border-color:var(--brand)}
.prev{left:.7rem}.next{right:.7rem}
.dots{position:absolute;bottom:.7rem;left:50%;translate:-50% 0;display:flex;gap:6px}
.dots i{width:7px;height:7px;border-radius:50%;background:rgba(26,18,51,.25)}
.dots i.on{background:var(--brand)}
.card-body{display:flex;flex-direction:column;gap:.5rem;padding:1.25rem 1.4rem 1.4rem;flex:1}
.card-body h3{font:700 1.2rem/1.25 var(--display);font-stretch:106%}
.card-body p{color:var(--muted);font-size:.95rem}
.buy{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:auto;padding-top:1rem;border-top:1px solid var(--line);flex-wrap:wrap}
.card-body p{margin-bottom:.5rem}
.price{font:800 1.9rem/1 var(--display);font-stretch:112%;letter-spacing:-.02em;color:var(--brand);font-variant-numeric:tabular-nums}
.empty{grid-column:1/-1;text-align:center;padding:3rem 1rem;background:#fff;border:1px dashed var(--line);border-radius:var(--radius);color:var(--muted)}
.empty p{margin-bottom:1rem}

.footer{background:var(--ink);color:#c2bad6;padding:2rem clamp(1rem,4vw,3rem) 6rem;font-size:.95rem}
.benefits{list-style:none;padding:0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:1.25rem 2rem;max-width:1280px;margin:0 auto 1.75rem}
.benefits li{display:flex;align-items:center;gap:.75rem;color:#fff;font-weight:600;font-size:1.1rem;line-height:1.3}
.benefits .ico{display:grid;place-items:center;flex:none;color:var(--gold)}
.benefits .ico svg{width:28px;height:28px}
.footer-in{display:flex;flex-wrap:wrap;gap:.75rem 2rem;max-width:1280px;margin:auto;align-items:center;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.14)}
.footer-in small{font-size:.85rem;color:#a99fc4}
@media(max-width:760px){.benefits{flex-direction:column;align-items:flex-start}}
.footer strong{font:700 1.15rem var(--display);font-stretch:112%;color:#fff;margin-right:auto}

/* WhatsApp flotante: compacto, se expande solo al pasar el cursor */
.wa-float{position:fixed;right:max(1rem,env(safe-area-inset-right));bottom:max(1rem,env(safe-area-inset-bottom));z-index:15;display:flex;align-items:center;gap:.5rem;height:52px;padding:0 14px;border-radius:999px;background:var(--wa);color:#fff;font-weight:600;text-decoration:none;box-shadow:0 6px 18px rgba(26,18,51,.28);transition:background .2s}
.wa-float:hover{background:#188f48}
.wa-label{max-width:0;overflow:hidden;white-space:nowrap;transition:max-width .3s}
.wa-float:hover .wa-label,.wa-float:focus-visible .wa-label{max-width:100px}

/* Carrito */
.overlay{position:fixed;inset:0;z-index:30;background:rgba(26,18,51,.55)}
.drawer{position:fixed;top:0;right:0;bottom:0;z-index:31;display:flex;flex-direction:column;width:min(430px,100%);background:#fff;translate:100% 0;transition:translate .3s;box-shadow:-12px 0 40px rgba(26,18,51,.2)}
.drawer.open{translate:0 0}
.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:1.15rem 1.4rem;border-bottom:1px solid var(--line)}
.drawer-head h3{font:700 1.25rem var(--display);font-stretch:108%}
.icon-btn{background:none;border:0;padding:.4rem;font-size:1.1rem;color:var(--muted)}
.icon-btn:hover{color:var(--ink)}
.icon-btn.del{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border-radius:10px;background:#efe9fb;color:var(--brand);transition:background .2s,color .2s}
.icon-btn.del:hover{background:var(--brand);color:#fff}
.drawer-body{flex:1;overflow-y:auto;padding:0 1.4rem}
.empty-cart{color:var(--muted);padding:2.5rem 0;text-align:center}
.line{display:flex;gap:1rem;align-items:center;padding:1rem 0;border-bottom:1px solid var(--line)}
.line img{width:78px;height:78px;object-fit:cover;border-radius:10px;background:var(--panel)}
.line-info{flex:1;display:flex;flex-direction:column;gap:.2rem}
.price-sm{font-weight:700;color:var(--brand);font-variant-numeric:tabular-nums}
.qty{display:flex;align-items:center;gap:.6rem}
.qty button{width:28px;height:28px;border-radius:8px;border:1px solid var(--line);background:#fff}
.qty button:hover{border-color:var(--brand)}
.drawer-foot{padding:1.25rem 1.4rem;border-top:1px solid var(--line);background:var(--bg)}
.total{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:1rem;color:var(--muted)}
.total strong{font:800 1.9rem var(--display);font-stretch:112%;color:var(--brand);font-variant-numeric:tabular-nums}

/* Formulario */
.modal{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:1rem;background:rgba(26,18,51,.65);overflow-y:auto}
.modal-card{width:min(480px,100%);display:grid;gap:1rem;padding:0 0 1.4rem;background:#fff;border-radius:var(--radius);margin:auto;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.35)}
.modal-card>*:not(.drawer-head){margin-inline:1.4rem}
.hint{color:var(--muted);font-size:.95rem}
.modal-card .btn-block{width:auto}
label{display:grid;gap:.35rem;font-weight:600;font-size:.9rem}
input,select{padding:.75rem .9rem;border-radius:10px;border:1px solid var(--line);background:#fff;font-weight:400}
input:focus,select:focus{border-color:var(--brand);outline:2px solid rgba(47,27,102,.2)}
input.error,select.error{border-color:var(--danger);background:#fdf0f2}
.summary{display:grid;gap:.4rem;padding:1rem;border-radius:12px;background:var(--bg);font-size:.92rem}
.summary div{display:flex;justify-content:space-between;gap:1rem}
.sum-total{border-top:1px solid var(--line);padding-top:.5rem;margin-top:.2rem;font-weight:700;color:var(--brand)}

@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:640px){.topbar{flex-wrap:wrap;gap:.5rem 1rem}.brand{order:1}.cart-btn{order:2;margin-left:auto}.tabs{order:3;width:100%;margin:0;border-top:1px solid var(--line)}.tab{flex:1}}

/* Logo */
.brand-logo{width:40px;height:40px;border-radius:10px;flex:none}
.brand-name{font:400 1.55rem/1 "DM Serif Display",Georgia,serif;letter-spacing:.005em}
.footer-brand{display:flex;align-items:center;gap:.65rem;margin-right:auto}
.footer-brand img{width:34px;height:34px;border-radius:9px}
.footer .footer-brand strong{font:400 1.4rem/1 "DM Serif Display",Georgia,serif;margin:0}

/* Botón deshabilitado y nota del formulario */
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}
.btn:disabled:hover{background:var(--wa)}
.form-note{color:var(--muted);font-size:.88rem;text-align:center}

/* Catálogo grande: buscador, "Ver más", agotado */
.cat-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.75rem}
.cat-head h2{margin:0}
.count{font:500 .95rem var(--body);color:var(--muted);margin-left:.6rem;vertical-align:middle}
.search{flex:1 1 260px;max-width:380px;padding:.75rem 1rem .75rem 2.7rem;border:1px solid var(--line);border-radius:999px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23675f7d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 1rem center/18px}
.status{margin-top:1.25rem;text-align:center;color:var(--muted)}
.status:empty{display:none}
.more{display:flex;justify-content:center;margin-top:1.5rem}
.badge{position:absolute;top:.7rem;left:.7rem;background:var(--ink);color:#fff;font-weight:600;font-size:.8rem;padding:.25rem .7rem;border-radius:999px}
.card.out .gallery img{opacity:.45}
.btn-primary:disabled:hover{background:var(--brand)}
