/* Layout: black header and hero with large emblem, cream strip of promises, category tiles, dark brand banner, cream catalog, dark ordering steps, black footer. Fixed brand palette, one look. */
:root {
  --px-gold: #D4AF37;
  --px-gold-light: #F2D98A;
  --px-champagne: #F2E7C8;
  --px-cream: #F7F3EA;
  --px-charcoal: #1A1A1A;
  --px-black: #000000;
  --px-white: #FFFFFF;
  --px-heading: "Playfair Display", Georgia, serif;
  --px-body: "Montserrat", Arial, sans-serif;
  --px-accent: "Allura", "Brush Script MT", cursive;

  --rule-dark: rgba(212, 175, 55, 0.28);
  --rule-light: rgba(26, 26, 26, 0.14);
  --muted-dark: rgba(242, 231, 200, 0.72);
  --muted-light: rgba(26, 26, 26, 0.68);
  color-scheme: dark;
}

* { box-sizing: border-box; }
button { appearance: none; -webkit-appearance: none; -moz-appearance: none; font-family: inherit; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--px-black);
  color: var(--px-champagne);
  font-family: var(--px-body);
  font-size: 15px;
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--px-heading); font-weight: 500; text-wrap: balance; margin: 0; }
p { margin: 0; }
img { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--px-gold-light); outline-offset: 3px; }

.band { padding-inline: 20px; }
.wrap { max-width: 1200px; margin-inline: auto; }
.dark { background: var(--px-black); color: var(--px-champagne); }
.charcoal { background: var(--px-charcoal); color: var(--px-champagne); }
.light { background: var(--px-cream); color: var(--px-charcoal); }

.eyebrow {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600;
  color: var(--px-gold);
}
.light .eyebrow { color: var(--px-charcoal); }
.section-title { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: 0.04em; text-transform: uppercase; }
.rule { display: block; width: 56px; height: 1px; background: var(--px-gold); margin-block: 16px 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 11px/1 var(--px-body); letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  background: var(--px-gold); color: var(--px-black); padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--px-gold-light); }
.btn.small { padding: 12px 18px; font-size: 10px; }

/* Header */
header.top { border-bottom: 1px solid var(--rule-dark); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-block: 14px; }
.lockup img { height: 64px; width: auto; }
nav.links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
nav.links a { text-decoration: none; color: var(--px-champagne); padding-block: 6px; border-bottom: 1px solid transparent; }
nav.links a:hover { color: var(--px-gold-light); border-bottom-color: var(--px-gold); }

/* Hero */
.hero {
  background:
    radial-gradient(60% 90% at 78% 45%, rgba(212, 175, 55, 0.20), rgba(212, 175, 55, 0) 70%),
    radial-gradient(40% 60% at 10% 0%, rgba(242, 217, 138, 0.07), rgba(242, 217, 138, 0) 70%),
    var(--px-black);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; padding-block: 72px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.04; letter-spacing: 0.02em; margin-block: 14px 18px; color: var(--px-gold-light); }
.hero .tagline { font-size: clamp(16px, 2vw, 20px); max-width: 34ch; color: var(--px-champagne); }
.cats-line { margin-block: 22px 32px; font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 500; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cats-line i { font-style: normal; color: var(--px-gold); }
.hero .stage { display: grid; place-items: center; }
.hero .stage img { width: min(100%, 360px); height: auto; filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.25)); }

