/* Sitio de demostracion de Triple H Kitchens & Baths.

   Hoja propia y todo con prefijo th-: con la hoja comun este sitio era igual
   que Riverside y que DeMark. El lenguaje es el de un plano de taller:
   condensada en mayusculas, filetes de 3 px, esquinas rectas, cotas y una
   rejilla milimetrada. Sin sombras ni degradados de agencia.

   Colores: las variables --th-* llegan desde el JSON del negocio (el <style>
   de la plantilla); ambar, calido-texto y gris-claro se derivan alli para
   que el texto pase AA en cada fondo:
     tinta sobre ambar 6,1   ambar sobre tinta 6,1   gris-claro sobre tinta 9,0
     gris sobre fondo 5,6    calido-texto sobre fondo 5,9   tinta sobre acento-claro 13,7

   Sin JS: el visitante es el dueno de un taller mirandolo en el movil. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/barlow-condensed-latin.woff2') format('woff2');
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-sans-latin.woff2') format('woff2');
}

:root {
  --th-cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --th-texto: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Un solo sistema de espaciado para cabecera, cuerpo y pie. */
  --th-esp-1: 8px;
  --th-esp-2: 16px;
  --th-esp-3: 24px;
  --th-esp-4: clamp(32px, 4vw, 48px);
  --th-esp-5: clamp(56px, 8vw, 104px);
  --th-margen: clamp(20px, 4vw, 48px);
  --th-filete: 3px;
  --th-barra: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

.th {
  margin: 0;
  font-family: var(--th-texto);
  font-size: 17px;
  line-height: 1.6;
  color: var(--th-tinta);
  background-color: var(--th-fondo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
/* Reglas base con :where() para que no ganen por especificidad a las clases
   th-* (un `.th p` pisaba los margenes de .th-nota, .th-acciones, ...). */
:where(.th) svg { max-width: 100%; }
:where(.th) a { color: inherit; }
:where(.th) :is(h1, h2, h3) {
  font-family: var(--th-cond);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
:where(.th) h2 { font-size: clamp(30px, 3.6vw, 46px); }
:where(.th) p { margin: 0 0 1em; }
.th :focus-visible { outline: 3px solid var(--th-tinta); outline-offset: 3px; }
.th .th-oscuro :focus-visible, .th .th-barra-movil :focus-visible { outline-color: var(--th-ambar); }

.th-cifras, .th-precio, .th-paso-num, .th-titulo-num, .th-tabla-num, .th-pieza-num, .th-svg text {
  font-variant-numeric: tabular-nums;
}

.th-contenedor { width: min(1240px, 100% - 2 * var(--th-margen)); margin-inline: auto; }

.th-oscuro { background-color: var(--th-tinta); color: var(--th-fondo); }

/* ---------- banda de aviso: esto es una propuesta, no el sitio oficial ---------- */
.aviso-demo {
  background-color: var(--th-acento-claro);
  color: var(--th-tinta);
  border-bottom: var(--th-filete) solid var(--th-calido);
  font-size: 14px;
  line-height: 1.45;
  padding: var(--th-esp-1) var(--th-margen);
  display: flex; flex-wrap: wrap; gap: var(--th-esp-1) var(--th-esp-2);
  align-items: center; justify-content: center; text-align: center;
}
.aviso-demo strong { font-weight: 700; }
.aviso-demo a {
  color: var(--th-tinta); font-weight: 700; white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}

/* ---------- botones ---------- */
.th-boton, .th-boton-linea {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--th-esp-1);
  min-height: 48px;
  padding: 10px 20px;
  font-family: var(--th-cond); font-weight: 700; font-size: 19px; line-height: 1.1;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none; text-align: center;
  border: var(--th-filete) solid var(--th-ambar); border-radius: 0; cursor: pointer;
}
.th-boton { background-color: var(--th-ambar); color: var(--th-tinta); }
.th-boton:hover { background-color: var(--th-fondo); color: var(--th-tinta); }
.th-boton-linea { background-color: transparent; color: var(--th-tinta); border-color: var(--th-tinta); }
.th-boton-linea:hover { background-color: var(--th-tinta); color: var(--th-fondo); }
.th-oscuro .th-boton-linea { color: var(--th-fondo); border-color: var(--th-fondo); }
.th-oscuro .th-boton-linea:hover { background-color: var(--th-fondo); color: var(--th-tinta); }
.th-boton-grande { min-height: 56px; padding: 12px 28px; font-size: 21px; }

/* ---------- cabecera ---------- */
.th-cab { border-bottom: var(--th-filete) solid var(--th-ambar); }
.th-cab-fila {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: var(--th-esp-2) var(--th-esp-3);
  padding-block: var(--th-esp-2);
}
.th-marca {
  font-family: var(--th-cond); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1; text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  color: var(--th-fondo);
}
.th-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 var(--th-esp-1); }
.th-nav a {
  display: inline-block; padding: 10px var(--th-esp-1) 7px;
  font-family: var(--th-cond); font-weight: 700; font-size: 18px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  color: var(--th-gris-claro);
  border-bottom: var(--th-filete) solid transparent;
}
.th-nav a:hover { color: var(--th-fondo); }
.th-nav a[aria-current="page"] { color: var(--th-fondo); border-bottom-color: var(--th-ambar); }
.th-boton-tel { font-size: 22px; min-height: 52px; }

@media (max-width: 960px) {
  .th-cab-fila { grid-template-columns: 1fr auto; }
  .th-nav { grid-column: 1 / -1; justify-content: flex-start; margin-left: calc(-1 * var(--th-esp-1)); }
}

/* ---------- titulares y portada ---------- */
.th-ceja {
  display: flex; align-items: center; gap: var(--th-esp-2);
  font-family: var(--th-cond); font-weight: 700; font-size: 18px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--th-ambar);
}
.th-ceja::before { content: ""; flex: 0 0 40px; height: var(--th-filete); background-color: var(--th-ambar); }
.th .th-titular {
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: .92;
  letter-spacing: .005em;
  margin-bottom: var(--th-esp-3);
  hyphens: manual;
}
.th-intro { font-size: clamp(17px, 1.5vw, 19px); max-width: 58ch; color: var(--th-gris-claro); }
.th-acciones { display: flex; flex-wrap: wrap; gap: var(--th-esp-2); margin: var(--th-esp-4) 0 0; }

