/* AURA · La brisa perfumada — rutas siempre relativas (se sirve en /aura/) */
:root {
  --ink: #0e0c0a;
  --ink-2: #16130f;
  --ink-3: #221d17;
  --cream: #efe6d4;
  --cream-2: #faf6ee;
  --gold: #c29a57;
  --gold-l: #d6b57a;
  --amber: #b8722c;
  --taupe: #8a7666;
  --line-d: rgba(239, 230, 212, .14);
  --line-l: rgba(12, 11, 10, .12);
  --f-logo: "Trirong", Georgia, serif;
  --f-head: "Cormorant Garamond", Georgia, serif;
  --f-body: "Jost", system-ui, sans-serif;
  --r: 14px;
  --pad: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 300 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 500; line-height: 1.05; margin: 0; }
:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 3px; }

.draft {
  background: var(--amber); color: var(--ink);
  font-size: 12px; text-align: center; padding: 4px 12px; letter-spacing: .04em;
}

/* ---------- Cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--pad);
  background: rgba(12, 11, 10, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-d);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-iso { height: 34px; width: auto; }
.brand-word { font-family: var(--f-logo); font-weight: 600; font-size: 21px; letter-spacing: .14em; color: var(--cream); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-family: var(--f-logo); text-decoration: none; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .78; transition: opacity .2s, color .2s; }
.nav a:hover { opacity: 1; color: var(--gold-l); }
.bag-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-d);
}
.bag-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--cream); stroke-width: 1.4; }
.bag-n {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 500; display: grid; place-items: center;
  transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.bag-n.on { transform: scale(1); }
.bag-btn.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.15); } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-l); }
.btn-line { border-color: var(--line-d); }
.btn-line:hover { border-color: var(--gold-l); color: var(--gold-l); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-3); }
.wide { width: 100%; }

.eyebrow { font-family: var(--f-logo); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-l); margin: 0 0 14px; }
.light .eyebrow, .visit .eyebrow { color: #8a6a3a; }

/* Marco en arco, como el del logo */
.arch { border-radius: 999px 999px var(--r) var(--r); overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(28px, 6vw, 90px);
  padding: clamp(36px, 7vw, 96px) var(--pad);
  min-height: calc(100svh - 96px);
  background: radial-gradient(60% 70% at 78% 45%, rgba(194, 122, 53, .22), transparent 70%), var(--ink);
}
.hero h1 { font-size: clamp(54px, 9vw, 124px); font-weight: 400; letter-spacing: -.01em; }
.hero h1 em { color: var(--gold-l); font-weight: 400; }
.lead { font-size: clamp(16px, 1.5vw, 19px); max-width: 30em; opacity: .82; margin: 22px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img { margin: 0; aspect-ratio: 4 / 5; max-height: 76svh; justify-self: center; width: 100%; max-width: 520px;
  box-shadow: 0 0 0 1px rgba(217, 185, 127, .35), 0 0 0 10px var(--ink), 0 0 0 11px rgba(217, 185, 127, .22), 0 40px 80px -30px rgba(194, 122, 53, .45); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Secciones ---------- */
.sec { padding: clamp(64px, 9vw, 120px) var(--pad); }
.sec.dark { background: var(--ink-2); }
.sec.light { background: var(--cream-2); color: var(--ink); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.sec-head h2 { font-size: clamp(42px, 6vw, 76px); font-weight: 400; }
.sub { opacity: .75; margin: 14px 0 0; }

.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip {
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-d);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--gold-l); }
.chip.on { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); max-width: 1240px; margin: 0 auto; }
.grid.perf { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.moda { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Tarjeta de perfume */
.card { display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.p-card { background: var(--ink); border: 1px solid var(--line-d); border-radius: var(--r); padding: 14px 14px 18px; transition: border-color .3s, transform .3s; }
.p-card:hover { border-color: rgba(217, 185, 127, .45); transform: translateY(-3px); }
.p-img { aspect-ratio: 3 / 4; background: #050505; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.p-card:hover .p-img img { transform: scale(1.04); }
.c-body { padding: 16px 4px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.c-name { font-size: 26px; }
.c-meta { font-size: 13px; opacity: .65; letter-spacing: .04em; }
.c-notes { font-size: 14px; opacity: .8; margin: 0; }
.c-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.price { font-family: var(--f-head); font-size: 26px; color: var(--gold-l); }
.light .price { color: #8a6a3a; }

.sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.sz {
  white-space: nowrap;
  min-width: 40px; height: 36px; padding: 0 10px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-d); font-size: 12px;
}
.light .sz { border-color: var(--line-l); }
.sz.on { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.light .sz.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.add {
  height: 42px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--gold); color: var(--ink); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s;
}
.add:hover { background: var(--gold-l); }
.light .add { background: var(--ink); color: var(--cream); }
.light .add:hover { background: var(--ink-3); }

/* Tarjeta de moda */
.m-card .m-img { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: #e8e0d2; }
.m-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s; }
.m-card:hover .m-img img { transform: scale(1.03); }
.m-card .c-body { padding: 18px 2px 0; gap: 10px; }
.colors { display: flex; gap: 8px; align-items: center; font-size: 13px; opacity: .85; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--cream-2); box-shadow: 0 0 0 1px var(--line-l); padding: 0; }
.dot.on { box-shadow: 0 0 0 1.5px var(--ink); }

/* ---------- Banda ---------- */
.band { position: relative; height: clamp(320px, 55vw, 560px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.band-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 0 var(--pad); }
.band-txt h2 { font-size: clamp(44px, 7vw, 92px); font-weight: 400; }
.band-txt p:last-child { margin: 10px 0 0; opacity: .85; }

/* ---------- Cómo comprar ---------- */
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { border-top: 1px solid rgba(217, 185, 127, .4); padding-top: 22px; }
.steps span { font-family: var(--f-logo); color: var(--gold-l); letter-spacing: .1em; }
.steps h3 { font-size: 32px; margin: 8px 0 8px; }
.steps p { margin: 0; opacity: .78; }

/* ---------- Visítanos ---------- */
.visit { background: var(--cream); color: var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.visit-logo { margin: 0; justify-self: center; width: min(100%, 360px); }
.visit-logo img { width: 100%; }
.visit-logo.nologo::before { content: "AURA"; font-family: var(--f-logo); font-size: 72px; letter-spacing: .14em; display: block; text-align: center; }
.visit h2 { font-size: clamp(42px, 6vw, 72px); font-weight: 400; margin-bottom: 18px; }
.visit p { margin: 0 0 8px; }
.visit .btn { margin-top: 18px; }
.pend { display: inline-block; border: 1px dashed rgba(12, 11, 10, .35); border-radius: 6px; padding: 2px 10px; opacity: .7; }

/* ---------- Pie ---------- */
.foot { text-align: center; padding: 56px var(--pad) 40px; background: var(--ink); border-top: 1px solid var(--line-d); }
.foot p { margin: 6px 0 0; opacity: .7; font-family: var(--f-head); font-style: italic; font-size: 18px; }
.foot .small { font-family: var(--f-body); font-style: normal; font-size: 12px; opacity: .5; margin-top: 18px; }
.small { font-size: 12px; opacity: .6; }

/* ---------- Bolsa ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.bag {
  position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--ink-2); border-left: 1px solid var(--line-d);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.bag.on { transform: none; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 14px; border-bottom: 1px solid var(--line-d); }
.bag-head h2 { font-size: 34px; font-weight: 400; }
.x { width: 44px; height: 44px; border-radius: 50%; background: transparent; border: 1px solid var(--line-d); font-size: 24px; line-height: 1; }
.bag-list { list-style: none; margin: 0; padding: 8px 22px; overflow: auto; flex: 1; }
.bag-list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-d); }
.bag-list img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; }
.bag-list .n { font-family: var(--f-head); font-size: 20px; line-height: 1.1; }
.bag-list .v { font-size: 13px; opacity: .65; }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; background: transparent; border: 1px solid var(--line-d); line-height: 1; }
.bag-list .pr { font-family: var(--f-head); font-size: 20px; color: var(--gold-l); }
.empty { text-align: center; opacity: .6; padding: 60px 0 !important; display: block !important; border: 0 !important; }
.bag-foot { padding: 18px 22px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-d); display: grid; gap: 12px; }
.tot { display: flex; justify-content: space-between; align-items: baseline; }
.tot strong { font-family: var(--f-head); font-size: 30px; font-weight: 500; color: var(--gold-l); }
.bag-foot .small { text-align: center; margin: 0; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--cream); color: var(--ink); padding: 12px 20px; border-radius: 999px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .35s cubic-bezier(.2, .8, .2, 1); white-space: nowrap;
}
.toast.on { transform: translate(-50%, 0); }

/* Aparición suave */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Animación de entrada ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--ink);
  transition: transform 1s cubic-bezier(.76, 0, .24, 1), border-radius 1s cubic-bezier(.76, 0, .24, 1);
  will-change: transform;
}
.no-intro .intro { display: none; }
.intro-on body { overflow: hidden; }
.intro.up { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 12% 12%; }
.intro.gone { display: none; }
.i-glow {
  position: absolute; width: 70vmin; height: 70vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 154, 87, .22), transparent 65%);
  opacity: 0; animation: iGlow 2.4s .6s ease-out forwards;
}
.i-logo { position: relative; width: min(62vw, 400px); height: auto; overflow: visible; transition: transform 1s cubic-bezier(.76, 0, .24, 1), opacity .8s; }
.intro.up .i-logo { transform: translateY(-18vh) scale(.9); opacity: 0; }

.i-arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: iDraw 1.2s .15s cubic-bezier(.65, 0, .35, 1) forwards; }
.i-pet { transform-box: view-box; transform-origin: 500px 445px; transform: scale(.2) rotate(0deg); opacity: 0;
  animation: iBloom 1s calc(.55s + var(--o) * .2s) cubic-bezier(.2, .9, .3, 1.15) forwards; }
.i-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: iDraw .8s calc(.6s + var(--o) * .2s) ease-out forwards; }
.i-fill { opacity: 0; animation: iFade .6s calc(1s + var(--o) * .2s) ease-out forwards; }
.i-sep { opacity: 0; transform-box: fill-box; transform-origin: 50% 0; transform: scaleX(0); animation: iSep .7s 1.75s cubic-bezier(.2, .8, .2, 1) forwards; }
.i-word { opacity: 0; transform: translateY(40px); filter: blur(8px); animation: iWord 1s 1.95s cubic-bezier(.2, .8, .2, 1) forwards; }
.i-tag { opacity: 0; transform: translateY(20px); animation: iWord .9s 2.35s cubic-bezier(.2, .8, .2, 1) forwards; }
.i-skip {
  position: absolute; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  background: transparent; border: 1px solid var(--line-d); border-radius: 999px;
  color: var(--cream); opacity: .55; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 16px; transition: opacity .2s;
}
.i-skip:hover { opacity: 1; }
.intro.up .i-skip { opacity: 0; }

