/* Perfumería Mugan — negro, marfil y champaña */
:root {
  --ink: #0c0b0a;
  --ink-2: #161412;
  --ink-3: #221f1b;
  --line: rgba(244, 238, 227, 0.12);
  --ivory: #f4eee3;
  --ivory-2: #c9c1b3;
  --muted: #8f877a;
  --gold: #c8a96e;
  --gold-2: #e3cc9b;
  --danger: #e06c5a;
  --ok: #7fbf8e;
  --radius: 18px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Botones: respuesta al toque */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none; user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease, opacity 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ivory); }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: var(--gold-2); }
  .btn-ghost:hover { border-color: rgba(244, 238, 227, 0.32); }
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* Encabezado */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(12, 11, 10, 0.78);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word small { font-size: 9.5px; letter-spacing: 0.42em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.brand-word b { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: 0.3em; margin-right: -0.3em; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px;
}
.lang button {
  border: 0; background: transparent; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted);
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.lang button:active { transform: scale(0.95); }
.lang button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); }
.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; transition: transform 160ms var(--ease-out), border-color 200ms ease;
}
.cart-btn:active { transform: scale(0.95); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 11.5px; font-weight: 800; display: grid; place-items: center;
  transform: scale(1); transition: transform 200ms var(--ease-out), opacity 200ms ease;
}
.cart-count[data-empty="true"] { opacity: 0; transform: scale(0.6); }
.cart-count.bump { animation: bump 320ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 169, 110, 0.16), transparent 70%); pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; position: relative; }
.eyebrow { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.01em;
  margin: 18px 0 22px; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero p.lead { font-size: 18px; color: var(--ivory-2); max-width: 30em; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-perks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; padding: 0; list-style: none; color: var(--ivory-2); font-size: 14px; }
.hero-perks li { display: flex; align-items: center; gap: 8px; }
.hero-perks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.reel {
  position: relative; justify-self: center; width: min(340px, 100%); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(200, 169, 110, 0.35); background: var(--ink-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 8px rgba(244, 238, 227, 0.03);
}
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel-sound {
  position: absolute; right: 12px; bottom: 12px; height: 38px; padding: 0 14px; border-radius: 999px; border: 0;
  background: rgba(12, 11, 10, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--ivory); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.reel-sound:active { transform: scale(0.96); }
.reel-sound svg { width: 16px; height: 16px; }

/* Secciones */
section { scroll-margin-top: 80px; }
.sec { padding: 72px 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.02; margin: 10px 0 0; }
.sec-head h2 em { color: var(--gold); }

.promo {
  display: none; margin: 0 0 22px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(200, 169, 110, 0.4);
  background: linear-gradient(90deg, rgba(200, 169, 110, 0.14), rgba(200, 169, 110, 0.03)); color: var(--gold-2); font-weight: 600;
}
.promo.show { display: block; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  border: 1px solid var(--line); background: transparent; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ivory-2);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.search {
  height: 40px; min-width: 220px; padding: 0 16px 0 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238f877a' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px center;
  font-size: 14px; outline: none; transition: border-color 200ms ease;
}
.search:focus { border-color: var(--gold); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  opacity: 0; transform: translateY(10px); animation: rise 420ms var(--ease-out) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }
.card-img { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #2a2621, #141210); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.card-img .ph img { width: 34%; height: auto; opacity: 0.5; object-fit: contain; }
.badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(12, 11, 10, 0.78); color: var(--ivory); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.badge.gold { background: var(--gold); color: var(--ink); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-brand { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.card-name { font-family: var(--serif); font-size: 23px; line-height: 1.12; font-weight: 600; margin: 0; }
.card-meta { font-size: 13px; color: var(--muted); }
.card-desc { font-size: 13.5px; color: var(--ivory-2); margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.price { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.price s { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.add {
  height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ivory); color: var(--ink); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.add:active { transform: scale(0.95); }
.add:disabled { background: var(--ink-3); color: var(--muted); }
.add .lbl { transition: filter 200ms ease, opacity 200ms ease; }
.add.done { background: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .card-img img { transition: transform 600ms var(--ease-out); }
  .card:hover .card-img img { transform: scale(1.03); }
  .add:not(:disabled):hover { background: #fff; }
  .add.done:hover { background: var(--gold-2); }
}
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.skel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 0.72; position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(244, 238, 227, 0.05) 50%, transparent 70%); animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-size: 44px; color: var(--gold); line-height: 1; display: block; margin-bottom: 18px; font-style: italic; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--ivory-2); font-size: 15px; }

/* Visítanos */
.visit { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: stretch; }
.visit-card { padding: 32px; border: 1px solid rgba(200, 169, 110, 0.35); border-radius: var(--radius); background: linear-gradient(160deg, #1b1814, #100f0d); display: flex; flex-direction: column; gap: 18px; }
.visit-card h3 { font-family: var(--serif); font-size: 34px; font-weight: 500; margin: 0; line-height: 1.05; }
.visit-card h3 em { color: var(--gold); }
.visit-row { display: flex; gap: 14px; align-items: flex-start; color: var(--ivory-2); }
.visit-row svg { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 3px; }
.visit-row b { color: var(--ivory); display: block; }
.visit-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--ink-2); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(0.9) invert(0.92) contrast(0.9); }

footer { border-top: 1px solid var(--line); padding: 36px 0 110px; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
footer a { color: var(--ivory-2); }

/* Barra de carrito flotante (móvil) */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25;
  display: none; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 8px 0 20px; border-radius: 999px;
  background: var(--ivory); color: var(--ink); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7); border: 0; font-weight: 700;
  transform: translateY(160%); transition: transform 320ms var(--ease-drawer);
}
.cart-bar.show { transform: none; }
.cart-bar span.go { background: var(--ink); color: var(--ivory); height: 46px; padding: 0 18px; border-radius: 999px; display: grid; place-items: center; font-size: 14px; }
.cart-bar:active { transform: scale(0.98); }

/* Panel lateral del carrito */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 260ms ease; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--ink-2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 380ms var(--ease-drawer); visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 28px; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; transition: transform 160ms var(--ease-out); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 18px; height: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--ink-2); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img, .line .thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--ink-3); }
.line .thumb { display: grid; place-items: center; }
.line .thumb img { width: 26px; height: 26px; background: none; }
.line-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.line-sub { font-size: 12.5px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 8px; }
.qty button { width: 32px; height: 32px; border: 0; background: transparent; font-size: 17px; border-radius: 999px; transition: transform 140ms var(--ease-out); }
.qty button:active { transform: scale(0.88); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.line-price { font-weight: 800; }
.sum { display: grid; gap: 6px; font-size: 14.5px; color: var(--ivory-2); margin-bottom: 14px; }
.sum div { display: flex; justify-content: space-between; }
.sum .total { color: var(--ivory); font-size: 18px; font-weight: 800; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.paynote svg { width: 18px; height: 18px; flex: none; }
.paynote { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--gold-2); background: rgba(200, 169, 110, 0.08); border: 1px solid rgba(200, 169, 110, 0.25); padding: 10px 12px; border-radius: 12px; margin-bottom: 14px; }

/* Formulario */
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ivory-2); }
.field label small { color: var(--muted); font-weight: 500; }
.input, .field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink); outline: none; font-size: 16px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15); }
.loc-btn { justify-self: start; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: transform 160ms var(--ease-out), border-color 200ms ease; }
.loc-btn:active { transform: scale(0.96); }
.loc-btn.ok { border-color: var(--ok); color: var(--ok); }
.err { color: var(--danger); font-size: 14px; margin: 12px 0 0; min-height: 1px; }
.back-link { border: 0; background: none; color: var(--muted); font-size: 14px; padding: 8px 0; margin-top: 4px; }