/* Promise strip */
.strip { border-bottom: 1px solid var(--rule-light); }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.promise { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 30px 18px; border-left: 1px solid var(--rule-light); }
.promise:first-child { border-left: 0; }
.promise svg { width: 30px; height: 30px; stroke: var(--px-gold); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.promise strong { font-size: 13px; font-weight: 600; }
.promise span { font-size: 12px; color: var(--muted-light); }

/* Categories */
.cats { padding-block: 64px; }
.cats .head, .catalog .head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 36px; }
.cats .head .rule, .catalog .head .rule { margin-block: 4px 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tile {
  position: relative; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 22px; border: 0; border-radius: 4px; cursor: pointer; text-align: left; color: var(--px-white); overflow: hidden;
  font-family: var(--px-body);
}
.tile.hombre { background: radial-gradient(90% 80% at 70% 30%, #1d3557 0%, #0a1426 55%, #05080f 100%); }
.tile.mujer { background: radial-gradient(90% 80% at 70% 30%, #a2665f 0%, #5a3030 55%, #2b1517 100%); }
.tile.unisex { background: radial-gradient(90% 80% at 70% 30%, #4d6a3a 0%, #22351a 55%, #0c1608 100%); }
.tile svg.bottle-art { position: absolute; right: 12%; top: 14%; height: 56%; width: auto; filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.35)); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 55%); }
.tile > * { position: relative; z-index: 1; }
.tile b { font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 600; }
.tile span { font-size: 12px; color: var(--px-champagne); margin-top: 4px; }
.tile:hover b { color: var(--px-gold-light); }

/* Banner */
.banner .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 64px; }
.banner .art { display: grid; place-items: center; }
.banner .art svg { height: 190px; width: auto; filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.35)); }
.banner h2 { font-family: var(--px-heading); font-size: clamp(26px, 3.6vw, 40px); line-height: 1.2; font-weight: 400; max-width: 20ch; }
.banner .script { font-family: var(--px-accent); font-size: 38px; color: var(--px-gold-light); line-height: 1; display: block; margin-block: 18px 26px; }

/* Catalog */
.catalog { padding-block: 64px 72px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.filters button {
  font: 600 11px/1 var(--px-body); letter-spacing: 0.22em; text-transform: uppercase;
  padding: 13px 20px; border: 1px solid var(--px-charcoal); background: transparent; color: var(--px-charcoal);
  border-radius: 999px; cursor: pointer;
}
.filters button:hover { background: var(--px-champagne); }
.filters button[aria-pressed="true"] { background: var(--px-charcoal); color: var(--px-gold-light); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--px-white); border: 1px solid var(--rule-light); display: flex; flex-direction: column; min-width: 0; }
.card .visual { background: var(--px-charcoal); aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.card .visual svg { height: 128px; width: 86px; }
.tag { position: absolute; top: 12px; left: 12px; font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: var(--px-gold-light); border: 1px solid var(--rule-dark); padding: 4px 9px; }
.card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 21px; line-height: 1.2; }
.card .notes { color: var(--muted-light); font-size: 13px; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule-light); }
.card .size { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-light); font-weight: 500; }
.card .price { font-family: var(--px-heading); font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.avail { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; display: flex; align-items: center; gap: 7px; }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--px-gold); }
.avail.order::before { background: transparent; border: 1.5px solid var(--px-charcoal); }
.card .btn { justify-content: center; margin-top: 6px; }
.note-sample { margin-top: 28px; padding: 16px 18px; border: 1px dashed var(--rule-light); color: var(--muted-light); font-size: 13px; text-align: center; }

/* Steps */
.order .wrap { padding-block: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px; }
.order h3 { font-size: 21px; margin-block: 10px 8px; }
.order p { color: var(--muted-dark); font-size: 14px; }

/* Footer */
footer.foot { border-top: 1px solid var(--rule-dark); }
footer.foot .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted-dark); }
footer.foot img { height: 56px; width: auto; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 44px 52px; }
  .hero .stage { order: -1; }
  .hero .stage img { width: 220px; }
  .banner .wrap { grid-template-columns: 1fr; padding-block: 48px; }
  .banner .art { order: -1; }
  .lockup img { height: 52px; }
  .promise { border-left: 0; border-top: 1px solid var(--rule-light); }
  .promise:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .tile { transition: transform .25s ease, box-shadow .25s ease; }
  .card:hover, .tile:hover { transform: translateY(-3px); }
  .card:hover { box-shadow: 0 10px 28px rgba(26, 26, 26, 0.14); }
  .btn { transition: background-color .2s ease; }
}

/* Powered by */
.powered { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--muted-dark); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.powered img { width: 40px; height: 40px; border-radius: 50%; }
.powered b { display: block; color: var(--px-champagne); font-size: 12px; letter-spacing: 0.2em; font-weight: 600; margin-top: 2px; }
.foot-meta { display: flex; flex-direction: column; gap: 6px; }



