/* =============================================================
   8. Trabajos: carrusel automático
   ============================================================= */
.works { background: var(--paper); border-block: 1px solid var(--line); }
.car { position: relative; }
.car-track {
  display: flex; gap: 16px; overflow-x: auto; overflow-y: visible;
  padding-block: 8px 48px; margin-bottom: -20px; position: relative;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.car-track::-webkit-scrollbar { display: none; }
.car-card {
  position: relative; flex: 0 0 82%; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden;
  scroll-snap-align: start; background: var(--leaf-soft);
  box-shadow: 0 14px 34px rgba(18, 53, 31, 0.16);
}
.car-card img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: transform 0.9s var(--ease-out); }
.car-card:hover img { transform: scale(1.05); }
.car-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 20px 20px; color: #fff;
  font-family: var(--display); font-size: 1.3rem; font-weight: 700;
  background: linear-gradient(180deg, transparent, rgba(10, 28, 16, 0.82));
}
.car-ctrl { display: none; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.js .car-ctrl { display: flex; }
.car-btns { display: flex; gap: 10px; }
.car-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--forest); color: var(--forest);
  display: grid; place-items: center; font-size: 1.2rem; transition: background 0.2s, color 0.2s;
}
.car-btn:hover { background: var(--forest); color: #fff; }
.car-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dots { display: flex; gap: 8px; flex-wrap: wrap; }
.dots button { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: background 0.25s, width 0.25s var(--ease-out); }
.dots button[aria-current="true"] { background: var(--forest); width: 28px; border-radius: 6px; }
