:root {
  --bone: #f3f1ec;      /* suelo: hueso, poco croma */
  --sand: #bab0a0;      /* beige del logo: pie y aviso */
  --sand-2: #e6e1d8;    /* fondo de las fichas */
  --ink: #26221e;
  --muted: #5e564d;
  --white: #ffffff;
  --m: clamp(16px, 2.6vw, 40px);
  --gap: clamp(96px, 11vw, 168px);
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --film: saturate(0.82) sepia(0.12) contrast(0.96) brightness(1.02);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--sand) var(--bone); }
body { margin: 0; background: var(--bone); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3.25rem); }
p { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--sand); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph { opacity: 0.7; }
.film { filter: var(--film); }

/* Botón píldora (una sola forma en toda la página) */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--ink); color: var(--bone); font: 500 0.9375rem/1 var(--sans); letter-spacing: 0.02em;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.pill:active { transform: scale(0.97); }
.pill-light { background: var(--white); color: var(--ink); }
.pill-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .pill:hover { background: #3c362f; }
  .pill-light:hover { background: var(--bone); }
  .pill-ghost:hover { background: var(--ink); color: var(--bone); }
}

/* Aviso + barra con logo centrado */
.announce { background: var(--sand); color: var(--ink); text-align: center; font-size: 0.8125rem; letter-spacing: 0.06em; padding: 9px var(--m); position: relative; z-index: 31; }
.bar {
  position: fixed; top: 37px; left: 0; right: 0; z-index: 30; height: 88px; padding: 0 var(--m);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--white); transition: background-color 300ms ease, color 300ms ease, top 300ms var(--ease-out), height 300ms var(--ease-out);
}
.bar.solid { top: 0; height: 68px; background: var(--bone); color: var(--ink); }
.bar-left, .bar-right { display: flex; gap: 28px; align-items: center; font-size: 0.875rem; letter-spacing: 0.04em; }
.bar-right { justify-content: flex-end; }
.bar a, .bar button { text-decoration: none; color: inherit; background: none; border: 0; font: inherit; cursor: pointer; padding: 10px 0; position: relative; }
.bar a::after, .bar button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 350ms var(--ease-out); }
@media (hover: hover) { .bar a:hover::after, .bar button:hover::after { transform: scaleX(1); transform-origin: left; } }
.bar-logo { width: 74px; height: 64px; background: currentColor !important; padding: 0 !important; transition: width 300ms var(--ease-out), height 300ms var(--ease-out);
  -webkit-mask: url(../assets/img/hk-full.png) center / contain no-repeat; mask: url(../assets/img/hk-full.png) center / contain no-repeat; }
.bar.solid .bar-logo { width: 54px; height: 46px; }
.bar-logo::after { display: none; }

/* Portada: fundido entre tres fotos con tono de carrete */
.hero { position: relative; height: calc(100svh - 37px); min-height: 600px; overflow: hidden; background: #2b2520; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1400ms ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; filter: var(--film); transform: scale(1.06); transition: transform 7000ms linear; }
.slide.is-on img { transform: scale(1); }
.slide:nth-child(2) img { object-position: 50% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20, 16, 12, 0.35), rgba(20, 16, 12, 0.05) 30%, rgba(20, 16, 12, 0.05) 60%, rgba(20, 16, 12, 0.35)); pointer-events: none; }
.hero-text { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; justify-items: center; gap: 28px; text-align: center; color: var(--white); padding: 0 var(--m); }
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 4vw, 5.5rem); font-weight: 400; letter-spacing: 0.01em; }
.dots { position: absolute; z-index: 2; bottom: 28px; left: 50%; translate: -50% 0; display: flex; gap: 4px; }
.dots button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); transition: background-color 200ms ease, transform 300ms var(--ease-out); }
.dots button[aria-pressed="true"]::before { background: var(--white); transform: scale(1.3); }

/* Frase de marca */
.statement { padding: var(--gap) var(--m); display: grid; place-items: center; }
.statement p { max-width: 34ch; text-align: center; font: 400 clamp(1.375rem, 1.1rem + 1vw, 2rem)/1.35 var(--serif); }