.th-hero { padding-block: var(--th-esp-5); }
.th-hero-fila {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--th-esp-4); align-items: center;
}
@media (max-width: 900px) { .th-hero-fila { grid-template-columns: minmax(0, 1fr); } }

/* Papel milimetrado: solo en contenedores sin texto (el dibujo va encima). */
.th-papel {
  background-color: var(--th-fondo);
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--th-acento) 16%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--th-acento) 16%, transparent) 1px, transparent 1px),
    linear-gradient(to right, color-mix(in srgb, var(--th-acento) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--th-acento) 7%, transparent) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}

.th-plano { margin: 0; border: var(--th-filete) solid var(--th-ambar); background-color: var(--th-fondo); }
.th-plano-dibujo { padding: var(--th-esp-2); }
.th-plano-dibujo svg { display: block; width: 100%; height: auto; }
.th-plano figcaption {
  background-color: var(--th-fondo); color: var(--th-gris);
  border-top: var(--th-filete) solid var(--th-tinta);
  font-size: 14px; line-height: 1.4; padding: 10px var(--th-esp-2);
}

/* ---------- dibujos (clases de _arte_triple-h.html) ---------- */
.th-svg { overflow: visible; }
.th-l-objeto { fill: var(--th-superficie); stroke: var(--th-tinta); stroke-width: 2.5; stroke-linejoin: miter; }
.th-l-detalle { fill: none; stroke: var(--th-tinta); stroke-width: 1.4; }
.th-l-oculta { fill: none; stroke: var(--th-gris); stroke-width: 1.4; stroke-dasharray: 6 4; }
.th-l-fantasma { fill: none; stroke: var(--th-gris); stroke-width: 2; stroke-dasharray: 8 6; }
.th-encimera { fill: var(--th-acento); }
.th-zocalo { fill: var(--th-acento-claro); stroke: var(--th-tinta); stroke-width: 1.4; }
.th-tirador { fill: var(--th-tinta); }
.th-muro { fill: var(--th-tinta); }
.th-espejo { fill: var(--th-acento-claro); stroke: var(--th-tinta); stroke-width: 2.5; }
.th-bandeja { fill: var(--th-acento-claro); stroke: var(--th-tinta); stroke-width: 2; }
.th-suelo { fill: none; stroke: var(--th-tinta); stroke-width: 3; }
.th-trama { fill: none; stroke: var(--th-gris); stroke-width: 1.2; }
.th-l-ext { fill: none; stroke: var(--th-calido-texto); stroke-width: 1; }
.th-l-cota { fill: none; stroke: var(--th-calido-texto); stroke-width: 1.6; }
.th-flecha { fill: var(--th-calido-texto); }
.th-cota-fondo { fill: var(--th-fondo); }
.th-cota-num, .th-cajetin-txt {
  font-family: var(--th-cond); font-weight: 700; font-size: 16px; fill: var(--th-tinta);
}
.th-cajetin { fill: var(--th-superficie); stroke: var(--th-tinta); stroke-width: 2.5; }

