/* =====================================================================
   Sagiadry — estilos (tema negro / dorado, editorial)
   ===================================================================== */
:root {
  --bg: #090909;
  --bg-2: #0f0f0f;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --glass: rgba(255, 255, 255, .045);
  --glass-strong: rgba(18, 18, 18, .72);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f5f2eb;
  --muted: #9f9a90;
  --gold: #c9a24b;
  --gold-2: #ecd48a;
  --gold-3: #8e6f27;
  --gold-grad: linear-gradient(135deg, #f4dd92 0%, #cfa94f 45%, #9c7a2e 100%);
  --wa: #25d366;
  --wa-2: #1fc45c;
  --danger: #e5705f;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 26px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .5);
  --shadow-gold: 0 10px 40px rgba(201, 162, 75, .22);
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --topbar-h: 74px;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 em, h2 em {
  font-style: italic; font-weight: 500;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* grano sutil */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.8'/></svg>");
  mix-blend-mode: overlay;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  text-transform: uppercase; letter-spacing: .26em; font-size: .7rem; font-weight: 700; color: var(--gold);
}
.eyebrow-line { width: 34px; height: 1px; background: var(--gold-grad); display: inline-block; }
.muted { color: var(--muted); }

/* --------------------------- Botones --------------------------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold { background: var(--gold-grad); color: #1a1405; box-shadow: var(--shadow-gold); }
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(201, 162, 75, .38); }
.btn-gold:hover::after { left: 130%; }
.btn-glass { background: var(--glass); border-color: var(--line-2); backdrop-filter: blur(10px); }
.btn-glass:hover { border-color: var(--gold); background: rgba(201, 162, 75, .08); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #06220f; box-shadow: 0 10px 30px rgba(37, 211, 102, .25); }
.btn-wa:hover { background: var(--wa-2); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(37, 211, 102, .35); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--glass-strong); color: var(--text);
  display: grid; place-items: center; font-size: 1rem; backdrop-filter: blur(10px);
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--gold); transform: rotate(90deg); }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: .3rem; }
.link-btn:hover { color: var(--text); }
.link-btn.danger:hover { color: var(--danger); }

/* --------------------------- Barra superior --------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  display: flex; align-items: center; gap: 1rem;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(9, 9, 9, .92), rgba(9, 9, 9, .72));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 54px; width: auto; filter: drop-shadow(0 2px 8px rgba(201, 162, 75, .25)); }
.topnav { display: flex; gap: 1.6rem; margin-left: auto; font-weight: 600; font-size: .9rem; }
.topnav a { position: relative; text-decoration: none; color: var(--muted); padding: .3rem 0; transition: color .2s; }
.topnav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold-grad); transition: width .3s var(--ease); }
.topnav a:hover { color: var(--gold-2); }
.topnav a:hover::after { width: 100%; }
.cart-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1rem .55rem .85rem; border-radius: 999px;
  border: 1px solid rgba(201, 162, 75, .45);
  background: linear-gradient(180deg, rgba(201, 162, 75, .14), rgba(201, 162, 75, .04));
  color: var(--text); font-weight: 700; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cart-btn:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--gold-grad); color: #1a1405; font-size: .76rem; font-weight: 800;
  display: grid; place-items: center;
}
.badge.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.4); } }

/* --------------------------- Hero --------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; right: -120px; top: -120px; background: radial-gradient(circle, rgba(201, 162, 75, .45), transparent 65%); }
.b2 { width: 420px; height: 420px; left: -160px; bottom: -120px; background: radial-gradient(circle, rgba(201, 162, 75, .22), transparent 65%); animation-delay: -6s; }
.b3 { width: 300px; height: 300px; left: 40%; top: 10%; background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 65%); animation-delay: -3s; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem;
  padding: clamp(2.5rem, 7vw, 6rem) var(--gutter) 0;
  max-width: 1280px; margin: 0 auto; min-height: calc(100svh - var(--topbar-h)); max-height: 880px;
}
.hero-text { padding-bottom: clamp(2.5rem, 7vw, 6rem); }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); margin: 1.1rem 0 1.2rem; max-width: 14ch; }
.lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-stats {
  list-style: none; padding: 0; margin: 2.4rem 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; border-top: 1px solid var(--line);
}
.hero-stats li { display: flex; flex-direction: column; padding: 1rem 1.4rem 0 0; margin-right: 1.4rem; border-right: 1px solid var(--line); min-width: 0; }
.hero-stats li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats li.txt strong { font-size: 1.15rem; padding-top: .35rem; }
.hero-stats strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--gold-2); line-height: 1; }
.hero-stats span { font-size: .78rem; color: var(--muted); margin-top: .3rem; }

.hero-visual { position: relative; align-self: end; justify-self: center; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.hero-visual img { position: relative; z-index: 2; height: min(620px, 64vw); width: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .65)); }
.ring {
  position: absolute; z-index: 1; left: 50%; bottom: 8%; transform: translateX(-50%);
  width: min(440px, 80vw); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, .45);
  box-shadow: inset 0 0 0 28px rgba(201, 162, 75, .05), 0 0 0 1px rgba(201, 162, 75, .08);
  animation: spin 40s linear infinite;
}
.ring::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px dashed rgba(236, 212, 138, .35); }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
.glow {
  position: absolute; z-index: 0; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 75, .38), transparent 62%); filter: blur(12px);
}
.float-chip {
  position: absolute; z-index: 3; padding: .5rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--glass-strong); border: 1px solid var(--line-2); backdrop-filter: blur(12px);
  box-shadow: var(--shadow); animation: floaty 6s ease-in-out infinite;
}
.float-chip.c1 { left: 0; top: 50%; }
.float-chip.c2 { right: 0; top: 44%; animation-delay: -2s; }
.float-chip.c3 { left: 8%; bottom: 9%; animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* --------------------------- Marquee --------------------------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); padding: .9rem 0; }
.marquee-track { display: flex; gap: 2.2rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted); white-space: nowrap; }
.marquee-track i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------- Catálogo --------------------------- */
.catalog { padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(3rem, 6vw, 5rem); max-width: 1380px; margin: 0 auto; }
.section-head { margin-bottom: 1.6rem; }
.section-head h2, .how h2, .footer h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-top: .8rem; }
.section-sub { color: var(--muted); max-width: 56ch; margin-top: .7rem; }

.toolbar {
  position: sticky; top: var(--topbar-h); z-index: 30;
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .7rem .8rem; margin: 0 -.8rem 1rem;
  border-radius: var(--r); border: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.toolbar.stuck { background: var(--glass-strong); border-color: var(--line); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.filters { display: flex; gap: .45rem; flex-wrap: wrap; flex: 1; }
.chip {
  padding: .5rem .95rem; border-radius: 999px; font-weight: 600; font-size: .84rem;
  border: 1px solid var(--line-2); background: var(--glass); color: var(--muted);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.chip:hover { border-color: var(--gold); color: var(--text); transform: translateY(-1px); }
.chip[aria-selected="true"], .chip.on { background: var(--gold-grad); color: #1a1405; border-color: transparent; }
.chip small { opacity: .7; font-weight: 600; margin-left: .3rem; }
.search {
  display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); min-width: min(320px, 100%);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 75, .12); }
.search input { background: none; border: 0; outline: 0; width: 100%; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.result-count { color: var(--muted); font-size: .84rem; margin-bottom: 1rem; }

.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card {
  display: flex; flex-direction: column; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(201, 162, 75, .5); box-shadow: var(--shadow), 0 0 0 1px rgba(201, 162, 75, .15); }
.card-media {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #efedf0; cursor: pointer;
  border: 0; padding: 0; width: 100%; text-align: left;
}
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .5s var(--ease); }
.card-media .img-b { opacity: 0; }
.card:hover .card-media .img-a { transform: scale(1.06); }
.card:hover .card-media .img-b { opacity: 1; transform: scale(1.03); }
.card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .35) 100%);
}
.ref {
  display: inline-block; padding: .3rem .6rem; border-radius: 8px;
  background: var(--gold-grad); color: #1a1405; font-weight: 800; font-size: .7rem; letter-spacing: .08em;
}
.card-media .ref { position: absolute; left: 12px; top: 12px; z-index: 2; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.card-media .more {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  background: rgba(10, 10, 10, .55); color: #fff; font-size: .7rem; font-weight: 600; padding: .3rem .55rem; border-radius: 8px; backdrop-filter: blur(6px);
}
.card-body { padding: 1rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: .6rem; }
.card-title { font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.card-price { font-weight: 800; color: var(--gold-2); white-space: nowrap; }
.card-meta { color: var(--muted); font-size: .8rem; }
.card-meta b { color: var(--text); font-weight: 600; }
.swatches { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; min-height: 16px; }
.sw {
  --c: #888; width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none;
  background: var(--c); border: 1px solid rgba(255, 255, 255, .28); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}
.sw-pattern { background: repeating-linear-gradient(45deg, #2e8b7a 0 3px, #e8f1ee 3px 6px); }
.swatches .sw-more { font-size: .72rem; color: var(--muted); margin-left: .2rem; }
.card-actions { margin-top: auto; display: flex; gap: .5rem; padding-top: .5rem; }
.card-actions .btn { padding: .65rem 1rem; font-size: .86rem; flex: 1; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }

/* --------------------------- Cómo pedir --------------------------- */
.how { position: relative; padding: clamp(3rem, 7vw, 6rem) var(--gutter); background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.how::before { content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 75, .16), transparent 65%); filter: blur(40px); }
.how-inner { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-direction: column; gap: .9rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; padding: 1.2rem 1.3rem; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .25s, transform .25s; }
.steps li:hover { border-color: rgba(201, 162, 75, .45); transform: translateX(4px); }
.step-num { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--gold-2); line-height: 1; padding-top: .1rem; }
.steps h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: .92rem; }
.how-note { margin-top: 1.4rem; color: var(--muted); font-size: .88rem; }

.chat { background: #0b141a; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; max-width: 420px; justify-self: center; width: 100%; transform: rotate(-1.5deg); }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; background: #202c33; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: #0a0a0a; display: grid; place-items: center; border: 1px solid rgba(201, 162, 75, .5); }
.chat-avatar img { width: 22px; }
.chat-head b { display: block; font-size: .95rem; }
.chat-head small { color: #8fa39b; font-size: .75rem; }
.chat-body { padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: #0b141a url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><circle cx='30' cy='30' r='1' fill='%23ffffff' opacity='.05'/></svg>"); }
.bubble { position: relative; max-width: 88%; padding: .6rem .75rem 1.2rem; border-radius: 12px; font-size: .8rem; line-height: 1.45; color: #e9edef; }
.bubble.out { align-self: flex-end; background: #005c4b; border-top-right-radius: 3px; }
.bubble.in { align-self: flex-start; background: #202c33; border-top-left-radius: 3px; }
.bubble .time { position: absolute; right: .6rem; bottom: .3rem; font-size: .62rem; color: #a8c3bb; }

/* --------------------------- Footer --------------------------- */
.footer { padding: clamp(3rem, 7vw, 5rem) var(--gutter) 6.5rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 1180px; margin: 0 auto; }
.footer-logo { width: 180px; height: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 38ch; }
.footer-line { display: flex; align-items: center; gap: .55rem; color: var(--muted); margin: .45rem 0; }
.footer-line svg { color: var(--gold); flex: none; }
.footer-line a { color: var(--text); text-decoration: none; }
.footer .btn-wa { margin-top: 1.1rem; }
.footer h2 { margin-bottom: .9rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.copy { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 3.5rem; }

/* --------------------------- Backdrop, modal, drawer --------------------------- */
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); z-index: 50; backdrop-filter: blur(6px); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; }
.modal-card {
  position: relative; width: min(980px, 100%); height: min(92vh, 800px); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow);
  animation: pop .3s var(--ease);
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 2; }
.pm-gallery { background: #efedf0; display: flex; flex-direction: column; min-height: 0; }
.pm-gallery > img { flex: 1; min-height: 0; width: 100%; height: 100%; object-fit: cover; }
.pm-thumbs { display: flex; gap: .5rem; padding: .6rem; background: var(--surface-2); overflow-x: auto; }
.pm-thumbs:empty { display: none; }
.pm-thumbs button { width: 56px; height: 72px; flex: none; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #efedf0; transition: border-color .2s; }
.pm-thumbs button.on { border-color: var(--gold); }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm-info { padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; overflow: auto; }
.pm-info .ref { align-self: flex-start; }
.pm-info h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; }
.price { color: var(--gold-2); font-weight: 800; font-size: 1.2rem; }
.pm-hint { color: var(--muted); font-size: .78rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.field-label small { text-transform: none; letter-spacing: 0; font-size: .78rem; font-weight: 600; color: var(--gold-2); }
.chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.chips .chip { padding: .5rem .85rem; }
.chip-color { display: inline-flex; align-items: center; gap: .45rem; }
.chip-color .sw { width: 16px; height: 16px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; width: max-content; background: var(--glass); }
.qty button { width: 42px; height: 42px; background: transparent; border: 0; color: var(--text); font-size: 1.25rem; transition: background .2s; }
.qty button:hover { background: rgba(255, 255, 255, .08); }
.qty input { width: 56px; text-align: center; background: none; border: 0; outline: 0; -moz-appearance: textfield; font-weight: 700; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(460px, 100%); background: rgba(14, 14, 14, .96); border-left: 1px solid var(--line-2);
  display: flex; flex-direction: column; box-shadow: var(--shadow); backdrop-filter: blur(18px);
  animation: slide .3s var(--ease);
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.drawer-head small { font-size: .78rem; }
.drawer-body { flex: 1; overflow: auto; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 1.2rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 2.5rem 0; display: flex; flex-direction: column; gap: .8rem; align-items: center; }
.cart-empty-icon { font-size: 2.4rem; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: .6rem; }
.line img { width: 64px; height: 84px; object-fit: cover; border-radius: 9px; background: #efedf0; }
.line-title { font-weight: 700; font-size: .92rem; }
.line-meta { color: var(--muted); font-size: .78rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.line-meta .sw { width: 11px; height: 11px; }
.line-price { color: var(--gold-2); font-size: .82rem; font-weight: 700; }
.line-right { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.line .qty button { width: 30px; height: 30px; font-size: 1rem; }
.line .qty input { width: 38px; font-size: .9rem; }
.line .remove { background: none; border: 0; color: var(--muted); font-size: .74rem; text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.line .remove:hover { color: var(--danger); }
.order-form { display: flex; flex-direction: column; gap: .85rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.order-form h4 { font-size: .95rem; font-weight: 800; }
.order-form input, .order-form textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  padding: .75rem .9rem; outline: 0; resize: vertical; transition: border-color .2s, box-shadow .2s;
}
.order-form input:focus, .order-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 75, .12); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: .65rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: .9rem; transition: all .2s; }
.seg input:checked + span { background: var(--gold-grad); color: #1a1405; border-color: transparent; }
.drawer-foot { border-top: 1px solid var(--line); padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .7rem; }
.totals { display: flex; justify-content: space-between; color: var(--muted); font-size: .92rem; }
.totals strong { color: var(--text); font-size: 1.05rem; }
.drawer-actions { display: flex; justify-content: space-between; }

/* --------------------------- Flotante + toast --------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, .4);
  transition: transform .2s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(37, 211, 102, .5); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px);
  background: rgba(24, 20, 10, .95); border: 1px solid rgba(201, 162, 75, .6); color: var(--text);
  padding: .8rem 1.15rem; border-radius: 14px; z-index: 70; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease); font-size: .9rem; max-width: 90vw; text-align: center;
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --------------------------- Reveal on scroll --------------------------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
html.js .reveal.in { opacity: 1; transform: none; }

/* --------------------------- Responsive --------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { max-width: none; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; max-height: none; padding-top: 2.5rem; }
  .hero-text { padding-bottom: 1rem; }
  .hero-visual { margin-top: 1.5rem; height: auto; }
  .hero-visual img { height: min(460px, 92vw); }
  .float-chip.c1 { left: 0; top: 52%; } .float-chip.c2 { right: 0; top: 28%; } .float-chip.c3 { left: 0; bottom: 8%; }
  .how-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .chat { transform: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .modal-card { grid-template-columns: 1fr; height: auto; max-height: 94vh; overflow: auto; }
  .pm-gallery { flex: none; }
  .pm-gallery > img { flex: none; height: auto; aspect-ratio: 3 / 3.2; }
  .pm-info { overflow: visible; }
}
@media (max-width: 640px) {
  :root { --topbar-h: 64px; }
  .topnav { display: none; }
  .brand img { height: 44px; }
  .cart-label { display: none; }
  .cart-btn { padding: .5rem .75rem; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  .hero-stats li { padding-right: .8rem; margin-right: .8rem; }
  .hero-stats strong { font-size: 1.3rem; }
  .hero-stats li.txt strong { font-size: .95rem; }
  .float-chip.c1, .float-chip.c2 { display: none; }
  .toolbar { margin: 0 0 1rem; padding: .6rem; }
  .toolbar.stuck { margin: 0 calc(-1 * var(--gutter)) 1rem; border-radius: 0; border-left: 0; border-right: 0; }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .2rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .search { min-width: 0; width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .card-body { padding: .75rem .75rem .85rem; gap: .4rem; }
  .card-title { font-size: .9rem; }
  .card-meta { font-size: .74rem; }
  .card-actions { flex-direction: column; gap: .4rem; }
  .card-actions .btn { padding: .6rem .8rem; font-size: .84rem; }
  .card-actions .btn-glass { display: none; }
  .steps li { padding: 1rem; }
  .drawer { width: 100%; }
  .modal { padding: 0; align-items: end; }
  .modal-card { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 96vh; }
  .pm-info { padding: 1.3rem 1.1rem calc(1.3rem + env(safe-area-inset-bottom)); }
  .pm-info h3 { font-size: 1.5rem; }
  .wa-float { width: 54px; height: 54px; }
  .toast { bottom: 86px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
}
