/* Dossier: cuatro hojas A4 (794 × 1123 px a 96 ppp = 210 × 297 mm). En pantalla se ven sobre gris y
   se reducen en el móvil; al imprimir, cada hoja es una página. */

@page { size: A4; margin: 0; }

.cf-dossier { background: var(--fondo-hueco); }
.cf-dossier__barra {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--margen);
  background: var(--papel);
  border-bottom: 1px solid var(--linea);
}
.cf-dossier__hojas { display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 32px var(--margen) 64px; }

.cf-hoja {
  flex: none;
  width: 794px;
  height: 1123px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 56px 64px 48px;
  background: var(--papel);
  color: var(--tinta);
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: 0 10px 34px rgba(13, 16, 17, 0.16);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.cf-hoja p { margin: 0; }

@media (max-width: 860px) {
  .cf-hoja { zoom: 0.8; }
}
@media (max-width: 680px) {
  .cf-hoja { zoom: 0.44; }
}

/* Portada: la cabecera de Inicio y sus cinco novedades */
.cf-hoja--portada { gap: 34px; }
.cf-hoja__marca { display: flex; align-items: center; gap: 18px; }
.cf-hoja__marca .cf-hoja__gris { margin-left: auto; font-family: var(--mono); font-size: 12px; }
.cf-hoja__nombre { font-weight: 650; font-stretch: 118%; font-size: 22px; line-height: 1.1; letter-spacing: -0.01em; }
.cf-hoja__oficios { margin-top: 4px !important; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }
.cf-hoja__intro--portada { gap: 18px; padding-top: 24px; }
.cf-hoja__titular { margin: 0; font-weight: 620; font-stretch: 125%; font-size: 62px; line-height: 0.98; letter-spacing: -0.025em; text-wrap: balance; }
.cf-hoja__intro--portada p { max-width: 30em; font-size: 18px; color: var(--tinta-2); }
.cf-hoja__novedades { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cf-hoja__novedades article { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; }
.cf-hoja__novedades article:nth-child(-n+2) { grid-column: span 3; }
.cf-hoja__novedad { width: 100%; height: 150px; object-fit: cover; background: var(--blanco); }
.cf-hoja__novedades article:nth-child(-n+2) .cf-hoja__novedad { height: 220px; }
.cf-hoja__novedades strong { font-weight: 620; font-stretch: 112%; font-size: 14px; line-height: 1.25; }
.cf-hoja__datos {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1.5px solid var(--tinta);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.cf-hoja__gris { text-transform: uppercase; letter-spacing: 0.1em; color: var(--gris); }

/* Piezas comunes de las hojas interiores */
.cf-hoja__cabecera { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris); }
.cf-hoja__titulo { margin: 0; font-weight: 620; font-stretch: 125%; font-size: 44px; line-height: 1; letter-spacing: -0.025em; text-wrap: balance; }
.cf-hoja__intro { display: flex; flex-direction: column; gap: 8px; }
.cf-hoja__intro p { color: var(--tinta-2); font-size: 15.5px; }
.cf-hoja__etiqueta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris); }
.cf-hoja__final { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.cf-hoja__mono { font-family: var(--mono); font-size: 14px; }

/* Quién soy */
.cf-hoja__fila { display: flex; gap: 32px; }
.cf-hoja__texto { flex: 1; display: flex; flex-direction: column; gap: 10px; color: var(--tinta-2); text-wrap: pretty; }
.cf-hoja__texto p + p { margin-top: 0; }
.cf-hoja__texto .cf-hoja__titulo { margin-bottom: 8px; }
.cf-hoja__retrato { flex: 0 0 280px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cf-hoja__retrato .cf-encuadre { padding: 10px; --l: 16px; }
.cf-hoja__retrato-img { width: 100%; height: auto; }
.cf-hoja__retrato figcaption { padding-inline: 10px; font-size: 16px; line-height: 1.4; color: var(--tinta-2); }
.cf-hoja__areas { list-style: none; margin: 0; padding: 0; }
.cf-hoja__areas li { display: grid; grid-template-columns: 40px 1fr; column-gap: 22px; padding: 16px 0; border-top: 1px solid var(--linea); }
.cf-hoja__areas li:first-child { border-top: 1.5px solid var(--tinta); }
.cf-hoja__areas li:last-child { border-bottom: 1px solid var(--linea); }
.cf-hoja__areas li > span:first-child { grid-row: span 2; font-family: var(--mono); font-size: 13px; padding-top: 3px; }
.cf-hoja__areas strong { font-weight: 620; font-stretch: 118%; font-size: 19px; }
.cf-hoja__areas li > span:last-child { color: var(--tinta-2); }
.cf-hoja__clientes { font-weight: 600; font-stretch: 118%; font-size: 17px; line-height: 1.6; color: var(--tinta-2); }

/* Proyectos */
.cf-hoja__proyectos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cf-hoja__proyectos article { display: flex; gap: 14px; padding: 12px; background: var(--blanco); border: 1px solid var(--linea); }
.cf-hoja__miniatura { flex: 0 0 132px; width: 132px; height: 99px; object-fit: cover; object-position: top; }
.cf-hoja__proyectos article div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cf-hoja__proyectos strong { font-weight: 620; font-stretch: 118%; font-size: 17px; line-height: 1.2; }
.cf-hoja__proyectos article span:last-child { color: var(--tinta-2); font-size: 13.5px; line-height: 1.35; }
.cf-hoja__tira { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; }
.cf-hoja__tira-foto { width: 100%; height: 170px; object-fit: cover; }
.cf-hoja__nombres { font-weight: 600; color: var(--tinta-2); }

/* Fotografía y arte */
.cf-hoja__obras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cf-hoja__obra { width: 100%; height: 140px; object-fit: cover; }
.cf-hoja__grabado { display: flex; align-items: center; gap: 24px; }
.cf-hoja__lamina { flex: 0 0 300px; width: 300px; height: 124px; object-fit: contain; background: var(--blanco); border: 1px solid var(--linea); }
.cf-hoja__grabado div { display: flex; flex-direction: column; gap: 4px; color: var(--tinta-2); }
.cf-hoja__grabado strong { font-weight: 620; font-stretch: 118%; font-size: 18px; color: var(--tinta); }
.cf-hoja__cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 18px 0; border-top: 1.5px solid var(--tinta); border-bottom: 1px solid var(--linea); }
.cf-hoja__cifras div { display: flex; flex-direction: column; gap: 2px; }
.cf-hoja__cifras strong { font-weight: 650; font-stretch: 125%; font-size: 30px; line-height: 1; }
.cf-hoja__cifras span { color: var(--tinta-2); }
.cf-hoja__contacto { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: auto; }
.cf-hoja__hablamos { margin-bottom: 10px !important; font-weight: 620; font-stretch: 125%; font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; }
.cf-hoja__qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cf-hoja__qr svg { width: 112px; height: 112px; color: var(--tinta); }
.cf-hoja__qr figcaption { font-size: 12px; color: var(--gris); }

@media print {
  html, body { margin: 0 !important; background: none; }
  .cf-dossier__barra, #wpadminbar { display: none !important; }
  .cf-dossier__hojas { display: block; padding: 0; }
  .cf-hoja { zoom: 1; width: 210mm; height: 297mm; box-shadow: none; break-after: page; }
  .cf-hoja:last-child { break-after: auto; }
}