@keyframes iDraw { to { stroke-dashoffset: 0; } }
@keyframes iFade { to { opacity: 1; } }
@keyframes iBloom { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
@keyframes iSep { to { opacity: 1; transform: scaleX(1); } }
@keyframes iWord { to { opacity: 1; transform: none; filter: none; } }
@keyframes iGlow { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: scale(1); } }

/* La portada entra mientras sube el telón */
.intro-on .hero-txt > *, .intro-on .hero-img { opacity: 0; transform: translateY(30px); }
.intro-off .hero-txt > *, .intro-off .hero-img { transition: opacity .9s, transform .9s cubic-bezier(.2, .8, .2, 1); }
.intro-off .hero-txt > :nth-child(2) { transition-delay: .08s; }
.intro-off .hero-txt > :nth-child(3) { transition-delay: .16s; }
.intro-off .hero-txt > :nth-child(4) { transition-delay: .24s; }
.intro-off .hero-img { transition-delay: .12s; }

/* ---------- Móvil ---------- */
@media (max-width: 820px) {
  .nav { display: none; }
  .bag-btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: center; padding-top: 32px; }
  .hero-txt { order: 2; }
  .hero-img { order: 1; max-width: 340px; max-height: none; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; text-align: center; }
  .visit-logo { width: min(70%, 280px); }
}
@media (max-width: 520px) {
  .grid.perf { grid-template-columns: 1fr 1fr; gap: 12px; }
  .p-card { padding: 8px 8px 12px; }
  .c-name { font-size: 21px; }
  .p-card .c-notes { display: none; }
  .p-card .u { display: none; }
  .c-row { flex-direction: column; align-items: stretch; }
  .p-card .sizes .sz { min-width: 0; flex: 1; padding: 0 4px; }
  .price { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
