:root {
  /* Paleta del logo beige: el beige del fondo y el blanco del monograma */
  --beige: #bab0a0;
  --beige-2: #a59a88;
  --paper: #f4f4f2;
  --white: #ffffff;
  --ink: #2c2721;      /* tinta cálida que contrasta con el beige */
  --muted: #5c5349;
  --m: clamp(16px, 2.4vw, 36px);
  --gap: clamp(120px, 14vw, 200px);
  --serif: "Cormorant", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-body)/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 0.95; margin: 0; }
h2 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.75rem); }
p { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--beige); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 0; cursor: pointer;
  font: 500 0.9375rem/1 var(--sans); letter-spacing: 0.02em; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-paper { background: var(--paper); color: var(--ink); width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--white); color: var(--ink); }
  .btn-paper:hover { background: var(--beige); }
}

/* Hero: foto a sangre, logo pequeño arriba, título ligero abajo */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: var(--white); }
.hero picture, .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, rgba(30, 24, 18, 0.45)); pointer-events: none; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto 0; height: 200px; background: linear-gradient(rgba(30, 24, 18, 0.35), transparent); pointer-events: none; }
.hero-top { position: absolute; z-index: 2; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 28px var(--m); }
.hero-logo { display: block; width: 92px; height: 78px; background: var(--white);
  -webkit-mask: url(../assets/img/hk-full.png) left center / contain no-repeat; mask: url(../assets/img/hk-full.png) left center / contain no-repeat; }
.hero-top nav { display: flex; gap: 32px; font-size: 0.875rem; letter-spacing: 0.04em; }
.hero-top nav a, .hero-link { text-decoration: none; position: relative; }
.hero-top nav a::after, .hero-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 400ms var(--ease-out); }
.hero-top nav a:hover::after, .hero-link:hover::after { transform: scaleX(1); transform-origin: left; }
.hero-bottom { position: absolute; z-index: 2; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 0 var(--m) 40px; }
.hero h1 { font-weight: 500; font-size: clamp(3.25rem, 1.5rem + 6.5vw, 8.5rem); line-height: 0.9; letter-spacing: -0.03em; }
.hero-side { display: grid; gap: 20px; justify-items: end; text-align: right; padding-bottom: 10px; }
.hero-side p { font-size: 0.9375rem; line-height: 1.6; }
.hero-link { font: 500 0.9375rem/1 var(--sans); letter-spacing: 0.04em; padding-bottom: 4px; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5); }

/* Dos modelos como doble página de revista */
.spreads { padding: var(--gap) var(--m) 0; }
.spreads-h { margin-bottom: 72px; }
.spread { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 112px); align-items: end; }
.spread + .spread { margin-top: var(--gap); }
.spread-r { grid-template-columns: 5fr 7fr; }
.spread-r .spread-photo { order: 2; }
.spread-photo { margin: 0; overflow: hidden; }
.spread-photo img { width: 100%; aspect-ratio: 4 / 5; max-height: 86svh; object-fit: cover; transition: transform 1200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .spread:hover .spread-photo img { transform: scale(1.03); } }
.spread-text { display: grid; grid-template-columns: 1fr 120px; column-gap: 24px; row-gap: 14px; align-content: end; max-width: 460px; }
.spread-text > * { grid-column: 1; }
.spread-text h3 { font-size: clamp(3.5rem, 2rem + 4vw, 6rem); line-height: 0.9; letter-spacing: -0.03em; }
.spread-kind { font-family: var(--serif); font-size: var(--step-lead); font-style: italic; color: var(--muted); }
.spread-text > p:not([class]) { max-width: 38ch; }
.spread-flat { grid-column: 2; grid-row: 1 / span 3; align-self: start; width: 120px; aspect-ratio: 3 / 4; object-fit: cover; }
.spread-price { font-family: var(--serif); font-size: 1.75rem; margin-top: 8px; }

.sizes { border: 0; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.sizes legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sizes label:first-of-type span { margin-left: -12px; }
.sizes label { position: relative; }
.sizes input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sizes span { display: grid; place-items: center; min-width: 44px; height: 44px; font-weight: 500; font-size: 0.9375rem; color: var(--muted); position: relative; transition: color 150ms ease; }
.sizes span::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 1.5px; background: var(--ink); transform: scaleX(0); transition: transform 300ms var(--ease-out); }
.sizes input:checked + span { color: var(--ink); }
.sizes input:checked + span::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .sizes label:hover span { color: var(--ink); } }
.sizes input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -2px; }

/* Acción: texto con línea que se rellena, sin caja */
.add {
  justify-self: start; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--ink); text-decoration: none;
  font: 500 0.9375rem/1 var(--sans); letter-spacing: 0.04em; position: relative;
  transition: transform 160ms var(--ease-out);
}
.add::before { content: ""; width: 32px; height: 1.5px; background: currentColor; transition: width 400ms var(--ease-out); }
.add:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .add:hover::before { width: 56px; } }
.add-light { color: var(--white); }
.added { min-height: 1.6em; font-size: var(--step-small); color: var(--muted); }