/* ---------- secciones ---------- */
.th-seccion { padding-block: var(--th-esp-5); background-color: var(--th-fondo); }
/* La rejilla va en un pseudo-elemento detras del contenido: el texto sigue
   teniendo como fondo el color plano de la seccion. */
.th-rejilla { position: relative; isolation: isolate; }
.th-rejilla::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--th-acento) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--th-acento) 6%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
}

.th-titulo-seccion {
  display: flex; align-items: baseline; gap: var(--th-esp-2);
  border-top: var(--th-filete) solid var(--th-tinta);
  padding-top: var(--th-esp-2); margin-bottom: var(--th-esp-4);
}
.th-titulo-seccion h2 { margin: 0; }
.th-titulo-num {
  font-family: var(--th-cond); font-weight: 700; font-size: 22px; line-height: 1;
  color: var(--th-calido-texto); background-color: var(--th-fondo);
}

/* ---------- tabla de especificaciones ---------- */
.th-tabla {
  width: 100%; border-collapse: collapse;
  background-color: var(--th-superficie);
  border: var(--th-filete) solid var(--th-tinta);
}
.th-tabla thead th {
  background-color: var(--th-tinta); color: var(--th-gris-claro);
  font-family: var(--th-cond); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .1em; text-align: left;
  padding: 12px var(--th-esp-3);
  border-bottom: var(--th-filete) solid var(--th-ambar);
}
.th-tabla .th-col-precio { text-align: right; }
.th-tabla tbody tr + tr { border-top: 2px solid var(--th-tinta); }
.th-tabla tbody th, .th-tabla td { padding: var(--th-esp-3); vertical-align: top; text-align: left; }
.th-tabla tbody th {
  width: 30%;
  font-family: var(--th-cond); font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05;
  text-transform: uppercase; letter-spacing: .01em;
}
.th-tabla-num {
  display: block; margin-bottom: 6px;
  font-size: 16px; letter-spacing: .08em; color: var(--th-calido-texto);
}
.th-tabla td { color: var(--th-gris); max-width: 60ch; }
.th-tabla .th-precio {
  width: 1%; white-space: nowrap; text-align: right;
  font-family: var(--th-cond); font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.1;
  color: var(--th-tinta);
  border-left: 2px solid var(--th-acento-claro);
}