/* Tríptico */
.tri { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); height: 78svh; min-height: 460px; overflow: hidden; }
.tri img { width: 100%; height: 100%; object-fit: cover; filter: var(--film) grayscale(0.35); }
.tri::after { content: ""; position: absolute; inset: 0; background: rgba(28, 22, 18, 0.32); }
.tri-text { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; text-align: center; color: var(--white); gap: 10px; }
.tri-text h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 4.5rem); }
.tri-text p { font-size: 0.9375rem; letter-spacing: 0.06em; }

/* Tienda */
.shop { padding: var(--gap) var(--m) 0; }
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; background: var(--sand-2); color: var(--ink); font: 500 0.875rem/1 var(--sans); transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.tabs button:active { transform: scale(0.97); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bone); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 14px; }
.card { display: grid; gap: 10px; }
.card[hidden] { display: none; }
.card-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand-2); border: 0; padding: 0; cursor: pointer; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--film); transition: opacity 500ms ease, transform 900ms var(--ease-out); }
.card-media img + img { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .card-media:hover img + img { opacity: 1; }
  .card-media:hover img { transform: scale(1.03); }
}
.card-quick { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; min-height: 40px; display: grid; place-items: center; border-radius: 999px; background: rgba(243, 241, 236, 0.94); font: 500 0.8125rem/1 var(--sans); color: var(--ink); opacity: 0; transform: translateY(8px); transition: opacity 250ms ease, transform 350ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card-media:hover .card-quick, .card-media:focus-visible .card-quick { opacity: 1; transform: none; } }
.swatches { display: flex; gap: 8px; }
.sw { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.card-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card-name { font: 400 1.375rem/1.1 var(--serif); }
.card-sub { color: var(--muted); font-size: 0.875rem; }
.card-price { font-variant-numeric: tabular-nums; }

/* Destacado */
.spot { margin-top: var(--gap); padding: 0 var(--m); display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.spot-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: 88svh; width: 100%; background: var(--sand-2); }
.spot-track { display: flex; height: 100%; transition: transform 600ms var(--ease-out); }
.spot-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; filter: var(--film); }
.arrow { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(243, 241, 236, 0.9); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform 160ms var(--ease-out); }
.arrow svg { width: 22px; height: 22px; }
.arrow:active { transform: scale(0.94); }
.prev { left: 14px; } .next { right: 14px; }
.spot-count { position: absolute; right: 16px; bottom: 14px; color: var(--white); font-size: 0.8125rem; letter-spacing: 0.06em; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.spot-info { display: grid; gap: 18px; justify-items: start; max-width: 460px; }
.spot-info h2 { font-size: clamp(3rem, 2rem + 3vw, 5rem); }
.spot-price { font: 400 1.5rem/1 var(--serif); }
.spot-list { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.spot-list li::marker { color: var(--sand); }
.sizes { border: 0; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.sizes legend { font-size: 0.875rem; color: var(--muted); margin-bottom: 10px; }
.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: 52px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--sand-2); font-weight: 500; font-size: 0.875rem; transition: background-color 150ms ease, color 150ms ease; }
.sizes input:checked + span { background: var(--ink); color: var(--bone); }
.sizes input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.added { min-height: 1.5em; font-size: 0.875rem; color: var(--muted); }

/* Cómo lo hacemos */
.how { margin-top: var(--gap); padding: 0 var(--m); }
.how > h2 { text-align: center; margin-bottom: 64px; }
.how-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; background: var(--sand-2); }
.how-row + .how-row { margin-top: 14px; }
.how-row img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; filter: var(--film); }
.how-row > div { padding: 40px; display: grid; gap: 14px; max-width: 46ch; }
.how-row h3 { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem); }
.how-r img { order: 2; }

/* Comunidad: tira de fotos que corre sola */
.onyou { margin-top: var(--gap); }
.onyou-head { padding: 0 var(--m); display: grid; justify-items: center; text-align: center; gap: 14px; margin-bottom: 40px; }
.strip { overflow: hidden; }
.strip-track { display: flex; gap: 10px; width: max-content; animation: run 50s linear infinite; }
.strip-track img { height: clamp(220px, 28vw, 380px); width: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: var(--film); }
@keyframes run { to { transform: translateX(-50%); } }
.strip:hover .strip-track { animation-play-state: paused; }