/* Lista con foto fija */
.list { display: grid; grid-template-columns: 5fr 1fr 6fr; padding: var(--gap) var(--m) 0; }
.list-photo { position: sticky; top: 10vh; align-self: start; overflow: hidden; }
.list-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.list-body { grid-column: 3; }
.list-body h2 { margin-bottom: 56px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row-btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0;
}
.row-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.row-name { font-family: var(--serif); font-size: clamp(2rem, 1.3rem + 2vw, 3.25rem); line-height: 1; color: #8c8173; transition: color 300ms ease, transform 500ms var(--ease-out); display: inline-block; }
.row-price { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.row.is-active .row-name { color: var(--ink); transform: translateX(12px); }
@media (hover: hover) and (pointer: fine) { .row-btn:hover .row-name { color: var(--ink); } }
.row-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 400ms var(--ease-out); }
.row-more > div { overflow: hidden; padding-left: 12px; }
.row.is-active .row-more { grid-template-rows: 1fr; }
.row:not(.is-active) .row-more > div { visibility: hidden; }
.row-more form { display: grid; gap: 10px; padding: 4px 0 24px; }
.row-more p { max-width: 44ch; color: var(--muted); }

/* Secuencia a pantalla completa (cortina) */
.seq { margin-top: var(--gap); }
.seq-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 0 var(--m) 64px; align-items: end; }
.seq-intro p { max-width: 46ch; font-size: var(--step-lead); font-family: var(--serif); line-height: 1.3; }
.seq-track { position: relative; }
.seq-frame { position: sticky; top: 0; margin: 0; height: 100svh; overflow: hidden; }
.seq-frame img { width: 100%; height: 100%; object-fit: cover; }
.seq-frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px var(--m) 28px; color: var(--white); font-size: 0.9375rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

/* Preguntas como texto corrido */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; padding: var(--gap) var(--m) 0; }
.faq h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); max-width: 9ch; }
.faq-text { columns: 2; column-gap: 56px; }
.faq-text p { break-inside: avoid; margin-bottom: 20px; }
.faq-text strong { font-weight: 600; }

/* Cierre: el monograma en blanco sobre el beige del logo */
.closing { margin-top: 120px; background: var(--beige); color: var(--white); padding: 88px var(--m) 104px; display: grid; justify-items: center; text-align: center; gap: 20px; }
.closing-mark { width: clamp(140px, 18vw, 240px); aspect-ratio: 1.05; background: var(--white); margin-bottom: 24px;
  -webkit-mask: url(../assets/img/hk-mark.png) center / contain no-repeat; mask: url(../assets/img/hk-mark.png) center / contain no-repeat; }
.closing h2 { color: var(--ink); }
.closing p { color: var(--ink); max-width: 36ch; }
.closing .add { color: var(--ink); justify-self: center; }

.foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; padding: 40px var(--m) 32px; background: var(--beige); font-size: 0.9375rem; color: var(--ink); }
.foot nav { display: flex; gap: 24px; }
.foot nav a { color: var(--ink); }
.foot > span:last-child { justify-self: end; }

/* Botón de la bolsa: aparece al dejar atrás la portada */
.stub {
  position: fixed; right: var(--m); top: 24px; z-index: 20; display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--paper); font: 500 0.875rem/1 var(--sans); letter-spacing: 0.04em;
  transition: transform 160ms var(--ease-out);
}
.stub:active { transform: scale(0.97); }
.stub-mark { width: 26px; height: 26px; background: var(--paper); -webkit-mask: url(../assets/img/hk-mark.png) center / contain no-repeat; mask: url(../assets/img/hk-mark.png) center / contain no-repeat; }

/* Cajón */
.drawer { margin: 0 0 0 auto; height: 100svh; max-height: none; width: min(440px, 100vw); border: 0; padding: 32px; background: var(--paper); color: var(--ink); }
.drawer::backdrop { background: rgba(44, 39, 33, 0.5); }
.drawer[open] { animation: slide 320ms var(--ease-out); }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.drawer-head h2 { font-size: 2.75rem; }
.drawer button { font: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; color: inherit; }
.drawer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.drawer-list li { display: grid; grid-template-columns: 72px 1fr auto; gap: 4px 14px; }
.drawer-list li > div { display: grid; }
.drawer-list strong { font-family: var(--serif); font-size: 1.375rem; }
.drawer-list li > div span { color: var(--muted); font-size: var(--step-small); }
.drawer-list li button { grid-column: 2; justify-self: start; font-size: var(--step-small); }
.drawer-list img { grid-row: span 2; width: 72px; height: 90px; object-fit: cover; }
.drawer-foot { margin-top: 32px; display: grid; gap: 14px; }
.drawer-foot p { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.625rem; }
.drawer-checkout { display: grid; place-items: center; min-height: 56px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; }
.drawer-foot small { color: var(--muted); }

@media (max-width: 860px) {
  .hero-logo { width: 70px; height: 60px; }
  .hero-top nav a:first-child { display: none; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 96px; }
  .hero h1 { font-size: 15vw; }
  .hero-side { justify-items: start; text-align: left; }
  .stub { top: auto; bottom: 16px; right: 16px; padding: 0 14px 0 10px; }
  .spreads-h { margin-bottom: 40px; }
  .spread, .spread-r { grid-template-columns: 1fr; gap: 28px; }
  .spread-r .spread-photo { order: 0; }
  .spread-photo { margin: 0 calc(var(--m) * -1); }
  .spread-text { grid-template-columns: 1fr 96px; }
  .spread-flat { width: 96px; }
  .closing { padding: 88px var(--m); }
  .list { grid-template-columns: 1fr; padding-top: 96px; }
  .list-photo { position: static; margin: 0 calc(var(--m) * -1) 24px; }
  .list-photo img { aspect-ratio: 4 / 3; height: 38svh; }
  .list-body { grid-column: 1; padding-top: 24px; }
  .seq-intro, .faq { grid-template-columns: 1fr; }
  .seq-frame { height: 88svh; }
  .faq-text { columns: 1; }
  .foot { grid-template-columns: 1fr; padding: 40px var(--m) 96px; }
  .foot > span:last-child { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer[open] { animation: none; }
}
