/* laMansion Parfum — versión negra (clon mejorado de la maqueta de design.com) */
:root {
  --black: #0A0A08;
  --ink: #12110E;
  --ink-2: #1B1A15;
  --line: rgba(212, 175, 55, .28);
  --gold: #D4AF37;
  --gold-soft: #E7CB73;
  --ivory: #F1EADB;
  --muted: #B9AF99;
  --tile: #FFFFFF;
  --display: "Gloock", "Times New Roman", serif;
  --body: "Tenor Sans", system-ui, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--black); color: var(--ivory);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.12; color: var(--gold); }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--black); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border: 1px solid var(--gold);
  font: inherit; font-size: 16px; letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-ghost { background: rgba(10,10,8,.35); color: var(--ivory); border-color: rgba(241,234,219,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--black); }
.btn:active { transform: translateY(1px); }

/* Encabezado */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(10,10,8,.78), rgba(10,10,8,0));
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.solid { background: rgba(10,10,8,.92); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.header-inner { width: min(var(--wrap), 100% - 40px); margin-inline: auto; height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 34px; }
.nav a { text-decoration: none; font-size: 16px; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--gold); font: inherit; padding: 8px 16px; min-height: 44px; cursor: pointer; }

/* Portada */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--black) url("img/hero.jpg") center 38% / cover no-repeat;
  isolation: isolate;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to top, rgba(10,10,8,.96) 4%, rgba(10,10,8,.5) 48%, rgba(10,10,8,.6) 100%); }
.hero-inner { width: min(var(--wrap), 100% - 40px); margin-inline: auto; padding: 160px 0 clamp(48px, 9vh, 96px); }
.hero h1 { font-size: clamp(2.8rem, 8.2vw, 6.6rem); color: var(--ivory); max-width: 12ch; text-wrap: balance; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--gold-soft); margin-top: 22px; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero .eyebrow { color: var(--gold-soft); }

