/* Tienda Lurea: portada "taller a oscuras" (rediseño aprobado) + catálogo, carrito y pago. */
@font-face { font-family: 'Sentient'; src: url(/fonts/sentient-300.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Sentient'; src: url(/fonts/sentient-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Sentient'; src: url(/fonts/sentient-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #0f0d0b;
  --surface: #181512;
  --ink: #ecebe8;
  --muted: #b0aaa2;
  --accent: #c9a45a;
  --accent-ink: #0f0d0b;
  --m: clamp(20px, 3.4vw, 48px);
  --gap: clamp(120px, 14vw, 200px);
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  --step-display: clamp(2.6rem, 1rem + 5.4vw, 6rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body { font: 400 var(--step-body)/1.55 'Sentient', Georgia, serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
html { scrollbar-color: #3a332c var(--bg); caret-color: var(--accent); }
.from, .lengths button { font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.015em; line-height: 1; text-wrap: balance; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--m); top: 12px; z-index: 20; background: var(--ink); color: var(--bg); padding: 8px 12px; }

/* bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; gap: 32px; padding: 18px var(--m); transition: background .4s var(--ease); }
.bar.solid { background: var(--bg); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: var(--step-lead); font-weight: 300; }
.brand .emblem { height: 32px; width: auto; }
.bar nav { margin-left: auto; display: flex; gap: 28px; font-size: var(--step-small); }
.bar nav a, .bag { text-decoration: none; font-size: 1rem; }
.brand img { height: 52px; width: auto; }
.bag { padding: 8px 0; }
.bar nav a:hover, .bag:hover { color: var(--accent); }

/* buttons: one shape, square */
.act { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; font-size: 1rem; transition: transform .2s var(--ease), background .2s; }
.act:hover { background: #d8b56c; }
.act:active { transform: scale(.98); }
.act-full { width: 100%; }

/* 1 hero */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto auto; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-emblem { position: relative; align-self: end; justify-self: center; width: clamp(150px, 17vw, 250px); height: auto; margin-top: 14vh; }
.hero-copy { position: relative; padding: 36px var(--m) 0; text-align: center; justify-self: center; max-width: 900px; }
.hero h1 { font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.02em; }
.mask > span { display: block; overflow: hidden; padding-bottom: .06em; }
.mask > span > span { display: block; transform: translateY(105%); animation: rise .95s var(--ease) forwards; }
.mask > span:nth-child(2) > span { animation-delay: .11s; }
@keyframes rise { to { transform: none; } }
.lede { margin: 20px auto 0; max-width: 52ch; font-size: var(--step-body); }
.doors { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(32px, 6vh, 64px); }
.door { display: grid; gap: 4px; min-height: 64px; padding: 26px var(--m) 30px; text-decoration: none; background: var(--bg); transition: background .35s var(--ease); }
.door + .door { background: var(--surface); }
.door:hover, .door:focus-visible { background: var(--accent); color: var(--accent-ink); }
.door-name { font-size: var(--step-head); font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.door-note { font-size: 1rem; }
.temp { position: absolute; top: 76px; right: var(--m); font-size: var(--step-small); color: var(--muted); max-width: 30ch; text-align: right; }

/* 2 categories */
.cats { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: var(--gap) var(--m) 0; }
.cats-pic { grid-column: 1 / 6; position: sticky; top: 12vh; align-self: start; }
.cats-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .3s; }
.cats-pic figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.cats-list { grid-column: 7 / 13; }
.cats-list h2, .moments h2, .reach h2, .faq h2 { font-size: var(--step-head); margin-bottom: 20px; }
.cats-list > p { color: var(--muted); max-width: 44ch; margin-bottom: 40px; }
.cats-list ul { list-style: none; padding: 0; }
.cats-list li button { width: 100%; min-height: 64px; display: flex; justify-content: space-between; align-items: baseline; text-align: left; font-size: var(--step-lead); color: var(--muted); }
.cats-list li button.on, .cats-list li button:hover { color: var(--ink); }
.cats-list li button.on span:first-child { color: var(--accent); }
.from { font-size: 1rem; }
.cats-list li p { max-height: 0; overflow: hidden; color: var(--muted); max-width: 40ch; transition: max-height .4s var(--ease), margin .4s; }
.cats-list li button.on + p { max-height: 6em; margin-bottom: 20px; }

/* 3 piece */
.piece { position: relative; margin-top: var(--gap); min-height: 88svh; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.piece-field { position: absolute; inset: 0; background: url(/hero-poster.jpg) center / cover; display: grid; place-items: end start; padding: 32px var(--m); }
.slot-note, .duo span { font-size: var(--step-small); color: var(--muted); }
.piece-card { position: relative; grid-column: 2; background: #e6e3dd; color: var(--bg); padding: 28px; display: grid; gap: 10px; }
.piece-card h2 { font-size: var(--step-lead); }
.piece-card .price { font-size: var(--step-lead); }
.duo { position: relative; aspect-ratio: 3 / 2; margin: 8px 0; background: #d5d1ca; cursor: zoom-in; }
.duo span { position: absolute; inset: 0; display: grid; place-items: center; color: #5a5249; transition: opacity .45s var(--ease); }
.duo .duo-b { opacity: 0; background: #c8c3bb; }
.duo:hover .duo-b, .duo:focus .duo-b { opacity: 1; }
.trust { list-style: none; padding: 0; font-size: 1rem; display: grid; gap: 4px; margin-bottom: 10px; }
.trust li { display: flex; gap: 10px; align-items: baseline; }
.trust li::before { content: ''; flex: none; width: 6px; height: 6px; background: #8a6a2c; transform: translateY(-2px); }
.piece-card .act { background: var(--bg); color: var(--ink); }
.piece-card .act:hover { background: #2a241e; }

/* 4 moments */
.moments { padding: var(--gap) 0 0; }
.moments-head { display: flex; justify-content: space-between; align-items: end; padding: 0 var(--m); }
.moments-ctrl { display: flex; gap: 8px; }
.moments-ctrl button { width: 52px; height: 52px; background: var(--surface); font-size: 1rem; transition: background .2s; }
.moments-ctrl button:hover { background: var(--accent); color: var(--accent-ink); }
.progress { margin: 24px var(--m) 32px; height: 6px; background: var(--surface); }
.progress span { display: block; height: 100%; width: 20%; background: var(--ink); transition: width .2s; }
.row { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px 32px; padding: 0 var(--m); }
.row::-webkit-scrollbar { display: none; }
.row li { min-width: 0; }
.row h3 { font-size: var(--step-lead); font-weight: 400; margin-bottom: 12px; }
.row p { color: var(--muted); font-size: 1rem; }
.gap.g1 { height: 80px; } .gap.g2 { height: 140px; } .gap.g3 { height: 100px; }
.row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.act-row { margin: 32px var(--m) 0; }

/* 5 steps */
.steps { position: relative; margin-top: var(--gap); }
.steps-stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.steps-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.steps-list { position: relative; list-style: none; padding: 32px 40px; background: var(--bg); text-align: center; display: grid; gap: 10px; font-size: var(--step-lead); }
.steps-list li { color: var(--muted); transition: color .3s; }
.steps-list li.on { color: var(--ink); }
.steps-list li:first-child { font-size: var(--step-head); color: var(--ink); margin-bottom: 8px; line-height: 1.05; }
.steps-markers { display: grid; }
.steps-markers i { display: block; height: 42vh; }

/* 6 reach (live) */
.reach { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: var(--gap) var(--m) 0; align-items: center; }
.reach-copy { grid-column: 1 / 6; }
.reach-copy > p { color: var(--muted); max-width: 40ch; }
.lengths { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 20px; }
.lengths button { min-height: 52px; padding: 0 18px; background: var(--surface); transition: background .2s, color .2s; }
.lengths button:hover { color: var(--accent); }
.lengths button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.reach-out { font-size: var(--step-lead); }
.bust { grid-column: 7 / 13; width: 100%; max-height: 80svh; }
.bust .skin { fill: var(--surface); }
.bust .clav { fill: none; stroke: #2c2620; stroke-width: 3; stroke-linecap: round; }
.bust .chain { fill: none; stroke: var(--accent); stroke-width: 3; transition: d .5s var(--ease); }
.bust .pend { fill: var(--accent); transition: cy .5s var(--ease); }

/* 7 craft */
.craft { position: relative; margin-top: var(--gap); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 0 var(--m); }
.craft-title { grid-column: 1 / 6; grid-row: 1 / span 2; position: sticky; top: 14vh; align-self: start; }
.craft-title h2 { font-size: var(--step-display); letter-spacing: -0.03em; margin-bottom: 32px; }
.craft-title p { max-width: 34ch; }
.plate { grid-column: 7 / 12; width: auto; margin: 0 0 12vh; }
.plate figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); max-width: 32ch; }
.p1 { grid-column: 7 / 10; grid-row: 1; }
.p3 { grid-column: 10 / 13; grid-row: 1; margin-top: 18vh; }
.p2 { grid-column: 7 / 13; grid-row: 2; margin-bottom: 0; }

/* 8 faq */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: var(--gap) var(--m) 0; align-items: start; }
.faq-text { grid-column: 1 / 6; }
.facts { list-style: none; padding: 0; margin-bottom: 36px; display: grid; gap: 6px; }
details { margin-bottom: 26px; }
summary { cursor: pointer; font-size: var(--step-lead); list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
summary::after { content: ''; flex: none; width: 10px; height: 10px; margin: 10px 6px 0 0; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(225deg); margin-top: 16px; }
summary::-webkit-details-marker { display: none; }
details p { color: var(--muted); margin-top: 8px; max-width: 46ch; }
.faq .act { margin-top: 12px; }
.faq-pic { grid-column: 7 / 13; }
.faq-pic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* 9 visit */
.visit { position: relative; margin-top: var(--gap); min-height: 72svh; }
.visit-field { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.visit-card { position: absolute; top: 112px; right: var(--m); width: min(400px, calc(100% - 2 * var(--m))); background: #e6e3dd; color: var(--bg); padding: 32px 32px 0; display: grid; gap: 8px; }
.visit-card h2 { font-size: var(--step-lead); margin-bottom: 12px; }
.visit-card .act { margin: 20px -32px 0; width: calc(100% + 64px); background: var(--bg); color: var(--ink); }

/* 10 footer */
.foot { scroll-margin-top: 72px; min-height: 100svh; display: grid; grid-template-rows: auto minmax(12svh, 1fr) auto auto; background: #e6e3dd; color: var(--bg); padding: 96px var(--m) 24px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 1rem; }
.foot-cols div { display: grid; gap: 4px; align-content: start; }
.foot-cols p { font-weight: 500; }
.foot-cols a, .foot-cols span { color: #4a433b; text-decoration: none; }
.foot-name { grid-row: 3; width: min(100%, 1100px); height: auto; justify-self: center; }
.legal { grid-row: 4; font-size: var(--step-small); color: #4a433b; margin-top: 16px; }

/* entrances */
.reveal, .plate, .row li, .cats-list li, .piece-card, .visit-card { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.in { opacity: 1 !important; transform: none !important; }
.no-js .reveal, .no-js .plate, .no-js .row li, .no-js .cats-list li, .no-js .piece-card, .no-js .visit-card { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .hero { background: url(/hero-poster.jpg) center / cover; }
  .mask > span > span { animation: none; transform: none; }
  .reveal, .plate, .row li, .cats-list li, .piece-card, .visit-card { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

@media (max-width: 1100px) { .foot { min-height: 0; } }

@media (max-width: 760px) {
  .bar nav { display: none; }
  .bag { margin-left: auto; }
  .temp { top: 70px; left: var(--m); right: auto; text-align: left; font-size: 0.8125rem; }
  .gap.g1, .gap.g2, .gap.g3 { height: 12px; }
  .row img { margin-top: 12px; }
  .steps-list { margin: 0 var(--m); padding: 24px; }
  .steps-markers i { height: 34vh; }
  .hero-emblem { margin-top: 16vh; }
  .hero h1 { font-size: 8.4vw; }
  .hero-emblem { width: 34vw; }
  .doors { grid-template-columns: 1fr; }
  .door { padding: 20px var(--m); }
  .door-name { font-size: 1.75rem; }
  .cats, .reach, .faq { grid-template-columns: 1fr; }
  .cats-pic { grid-column: 1; position: sticky; top: 64px; z-index: 2; background: var(--bg); padding-bottom: 12px; }
  .cats-pic img { aspect-ratio: 4 / 3; max-height: 34svh; }
  .cats-list, .reach-copy, .bust, .faq-text, .faq-pic { grid-column: 1; }
  .piece { grid-template-columns: 1fr; align-items: end; }
  .piece-card { grid-column: 1; margin: 46svh 0 0; }
  .moments-ctrl { display: none; }
  .bust { margin-top: 32px; }
  .craft { grid-template-columns: 1fr; }
  .craft-title { grid-column: 1; grid-row: auto; position: static; margin-bottom: 40px; }
  .plate, .p1, .p2, .p3 { grid-column: 1; grid-row: auto; width: 78%; margin: 0 0 56px; }
  .p2 { justify-self: end; }
  .faq-pic { order: -1; margin-bottom: 40px; }
  .visit { min-height: auto; padding-bottom: 0; }
  .visit-field { position: relative; height: 60svh; }
  .visit-card { position: relative; top: auto; right: auto; margin: -80px var(--m) 0; width: auto; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
}

[hidden] { display: none !important; }
.temp { display: none; }

/* catálogo */
.catalog { padding: var(--gap) var(--m) 0; scroll-margin-top: 72px; }
.catalog-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.catalog-head h2 { font-size: var(--step-head); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.chip { flex: none; min-height: 44px; padding: 0 18px; background: var(--surface); color: var(--muted); font-size: 1rem; transition: background .2s, color .2s; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 24px; }
.card { display: flex; flex-direction: column; gap: 6px; }
.card-link { display: block; text-align: left; }
.card .img, .pd .img, .line .img { aspect-ratio: 4/5; background: var(--surface); overflow: hidden; display: grid; place-items: center; }
.card .img img, .pd .img img, .line .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-link:hover .img img { transform: scale(1.03); }
.ph-mark { width: 46% !important; height: auto !important; opacity: .55; }
.card h3 { font-size: var(--step-lead); font-weight: 300; margin-top: 12px; line-height: 1.15; }
.meta { color: var(--muted); font-size: 1rem; }
.price { font-size: 1.125rem; }
.add { margin-top: 8px; min-height: 48px; background: var(--surface); color: var(--ink); font-size: 1rem; transition: background .2s, color .2s; }
.add:hover { background: var(--accent); color: var(--accent-ink); }
.add[disabled] { opacity: .45; cursor: not-allowed; background: var(--surface); color: var(--muted); }
.empty { color: var(--muted); }

/* pieza destacada */
.duo { display: block; width: 100%; aspect-ratio: 4 / 3; margin: 8px 0; background: #d5d1ca; overflow: hidden; cursor: zoom-in; }
.duo span { display: grid; place-items: center; width: 100%; height: 100%; }
.duo img { width: 100%; height: 100%; object-fit: cover; }
.duo .ph-mark { filter: brightness(.35); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); z-index: 9; transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }

/* diálogos: carrito y ficha */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--bg); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(460px, 100vw); padding: 24px 24px 32px; overflow-y: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer-head h2 { font-size: 2rem; }
.x { width: 44px; height: 44px; font-size: 30px; line-height: 1; color: var(--muted); }
.x:hover { color: var(--ink); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; }
.line + .line { border-top: 1px solid #2e2925; }
.line .img { width: 64px; }
.line p { font-size: 1rem; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 34px; height: 34px; background: var(--surface); }
.qty button:hover { color: var(--accent); }
.qty button[disabled] { opacity: .4; cursor: not-allowed; }
.totals { margin: 20px 0; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: var(--step-lead); padding-top: 10px; margin-top: 4px; border-top: 1px solid #2e2925; }
.checkout { display: grid; gap: 14px; margin-top: 8px; }
.checkout h3 { font-size: var(--step-lead); }
.checkout label { display: grid; gap: 6px; font-size: 1rem; color: var(--muted); }
.checkout input, .checkout textarea { min-height: 48px; padding: 10px 12px; border: 1px solid #2e2925; background: var(--surface); color: var(--ink); font: inherit; }
.checkout input:focus, .checkout textarea:focus { border-color: var(--accent); outline: none; }
.checkout .check { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; color: var(--ink); font-size: .95rem; }
.checkout .check input { min-height: 0; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); }
.form-error { color: #f0a7a0; min-height: 1em; font-size: 1rem; }
.product-dlg { width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 24px; position: relative; }
.product-dlg > .x { position: absolute; right: 10px; top: 10px; z-index: 1; }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pd h2 { font-size: var(--step-head); margin: 6px 0 12px; }
.pd .desc { white-space: pre-line; color: var(--muted); margin: 16px 0 24px; }
.pd .act { width: 100%; margin-bottom: 16px; }
.pd .act[disabled] { opacity: .45; cursor: not-allowed; }
.act { border: 0; cursor: pointer; }

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
  .card h3 { font-size: 1.125rem; }
  .pd { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
}
