/* Studio Lúa · direction "Eclipse" */
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f6f3;
  --mist: #eceeef;
  --silver: #d6d9dd;
  --moonstone: #7d8896;
  --mute: #566070;
  --midnight: #1b1f2b;
  --night-2: #262b39;
  --on-night: #f6f6f3;
  --on-night-mute: #aeb6c2;
  --error: #9a2a2a;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --max: 1320px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: cubic-bezier(.65, 0, .25, 1);
  --header-h: 60px;
}
@media (min-width: 900px) { :root { --gutter: 44px; --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--midnight); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.01em; font-optical-sizing: auto; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--midnight); outline-offset: 3px; }
.on-night :focus-visible, .site-footer :focus-visible { outline-color: var(--on-night); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--midnight); color: var(--paper); padding: 10px 16px; }
.skip:focus { top: 12px; }
.muted { color: var(--mute); }
.ex { font: italic 400 .8125rem/1.3 var(--serif); color: var(--mute); white-space: nowrap; }
.ph { background: #e6e8ec; padding: 0 .3em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--midnight); font: 500 .9375rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.btn-primary { background: var(--midnight); color: var(--paper); }
.btn-primary:hover { background: var(--night-2); }
.btn-ghost { background: transparent; color: var(--midnight); }
.btn-ghost:hover { background: var(--midnight); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--midnight); border-color: var(--paper); }
.btn-light:hover { background: transparent; color: var(--paper); }
.btn-block { width: 100%; }
.btn:active { transform: scale(.98); }
.link { background: none; border: 0; padding: 0; min-height: 44px; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; cursor: pointer; color: var(--midnight); font-size: .9375rem; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--silver); }
.site-header .wrap { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: var(--header-h); }
.brand { justify-self: center; font: 400 1.375rem/1 var(--serif); text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.brand em { font-style: italic; }
.nav { display: none; }
.menu-btn { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before { position: absolute; left: 10px; width: 24px; height: 1.5px; background: var(--midnight); transition: transform .3s var(--ease); }
.menu-btn span { top: 18px; }
.menu-btn span::before { content: ""; left: 0; top: 7px; }
.menu-btn[aria-expanded="true"] span { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(-7px) rotate(-90deg); }
.bag-link { justify-self: end; position: relative; display: grid; place-items: center; width: 44px; height: 44px; text-decoration: none; }
.bag-link svg { width: 24px; height: 24px; }
.bag-count { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--midnight); color: var(--paper); font: 600 .75rem/19px var(--sans); text-align: center; transform: scale(0); transition: transform .35s var(--ease); }
.bag-count.has { transform: scale(1); }
.bag-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.mobile-nav { position: fixed; inset: var(--header-h) 0 auto 0; z-index: 39; background: var(--paper); border-bottom: 1px solid var(--silver); display: none; flex-direction: column; padding: 8px var(--gutter) 24px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font: 400 1.75rem/1.2 var(--serif); padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--silver); }
.mobile-nav a[aria-current="page"] { font-style: italic; }
@media (min-width: 900px) {
  .site-header .wrap { grid-template-columns: 1fr auto 1fr; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
  .brand { grid-column: 2; grid-row: 1; font-size: 1.625rem; }
  .nav { grid-column: 1; grid-row: 1; display: flex; gap: 28px; }
  .nav a { font-size: .9375rem; text-decoration: none; padding: 10px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
  .nav a:hover, .nav a[aria-current="page"] { background-size: 100% 1px; }
  .bag-link { grid-column: 3; grid-row: 1; }
}

/* ---------- hero (cover) ---------- */
.cover { position: relative; padding: 18px 0 56px; overflow: hidden; }
.cover .wrap { display: grid; }
.cover-issue { font: italic 400 1rem/1.3 var(--serif); color: var(--mute); margin: 0 0 4px; }
.mast { font: 400 clamp(7.5rem, 44vw, 24rem)/.8 var(--serif); letter-spacing: -.035em; margin: 0 0 0 -.04em; position: relative; z-index: 2; pointer-events: none; font-variation-settings: "opsz" 96; }
.moon { position: relative; z-index: 1; width: min(88vw, 560px); aspect-ratio: 1; border-radius: 50%; margin: -10vw 0 0 auto; overflow: hidden; background: var(--mist); box-shadow: 0 0 0 1px var(--silver); }
.moon img { width: 100%; height: 100%; object-fit: cover; }
.moon-shade { position: absolute; inset: -1px; border-radius: 50%; background: var(--paper); transform: translateX(110%); }
.cover-lines { position: relative; z-index: 2; margin-top: 28px; display: grid; gap: 22px; }
.cover-lead { font: 400 clamp(1.5rem, 5.6vw, 2.25rem)/1.15 var(--serif); margin: 0; max-width: 18ch; }
.cover-lead em { font-style: italic; }
.cover-sub { max-width: 36ch; color: var(--mute); margin: 0; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cover-caption { font-size: .8125rem; color: var(--mute); margin: 14px 0 0; text-align: right; }
@media (min-width: 900px) {
  .cover { padding: 28px 0 88px; }
  .cover .wrap { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; column-gap: 48px; }
  .cover-issue { grid-column: 1 / -1; }
  .mast { grid-column: 1 / -1; grid-row: 2; font-size: clamp(12rem, 29vw, 27rem); }
  .moon { grid-column: 2; grid-row: 2 / span 2; width: min(40vw, 580px); margin: 9vw 0 0 auto; }
  .cover-lines { grid-column: 1; grid-row: 3; align-self: end; margin-top: 40px; }
  .cover-caption { grid-column: 2; }
}
/* the eclipse: a paper disc slides off the photo, so the moon waxes from a crescent to full */
@media (prefers-reduced-motion: no-preference) {
  .js .moon-shade { transform: translateX(0); animation: wax 2.4s var(--slow) .35s forwards; }
  .js .moon img { transform: scale(1.12); animation: settle 3.2s var(--ease) .35s forwards; }
  .js .cover-issue, .js .cover-lines > * { opacity: 0; transform: translateY(14px); animation: up .9s var(--ease) forwards; }
  .js .cover-issue { animation-delay: .1s; }
  .js .cover-lines > :nth-child(1) { animation-delay: 1.2s; }
  .js .cover-lines > :nth-child(2) { animation-delay: 1.35s; }
  .js .cover-lines > :nth-child(3) { animation-delay: 1.5s; }
  .js .mast { clip-path: inset(0 0 100% 0); animation: mast 1.2s var(--slow) .15s forwards; }
}
@keyframes wax { to { transform: translateX(104%); } }
@keyframes settle { to { transform: scale(1); } }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes mast { to { clip-path: inset(-10% 0 -10% 0); } }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.h-sec { font-size: clamp(2.25rem, 7vw, 3.75rem); margin-bottom: 12px; }
.sec-head { display: grid; gap: 8px; margin-bottom: 36px; }
.sec-head p { color: var(--mute); max-width: 44ch; margin: 0; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 52px; } }

/* product grid + cards */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 20px; } }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card a { display: block; text-decoration: none; }
.card-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.card-img .alt { opacity: 0; }
@media (hover: hover) {
  .card a:hover .card-img img { transform: scale(1.03); }
  .card a:hover .card-img .alt { opacity: 1; }
}
.card-name { display: block; font: 400 1.25rem/1.2 var(--serif); margin-top: 14px; }
.card a:hover .card-name { font-style: italic; }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin-top: 4px; font-size: .875rem; color: var(--mute); }
.card-meta .price { color: var(--midnight); font-weight: 500; }
.badge { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; background: var(--paper); color: var(--midnight); font-size: .8125rem; line-height: 1; padding: 7px 10px 7px 8px; border-radius: 999px; }
.badge .phase { width: 13px; height: 13px; }
@media (max-width: 420px) { .card-meta > span:first-child { display: none; } .card-name { font-size: 1.125rem; } }