/* Confirmación */
.done-view { text-align: center; padding: 28px 6px; }
.done-mark { width: 72px; height: 72px; margin: 6px auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(200, 169, 110, 0.12); border: 1px solid rgba(200, 169, 110, 0.4); }
.done-mark svg { width: 32px; height: 32px; color: var(--gold); stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 500ms 120ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-view h3 { font-family: var(--serif); font-size: 34px; font-weight: 500; margin: 0 0 6px; }
.done-view p { color: var(--ivory-2); margin: 0 0 6px; }
.track { display: grid; gap: 0; margin: 26px 0 8px; text-align: left; }
.track li { list-style: none; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding-bottom: 16px; position: relative; color: var(--muted); }
.track li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-3); margin: 4px 0 0 5px; background: var(--ink-2); transition: background-color 300ms ease, border-color 300ms ease; }
.track li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--ink-3); }
.track li.on { color: var(--ivory); }
.track li.on::before { background: var(--gold); border-color: var(--gold); }
.track li.cancel { color: var(--danger); }

/* Toast */
.toast {
  position: fixed; left: 50%; top: calc(80px + env(safe-area-inset-top)); z-index: 60; padding: 12px 18px; border-radius: 999px; background: var(--ivory); color: var(--ink); font-weight: 700; font-size: 14px;
  transform: translate(-50%, -12px); opacity: 0; pointer-events: none; transition: transform 300ms var(--ease-out), opacity 300ms ease; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.6);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .hero { padding: 30px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .reel { width: min(300px, 82%); }
  .steps { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .cart-bar { display: flex; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .brand-word b { font-size: 22px; }
  .brand-word small { font-size: 8.5px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px 12px 14px; }
  .card-name { font-size: 19px; }
  .card-desc { display: none; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .add { justify-content: center; }
  .search { min-width: 0; width: 100%; order: 10; }
  .hero-cta .btn { flex: 1 1 100%; }
  .filters { width: 100%; }
  .sec { padding: 56px 0; }
  .drawer { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
  .drawer, .cart-bar { transition: opacity 200ms ease, visibility 200ms; }
  .card { transform: none; }
}