/* Secciones */
section { position: relative; }
.promise, .featured, .catalog, .steps, .faq, .contact { padding: clamp(64px, 9vw, 120px) 0; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.section-lead { color: var(--muted); max-width: 62ch; margin-top: 16px; font-size: 18px; }

.promise { background: var(--black); border-bottom: 1px solid var(--line); }
.promise-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.promise-head p { color: var(--muted); font-size: 18px; }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.promise-grid article { border-top: 1px solid var(--line); padding-top: 26px; }
.promise-grid svg { width: 44px; height: 44px; color: var(--gold); margin-bottom: 18px; }
.promise-grid h3 { font-size: 1.35rem; margin-bottom: 10px; }
.promise-grid p { color: var(--muted); font-size: 16px; }

/* Destacados */
.featured { background: var(--ink); border-bottom: 1px solid var(--line); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); margin-top: 48px; }
.feat-card { display: flex; flex-direction: column; background: var(--black); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.feat-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.photo { background: var(--tile); aspect-ratio: 4 / 5; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feat-card:hover .photo img, .card:hover .photo img { transform: scale(1.04); }
.feat-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.feat-brand, .card-brand { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.feat-name { font-size: 1.5rem; }
.prices { display: flex; gap: 18px; margin: 8px 0 14px; flex-wrap: wrap; }
.prices div { display: flex; flex-direction: column; line-height: 1.3; }
.size { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price { font-size: 1.15rem; color: var(--ivory); }
.per-ml { font-size: 12px; color: var(--muted); }
.consult { color: var(--muted); margin: 8px 0 14px; }
.feat-body .btn, .card .btn { margin-top: auto; width: 100%; }

/* Catálogo */
.catalog { background: var(--black); }
.toolbar { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: end; margin-top: 40px; padding: 22px; border: 1px solid var(--line); background: var(--ink); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .check span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input[type="search"], .field select {
  min-height: 46px; min-width: 220px; padding: 10px 14px; background: var(--black); color: var(--ivory);
  border: 1px solid var(--line); font: inherit; font-size: 16px; border-radius: 0;
}
.field input::placeholder { color: #7d7563; }
.field select option { background: var(--black); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 8px 16px; background: transparent; color: var(--ivory); border: 1px solid var(--line); font: inherit; font-size: 15px; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--gold); }
.chip.is-on { background: var(--gold); color: var(--black); border-color: var(--gold); }
.check { display: flex; align-items: center; gap: 10px; min-height: 46px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }
.count { margin: 26px 0 18px; color: var(--muted); font-size: 15px; min-height: 1.6em; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--ink); border: 1px solid transparent; transition: border-color .25s; }
.card:hover { border-color: var(--line); }
.card .photo { aspect-ratio: 4 / 5; }
.card .soon-tile { background: var(--ink-2); aspect-ratio: 4 / 5; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.card .soon-tile img { width: 64px; opacity: .55; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-name { font-size: 1.12rem; line-height: 1.25; }
.card .prices { gap: 14px; margin: 8px 0 14px; }
.more { text-align: center; margin-top: 36px; }
.empty { text-align: center; margin-top: 30px; color: var(--muted); }
.note { text-align: center; margin-top: 28px; color: var(--muted); font-size: 15px; }

/* Pasos */
.steps { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps-grid { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps-grid li { border-top: 1px solid var(--line); padding-top: 24px; }
.num { font-family: var(--display); font-size: 3.2rem; color: var(--gold); line-height: 1; display: block; margin-bottom: 14px; opacity: .9; }
.steps-grid h3 { font-size: 1.6rem; margin-bottom: 8px; }
.steps-grid p { color: var(--muted); }
.terms { margin-top: 40px; color: var(--gold-soft); font-size: 16px; }

/* FAQ */
.faq { background: var(--black); }
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; column-gap: clamp(28px, 6vw, 88px); row-gap: 0; grid-template-rows: auto 1fr; align-items: start; }
.faq-wrap h2 { margin-bottom: 0; }
.faq-wrap .section-lead { margin-top: 16px; }
.faq-list { margin-top: 0; }
.faq-wrap .section-lead { grid-column: 1; }
.faq-list { grid-column: 2; grid-row: 1 / span 2; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-family: var(--display); font-size: 1.3rem; color: var(--gold); position: relative; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--body); font-size: 1.8rem; color: var(--gold); transition: transform .25s; }
details[open] summary::after { content: "–"; }
details p { padding: 0 44px 24px 0; color: var(--muted); }

/* Contacto */
.contact { background: var(--ink); border-top: 1px solid var(--line); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-logo { width: 200px; height: auto; margin-bottom: 36px; }
.contact .section-lead { margin-inline: auto; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

/* Pie */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding: 28px 0 96px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--gold-soft); font-size: 15px; }
.footer-inner img { height: 40px; width: auto; }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; color: var(--gold); transition: color .2s; }
.social a:hover { color: var(--gold-soft); }
.social svg { width: 24px; height: 24px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--black); text-decoration: none; min-height: 54px; padding: 0 22px 0 16px;
  border-radius: 999px; box-shadow: 0 8px 28px rgba(0,0,0,.55); transition: transform .25s, background .25s;
}
.wa-float:hover { background: var(--gold-soft); transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }

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

/* Adaptable */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .promise-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .promise-head { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-list { grid-column: 1; grid-row: auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(10,10,8,.97); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s; }
  .nav.open { max-height: 360px; }
  .nav a { padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feat-body { padding: 16px 14px 18px; }
  .feat-name { font-size: 1.25rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps-grid { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr; }
  .toolbar { padding: 16px; }
  .field input[type="search"], .field select { min-width: 0; width: 100%; }
  .field { width: 100%; }
  .card-body { padding: 12px 12px 14px; }
  .card-name { font-size: 1rem; }
  .prices div .per-ml { display: none; }
  .hero { background-position: 62% 30%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .wa-float { padding: 0; width: 56px; justify-content: center; }
  .wa-float span { display: none; }
  .footer-inner { justify-content: center; text-align: center; }
}
@media (max-width: 440px) {
  .feat-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