@media (max-width: 640px) {
  .th-tabla, .th-tabla tbody, .th-tabla tr, .th-tabla tbody th, .th-tabla td { display: block; width: auto; }
  .th-tabla thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .th-tabla tbody tr { padding: var(--th-esp-2); }
  .th-tabla tbody th, .th-tabla td { padding: 0; }
  .th-tabla td { margin-top: var(--th-esp-1); }
  /* width: auto explicito: la regla de escritorio (.th-tabla .th-precio,
     width: 1%) gana en especificidad a ".th-tabla td" y la celda salia de
     un caracter de ancho, con el precio partido letra a letra. */
  .th-tabla .th-precio {
    width: auto; white-space: normal; text-align: left; border-left: 0;
    border-top: 2px solid var(--th-acento-claro); padding-top: var(--th-esp-1); margin-top: var(--th-esp-2);
  }
}

/* ---------- como va un trabajo: cuatro pasos unidos por una linea ---------- */
.th-pasos {
  --th-num: clamp(64px, 7vw, 104px);
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--th-esp-3);
}
.th-paso { position: relative; }
.th-paso:not(:last-child)::before {
  content: ""; position: absolute; z-index: 0;
  top: calc(var(--th-num) * .46); left: 0; right: calc(-1 * var(--th-esp-3));
  height: var(--th-filete); background-color: var(--th-calido);
}
.th-paso-num {
  position: relative; z-index: 1; display: inline-block;
  padding-right: var(--th-esp-2);
  font-family: var(--th-cond); font-weight: 700; font-size: var(--th-num); line-height: 1;
  color: var(--th-acento); background-color: var(--th-fondo);
}
.th-paso p {
  margin: var(--th-esp-2) 0 0; padding-top: var(--th-esp-2);
  border-top: var(--th-filete) solid var(--th-tinta);
  background-color: var(--th-fondo);
}

@media (max-width: 760px) {
  .th-pasos { --th-num: 64px; grid-template-columns: minmax(0, 1fr); gap: var(--th-esp-3); }
  .th-paso { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: var(--th-esp-2); align-items: start; }
  .th-paso:not(:last-child)::before {
    top: var(--th-num); bottom: calc(-1 * var(--th-esp-3)); left: 30px; right: auto;
    width: var(--th-filete); height: auto;
  }
  .th-paso-num { padding-right: 0; }
  .th-paso p { margin: 0; padding-top: var(--th-esp-1); }
}

/* ---------- franja de llamada a la accion ---------- */
.th-llamada { padding-block: var(--th-esp-5); border-top: 8px solid var(--th-ambar); }
.th-llamada-fila {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--th-esp-4); align-items: end;
}
.th-llamada h2 { font-size: clamp(34px, 4.4vw, 60px); max-width: 18ch; }
.th-llamada p { color: var(--th-gris-claro); max-width: 56ch; }
.th-llamada .th-acciones { margin: 0; }
@media (max-width: 860px) { .th-llamada-fila { grid-template-columns: minmax(0, 1fr); } }

/* ---------- cabecera de las paginas interiores ---------- */
.th-cabecera-pag { padding-block: var(--th-esp-4) var(--th-esp-5); }
.th-cabecera-pag .th-titular { font-size: clamp(48px, 8vw, 112px); }

.th-cadena {
  list-style: none; margin: var(--th-esp-4) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--th-esp-2);
}
.th-cadena li {
  display: flex; align-items: center; gap: var(--th-esp-2);
  font-family: var(--th-cond); font-weight: 700; font-size: clamp(22px, 2.6vw, 32px); line-height: 1;
  text-transform: uppercase; letter-spacing: .06em; color: var(--th-ambar);
}
.th-cadena li:not(:last-child)::after {
  content: ""; width: clamp(28px, 5vw, 72px); height: var(--th-filete); background-color: var(--th-gris-claro);
}

