/* =========================================================
   ZARIA · Componentes reutilizables entre páginas
   ========================================================= */

/* ---------- Subtítulo de sección ----------
   Texto en mayúsculas con línea solo a la derecha. Empieza a la
   derecha del menú fijo (--nav-clear, en tokens.css) para no
   superponerse nunca con él.
   Uso: <h2 class="section-label"><span>Texto</span></h2>          */
.section-label {
  display: flex; align-items: center;
  gap: calc(11 * var(--u));
  min-height: calc(35 * var(--u));        /* misma altura que una fila del menú */
  padding-left: var(--nav-clear);
  font-size: calc(19 * var(--u));
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.section-label::after {
  content: "";
  width: calc(160 * var(--u));
  height: 1px;
  background: currentColor;
}

@media (max-width: 1023px) {
  .section-label { padding-left: 20px; font-size: 16px; min-height: 0; }
  .section-label::after { width: 60px; }
}

/* ---------- Foto vintage y mate (revisión 10 nov., 2.ª tanda) ----------
   Mismo tratamiento en las tarjetas de Services y en las portadas de
   las cuatro páginas de servicio. Solo afecta a la imagen: el texto va
   siempre en una capa superior.
   Uso: <span|div class="vintage"><img …></span>
   - Imagen más oscura, cálida y mate (contraste algo más bajo,
     negros levantados), sin perder detalle.
   - ::before: grano visible + papel de alto gramaje (fibras y relieve). */
.vintage {
  --vintage-grain: .58;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #2a1810;
}
.vintage > img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(.38) saturate(.68) contrast(.92) brightness(.6);
}
.vintage::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* grano */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"),
    /* papel grueso: fibras alargadas */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='480' height='480' filter='url(%23f)'/%3E%3C/svg%3E"),
    /* papel grueso: relieve de baja frecuencia */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='520' height='520' filter='url(%23p)'/%3E%3C/svg%3E");
  background-size: 180px 180px, 480px 480px, 520px 520px;
  mix-blend-mode: overlay;
  opacity: var(--vintage-grain);
}
/* Velo mate: levanta un poco los negros, como una copia en papel */
.vintage::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgb(74 52 38 / .16);
  mix-blend-mode: lighten;
}
