/* ==========================================================================
   HOME · CAPÍTULOS
   Todo lo que sigue al video del hero. Poca letra, mucha imagen y UN solo par de líneas
   de alineación: las de la cabecera (--gd-gut / --gd-max). Textos e imágenes —tríptico,
   mosaico, escena de Navidad, método, catálogo y autoría— nacen y terminan en esas dos líneas.
   Variables del sistema (--bg, --text, --accent…) donde el bloque puede pasar a tema
   claro; colores fijos solo en las «islas» oscuras (.gd-oscuro).
   Escritorio desde 900 px; por debajo, versión móvil.
   ========================================================================== */
:root{ --hm-g:clamp(8px,.85vw,14px); }

/* ---------- piezas comunes ---------- */
.hm-bar{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:14px 32px; margin-bottom:clamp(22px,2.6vw,40px); }
.hm-bar-links{ display:flex; flex-wrap:wrap; gap:10px 32px; }
.hm-h{
  margin:0; font-family:var(--display); font-weight:500; font-size:clamp(2.3rem,4.6vw,4.6rem); line-height:1; letter-spacing:-.022em;
  color:var(--lino); text-wrap:balance; font-optical-sizing:none; font-variation-settings:"opsz" var(--gd-opsz,18); }
.hm-h em{ font-style:italic; font-weight:400; color:var(--accent); }
.hm-go{ display:inline-flex; align-items:center; gap:12px; font-family:var(--body); font-weight:500; font-size:.75rem; letter-spacing:.16em; text-transform:uppercase; color:var(--accent); }
.hm-go i{ display:none; }

/* ---------- APERTURA · una sola línea editorial sobre las tres imágenes (sin lista ni bloque aparte) ---------- */
.hm-open-h{
  margin:0 0 clamp(20px,2.2vw,36px); font-family:var(--display); font-weight:500; font-size:clamp(1.9rem,3.7vw,4.9rem); line-height:1.04; letter-spacing:-.03em;
  color:var(--lino); text-wrap:balance; font-optical-sizing:none; font-variation-settings:"opsz" var(--gd-opsz,18); }
.hm-open-h em{ font-style:italic; font-weight:400; color:var(--accent); }
/* la frase va en dos líneas también en escritorio: «Un espacio no se decora.» / «Se diseña para vender.» */
.hm-open-h span, .hm-open-h em{ display:block; }
@media (max-width:899px){
  .hm-open-h{ margin-bottom:clamp(22px,6vw,34px); font-size:clamp(2.5rem,11.5vw,3.6rem); line-height:.98; }
  .hm-open-h span, .hm-open-h em{ display:block; }
}
/* ---------- MARCAS · título + logos en movimiento continuo, con lo que hicimos para cada una; sin líneas ---------- */
.hm-marcas{ margin-top:clamp(56px,6.4vw,112px); }
.hm-marcas-head{ margin-bottom:clamp(14px,1.8vw,28px); align-items:center; }
.hm-marcas-t{
  margin:0; font-family:var(--display); font-weight:500; font-size:clamp(1.875rem,2.5vw,3rem); line-height:1.08; letter-spacing:-.025em;
  color:var(--lino); text-wrap:balance; font-optical-sizing:none; font-variation-settings:"opsz" var(--gd-opsz,18); }