/* Búsqueda, marca y fotos de producto */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.searchbar { max-width: 460px; margin: 0 auto 10px; }
.searchbar input { width: 100%; font: 500 14px/1 var(--px-body); padding: 15px 20px; border: 1px solid var(--px-charcoal); border-radius: 999px; background: var(--px-white); color: var(--px-charcoal); }
.searchbar input::placeholder { color: var(--muted-light); }
.count { text-align: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 26px; min-height: 1.6em; }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted-light); }
.card .brandname { font: 600 10px/1.3 var(--px-body); letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted-light); }
.card .visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.card.soldout .visual img, .card.soldout .visual svg { opacity: 0.38; filter: grayscale(1); }
.card.soldout h3, .card.soldout .price { opacity: 0.6; }
.avail.out::before { background: transparent; border: 1.5px solid var(--muted-light); }
.btn.off { background: transparent; color: var(--muted-light); border: 1px solid var(--rule-light); cursor: default; }
.btn.off:hover { background: transparent; }

/* Urgencia honesta: últimas unidades (stock real) y vendidos */
.flag { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--px-gold); color: var(--px-black); font: 700 10px/1 var(--px-body); letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 10px; }
.stamp { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); border: 2px solid var(--px-gold-light); color: var(--px-gold-light); background: rgba(0, 0, 0, 0.62); font: 600 22px/1 var(--px-heading); letter-spacing: 0.28em; text-transform: uppercase; padding: 10px 16px 10px 22px; white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--px-charcoal); border: 1px solid var(--px-charcoal); }
.btn.ghost:hover { background: var(--px-charcoal); color: var(--px-gold-light); }

/* Calificación opcional con estrellas (js/track.js): ventana modal centrada */
.rate-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rate { position: relative; width: min(360px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-sizing: border-box; background: var(--px-charcoal); color: var(--px-champagne); border: 1px solid var(--px-gold); padding: 22px 22px 20px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45); font-family: var(--px-body); }
.rate h2 { font: 500 20px/1.25 var(--px-heading); color: var(--px-cream); margin: 0 36px 12px 0; }
.rate-eyebrow { font: 600 10px/1 var(--px-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--px-gold); margin: 0 0 10px; }
.rate-x { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; background: none; border: 0; color: var(--muted-dark); font: 400 26px/1 var(--px-body); cursor: pointer; }
.rate-x:hover { color: var(--px-gold-light); }
.rate-stars { display: flex; gap: 2px; margin-left: -8px; }
.rate-stars button { appearance: none; -webkit-appearance: none; width: 46px; height: 46px; padding: 8px; background: none; border: 0; cursor: pointer; color: rgba(242, 231, 200, 0.3); }
.rate-stars button svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.rate-stars button.on { color: var(--px-gold); }
.rate-hint { min-height: 1.4em; margin: 2px 0 0; font-size: 12px; color: var(--muted-dark); }
.rate-more:not([hidden]) { display: grid; gap: 12px; margin-top: 12px; }
.rate textarea { width: 100%; box-sizing: border-box; min-height: 76px; resize: vertical; background: var(--px-black); color: var(--px-cream); border: 1px solid var(--rule-dark); padding: 10px 12px; font: 400 16px/1.45 var(--px-body); }
.rate textarea::placeholder { color: var(--muted-dark); }
.rate textarea:focus { border-color: var(--px-gold); }
.rate-actions { display: flex; align-items: center; gap: 18px; }
.rate-actions .btn[disabled] { opacity: 0.6; cursor: wait; }
.rate-later { background: none; border: 0; padding: 10px 0; color: var(--muted-dark); font: 500 12px/1 var(--px-body); text-decoration: underline; cursor: pointer; }
.rate-later:hover { color: var(--px-gold-light); }
@media (prefers-reduced-motion: no-preference) {
  .rate-backdrop { animation: rate-fade 0.2s ease-out; }
  .rate { animation: rate-in 0.35s ease-out; }
  @keyframes rate-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes rate-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
}
.linklike { background: none; border: 0; padding: 0; color: var(--px-gold-light); font: 500 12px/1.4 var(--px-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--px-gold); }
.foot-meta .privacy { font-size: 11px; opacity: 0.8; }

/* Botón flotante: volver arriba */
.to-top { appearance: none; -webkit-appearance: none; position: fixed; z-index: 40; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; background: var(--px-gold); color: var(--px-black); border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); opacity: 0; pointer-events: none; transform: translateY(8px); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--px-gold-light); }
.to-top svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .to-top { transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease; }
  .to-top.show { transform: none; }
}
