/* ══════════════════════════════════════════════════════════════
   bn-refine.css — capa editorial de BENESSI (diciembre 2026)

   Se carga AL FINAL del <head> en todas las paginas salvo home,
   Find BENESSI y Journal (siguiente ronda). La aplica
   refine-design.py; no editar las paginas a mano para esto.

   Decisiones (critica de diseno, 30 nov 2026):
   - Blanco y negro estricto. Texto secundario rgba(0,0,0,.55)
     (4.7:1 sobre blanco). Lineas rgba(0,0,0,.12), solo donde
     separan algo de verdad.
   - Cormorant Garamond 400 y 400 italica en todo el sitio (stand-in
     de CondorWide; lo prefirio el cliente frente a una sans). Como
     Cormorant corre chica, la interfaz va a 15 px o mas. Sin Inter,
     sin 300 ni 500.
   - Sentence case; nada de mayusculas con tracking ancho.
   - Italica solo en el H1.
   ══════════════════════════════════════════════════════════════ */

:root {
  --ink: #000;
  --bg: #fff;
  --paper: #fff;
  --hush: rgba(0, 0, 0, 0.55);
  --line: rgba(0, 0, 0, 0.12);
  --font-ui: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
}

html, body { background: #fff; color: #000; }

/* Un solo peso. */
body, body * { font-weight: 400 !important; }

/* Sentence case y sin tracking ancho: el texto ya viene escrito en
   el caso correcto; las mayusculas eran solo estilo. */
body * { text-transform: none !important; letter-spacing: 0 !important; }
h1, h1 *, h2, h2 *, .bn-pdp-title { letter-spacing: -0.01em !important; }

/* Italica solo en el H1. */
h2 em, h3 em, h4 em, .bn-related-card h3 em, .bn-family-copy h3 em { font-style: normal !important; }

/* ── PDP ───────────────────────────────────────────────────── */
.bn-sec { border-bottom: 0 !important; }
.bn-sec-label, .bn-sec-h {
  font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 34px) !important;
  color: #000 !important; opacity: 1 !important; margin: 0 0 28px !important; line-height: 1.1;
}
.bn-split { border-top: 0 !important; border-bottom: 0 !important; }
.bn-split-copy { border-right: 0 !important; }
.bn-pdp-sku { font-size: 15px !important; color: var(--hush) !important; }
.bn-pdp-lede { color: #000 !important; }
.bn-pdp-cta { font-size: 17px !important; padding: 16px 30px !important; }
.bn-pdp-back { font-size: 15px !important; }

/* Cifras a la vista: la fila de specs reutilizada (mismo HTML),
   con el valor arriba en grande y la llave debajo. */
.bn-glance { padding: 72px 52px 24px; max-width: 1520px; margin: 0 auto; }
.bn-glance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px 48px; }
.bn-glance-item { display: flex !important; flex-direction: column-reverse; justify-content: flex-end; gap: 10px;
  border: 0 !important; padding: 0 !important; }