.hm-marcas-t em{ font-style:italic; font-weight:400; color:var(--accent); }
.hm-marcas-s{ margin:0; font-family:var(--body); font-weight:500; font-size:var(--hm-t-label,.76rem); letter-spacing:.16em; text-transform:uppercase; color:var(--text-dim); }
.hm-marcas-row{ padding-block:clamp(6px,1vw,14px); }
.hm-marcas .gd-marcas-track{ animation-duration:80s; }
.hm-marcas .gd-marcas-item{ flex-direction:column; justify-content:flex-start; gap:clamp(12px,1.2vw,18px); padding-inline:clamp(26px,3.4vw,64px); }
.hm-marcas .gd-marcas-logo{ width:clamp(112px,9.5vw,176px); height:clamp(44px,4vw,66px); }
.hm-marcas .gd-marcas-logo img{ opacity:.86; }
.hm-marcas .gd-marcas-logo img.is-nativo{ transform:scale(1.55); opacity:.92; }
.hm-marcas-s{ display:inline-flex; align-items:center; gap:clamp(14px,1.4vw,22px); }
/* banderas: medallas circulares con aro de latón, en CSS puro (sin emoji ni imágenes) */
.hm-flags{ display:inline-flex; align-items:center; gap:clamp(10px,.9vw,14px); --hm-fl:clamp(24px,1.7vw,30px); --hm-fl-gap:var(--bg,#1F1B16); }
.hm-flags--sm{ --hm-fl:clamp(20px,1.3vw,24px); --hm-fl-gap:#0c0b09; margin-left:10px; vertical-align:middle; }
.hm-flag{
  display:block; flex:none; width:var(--hm-fl); height:var(--hm-fl); border-radius:50%;
  box-shadow:inset 0 0 0 1px rgba(31,27,22,.18), 0 0 0 3px var(--hm-fl-gap), 0 0 0 4px rgba(201,165,106,.7);
}
.hm-flag--pe{ background:linear-gradient(90deg,#D91023 0 33.34%,#FAF8F4 33.34% 66.67%,#D91023 66.67% 100%); }
.hm-flag--ec{ overflow:hidden; }
.hm-flag--ec svg{ display:block; width:100%; height:100%; }
.hm-stat-p{ display:inline-flex; align-items:center; }
.hm-marcas a.gd-marcas-item{ text-decoration:none; color:inherit; }
.hm-marcas a.gd-marcas-item:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.hm-marcas a.gd-marcas-item:hover .hm-marca-rol, .hm-marcas a.gd-marcas-item:focus-visible .hm-marca-rol{ color:var(--text); }
.hm-triptico{ position:relative; }
.hm-alias{ position:absolute; top:0; left:0; width:0; height:0; overflow:hidden; pointer-events:none; }
.hm-marca-rol{ font-family:var(--body); font-weight:400; font-size:var(--hm-t-label,.76rem); letter-spacing:.14em; text-transform:uppercase; text-align:center; color:var(--text-dim); }
@media (max-width:599px){
  .hm-marcas-s > span:first-child{ display:none; }
}

/* ---------- TRES MUNDOS · entre las dos líneas, a la altura de la pantalla ---------- */
.hm-triptico{ padding-block:clamp(36px,4vw,64px) clamp(8px,1vw,16px); }
.hm-mundos{ display:flex; gap:2px; height:clamp(520px,calc(100svh - 190px - 3.85vw),900px); background:rgba(201,165,106,.5); color:#F2ECE2; }
.hm-mundo{
  /* ancho del panel en reposo (un tercio): la foto principal se queda SIEMPRE a este tamaño, sin zoom */
  --hm-rw:calc((min(100vw,var(--gd-max)) - 2 * var(--gd-gut) - 4px) / 3);
  position:relative; display:block; flex:1 1 0; min-width:0; overflow:hidden; text-decoration:none; color:#F2ECE2; isolation:isolate; background:#1F1B16;
  transition:flex .95s cubic-bezier(.16,1,.3,1);
}
@supports (width:1cqw){ .hm-mundo{ --hm-rw:calc((100cqw - 4px) / 3); } }
.hm-mundos{ container-type:inline-size; }
/* Foto del panel: ya viene ensanchada (16:9), a la altura del panel y centrada. En reposo se ve el centro (la composición de siempre);
   al ensanchar el panel no se estira ni se recorta distinto: se descubre el resto de la misma foto a los lados. */
.hm-mundo picture{ display:contents; }
.hm-mundo > picture > img, .hm-mundo > img{ position:absolute; top:0; left:50%; height:100%; width:auto; min-width:100%; max-width:none; aspect-ratio:16/9; transform:translateX(-50%); object-fit:cover; z-index:-2; }
.hm-mundo::after{
  content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(to top,rgba(31,27,22,.92) 0%,rgba(31,27,22,.55) 26%,rgba(31,27,22,.16) 46%,rgba(31,27,22,0) 60%);
}
.hm-mundos-nav{ display:none; }
/* el panel se ensancha con el puntero (solo dispositivos con ratón) y con el teclado; en pantallas táctiles el toque abre directo */
.hm-mundos:has(.hm-mundo:focus-visible) .hm-mundo{ flex:.8 1 0; }
.hm-mundos:has(.hm-mundo:focus-visible) .hm-mundo:focus-visible{ flex:1.7 1 0; }
@media (hover:hover) and (pointer:fine){
  .hm-mundos:has(.hm-mundo:hover) .hm-mundo{ flex:.8 1 0; }
  .hm-mundos:has(.hm-mundo:hover) .hm-mundo:hover{ flex:1.7 1 0; }
}
.hm-mundo:focus-visible{ outline:2px solid #C9A56A; outline-offset:-4px; }
.hm-mundo-body{ position:absolute; left:0; right:0; bottom:0; display:flex; flex-direction:column; align-items:flex-start; gap:12px; padding:clamp(22px,2.6vw,48px); }
.hm-mundo-k{ font-family:var(--display); font-weight:500; font-size:clamp(2.8rem,5vw,5.6rem); line-height:.95; letter-spacing:-.03em; color:#F2ECE2; text-shadow:0 1px 2px rgba(31,27,22,.55), 0 2px 24px rgba(31,27,22,.5); font-optical-sizing:none; font-variation-settings:"opsz" var(--gd-opsz,18); }
.hm-mundo-s{ font-size:clamp(.95rem,1.1vw,1.1rem); line-height:1.4; color:rgba(242,236,226,.86); margin-bottom:10px; text-shadow:0 1px 14px rgba(31,27,22,.6); }
.hm-mundo:hover .hm-go i, .hm-mundo:focus-visible .hm-go i{ width:44px; }
@media (max-width:899px){
  /* móvil: el primer panel arranca en la línea izquierda; los siguientes asoman por la derecha */
  .hm-mundos{
    height:auto; gap:var(--hm-g); background:none; margin-inline:calc(var(--gd-gut) * -1); padding-inline:var(--gd-gut); scroll-padding-inline:var(--gd-gut);
    overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:auto; -webkit-overflow-scrolling:touch;
  }
  .hm-mundos::-webkit-scrollbar{ display:none; }
  .hm-mundo{ flex:0 0 min(78vw,420px); aspect-ratio:4/5; scroll-snap-align:start; transition:none; }
  .hm-mundo > picture > img, .hm-mundo > img{ left:0; width:100%; aspect-ratio:auto; transform:none; }
  /* indicador del carrusel: dónde está y cuántos paneles hay */
  .hm-mundos-nav{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:18px; }
  .hm-mundos-cnt{ font-family:var(--body); font-style:italic; font-size:1rem; letter-spacing:.06em; color:rgba(242,236,226,.7); font-weight:500; }
  .hm-mundos-cnt b{ font-weight:400; color:#C9A56A; }
  .hm-mundos-btns{ display:flex; gap:12px; }
  .hm-mundos-btn{ display:grid; place-items:center; width:48px; height:48px; padding:0; border-radius:50%; border:1px solid rgba(201,165,106,.7); background:transparent; color:#C9A56A; cursor:pointer; transition:background .3s var(--gd-ease), color .3s var(--gd-ease), border-color .3s var(--gd-ease), opacity .3s; -webkit-tap-highlight-color:transparent; }
  .hm-mundos-btn svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
  .hm-mundos-btn:active:not(:disabled), .hm-mundos-btn.is-next:not(:disabled){ background:#C9A56A; color:#1F1B16; border-color:#C9A56A; }
  .hm-mundos-btn:disabled{ opacity:.3; cursor:default; }
  .hm-mundos-btn:focus-visible{ outline:2px solid #C9A56A; outline-offset:3px; }
  .hm-mundos:has(.hm-mundo:hover) .hm-mundo, .hm-mundos:has(.hm-mundo:hover) .hm-mundo:hover{ flex:0 0 min(78vw,420px); }
  .hm-mundo-k{ font-size:clamp(2.6rem,12vw,3.6rem); }
}

/* ---------- OBRA · mosaico a ras: cada fila se reparte por proporción y llena el ancho exacto ---------- */
.hm-obra{ padding-block:clamp(64px,8vw,132px) clamp(56px,7vw,112px); }
.hm-row{ display:flex; align-items:flex-start; gap:var(--hm-g); }
.hm-row + .hm-row{ margin-top:var(--hm-g); }
.hm-t{
  position:relative; display:block; flex:var(--ar,1) 1 0; min-width:0; aspect-ratio:var(--ar,1); overflow:hidden; isolation:isolate;
  background:#12110f; color:#F2ECE2; text-decoration:none;
}
.hm-t img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; transition:transform 1.4s var(--gd-ease); }
.hm-t:hover img, .hm-t:focus-visible img{ transform:scale(1.05); }
.hm-t:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.hm-t-cap{
  position:absolute; inset:auto 0 0 0; display:flex; flex-direction:column; gap:4px; padding:clamp(40px,5vw,72px) clamp(14px,1.5vw,24px) clamp(14px,1.5vw,22px);
  background:linear-gradient(to top,rgba(31,27,22,.82),rgba(31,27,22,0));
}
.hm-t-cap b{ font-family:var(--body); font-weight:500; font-size:clamp(.92rem,1.05vw,1.08rem); line-height:1.25; color:#F2ECE2; }
.hm-t-cap em{ font-style:normal; font-size:.75rem; letter-spacing:.16em; text-transform:uppercase; color:rgba(242,236,226,.7); }
.hm-stat{ isolation:auto; background:#0c0b09; }
.hm-stat-in{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end; gap:8px; padding:clamp(16px,1.9vw,30px);
  border:1px solid rgba(201,165,106,.5); font-family:var(--body);
}
.hm-stat b{ font-family:var(--display); font-weight:500; font-size:clamp(3.6rem,6.4vw,7rem); line-height:.9; letter-spacing:-.04em; color:#C9A56A; font-variant-numeric:tabular-nums; margin-bottom:auto; font-optical-sizing:none; font-variation-settings:"opsz" var(--gd-opsz,18); }
.hm-stat span{ font-size:clamp(.66rem,.78vw,.78rem); letter-spacing:.16em; text-transform:uppercase; color:rgba(242,236,226,.82); line-height:1.4; }
.hm-stat-in{ transition:border-color .45s var(--gd-ease); }
.hm-stat:hover .hm-stat-in, .hm-stat:focus-visible .hm-stat-in{ border-color:rgba(201,165,106,.95); }
.hm-stat:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.hm-stat i{ display:block; width:28px; height:1px; background:rgba(201,165,106,.7); margin:6px 0; }
@media (max-width:899px){
  .hm-mosaico{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--hm-g); }
  .hm-row{ display:contents; }
  .hm-row + .hm-row{ margin-top:0; }
  .hm-t{ flex:none; aspect-ratio:4/5; }
  .hm-mosaico .hm-row:first-child .hm-t:first-child{ grid-column:1 / -1; aspect-ratio:4/3; }
  .hm-mosaico .hm-row:nth-child(2) .hm-t:nth-child(3){ grid-column:1 / -1; aspect-ratio:4/3; }
  .hm-mosaico .hm-stat{ grid-column:1 / -1; aspect-ratio:16/7; }
  .hm-mosaico .hm-row--ancha .hm-t:first-child{ grid-column:1 / -1; aspect-ratio:16/10; }
  .hm-t-cap b{ font-size:.9rem; }
}

/* ---------- NAVIDAD · la escena a todo ancho ---------- */
.hm-escena{
  padding-block:clamp(64px,8vw,132px) clamp(56px,7vw,112px); color:#F2ECE2;
  /* mismo ébano liso que el fondo de la página: sin degradados de colores ni rayado */
  background:#1F1B16;
}
.hm-escena-img{ position:relative; margin:0 0 clamp(32px,4vw,64px); }
.hm-escena .gd-shop{ border-radius:0; background:#0c0b09; }
.hm-shop-m{ display:none; }
.hm-hint{
  position:absolute; left:50%; bottom:clamp(14px,2vw,30px); z-index:4; transform:translateX(-50%); display:flex; align-items:center; gap:10px; margin:0; padding:9px 16px;
  font-family:var(--body); font-weight:500; font-size:.75rem; letter-spacing:.16em; text-transform:uppercase; white-space:nowrap; color:#F2ECE2;
  background:rgba(31,27,22,.62); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); pointer-events:none;
}
.hm-hint i{ position:relative; flex:none; width:16px; height:16px; border-radius:50%; border:1px solid #C9A56A; background:none; }
.hm-hint i::before, .hm-hint i::after{ content:''; position:absolute; left:50%; top:50%; background:#C9A56A; transform:translate(-50%,-50%); }
.hm-hint i::before{ width:6px; height:1px; }
.hm-hint i::after{ width:1px; height:6px; }
@media (min-width:900px){
  .hm-escena #navProds{ grid-template-columns:repeat(6,minmax(0,1fr)); gap:clamp(24px,2.4vw,36px) var(--hm-g); }
  .hm-escena #navProds > :nth-child(n+7){ display:none; }
}
@media (max-width:899px){
  .hm-shop-d{ display:none; }
  .hm-shop-m{ display:block; }
  /* móvil: la imagen es pequeña y sus botones tapan la pista; la pista pasa debajo, en la línea izquierda */
  .hm-hint{ position:static; transform:none; margin-top:12px; padding:0; font-size:.8125rem; background:none; backdrop-filter:none; -webkit-backdrop-filter:none; color:rgba(242,236,226,.78); }
}
.hm-escena .gd-prod-thumb{ background:#1a1713; }

/* ---------- MÉTODO · la sección del sitio, tal cual (estilos .gd-ba-* en index.html); aquí solo el aire ---------- */
.hm-metodo{ padding-block:clamp(64px,8vw,132px); }

/* ---------- CATÁLOGO · dos escenas ---------- */
.hm-cat{ padding-block:clamp(64px,8vw,132px); }
.hm-cat .hm-h{ color:var(--ebano); }
.hm-cat .hm-h em{ color:var(--bronce-texto); }
.hm-cat .gd-link{ color:var(--ebano); }
.hm-cat-row{ display:grid; gap:var(--hm-g); grid-template-columns:minmax(0,1fr); }
@media (min-width:900px){ .hm-cat-row{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.hm-cat-p{ position:relative; display:block; aspect-ratio:16/11; overflow:hidden; isolation:isolate; text-decoration:none; background:#0c0b09; color:#F2ECE2; }
.hm-cat-p img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; transition:transform 1.5s var(--gd-ease); }
.hm-cat-p::after{ content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(to top,rgba(31,27,22,.82),rgba(31,27,22,0) 52%); pointer-events:none; }
.hm-cat-p:hover img, .hm-cat-p:focus-visible img{ transform:scale(1.04); }
.hm-cat-p:focus-visible{ outline:2px solid #7D5F33; outline-offset:3px; }
.hm-cat-cap{ position:absolute; left:0; right:0; bottom:0; display:flex; align-items:flex-end; justify-content:space-between; gap:16px; padding:clamp(20px,2.6vw,44px); }
.hm-cat-cap b{ font-family:var(--display); font-weight:500; font-size:clamp(2.2rem,3.8vw,4rem); line-height:1; letter-spacing:-.025em; color:#F2ECE2; font-optical-sizing:none; font-variation-settings:"opsz" var(--gd-opsz,18); }
.hm-cat-cap .hm-go{ color:#C9A56A; padding-bottom:.5em; }
.hm-cat-p:hover .hm-go i, .hm-cat-p:focus-visible .hm-go i{ width:44px; }

/* ---------- CIERRE ---------- */
.hm-cta{ padding-block:clamp(88px,11vw,180px); }
.hm-cta .gd-in{ max-width:1000px; }
.hm-cta-h{ margin:0 0 clamp(16px,2vw,26px); font-family:var(--display); font-weight:500; font-size:clamp(2.6rem,6.4vw,6.6rem); line-height:.98; letter-spacing:-.03em; color:var(--lino); text-wrap:balance; font-optical-sizing:none; font-variation-settings:"opsz" var(--gd-opsz,18); }
.hm-cta-h em{ font-style:italic; font-weight:400; color:var(--accent); }
.hm-cta-p{ margin:0 auto clamp(26px,3vw,40px); max-width:40ch; font-size:clamp(1rem,1.2vw,1.15rem); line-height:1.6; color:var(--text-dim); }

/* ==========================================================================
   ESCALA TIPOGRÁFICA DEL BLOQUE — misma lógica en escritorio y móvil
   · etiquetas en versalitas: 12 px en móvil, 13 px a 1920 px (nunca por debajo de 12)
   · nombres y pies de foto: 15–17 px · subtítulos: 16–20 px
   Se aplica solo dentro del Home; los componentes del sitio no cambian en otras páginas.
   ========================================================================== */
:root{
  --hm-t-label:clamp(.76rem,.68rem + .12vw,.88rem);
  --hm-t-small:clamp(.95rem,.88rem + .2vw,1.1rem);
  --hm-t-sub:clamp(1rem,.9rem + .3vw,1.28rem);
}
.hm-go{ font-size:var(--hm-t-label); }
.hm-mundo-s{ font-size:var(--hm-t-sub); }
.hm-t-cap b{ font-size:clamp(.95rem,.88rem + .22vw,1.14rem); }
.hm-t-cap em{ font-size:var(--hm-t-label); letter-spacing:.12em; }
.hm-stat span{ font-size:var(--hm-t-label); letter-spacing:.14em; }
.hm-hint{ font-size:var(--hm-t-label); }
body .hm-bar .gd-link, body .hm-metodo .gd-link{ font-size:var(--hm-t-label); }
body .hm-escena .gd-prod-cat, body .hm-escena .gdt-quick{ font-size:var(--hm-t-label); }
body .hm-escena .gd-prod-name{ font-size:var(--hm-t-small); }
body .hm-escena .gd-prod-price{ font-size:var(--hm-t-small); }
@media (min-width:900px){ body .hm-escena .gd-shop-bar button{ font-size:var(--hm-t-label); } }
body .hm-metodo .gd-eyebrow, body #estudio .gd-eyebrow{ font-size:var(--hm-t-label); }
body .hm-metodo .gd-ba-hint, body .hm-metodo .gd-ba-meta, body .hm-metodo .gd-ba-tag{ font-size:var(--hm-t-label); }
body .hm-metodo .gd-ba-tab{ font-size:clamp(.82rem,.76rem + .16vw,.95rem); }
body #estudio .gd-estudio-foto > a{ display:block; }
body #estudio .gd-estudio-firma span{ font-size:var(--hm-t-label); }
body .hm-cta .gd-btn{ font-size:clamp(.8rem,.74rem + .14vw,.92rem); }

/* móvil estrecho: pies de foto en una sola línea limpia (sin etiquetas partidas en tres) */
@media (max-width:599px){
  .hm-mosaico .hm-t-cap em{ display:none; }
  .hm-mosaico .hm-row:first-child .hm-t:first-child .hm-t-cap em,
  .hm-mosaico .hm-row:nth-child(2) .hm-t:nth-child(3) .hm-t-cap em,
  .hm-mosaico .hm-row--ancha .hm-t:first-child .hm-t-cap em{ display:block; }
  .hm-cat-cap{ flex-direction:column; align-items:flex-start; gap:12px; }
  .hm-cat-cap .hm-go{ padding-bottom:0; }
}

/* ==========================================================================
   MÓVIL · UN SOLO RITMO Y UNA SOLA ESCALA DE ENCABEZADOS
   · mismo aire arriba y abajo en todas las secciones (--hm-sec); entre dos secciones
     oscuras queda un único hueco de 2 × --hm-sec, sin sumar rellenos de más
   · tres tamaños de título: frase de apertura y cierre · título de sección · franja de marcas
   · cada título de sección lleva su rótulo en versalitas y sus enlaces en una fila
   ========================================================================== */
.hm-eb{ display:none; }
@media (max-width:899px){
  :root{ --hm-sec:clamp(32px,9vw,48px); --hm-h-m:clamp(1.8rem,8.3vw,2.3rem); }

  /* ritmo vertical */
  .hm-triptico{ padding-block:var(--hm-sec); }
  .hm-marcas{ margin-top:calc(var(--hm-sec) * 1.75); }
  .hm-obra, .hm-escena, .hm-metodo, body #estudio{ padding-block:var(--hm-sec); }
  .hm-cat{ padding-block:calc(var(--hm-sec) * 1.4); }
  .hm-cta{ padding-block:calc(var(--hm-sec) * 2); }
  /* cierre: mismo borde izquierdo que el resto de secciones (antes centrado) y botones del mismo ancho */
  .hm-cta .gd-in{ text-align:left; }
  .hm-cta-h{ text-align:left; }
  .hm-cta-p{ margin-left:0; margin-right:0; max-width:34ch; text-align:left; }
  .hm-cta .gd-cta-btns{ flex-direction:column; align-items:stretch; justify-content:flex-start; gap:12px; }
  .hm-cta .gd-cta-btns .gd-btn{ width:100%; justify-content:center; }
  .hm-escena-img{ margin-bottom:24px; }
  .hm-mundos-nav{ margin-top:14px; }

  /* rótulos + títulos de sección: misma escala, mismo espacio */
  .hm-eb{ display:block; margin:0 0 10px; }
  .hm-cat .hm-eb{ color:var(--bronce-texto); }
  .hm-h, .hm-open-h, .hm-cta-h, body .hm-metodo .gd-h2, body #estudio .gd-h2{ font-size:var(--hm-h-m); line-height:1.06; letter-spacing:-.02em; }
  .hm-bar{ flex-direction:column; align-items:flex-start; gap:14px; margin-bottom:20px; }
  .hm-bar-links{ gap:10px 24px; }
  body .hm-metodo .gd-eyebrow, body #estudio .gd-eyebrow{ margin-bottom:10px; }
  .gd-ba-head{ margin-bottom:24px; gap:20px; }

  /* franja de marcas: título secundario + rótulo con las banderas en una fila */
  .hm-marcas-t{ font-size:clamp(1.3rem,6vw,1.6rem); }
  .hm-marcas-head{ flex-direction:column; align-items:flex-start; gap:12px; margin-bottom:8px; }

  /* autoría: retrato sin marco desplazado (se salía de la línea derecha) y valores en lista */
  body #estudio .gd-estudio-foto::before{ display:none; }
  body #estudio .gd-estudio-grid{ gap:28px; }
  body #estudio .gd-estudio-firma{ margin-top:28px; padding-top:20px; }
  body #estudio .gd-valores{ grid-template-columns:1fr; gap:14px; margin-top:28px; }
  body #estudio .gd-valor{ display:grid; grid-template-columns:86px minmax(0,1fr); gap:14px; align-items:baseline; }
  body #estudio .gd-valor b{ margin:0; }
}
@media (max-width:599px){
  .hm-marcas-s > span:first-child{ display:inline; }
  .hm-mosaico .hm-stat{ aspect-ratio:auto; height:152px; }
}
@media (max-width:359px){
  .hm-marcas-s > span:first-child{ display:none; }
}
/* tableta vertical: la cifra no necesita media pantalla de alto */
@media (min-width:600px) and (max-width:899px){
  .hm-mosaico .hm-stat{ aspect-ratio:7/2; }
}

@media (prefers-reduced-motion:reduce){
  .hm-mundo, .hm-mundo img, .hm-t img, .hm-cat-p img, .hm-go i{ transition:none; }
}
