:root{
  --bg: #0b0a09;
  --bg-2: #14110f;
  --cream: #F1E8D8;
  --muted: rgba(241,232,216,0.62);
  --gold: #D7A86E;
  --gold-2: #E8BE8A;
  --line: rgba(241,232,216,0.16);
  --paper: #F6F2EA;
  --ink: #1A1714;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22,.7,.2,1);
}
*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll{ overflow: hidden; }
a{ color: inherit; text-decoration: none; }
img{ display: block; max-width: 100%; }
button{ font-family: inherit; }
:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- piezas comunes ---------- */
.pill{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  line-height: 1;
  color: var(--cream);
  background: transparent;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.pill:hover{ background: var(--gold); color: #111; }
.pill--solid{ background: var(--cream); border-color: var(--cream); color: #111; }
.pill--solid:hover{ background: var(--gold); border-color: var(--gold); }
.pill--dark{ color: var(--ink); border-color: rgba(26,23,20,.5); }
.pill--dark:hover{ background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.is-on{ background: var(--cream); color: #111; border-color: var(--cream); }

.eyebrow{
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before, .eyebrow::after{ content: ""; width: 34px; height: 1px; background: var(--gold); opacity: .7; }
h1, h2, h3{ font-family: var(--serif); font-weight: 500; line-height: 1.1; }
h2{ font-size: clamp(34px, 4.6vw, 64px); letter-spacing: 0.01em; }

/* ---------- header ---------- */
.top{
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--pad);
  transition: background .4s ease, padding .4s ease;
}
.top.scrolled{ background: rgba(11,10,9,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: 14px; padding-bottom: 14px; }
.burger{
  justify-self: start;
  width: 34px; height: 26px; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
}
.burger span{ display: block; height: 1px; background: var(--cream); transition: transform .35s ease, opacity .25s ease, width .3s ease; }
.burger span:nth-child(2){ width: 70%; }
.burger:hover span:nth-child(2){ width: 100%; }
.burger.open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }
.brand{ display: flex; align-items: center; gap: 12px; }
.brand-mark{ width: 46px; height: auto; }
.brand-text{ display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-text b{ font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: 0.34em; padding-left: .34em; }
.brand-text small{ font-size: 8px; letter-spacing: 0.5em; padding-left: .5em; margin-top: 5px; color: var(--gold); }
.top-actions{ justify-self: end; display: flex; gap: 10px; }

.menu{
  position: fixed; inset: 0; z-index: 55;
  background: rgba(8,7,6,.97);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.menu.open{ opacity: 1; visibility: visible; }
.menu a{
  font-family: var(--serif); font-size: clamp(34px, 6vw, 64px); font-weight: 400; letter-spacing: .04em;
  display: flex; align-items: baseline; gap: 18px; transition: color .25s ease;
}
.menu a i{ font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.menu a:hover{ color: var(--gold-2); }

/* ---------- hero: tres momentos del día ---------- */
.hero{ position: relative; height: 100vh; height: 100svh; min-height: 640px; background: var(--bg); overflow: hidden; }
.triptych{ position: absolute; inset: 0; display: flex; gap: 5px; }
.panel{
  position: relative; flex: 1 1 0; min-width: 0;
  border: 0; padding: 0; background: #000; cursor: pointer; overflow: hidden;
  transition: flex-grow 1s var(--ease);
}
.panel.active{ flex-grow: 2.6; }
.panel img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.42) saturate(.7);
  transform: scale(1.08);
  transition: filter 1s ease, transform 1.8s var(--ease);
}
.panel.active img{ filter: none; transform: scale(1); }
.panel::after{
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.6) 0%, transparent 26%, transparent 52%, rgba(0,0,0,.72) 100%);
}
.p-label{
  position: absolute; left: 24px; bottom: 26px; z-index: 3; text-align: left;
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--cream); opacity: .75;
}
.p-label b{ font-weight: 400; color: var(--gold); margin-right: 10px; }
.p-label em{
  display: block; margin-top: 4px;
  font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: .02em; text-transform: none;
  opacity: 0; transform: translateY(6px); transition: opacity .7s ease .3s, transform .7s ease .3s;
}
.panel.active .p-label{ opacity: 1; }
.panel.active .p-label em{ opacity: 1; transform: none; }

.hero::before{
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse 55% 42% at 50% 47%, rgba(0,0,0,.55), transparent 72%);
}
.hero-copy{
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
  padding: 90px var(--pad) 54px; pointer-events: none;
}
.hero-copy .eyebrow{ margin-bottom: 14px; color: var(--gold-2); text-shadow: 0 1px 14px rgba(0,0,0,.85); }
.hero h1{
  font-size: clamp(40px, 7.2vw, 108px);
  letter-spacing: 0.07em; padding-left: .07em;
  text-shadow: 0 4px 40px rgba(0,0,0,.55);
}
.hero .lead{
  max-width: 440px; margin-top: 12px;
  font-size: 13px; line-height: 1.8; letter-spacing: .02em;
  color: rgba(241,232,216,.88);
  text-shadow: 0 1px 14px rgba(0,0,0,.7);
}
.modes{ display: flex; gap: 14px; margin-top: 24px; pointer-events: auto; }
.mode{
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,.25); border: 1px solid var(--gold); color: var(--cream);
  cursor: pointer; backdrop-filter: blur(4px);
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.mode:hover{ transform: translateY(-2px); }
.mode.active{ background: var(--cream); color: #111; border-color: var(--cream); }
.mode svg{ width: 20px; height: 20px; }
.now{
  margin-top: 16px; min-height: 22px;
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-2);
  text-shadow: 0 1px 14px rgba(0,0,0,.7);
}
.hero-copy .pill{ margin-top: 16px; pointer-events: auto; background: rgba(0,0,0,.2); backdrop-filter: blur(4px); }
.hero-copy .pill:hover{ background: var(--gold); }

/* ---------- filosofía ---------- */
.philosophy{ padding: clamp(90px, 12vw, 170px) var(--pad); text-align: center; }
.philosophy .mark{ width: 84px; margin: 0 auto 22px; opacity: .95; }
.epigraph{ font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 24px); color: var(--gold-2); margin-bottom: 26px; }
.philosophy h2{ max-width: 860px; margin: 22px auto 0; }
.philosophy h2 em{ font-style: italic; color: var(--gold-2); }
.philosophy .copy{ max-width: 620px; margin: 30px auto 0; color: var(--muted); font-size: 14px; line-height: 1.95; }
.philosophy .copy p + p{ margin-top: 16px; }
.materials{
  max-width: 980px; margin: 70px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.materials > div{ padding: 6px 28px; border-left: 1px solid var(--line); }
.materials > div:first-child{ border-left: 0; }
.materials h3{ font-size: 28px; font-weight: 400; color: var(--cream); }
.materials p{ margin-top: 8px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }

/* ---------- colección ---------- */
.collection{ padding: clamp(70px, 9vw, 130px) var(--pad); background: var(--bg-2); text-align: center; }
.collection .sub{ max-width: 460px; margin: 16px auto 0; color: var(--muted); font-size: 13px; }
.filters{ display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 38px 0 52px; }
.grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1240px; margin: 0 auto; text-align: left; }
.card{
  background: linear-gradient(180deg, #ece7dc 0%, #d9d3c5 100%);
  color: var(--ink);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s ease;
}
.card:hover, .card:focus-visible{ transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); }
.card[hidden]{ display: none; }
.card-img{ aspect-ratio: 4 / 5; overflow: hidden; }
.card-img img{ width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card-img img{ transform: scale(1.05); }
.card-body{ padding: 20px 22px 24px; text-align: center; background: var(--paper); }
.card-body h3{ font-size: 28px; font-weight: 500; }
.meta{ display: block; margin: 2px 0 16px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(26,23,20,.58); }

/* ---------- ficha de producto (cajón lateral) ---------- */
.scrim{ position: fixed; inset: 0; z-index: 75; background: rgba(0,0,0,.62); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.scrim.open{ opacity: 1; pointer-events: auto; }
.drawer{
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(540px, 100vw);
  background: var(--paper); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(102%);
  transition: transform .65s var(--ease);
}
.drawer.open{ transform: none; }
.d-close{
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(246,242,234,.9); border: 1px solid rgba(26,23,20,.25);
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink);
}
.d-media{ aspect-ratio: 4 / 3.1; background: #e9e3d6; overflow: hidden; }
.d-media img{ width: 100%; height: 100%; object-fit: cover; }
.d-thumbs{ display: flex; gap: 10px; padding: 14px 28px 0; }
.d-thumbs button{
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer;
  border: 1px solid transparent; opacity: .6; background: #ddd; transition: opacity .25s ease, border-color .25s ease;
}
.d-thumbs button.on{ opacity: 1; border-color: var(--ink); }
.d-thumbs img{ width: 100%; height: 100%; object-fit: cover; }
.d-body{ padding: 22px 28px 0; }
.d-eyebrow{ font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(26,23,20,.55); }
.d-body h3{ font-size: 44px; margin: 6px 0 12px; }
.d-desc{ font-size: 13.5px; line-height: 1.85; color: rgba(26,23,20,.75); }
.d-opts{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(26,23,20,.14); }
.d-opts label{ display: grid; gap: 6px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(26,23,20,.55); }
.d-opts select{
  appearance: none; -webkit-appearance: none;
  padding: 11px 36px 11px 14px; border-radius: 10px;
  border: 1px solid rgba(26,23,20,.22); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231A1714' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-family: var(--sans); font-size: 13px; color: var(--ink);
}
.d-buy{ position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px -28px 0; padding: 16px 28px; background: var(--paper); border-top: 1px solid rgba(26,23,20,.12); }
.d-price{ font-family: var(--serif); font-size: 38px; font-weight: 500; }
.d-price small{ font-family: var(--sans); font-size: 11px; letter-spacing: .14em; margin-left: 6px; color: rgba(26,23,20,.55); }
.btn-dark{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400;
  transition: background .3s ease;
}
.btn-dark:hover{ background: #3a312a; }
.d-note{ padding-bottom: 28px; margin-top: 16px; font-size: 11.5px; color: rgba(26,23,20,.55); }

/* ---------- proceso ---------- */
.process{ padding: clamp(80px, 10vw, 150px) var(--pad); text-align: center; }
.process h2{ margin-top: 20px; }
.steps{ list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 1100px; margin: 64px auto 0; }
.steps li{ padding: 6px 26px; border-left: 1px solid var(--line); text-align: center; }
.steps li:first-child{ border-left: 0; }
.steps b{ display: block; font-family: var(--serif); font-weight: 400; font-size: 46px; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.steps h3{ font-size: 26px; font-weight: 400; }
.steps p{ margin-top: 8px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }

/* ---------- contacto ---------- */
.contact{ padding: clamp(80px, 10vw, 150px) var(--pad); background: var(--bg-2); }
.contact-grid{ max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 100px); align-items: start; }
.contact h2{ margin: 18px 0 0; }
.contact .eyebrow::after{ display: none; }
.contact .lead{ margin-top: 18px; color: var(--muted); font-size: 14px; max-width: 420px; }
.contact dl{ margin-top: 36px; display: grid; gap: 22px; }
.contact dt{ font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.contact dd{ font-size: 14px; color: var(--cream); opacity: .85; }
.contact dd a:hover{ color: var(--gold-2); }
.form{ display: grid; gap: 26px; padding-top: 6px; }
.form label{ display: grid; gap: 4px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea{
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; color: var(--cream); font-family: var(--sans); font-size: 15px; font-weight: 300; resize: vertical;
  border-radius: 0;
}
.form input:focus, .form textarea:focus{ outline: none; border-bottom-color: var(--gold); }
.form .pill{ justify-self: start; }
.note{ font-size: 12px; color: var(--gold-2); min-height: 18px; }

/* ---------- footer ---------- */
.foot{ padding: 56px var(--pad) 36px; text-align: center; border-top: 1px solid var(--line); }
.foot .brand{ justify-content: center; }
.social{ list-style: none; display: flex; justify-content: center; gap: 30px; margin: 26px 0 22px; }
.social a{ font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .2s ease; }
.social a:hover{ color: var(--gold-2); }
.foot small{ display: block; font-size: 11px; color: rgba(241,232,216,.4); letter-spacing: .06em; }

/* ---------- aparición ---------- */
.js [data-reveal]{ opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s var(--ease); }
.js [data-reveal].in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .js [data-reveal]{ opacity: 1; transform: none; transition: none; }
  .panel, .panel img, .drawer{ transition-duration: .01s; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .steps{ grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps li:nth-child(3){ border-left: 0; }
}
@media (max-width: 820px){
  .top{ padding-left: 18px; padding-right: 18px; }
  .brand{ gap: 8px; }
  .brand-mark{ width: 30px; }
  .brand-text b{ font-size: 17px; letter-spacing: .22em; padding-left: .22em; }
  .brand-text small{ display: none; }
  .top-actions .pill{ padding: 9px 14px; font-size: 10px; }
  .top-actions .pill:not(.pill--solid){ display: none; }
  .triptych{ flex-direction: column; gap: 4px; }
  .panel.active{ flex-grow: 3.2; }
  .p-label{ display: none; }
  .eyebrow::before, .eyebrow::after{ width: 18px; }
  .hero-copy .eyebrow{ letter-spacing: .2em; font-size: 10px; }
  .hero .lead{ font-size: 12.5px; max-width: 320px; }
  .hero-copy{ padding-top: 80px; }
  .modes{ margin-top: 22px; }
  .materials{ grid-template-columns: 1fr; gap: 28px; }
  .materials > div{ border-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .materials > div:first-child{ border-top: 0; }
  .contact-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .steps li{ border-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .steps li:first-child{ border-top: 0; }
  .d-buy{ flex-direction: column; align-items: stretch; text-align: center; }
}
