/* ==========================================================================
   sections/services.css
   Sección SERVICIOS: tarjetas con inclinación 3D y filtros.
   ========================================================================== */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; perspective: 1200px; }
.svc { cursor: pointer; transition: opacity .5s var(--ease), transform .9s var(--ease) var(--d, 0ms); }
.svc.hide { display: none; }
.svc__in {
  --rx: 0deg; --ry: 0deg; position: relative; height: 100%; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(34,34,42,.85), rgba(16,16,21,.8)); border: 1px solid var(--line);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .25s ease-out, border-color .4s, box-shadow .4s;
  overflow: hidden; display: flex; flex-direction: column; backdrop-filter: blur(6px);
}
.svc:hover .svc__in, .svc:focus-visible .svc__in { border-color: rgba(227,38,43,.55); box-shadow: 0 30px 60px -30px rgba(227,38,43,.6); }
.svc__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 0%), rgba(227,38,43,.22), transparent 45%); opacity: 0; transition: opacity .4s; }
.svc:hover .svc__glare { opacity: 1; }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; transform: translateZ(40px); }
.svc__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--red-2), var(--red-deep)); box-shadow: 0 10px 24px -8px rgba(227,38,43,.8), inset 0 1px 0 rgba(255,255,255,.3); flex: none; }
.svc__ico .ico { width: 24px; height: 24px; }
.svc__num { font-family: var(--font-d); font-size: .8rem; color: var(--muted); }
.svc__tag { margin: 18px 0 4px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--red-2); transform: translateZ(30px); }
.svc h3 { font-family: var(--font-d); font-size: 1.15rem; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; transform: translateZ(30px); }
.svc__txt { color: var(--muted); font-size: .92rem; margin: 0 0 16px; flex: 1; }
.svc__img { height: 0; border-radius: 14px; overflow: hidden; opacity: 0; transition: height .5s var(--ease), opacity .4s, margin .5s; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.1); transition: transform .8s var(--ease); }
.svc:hover .svc__img { height: 130px; opacity: 1; margin-bottom: 14px; }
.svc:hover .svc__img img { transform: scale(1); }
.svc__more { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .88rem; color: #fff; }
.svc__more .ico { transition: transform .3s var(--ease); color: var(--red-2); }
.svc:hover .svc__more .ico { transform: translateX(6px); }
