/* PromoPrint · portada: "Una marca, cuatro técnicas". Lleva a /servicios/<slug>/.
   Las tarjetas están levemente desenfocadas y "enfocan" al pasar o al enfocarlas, como el hero de cada servicio. */

.tec { background: var(--ink); padding: clamp(72px, 8vw, 128px) 0; }
.tec__inner { width: var(--wrap); margin-inline: auto; }
.tec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: end; gap: 24px 64px; margin-bottom: clamp(32px, 4vw, 56px); }
.tec__eyebrow {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 0;
  font: 600 12.5px/1.2 var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: rgb(var(--paper-rgb) / 0.7);
}
.tec__eyebrow::before { content: ""; flex: none; width: 34px; height: 3px; border-radius: 2px; background: var(--brand); }
.tec__title { margin: 0; font-weight: 600; font-size: clamp(2.3rem, 1.2rem + 3vw, 4.2rem); line-height: 1.02; letter-spacing: -0.035em; color: var(--paper); text-wrap: balance; }
.tec__title em { font-style: normal; color: var(--brand); }
.tec__lead { margin: 0; max-width: 44ch; font: 400 clamp(1rem, 0.95rem + 0.25vw, 1.15rem)/1.55 var(--font); color: var(--paper-64); }

.tec__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tec__card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4; padding: 22px;
  overflow: hidden; isolation: isolate; border-radius: 20px; background: var(--carbon); color: var(--paper); text-decoration: none;
}
.tec__card img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); filter: brightness(0.88); /* nítidas desde el inicio (sin blur, decisión del founder 2026-11-04); el zoom entra al pasar el cursor */
  transition: transform 1100ms var(--ease-out), filter 700ms var(--ease-out);
}
.tec__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 11, 12, 0.92) 0%, rgba(11, 11, 12, 0.35) 45%, rgba(11, 11, 12, 0) 70%); }
.tec__n { font: 600 12px/1 var(--font); letter-spacing: 0.14em; color: var(--brand); }
.tec__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font: 600 clamp(1.25rem, 1.05rem + 0.55vw, 1.7rem)/1.15 var(--font); letter-spacing: -0.02em; }
.tec__name svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--ease-out); }
.tec__lead-card { margin-top: 6px; font: 500 14.5px/1.45 var(--font); color: rgb(var(--paper-rgb) / 0.72); }
.tec__card:hover img, .tec__card:focus-visible img { transform: scale(1); filter: none; }
.tec__card:hover .tec__name svg, .tec__card:focus-visible .tec__name svg { transform: translate(3px, -3px); color: var(--brand); }
.tec__card:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.tec__card:active { transform: scale(0.985); }

@media (max-width: 1200px) {
  /* Cinco tarjetas no caben en columnas por debajo de ~1200 px: carril deslizable. */
  .tec__head { grid-template-columns: 1fr; }
  .tec__grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(240px, 36%); overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--edge-x)); padding: 0 var(--edge-x) 8px; scroll-padding-inline: var(--edge-x); scrollbar-width: none; }
  .tec__grid::-webkit-scrollbar { display: none; }
  .tec__grid li { scroll-snap-align: start; }
}
/* Móvil: el carril avanza con el scroll vertical (tecnicas.js pone .is-pin y mueve .tec__grid con transform).
   La sección mide su contenido más el recorrido horizontal; el contenido queda fijo bajo el menú mientras tanto. */
@media (max-width: 899px) {
  .tec.is-pin { height: calc(var(--tec-alto, auto) + var(--tec-dist, 0px)); padding-top: 0; padding-bottom: 0; }
  .tec.is-pin .tec__inner { position: sticky; top: var(--site-nav-h, 68px); padding-top: clamp(40px, 8vw, 72px); padding-bottom: 24px; }
  .tec.is-pin .tec__grid { overflow-x: hidden; scroll-snap-type: none; will-change: transform; }
  .tec.is-pin .tec__grid li { scroll-snap-align: none; }
}
@media (max-width: 600px) {
  .tec__grid { grid-auto-columns: 78%; }
  /* En el teléfono no hay "pasar el cursor": las tarjetas se ven nítidas desde el inicio. */
  .tec__card img { transform: none; filter: brightness(0.88); }
}
@media (hover: none) { .tec__card img { transform: none; filter: brightness(0.88); } }
@media (prefers-reduced-motion: reduce) { .tec__card img, .tec__name svg { transition: none; } }
