/* ============================================================
   N2 · Servicios — 6 módulos en formato lista
   Titular grande con acento serif itálico + lista de filas
   (número · título · descripción · flecha). Las filas son
   decorativas (no clicables): el realce y la flecha aparecen en
   hover. El revelado por scroll vive en services.js. Depende de
   los tokens de brand.css.
   ============================================================ */

.serv {
  background: var(--bg);
  padding: clamp(80px, 12vw, 180px) 0;
  scroll-margin-top: 90px;
}

/* ---- Cabecera ---- */
.serv-head {
  margin-bottom: clamp(40px, 6vw, 80px);
}
.serv-title {
  margin-top: 18px;
  max-width: 18ch;
}
.serv-em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* ---- Lista ---- */
.serv-list {
  list-style: none;
}

.serv-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.25fr) 32px;
  align-items: start;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(26px, 3.4vw, 42px) clamp(10px, 1.5vw, 20px);
  border-top: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    background 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.serv-list .serv-row:last-child {
  border-bottom: 1px solid var(--line);
}
.serv-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.serv-num {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  padding-top: 0.5em;
  transition: color 0.25s ease;
}

.serv-name {
  margin: 0;
  color: var(--fg);
  max-width: 16ch;
}

.serv-desc {
  margin: 0;
  align-self: center;
  max-width: 46ch;
  font-size: clamp(14px, 1vw, 15px);
  line-height: 1.6;
  color: var(--fg-dim);
}

.serv-arrow {
  align-self: center;
  justify-self: end;
  color: var(--fg-faint);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    color 0.25s ease;
}
.serv-arrow svg {
  width: 20px;
  height: 20px;
}

/* ---- Hover de fila: número y flecha en acento, la flecha sube ↗ ---- */
.serv-row:hover .serv-num,
.serv-row:hover .serv-arrow {
  color: var(--accent);
}
.serv-row:hover .serv-arrow {
  transform: translate(3px, -3px);
}

/* ============================================================
   Servicios · responsive — descripción a ancho completo debajo
   ============================================================ */
@media (max-width: 760px) {
  .serv-row {
    grid-template-columns: 40px 1fr 24px;
    gap: 16px clamp(16px, 5vw, 24px);
    row-gap: 14px;
  }
  .serv-name {
    max-width: none;
  }
  .serv-desc {
    grid-column: 1 / -1;
    align-self: start;
    max-width: 60ch;
  }
  .serv-arrow {
    align-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .serv-row,
  .serv-num,
  .serv-arrow {
    transition: none;
  }
}