/* ---------- trabajos: bento de dos columnas ---------- */
.th-nota-dibujo { color: var(--th-gris); font-size: 15px; margin-bottom: var(--th-esp-3); }
.th-bento {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(clamp(320px, 34vw, 460px), auto);
  gap: var(--th-esp-3);
}
.th-pieza {
  margin: 0; display: flex; flex-direction: column;
  background-color: var(--th-superficie); border: var(--th-filete) solid var(--th-tinta);
}
.th-pieza:nth-child(4n + 1) { grid-column: span 2; }
.th-pieza:nth-child(4n + 3) { grid-row: span 2; }
.th-pieza-dibujo { position: relative; flex: 1 1 auto; min-height: 240px; }
.th-pieza-dibujo svg {
  position: absolute; inset: var(--th-esp-3);
  width: calc(100% - 2 * var(--th-esp-3)); height: calc(100% - 2 * var(--th-esp-3));
}
.th-pieza figcaption {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--th-esp-2);
  padding: var(--th-esp-2) var(--th-esp-3);
  background-color: var(--th-superficie);
  border-top: var(--th-filete) solid var(--th-calido);
}
.th-pieza-num {
  grid-row: span 2;
  font-family: var(--th-cond); font-weight: 700; font-size: 40px; line-height: 1;
  color: var(--th-calido-texto);
}
.th .th-pieza-titulo { font-size: clamp(24px, 2.4vw, 32px); margin: 0; line-height: 1; }
.th-pieza-detalle { margin: 6px 0 0; color: var(--th-gris); font-size: 16px; }

@media (max-width: 720px) {
  .th-bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .th-pieza:nth-child(4n + 1) { grid-column: auto; }
  .th-pieza:nth-child(4n + 3) { grid-row: auto; }
  .th-pieza-dibujo { position: static; min-height: 0; padding: var(--th-esp-2); }
  .th-pieza-dibujo svg { position: static; display: block; width: 100%; height: auto; max-height: 460px; margin-inline: auto; }
}

/* ---------- sobre ---------- */
.th-sobre-fila {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--th-esp-4); align-items: start;
}
.th-texto {
  background-color: var(--th-fondo);
  border-top: var(--th-filete) solid var(--th-tinta); padding-top: var(--th-esp-3);
}
.th-texto p { font-size: clamp(17px, 1.5vw, 20px); max-width: 60ch; }
.th-texto p:first-child {
  font-family: var(--th-cond); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 2.8vw, 36px); line-height: 1.08; letter-spacing: .01em;
}
.th-ficha {
  background-color: var(--th-superficie);
  border: var(--th-filete) solid var(--th-tinta); border-top: 10px solid var(--th-ambar);
  padding: var(--th-esp-3);
}
.th-ficha h2 { font-size: 30px; }
@media (max-width: 860px) { .th-sobre-fila { grid-template-columns: minmax(0, 1fr); } }

.th-datos { margin: 0; display: grid; gap: 0; }
.th-datos div { padding: var(--th-esp-2) 0; border-top: 2px solid var(--th-acento-claro); }
.th-datos div:first-child { border-top: 0; padding-top: 0; }
.th-datos dt {
  font-family: var(--th-cond); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .12em; color: var(--th-calido-texto);
}
.th-datos dd { margin: 4px 0 0; }
.th-datos a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- contacto ---------- */
.th-contacto-fila {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--th-esp-4); align-items: stretch;
}
@media (max-width: 860px) { .th-contacto-fila { grid-template-columns: minmax(0, 1fr); } }
.th-form {
  display: grid; gap: var(--th-esp-3); align-content: start;
  background-color: var(--th-superficie);
  border: var(--th-filete) solid var(--th-tinta); border-top: 10px solid var(--th-ambar);
  padding: var(--th-esp-4) var(--th-esp-3);
}
.th-campo { display: grid; gap: 6px; min-width: 0; }
.th-campo label {
  font-family: var(--th-cond); font-weight: 700; font-size: 17px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .08em;
}
.th-form input, .th-form select, .th-form textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 17px;
  padding: 12px 14px; border-radius: 0;
  border: 2px solid var(--th-tinta); background-color: var(--th-fondo); color: var(--th-tinta);
}
.th-form textarea { resize: vertical; }
.th-form input:focus, .th-form select:focus, .th-form textarea:focus { outline: 3px solid var(--th-calido); outline-offset: 0; }
.th-form ::placeholder { color: var(--th-gris); }
.th-fila-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--th-esp-3); }
@media (max-width: 560px) { .th-fila-2 { grid-template-columns: minmax(0, 1fr); } }
.th-form .th-boton { justify-self: start; }
.th-nota { margin: 0; color: var(--th-gris); font-size: 14px; }