/* Pie arena */
.foot { margin-top: var(--gap); background: var(--sand); color: var(--ink); padding: 72px var(--m) 28px; }
.foot-logo { width: 96px; height: 82px; background: var(--white); margin-bottom: 48px;
  -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; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 32px; }
.foot-cols h2 { font-size: 1.375rem; margin-bottom: 12px; }
.foot-cols > div { display: grid; gap: 8px; align-content: start; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }
.foot-faq p { max-width: 52ch; }
.foot-legal { margin-top: 56px; font-size: 0.8125rem; }

/* Ficha de producto: miniaturas en columna a la izquierda */
.pdp { width: min(1100px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; background: var(--bone); color: var(--ink); box-shadow: 0 30px 80px rgba(20, 16, 12, 0.3); overflow: auto; }
.pdp::backdrop { background: rgba(38, 34, 30, 0.45); }
.pdp[open] { animation: pop 300ms var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
.pdp-grid { display: grid; grid-template-columns: 72px 1fr 1fr; gap: 12px; padding: 12px; }
.pdp-rail { display: grid; gap: 8px; align-content: start; }
.pdp-rail button { border: 0; padding: 0; cursor: pointer; aspect-ratio: 4 / 5; background: none; outline-offset: 2px; opacity: 0.6; transition: opacity 150ms ease; }
.pdp-rail button[aria-pressed="true"] { opacity: 1; outline: 1.5px solid var(--ink); }
.pdp-rail img { width: 100%; height: 100%; object-fit: cover; }
.pdp-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: var(--film); }
.pdp-info { padding: 28px 20px; display: grid; gap: 16px; align-content: start; justify-items: start; }
.pdp-info h2 { font-size: 3rem; }
.pdp-sub { color: var(--muted); }
.pdp-close { position: absolute; top: 14px; right: 14px; z-index: 2; }

/* Bolsa */
.drawer { margin: 0 0 0 auto; height: 100svh; max-height: none; width: min(440px, 100vw); border: 0; padding: 28px; background: var(--bone); color: var(--ink); }
.drawer::backdrop { background: rgba(38, 34, 30, 0.45); }
.drawer[open] { animation: slide 340ms 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.25rem; }
.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: 400 1.25rem/1.2 var(--serif); }
.drawer-list li > div span { color: var(--muted); font-size: 0.875rem; }
.drawer-list li button { grid-column: 2; justify-self: start; font-size: 0.875rem; }
.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: 400 1.5rem/1 var(--serif); }
.drawer-checkout { display: grid; place-items: center; min-height: 52px; border-radius: 999px; background: var(--ink); color: var(--bone); text-decoration: none; font-weight: 500; }
.drawer-foot small { color: var(--muted); }

@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .announce { font-size: 0.75rem; }
  .bar { height: 64px; top: 33px; grid-template-columns: auto 1fr auto; }
  .bar.solid { height: 58px; }
  .bar-left a:not(:first-child), .bar-right a { display: none; }
  .bar-logo { width: 56px; height: 48px; justify-self: center; }
  .hero { height: calc(100svh - 33px); }
  .tri { grid-template-columns: 1fr 1fr; height: 60svh; }
  .tri img:nth-child(3) { display: none; }
  .spot { grid-template-columns: 1fr; }
  .how-row, .how-r { grid-template-columns: 1fr; }
  .how-r img { order: 0; }
  .how-row > div { padding: 24px 20px 32px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-faq { grid-column: 1 / -1; }
  .pdp { width: 100vw; max-height: 100svh; margin: auto 0 0; }
  .pdp-grid { grid-template-columns: 1fr; padding: 0; }
  .pdp-rail { grid-auto-flow: column; grid-auto-columns: 56px; order: 2; padding: 0 12px; }
  .pdp-info { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide img, .spot-track { transition: none; }
  .strip-track { animation: none; }
  .pdp[open], .drawer[open] { animation: none; }
}
