Sleeper compartment "Clase Preferente" of a train hotel type Talgo Pendular, built in 1980th. Here in the night train between Madrid and Lisbon.
Wikipedia: "Talgo is a Spanish manufacturer of railway vehicles. It is best known for a design of articulated railway passenger cars in which the wheels are mounted in pairs, but not joined by an axle, and being between rather than underneath the individual coaches. Another feature of the design is the suspension, which allows the vehicle to passively tilt into curves, aiding passenger comfort."