.th-lateral { padding: var(--th-esp-4) var(--th-esp-3); border-top: 10px solid var(--th-ambar); align-self: start; }
.th-lateral h2 { font-size: 30px; }
.th-lateral .th-datos div { border-top-color: var(--th-acento); }
.th-lateral .th-datos dt { color: var(--th-ambar); }
.th-lateral .th-datos dd { color: var(--th-fondo); }
.th-lateral .th-datos .th-cifras { font-family: var(--th-cond); font-weight: 700; font-size: 28px; line-height: 1.1; }
.th-lateral .th-boton { margin-top: var(--th-esp-3); width: 100%; }

/* ---------- pie ---------- */
.th-pie { padding-block: var(--th-esp-4) var(--th-esp-3); border-top: var(--th-filete) solid var(--th-ambar); }
.th-pie-fila {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--th-esp-3) var(--th-esp-4);
  padding-bottom: var(--th-esp-3);
}
.th-pie p { color: var(--th-gris-claro); font-size: 15px; }
.th .th-pie-marca {
  font-family: var(--th-cond); font-weight: 700; font-size: 26px; line-height: 1;
  text-transform: uppercase; color: var(--th-fondo); margin-bottom: var(--th-esp-2);
}
.th-pie a { color: var(--th-fondo); }
.th-pie-enlaces {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, auto); gap: var(--th-esp-1) var(--th-esp-4); align-content: start;
}
.th-pie-enlaces a {
  display: inline-block; padding: 4px 0;
  font-family: var(--th-cond); font-weight: 700; font-size: 18px;
  text-transform: uppercase; letter-spacing: .05em; text-decoration: none; color: var(--th-gris-claro);
}
.th-pie-enlaces a:hover { color: var(--th-fondo); }
.th .th-pie-nota {
  margin: 0; padding-top: var(--th-esp-2);
  border-top: 2px solid var(--th-acento);
  font-size: 13px; color: var(--th-gris-claro);
}

/* ---------- barra fija de movil: llamar y pedir presupuesto ---------- */
.th-barra-movil { display: none; }

@media (max-width: 640px) {
  .th { padding-bottom: calc(var(--th-barra) + env(safe-area-inset-bottom, 0px)); }
  .th-boton-tel { display: none; }
  .th-cab-fila { grid-template-columns: minmax(0, 1fr); }
  /* Con el aire de escritorio los cinco enlaces median 406 px y a 390 de
     ancho Contact bajaba solo a una segunda fila. Asi caben en una desde
     360 px; si no, siguen partiendo linea en vez de desbordar. */
  .th-nav { justify-content: space-between; gap: 0 4px; margin-inline: -4px; }
  .th-nav a { padding-inline: 4px; font-size: 17px; letter-spacing: .03em; }
  .th-barra-movil {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--th-esp-1);
    height: calc(var(--th-barra) + env(safe-area-inset-bottom, 0px));
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background-color: var(--th-tinta);
    border-top: var(--th-filete) solid var(--th-ambar);
  }
  .th-barra-movil .th-boton, .th-barra-movil .th-boton-linea {
    min-height: 0; padding: 4px 10px; font-size: 18px;
  }
  .th-barra-movil .th-boton-linea { color: var(--th-fondo); border-color: var(--th-fondo); }
  .th-acciones .th-boton, .th-acciones .th-boton-linea { flex: 1 1 auto; }
}

@media print {
  .th-barra-movil { display: none; }
  .th { padding-bottom: 0; }
}