/* featured on home: magazine spread, first card larger */
.spread { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
.spread .card:first-child { grid-column: 1 / -1; }
.spread .card:first-child .card-img { aspect-ratio: 4 / 4.4; }
@media (min-width: 900px) {
  .spread { grid-template-columns: 1.4fr 1fr 1fr; gap: 56px 24px; align-items: start; }
  .spread .card:first-child { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 24px); }
  .spread .card:first-child .card-img { aspect-ratio: 4 / 5.4; }
  .spread .card:nth-child(3), .spread .card:nth-child(5) { margin-top: 88px; }
}

/* night editorial */
.night { background: var(--midnight); color: var(--on-night); }
.night .muted, .night p { color: var(--on-night-mute); }
.essay { display: grid; gap: 40px; }
.essay blockquote { margin: 0; font: italic 400 clamp(2rem, 7.4vw, 4.25rem)/1.08 var(--serif); color: var(--on-night); max-width: 16ch; }
.essay figure { margin: 0; }
.essay figcaption { font-size: .8125rem; color: var(--on-night-mute); margin-top: 10px; }
.essay .body p { max-width: 44ch; }
.essay .body a { color: var(--on-night); }
@media (min-width: 900px) {
  .essay { grid-template-columns: 1.2fr .8fr; column-gap: 72px; align-items: end; }
  .essay figure { grid-row: 1 / span 2; grid-column: 2; }
}

