/* Nudo: boutique de San Pedro. Lookbook monocromo: toda fotografía sale en blanco y negro,
   con una tira de película como firma y el catálogo filtrado por talla, no por categoría. */
@font-face { font-family: 'Libre Caslon Display'; src: url('../_shared/fonts/libre-caslon-display-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('../_shared/fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f7f5f1;
  --fg: #17140f;
  --muted: #6d675d;
  --line: rgba(23, 20, 15, 0.16);
  --surface: #eae6de;
  --accent: #17140f;
  --accent-fg: #f7f5f1;
  --font-display: 'Libre Caslon Display', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.005em;
  --radius: 0px;
  --radius-lg: 0px;
  --btn-radius: 0px;
  --item-ratio: 4 / 5;
  --container: 76rem;
}

/* Toda foto entra desaturada: es la identidad de Nudo, no un filtro por sección. */
img { filter: grayscale(1) contrast(1.05); }

.brand { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.02em; font-size: 1.5rem; text-transform: none; }
.brand small { font-weight: 500; color: var(--muted); }
.btn { letter-spacing: 0.01em; }
.btn-primary { background: var(--fg); }
.site-footer { border-top: 1px solid var(--fg); }

/* Menú móvil con <details>: funciona sin JS (el navegador abre y cierra el panel solo). */
.mobile-nav { position: relative; }
.mobile-nav-toggle { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; color: var(--fg); cursor: pointer; list-style: none; }
.mobile-nav-toggle::-webkit-details-marker { display: none; }
.mobile-nav-toggle svg { width: 1.6rem; height: 1.6rem; }
.mobile-nav-panel { position: absolute; top: calc(100% + 0.75rem); right: 0; z-index: 49; width: min(88vw, 20rem); background: var(--bg); border: 1px solid var(--line); padding: 0.5rem 1.25rem 1.25rem; }
.mobile-nav-panel a:not(.btn) { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--fg); font-family: var(--font-display); font-size: var(--step-2); line-height: 1; text-decoration: none; }
.mobile-nav-panel .btn { margin-top: 1.25rem; width: 100%; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* Marquesina discreta: una sola frase que se repite, sin mayúsculas gritadas. */
.notice { border-bottom: 1px solid var(--line); background: var(--surface); }
.notice .marquee-track { padding-block: 0.6rem; font-size: var(--step--1); color: var(--muted); }

/* Portada: la foto manda, el titular llega después, sin sobreponer texto en la imagen. */
.cover { padding-top: 0; }
.cover-media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.cover-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.cover-copy { padding: clamp(2rem, 6vw, 3.5rem) var(--gutter) clamp(2.5rem, 6vw, 4rem); }
.cover-kicker { display: block; margin-bottom: 1rem; color: var(--muted); font-size: var(--step-0); }
.cover h1 { font-size: clamp(2.4rem, 1.7rem + 4.5vw, 5rem); max-width: 15ch; }
.cover .lead { margin-top: 1.35rem; max-width: 36rem; font-size: var(--step-1); line-height: 1.5; color: var(--fg-soft); }
.cover .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.cover .facts { display: grid; gap: 0.1rem; margin-top: 2.25rem; max-width: 34rem; color: var(--fg-soft); font-size: var(--step-0); }
.cover .facts li { padding: 0.65rem 0; border-top: 1px solid var(--line); }
.cover .facts li[data-open-hours] { text-transform: none; }
@media (min-width: 900px) {
  .cover { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .cover-media { aspect-ratio: auto; height: 100%; min-height: min(88svh, 52rem); }
  .cover-copy { align-self: center; padding: clamp(2rem, 4vw, 4rem) clamp(2.5rem, 5vw, 5rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .cover-kicker, .js .cover h1, .js .cover .lead, .js .cover .actions, .js .cover .facts { animation: rise 0.9s var(--ease) both; }
  .js .cover h1 { animation-delay: 0.08s; }
  .js .cover .lead { animation-delay: 0.18s; }
  .js .cover .actions { animation-delay: 0.28s; }
  .js .cover .facts { animation-delay: 0.38s; }
  .js .cover-media img { animation: settle 1.4s var(--ease) both; }
}

/* Tira de lookbook: contacto fílmico, un cuadro por look, con folio y nota de estilo. */
.filmstrip-rail { --rail-w: min(72vw, 22rem); --rail-gap: 1.25rem; }
/* Con 4 cuadros de 22rem el carrete desborda ya desde ~1240px de contenedor: en escritorio sigue pidiendo scroll, nunca se acomoda en rejilla. */
.frame { display: flex; flex-direction: column; }
.frame-photo { aspect-ratio: 2 / 3; overflow: hidden; background: var(--surface); }
.frame-photo img { width: 100%; height: 100%; object-fit: cover; }
.frame-cap { display: flex; gap: 0.7rem; align-items: baseline; margin-top: 0.9rem; font-size: var(--step-0); color: var(--fg-soft); max-width: 22ch; }
.frame-num { flex: none; font-family: var(--font-display); font-size: var(--step-1); color: var(--fg); }

/* Catálogo: fotos grandes, filtro por talla en vez de pestañas de categoría. */
.size-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.25rem; }
.size-filter button { min-height: 2.75rem; padding: 0 1.15rem; border: 1px solid var(--line); background: transparent; color: var(--fg); font: inherit; font-size: var(--step-0); cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.size-filter button[aria-pressed='true'] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.item .sizes { display: flex; gap: 0.6rem; font-size: var(--step--1); color: var(--muted); }
.item .sizes s { opacity: 0.4; }
.item h3 { font-size: var(--step-0); font-weight: 700; font-family: var(--font-body); letter-spacing: 0; }
.price { font-family: var(--font-body); font-weight: 700; font-size: var(--step-0); letter-spacing: 0; }
.item-foot { align-items: center; }
.item-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.1rem; margin-right: -1.1rem; border: 1px solid var(--line); color: var(--fg); font-weight: 600; font-size: var(--step--1); text-decoration: none; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.item-link:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
[hidden] { display: none !important; }

/* Producción: split reutilizado del scaffold, con pasos numerados (secuencia real). */
.split .lead { max-width: 34rem; }

/* Contacto: split con la fachada, para que la última sección no cierre en un lienzo vacío. */
.visit address { margin-top: 1.5rem; font-style: normal; font-size: var(--step-1); line-height: 1.55; color: var(--fg-soft); }
.visit address strong { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-2); color: var(--fg); }
.visit .status { display: block; margin-top: 1.1rem; font-size: var(--step-0); color: var(--fg-soft); }
.visit .status[data-open='true'] { color: var(--fg); font-weight: 600; }
.visit .hours { display: grid; grid-template-columns: auto 1fr; gap: 0 1.5rem; margin-top: 1.75rem; max-width: 26rem; }
.visit .hours dt, .visit .hours dd { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.visit .hours dt { color: var(--muted); }
.visit .hours dd { color: var(--fg); font-weight: 600; }
.visit .links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 1.5rem; }
.visit .links a { color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line); }
.visit .actions { margin-top: 2rem; }

.sticky-cta .btn { background: var(--fg); color: var(--bg); }