.bn-glance-item .bn-spec-v { font-family: var(--font-display); font-size: clamp(34px, 3.6vw, 52px) !important;
  line-height: 1.02; color: #000 !important; text-align: left !important; }
.bn-glance-item .bn-spec-k { font-size: 15px !important; color: var(--hush) !important; }

/* Especificaciones agrupadas. */
.bn-specs .bn-spec-group { border-top: 1px solid var(--line); }
.bn-specs .bn-spec-group:last-of-type { border-bottom: 1px solid var(--line); }
.bn-specs summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline;
  padding: 22px 0; font-family: var(--font-display); font-size: 22px; color: #000;
}
.bn-specs summary::-webkit-details-marker { display: none; }
.bn-specs summary::after { content: '+'; font-size: 22px; color: var(--hush); transition: transform 200ms var(--ease-out, ease); }
.bn-specs details[open] > summary::after { transform: rotate(45deg); }
.bn-specs .bn-spec-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px 64px; padding: 0 0 28px !important; border: 0 !important; }
.bn-specs .bn-spec-row {
  display: grid !important; grid-template-columns: minmax(9rem, 38%) 1fr; gap: 16px;
  padding: 9px 0 !important; border: 0 !important; align-items: baseline;
}
.bn-specs .bn-spec-k { font-size: 16px !important; color: var(--hush) !important; }
.bn-specs .bn-spec-v { font-family: var(--font-display); font-size: 18px !important; color: #000 !important; text-align: left !important; }
.bn-docs-line { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 28px 0 0; font-size: 18px; }
.bn-docs-line .bn-pdp-doc { display: inline-flex !important; gap: 10px; align-items: baseline; border: 0 !important; padding: 0 !important;
  color: #000; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px;
  transition: text-decoration-color 200ms var(--ease-out, ease); }
.bn-docs-line .bn-pdp-doc span { font-family: var(--font-display); font-size: 19px !important; color: #000 !important; }
.bn-docs-line .bn-pdp-doc small { font-size: 15px !important; color: var(--hush) !important; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .bn-docs-line .bn-pdp-doc:hover { text-decoration-color: #000; } }

/* Momento editorial: una foto a sangre y un parrafo. */
.bn-ed { display: grid; grid-template-columns: 7fr 5fr; min-height: 78vh; margin: 72px 0; }
.bn-ed-media { background-size: cover; background-position: center; background-repeat: no-repeat; min-height: 420px; }
/* Solo foto (fichas no insignia) o solo texto (insignia sin foto de detalle). */
figure.bn-ed { margin: 72px 0; }
.bn-ed--photo { display: block; min-height: 0; }
.bn-ed--photo .bn-ed-media { height: 78vh; }
.bn-ed--text { display: block; min-height: 0; }
.bn-ed--text .bn-ed-copy { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 64px; align-items: start;
  max-width: 1520px; margin: 0 auto; padding: 24px 52px; }
.bn-ed--text .bn-ed-p { max-width: 46ch; }
.bn-ed-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(28px, 5vw, 88px); }
.bn-ed-h { font-family: var(--font-display); font-size: clamp(30px, 3vw, 44px); line-height: 1.08; margin: 0 0 24px; }
.bn-ed-p { font-family: var(--font-display); font-size: 21px; line-height: 1.6; max-width: 34ch; margin: 0; }

/* Preguntas: una columna, una linea arriba, sin lineas entre items. */
.bn-faq { display: block !important; max-width: 760px; border-top: 1px solid var(--line); }
.bn-faq-item { border: 0 !important; padding: 0 !important; }
.bn-faq details summary { list-style: none; cursor: pointer; padding: 22px 0 10px; }
.bn-faq details summary::-webkit-details-marker { display: none; }
.bn-faq-q { font-family: var(--font-display); font-size: 22px !important; line-height: 1.3; margin: 0; color: #000 !important; }
.bn-faq-a { font-family: var(--font-display); font-size: 18px !important; line-height: 1.6; color: rgba(0,0,0,.78) !important; margin: 0 0 18px !important; max-width: 62ch; }

/* Relacionados: las tarjetas llenan el ancho aunque sean dos. */
.bn-related .bn-related-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; }
.bn-related-head { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 34px) !important; color: #000 !important; }
.bn-rcard-name { font-family: var(--font-display); font-size: 20px !important; }
.bn-rcard-sku { font-size: 15px !important; color: var(--hush) !important; }

/* Cierre negro al final de la ficha. */
.bn-pdp-closer { background: #000; color: #fff; text-align: center; padding: 140px 24px; }
.bn-pdp-closer h2 { font-family: var(--font-display); font-size: clamp(34px, 4vw, 58px); line-height: 1.08; margin: 0 auto 22px; max-width: 22ch; color: #fff; }
.bn-pdp-closer p { font-family: var(--font-display); font-size: 20px; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 46ch; margin: 0 auto 40px; }
.bn-pdp-closer .bn-pdp-cta { background: #fff !important; color: #000 !important; display: inline-block; }

/* ── Paginas de coleccion y categoria ──────────────────────── */
/* Chips -> una sola linea de cifras en serif (mismo HTML: la traduccion ES no cambia). */
.bn-family-specs { display: block !important; border: 0 !important; margin: 18px 0 26px !important; }
.bn-family-spec { display: inline !important; border: 0 !important; padding: 0 !important; background: none !important;
  font-family: var(--font-display) !important; font-size: 18px !important; color: #000 !important; border-radius: 0 !important; }
.bn-family-spec + .bn-family-spec::before { content: ' · '; color: var(--hush); }
.bn-family-copy { border-color: var(--line) !important; }
.bn-family { border-top: 0 !important; }
.bn-family-overline, .bn-label, .bn-related-num { font-size: 15px !important; color: var(--hush) !important; opacity: 1 !important; }
.bn-family-sub, .bn-hero-sub { color: #000 !important; }
.bn-families-head { border-bottom: 0 !important; }
.bn-hero { border-bottom: 0 !important; }
.bn-link { font-family: var(--font-display) !important; font-size: 18px !important; }

/* ── PLP (catalogo) ────────────────────────────────────────────
   Como un PLP de moda (ref. hugoboss.com): titulo sobrio, los mundos
   como texto, las categorias como fila de fotos verticales con el
   nombre subrayado debajo, un solo control de filtros y la grilla.
   Sin conteos. ─────────────────────────────────────────────── */
.bn-catalog-head { max-width: 1440px; margin: 0 auto; padding: 56px 52px 0; }
.bn-catalog-title { font-family: var(--font-display); font-size: clamp(38px, 4.4vw, 58px); line-height: 1; margin: 0 0 18px; }
.bn-catalog-head .bn-worlds { display: flex !important; gap: 30px; padding: 0 !important; border: 0 !important; }
.bn-catalog-head .bn-world { display: inline-block; padding: 2px 0 !important; background: none; color: var(--hush) !important;
  text-decoration: none; font-family: var(--font-display); font-size: 21px !important; opacity: 1 !important;
  transition: color 200ms var(--ease-out, ease); }
.bn-catalog-head .bn-world.active { color: #000 !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
@media (hover: hover) and (pointer: fine) { .bn-catalog-head .bn-world:hover { color: #000 !important; } }
.bn-world:focus-visible, .bn-cat-tab:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

.bn-filters { position: static !important; background: #fff !important; backdrop-filter: none !important;
  border-bottom: 0 !important; margin-top: 36px; }
.bn-cat-tabs-row { display: block !important; border: 0 !important; }
.bn-cat-tabs { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; gap: 14px !important;
  padding: 0 0 6px !important; border: 0 !important; scroll-snap-type: x proximity; scrollbar-width: none; }
.bn-cat-tab { flex: 0 0 clamp(150px, 14vw, 206px); display: block; padding: 0 !important; margin: 0 !important; border: 0 !important;
  background: none; color: #000 !important; text-decoration: none; white-space: normal; scroll-snap-align: start; cursor: pointer; }
.bn-cat-tab[hidden] { display: none !important; }
.bn-cat-img { display: block; aspect-ratio: 3 / 4; background-color: #fff; background-size: cover; background-position: center;
  background-repeat: no-repeat; margin-bottom: 12px; transition: opacity 250ms var(--ease-out, ease); }
.bn-cat-img[data-fit="contain"] { background-size: 82% auto; }
.bn-cat-label { font-family: var(--font-display); font-size: 18px; line-height: 1.2;
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(0,0,0,.28); text-underline-offset: 5px;
  transition: text-decoration-color 200ms var(--ease-out, ease); }
.bn-cat-tab.active .bn-cat-label { text-decoration-color: #000; }
/* Con una categoria elegida, las demas se apagan. */
.bn-cat-tabs:has(.bn-cat-tab.active) .bn-cat-tab:not(.active) .bn-cat-img { opacity: .45; }
@media (hover: hover) and (pointer: fine) {
  .bn-cat-tab:hover .bn-cat-label { text-decoration-color: #000; }
  .bn-cat-tabs:has(.bn-cat-tab.active) .bn-cat-tab:hover .bn-cat-img { opacity: 1; }
}
.bn-filter-btn-wrap { display: flex !important; justify-content: flex-start; align-items: center; position: relative;
  margin: 28px 0 0 !important; padding: 16px 0 !important; border: 0 !important;
  border-top: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
.bn-filter-count { display: none !important; }
.bn-filter-btn { font-family: var(--font-display) !important; font-size: 19px !important; color: #000 !important; padding: 0 !important; }
.bn-filter-dashes { display: none !important; }
.bn-filter-panel { border-color: var(--line) !important; left: 0 !important; right: auto !important; }
.bn-filter-pill { font-family: var(--font-display) !important; font-size: 17px !important; border: 0 !important; padding: 4px 0 !important;
  margin-right: 18px; color: var(--hush) !important; background: none !important; }
.bn-filter-pill.active { color: #000 !important; text-decoration: underline; text-underline-offset: 5px; }
.bn-filter-col-label { font-size: 15px !important; color: #000 !important; margin-bottom: 8px; }
.bn-card-thumb { background: #fff !important; }
.bn-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bn-card-img--clean img, .bn-card-img--solo[data-fit="contain"] img { object-fit: contain; }
.bn-card-cat { font-size: 15px !important; color: var(--hush) !important; }
.bn-card-name { font-family: var(--font-display); font-size: 21px !important; }
.bn-card-spec, .bn-card-sku { font-size: 15px !important; color: var(--hush) !important; }
.bn-editorial .overline { display: none; }
@media (max-width: 760px) {
  .bn-catalog-head { padding: 36px 20px 0; }
  .bn-catalog-head .bn-worlds { gap: 22px; }
  .bn-catalog-head .bn-world { font-size: 19px !important; }
  .bn-filters { margin-top: 24px; }
  .bn-filters-inner { padding: 0 20px !important; }
  .bn-cat-tab { flex-basis: 128px; }
  .bn-cat-label { font-size: 16px; }
  .bn-filter-btn-wrap { margin-top: 20px !important; padding: 14px 0 !important; }
  .bn-filter-panel { left: -20px !important; }
}

@media (max-width: 900px) {
  .bn-glance { padding: 48px 24px 8px; }
  .bn-glance-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .bn-specs .bn-spec-grid { grid-template-columns: 1fr; }
  .bn-ed { grid-template-columns: 1fr; min-height: 0; margin: 48px 0; }
  .bn-ed-media, .bn-ed--photo .bn-ed-media { min-height: 0; height: 66vw; }
  .bn-ed--text .bn-ed-copy { grid-template-columns: 1fr; padding: 8px 24px; }
  figure.bn-ed { margin: 48px 0; }
  .bn-ed-copy { padding: 40px 24px; }
  .bn-pdp-closer { padding: 96px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .bn-specs summary::after, .bn-cat-img, .bn-cat-label, .bn-catalog-head .bn-world { transition: none; }
}