/* sumario (contents page) */
.sumario { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--midnight); counter-reset: s; }
.sumario li { border-bottom: 1px solid var(--silver); }
.sumario a { position: relative; display: flex; align-items: baseline; gap: 16px; padding: 18px 0; text-decoration: none; }
.sumario .s-name { font: 400 clamp(1.75rem, 6.5vw, 3.5rem)/1.05 var(--serif); transition: transform .4s var(--ease); }
.sumario .s-count { margin-left: auto; font-size: .875rem; color: var(--mute); white-space: nowrap; }
.sumario img { display: none; }
@media (hover: hover) and (min-width: 900px) {
  .sumario a:hover .s-name { font-style: italic; transform: translateX(12px); }
  .sumario img { display: block; position: absolute; right: 18%; top: 50%; width: 150px; height: auto; transform: translateY(-50%) scale(.92); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .5s var(--ease); z-index: 2; }
  .sumario a:hover img { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* phases (process) */
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.phases li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; }
.phases .phase { width: 32px; height: 32px; grid-row: 1 / span 2; color: var(--midnight); }
.phases h3 { font-size: 1.5rem; }
.phases p { margin: 0; color: var(--mute); max-width: 34ch; }
.phase { width: 1em; height: 1em; flex: none; }
@media (min-width: 900px) {
  .phases { grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
  .phases::before { content: ""; position: absolute; left: 16px; right: 16px; top: 16px; height: 1px; background: var(--silver); }
  .phases li { grid-template-columns: 1fr; position: relative; }
  .phases .phase { grid-row: auto; background: var(--paper); margin-bottom: 14px; }
}

/* newsletter */
.letter { display: grid; gap: 24px; }
.letter h2 { font-size: clamp(2rem, 7vw, 3.5rem); max-width: 14ch; }
.letter form { display: grid; gap: 12px; max-width: 520px; }
.inline-field { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .inline-field { flex-direction: row; } .inline-field input { flex: 1; } }
@media (min-width: 900px) { .letter { grid-template-columns: 1fr 1fr; align-items: end; } }

/* forms */
label, legend { font-size: .9375rem; font-weight: 500; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--moonstone); border-radius: 0; background: #fff; font-size: 1rem; transition: border-color .2s; }
.night input { background: transparent; border-color: var(--on-night-mute); color: var(--on-night); }
input:focus, select:focus, textarea:focus { border-color: var(--midnight); outline: 2px solid var(--midnight); outline-offset: 0; }
.night input:focus { border-color: var(--on-night); outline-color: var(--on-night); }
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b1f2b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 42px; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-err { color: var(--error); font-size: .875rem; min-height: 0; margin: 0; }
.night .field-err { color: #f2b8b5; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .875rem; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--midnight); flex: none; }

/* ---------- colección ---------- */
.page-head { padding-top: 36px; padding-bottom: 28px; }
.page-head h1 { font-size: clamp(3.25rem, 13vw, 7.5rem); line-height: .95; letter-spacing: -.03em; }
.page-head p { color: var(--mute); max-width: 46ch; margin: 14px 0 0; }
@media (min-width: 900px) { .page-head { padding-top: 64px; padding-bottom: 48px; } }
.filters { position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--silver); border-bottom: 1px solid var(--silver); margin-bottom: 28px; }
.filters .wrap { display: grid; gap: 4px; padding-top: 8px; padding-bottom: 8px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; background: none; cursor: pointer; font-size: .9375rem; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.chips button:hover { border-color: var(--silver); }
.chips button[aria-pressed="true"] { background: var(--midnight); color: var(--paper); }
.chips sup { font-size: .6875rem; margin-left: 2px; color: inherit; opacity: .8; }
.filter-row { display: flex; gap: 10px; align-items: center; }
.filter-row label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.filter-row select { min-height: 44px; width: auto; min-width: 0; flex: 1; border-color: var(--silver); background-color: transparent; font-size: .9375rem; padding: 8px 38px 8px 14px; }
.filter-status { font-size: .875rem; color: var(--mute); margin: 0 0 20px; }
@media (min-width: 900px) {
  .filters .wrap { grid-template-columns: 1fr auto; align-items: center; }
  .chips { margin: 0; padding: 0; }
  .filter-row select { flex: none; min-width: 190px; }
}
.empty { text-align: center; padding: 48px 0; }
.empty p { font: italic 400 1.5rem/1.3 var(--serif); }
.card.gone { display: none; }

/* ---------- producto ---------- */
.product { padding-top: 12px; }
.crumbs { display: flex; gap: 10px; font-size: .875rem; color: var(--mute); margin-bottom: 14px; }
.crumbs a { color: var(--mute); min-height: 44px; display: inline-flex; align-items: center; }
.crumbs span { display: inline-flex; align-items: center; }
.p-grid { display: grid; }
.p-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); }
.p-gallery::-webkit-scrollbar { display: none; }
.p-gallery figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; background: var(--mist); aspect-ratio: 4 / 5; }
.p-gallery img { width: 100%; height: 100%; object-fit: cover; }
.p-count { font-size: .8125rem; color: var(--mute); text-align: right; margin: 8px 0 0; }
.p-info { padding-top: 18px; }
.p-info h1 { font-size: clamp(2.5rem, 10vw, 4.25rem); letter-spacing: -.02em; }
.p-mat { font: italic 400 1.125rem/1.3 var(--serif); color: var(--mute); margin: 8px 0 18px; }
.p-price { font-size: 1.25rem; font-weight: 500; display: flex; align-items: baseline; gap: 12px; }
.p-desc { max-width: 46ch; }
.p-colour span { color: var(--mute); margin-right: 6px; }
.sizes { border: 0; padding: 0; margin: 22px 0 6px; }
.sizes legend { margin-bottom: 10px; }
.size-row { display: flex; flex-wrap: wrap; gap: 10px; }
.size { position: relative; cursor: pointer; }
.size input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.size span:not(.visually-hidden) { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--moonstone); font-size: .9375rem; font-weight: 500; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s; }
.size:hover span:not(.visually-hidden) { border-color: var(--midnight); }
.size input:checked + span { background: var(--midnight); color: var(--paper); border-color: var(--midnight); }
.size input:focus-visible + span { outline: 2px solid var(--midnight); outline-offset: 3px; }
.size.out { cursor: not-allowed; }
.size.out span:not(.visually-hidden) { color: #767e8b; border-color: var(--silver); background: linear-gradient(135deg, transparent calc(50% - .5px), var(--silver) calc(50% - .5px), var(--silver) calc(50% + .5px), transparent calc(50% + .5px)); }
.size.out input { cursor: not-allowed; }
.one-size { margin: 22px 0 6px; font-weight: 500; }
.p-actions { display: grid; gap: 6px; margin-top: 22px; justify-items: start; }
.stock { display: flex; gap: 10px; align-items: center; font-size: .875rem; color: var(--mute); margin-top: 14px; }
.stock .phase { width: 16px; height: 16px; color: var(--midnight); }
.acc { margin-top: 30px; border-top: 1px solid var(--silver); }
.acc details { border-bottom: 1px solid var(--silver); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 58px; cursor: pointer; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform .3s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details p { color: var(--mute); max-width: 52ch; }
@media (min-width: 900px) {
  .product { padding-top: 24px; }
  .p-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .p-gallery { display: grid; gap: 16px; margin: 0; overflow: visible; }
  .p-count { display: none; }
  .p-info { position: sticky; top: calc(var(--header-h) + 28px); padding-top: 0; }
}
.sticky-add { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--silver); transform: translateY(110%); transition: transform .4s var(--ease); }
.sticky-add.show { transform: none; }
.sticky-add div { display: grid; min-width: 0; }
.sticky-add .sa-name { font: 400 1.0625rem/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-add .sa-price { font-size: .875rem; color: var(--mute); }
.sticky-add .btn { min-height: 48px; padding: 0 22px; flex: none; }
@media (min-width: 900px) { .sticky-add { display: none; } }
.related { border-top: 1px solid var(--silver); margin-top: 72px; }

/* dialogs: bottom sheet on phones, side panel on desktop */
dialog { border: 0; padding: 0; color: var(--midnight); background: var(--paper); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(27, 31, 43, .45); }
.sheet { width: 100%; margin: auto 0 0; max-height: 88vh; overflow: auto; }
.sheet-in { padding: 28px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.sheet h2 { font-size: 2rem; margin-bottom: 8px; }
@media (min-width: 700px) {
  .sheet { width: 440px; height: 100%; max-height: none; margin: 0 0 0 auto; }
  .sheet-in { padding: 40px 36px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-up .45s var(--ease); }
  .sheet[open]::backdrop { animation: fade .45s var(--ease); }
  @media (min-width: 700px) { .sheet[open] { animation-name: sheet-in; } }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-in { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.sg { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: .9375rem; }
.sg th, .sg td { text-align: left; padding: 12px 6px; border-bottom: 1px solid var(--silver); }
.sg thead th { font-weight: 500; color: var(--mute); }
.added { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; margin: 18px 0 24px; padding: 14px 0; border-top: 1px solid var(--silver); border-bottom: 1px solid var(--silver); }
.added img { width: 88px; height: 110px; object-fit: cover; }
.added b { display: block; font: 400 1.25rem/1.2 var(--serif); }
.added span { color: var(--mute); font-size: .9375rem; }
.sheet-actions { display: grid; gap: 10px; }

/* ---------- carrito ---------- */
.cart { display: grid; gap: 40px; padding-bottom: 80px; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--midnight); }
.line { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--silver); }
.line img { width: 96px; height: 120px; object-fit: cover; background: var(--mist); }
.line h2 { font-size: 1.375rem; }
.line h2 a { text-decoration: none; }
.line .l-meta { font-size: .875rem; color: var(--mute); margin: 4px 0 10px; }
.line .l-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--silver); border-radius: 999px; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.25rem; cursor: pointer; border-radius: 50%; }
.qty button:disabled { color: #9aa1ab; cursor: not-allowed; }
.qty output { min-width: 22px; text-align: center; font-weight: 500; }
.l-price { font-weight: 500; }
.remove { font-size: .875rem; color: var(--mute); }
.summary { background: #fff; padding: 24px 20px; border: 1px solid var(--silver); align-self: start; }
.summary h2 { font-size: 1.75rem; margin-bottom: 14px; }
.summary dl { margin: 0 0 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px 0; }
.summary dd { padding-left: 16px; }
.summary dt { color: var(--mute); }
.summary dd { margin: 0; text-align: right; }
.summary .total { font-weight: 600; color: var(--midnight); padding-top: 12px; border-top: 1px solid var(--silver); font-size: 1.125rem; }
.summary .note { font-size: .8125rem; color: var(--mute); margin: 14px 0 0; }
.free-bar { margin: 0 0 18px; font-size: .875rem; color: var(--mute); }
.free-bar .bar { height: 3px; background: var(--mist); margin-top: 8px; overflow: hidden; }
.free-bar .bar i { display: block; height: 100%; background: var(--midnight); width: 0; transition: width .6s var(--ease); }
.cart-empty { text-align: center; padding: 24px 0 64px; display: grid; justify-items: center; gap: 12px; }
.cart-empty img { width: min(100%, 420px); margin-bottom: 16px; }
.cart-empty h2 { font-size: clamp(2rem, 8vw, 3rem); font-style: italic; }
.cart-empty p { color: var(--mute); }
@media (min-width: 900px) { .cart { grid-template-columns: 1fr 380px; column-gap: 64px; } .summary { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; } .line { grid-template-columns: 120px 1fr; gap: 24px; } .line img { width: 120px; height: 150px; } }

/* demo dialog */
.demo { width: min(92vw, 480px); margin: auto; text-align: center; }
.demo .in { padding: 40px 28px 28px; }
.demo .phase-big { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--midnight); }
.demo h2 { font-size: 2.25rem; font-style: italic; margin-bottom: 12px; }
.demo p { color: var(--mute); }
.demo .btn { margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .demo[open] { animation: pop .5s var(--ease); }
  .demo[open]::backdrop { animation: fade .45s var(--ease); }
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ---------- sobre / contacto / legal ---------- */
.story { display: grid; gap: 36px; }
.story .lead { font: 400 clamp(1.625rem, 5.4vw, 2.75rem)/1.2 var(--serif); max-width: 24ch; margin: 0; }
.story .cols p { max-width: 46ch; }
.story figure { margin: 0; }
.story figcaption, .fig-cap { font-size: .8125rem; color: var(--mute); margin-top: 10px; }
@media (min-width: 900px) {
  .story { grid-template-columns: 1fr 1fr; column-gap: 72px; align-items: start; }
  .story .lead { grid-column: 1 / -1; }
  .story figure.tall { margin-top: -40px; }
}
.wide-fig { margin: 0; }
.wide-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) { .wide-fig img { aspect-ratio: 21 / 9; } }
.contact-grid { display: grid; gap: 48px; padding-bottom: 80px; }
.info-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--silver); }
.info-list li { padding: 16px 0; border-bottom: 1px solid var(--silver); display: grid; gap: 2px; }
.info-list h2 { font: 500 .875rem/1.4 var(--sans); color: var(--mute); }
.info-list p { margin: 0; }
.info-list a { display: inline-flex; min-height: 44px; align-items: center; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; column-gap: 80px; } }
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(2.5rem, 9vw, 4rem); margin-bottom: 10px; }
.legal h2 { font-size: 1.625rem; margin: 36px 0 10px; }
.legal li { margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--midnight); color: var(--on-night); padding: 56px 0 28px; }
.f-top { display: grid; gap: 36px; }
.f-mast { font: italic 400 clamp(6rem, 30vw, 15rem)/.8 var(--serif); margin: 0; letter-spacing: -.03em; color: var(--on-night); }
.f-cols { display: grid; gap: 28px; }
.f-cols h2 { font: 500 .875rem/1.4 var(--sans); color: var(--on-night-mute); margin-bottom: 10px; }
.f-cols p, .f-cols li { color: var(--on-night); font-size: .9375rem; }
.f-cols ul { list-style: none; margin: 0; padding: 0; }
.f-cols a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.f-cols a:hover { text-decoration: underline; }
.f-bottom { display: grid; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(246, 246, 243, .2); font-size: .875rem; color: var(--on-night-mute); }
.f-bottom nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.f-bottom nav a { min-height: 44px; display: inline-flex; align-items: center; }
.demo-badge { display: inline-flex; gap: 8px; align-items: center; color: var(--on-night); }
.demo-badge svg { width: 16px; height: 16px; flex: none; }
@media (min-width: 700px) { .f-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) {
  .site-footer { padding-top: 88px; }
  .f-top { grid-template-columns: auto 1fr; align-items: end; column-gap: 72px; }
  .f-bottom { grid-template-columns: auto 1fr auto; align-items: center; }
  .f-bottom nav { justify-content: center; }
}

/* ---------- scroll reveals (content visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal-mask { position: relative; overflow: hidden; }
  .js .reveal-mask::after { content: ""; position: absolute; inset: 0; background: var(--mask, var(--paper)); transform-origin: 50% 100%; transition: transform 1.3s var(--slow); }
  .js .night .reveal-mask::after { --mask: var(--midnight); }
  .js .reveal-mask img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
  .js .reveal-mask.in::after { transform: scaleY(0); }
  .js .reveal-mask.in img { transform: none; }
  .js .grid .card.enter { animation: up .5s var(--ease) both; }
}

/* additions */
.phase-big { display: block; }
.phase-big .phase { width: 100%; height: 100%; }
.phases-night .phase { color: var(--on-night); }
@media (min-width: 900px) { .phases-night .phase { background: var(--midnight); } .phases-night::before { background: rgba(246, 246, 243, .25); } }
.phases-night p { color: var(--on-night-mute); }
.legal .sg { font-size: .875rem; }
.legal .sg td, .legal .sg th { padding: 10px 6px; vertical-align: top; }
.filters .wrap > * { min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: .26em; min-height: 44px; }
a.link { display: inline-flex; align-items: center; }
.essay .body a { display: inline-flex; align-items: center; min-height: 44px; }
